Re: [opensuse-arm] Pimoroni pHAT DAC on Raspberry Pi 3

2019-11-25 Thread Richard MQ

Torsten Duwe wrote:

On Mon, Nov 25, 2019 at 10:59:01AM +, Guillaume Gardet wrote:

Hi,


-Original Message-
From: Richard (MQ) 
Sent: 25 November 2019 11:42
To: opensuse-arm@opensuse.org
Subject: [opensuse-arm] Pimoroni pHAT DAC on Raspberry Pi 3

Hi All

Has anyone had any luck getting Pimoroni accessories such as "pHAT DAC"
working on Raspberry Pi 3 under recent opensuse images? This is a PCM5102A
DAC connected via I2S interface, the Pimoroni instructions are specific to 
Raspian.


I think you need to create/update  /boot/efi/extraconfig.txt file to enable I2S 
and select the right DAC:
dtparam=i2s=on
dtoverlay=hifiberry-dacplus


Oh yes. And additional pitfalls here are the exact compatible string (there
is some variety of these audio hats, with subtle differences) and the DACs/
AMPs i²C address. BTDT.

Torsten


Thanks both for quick reply.

I've tried the XFCE image from Guillaume's link and indeed it seems 
good, maybe I was unlucky last time. Nice to be using the latest and 
greatest again!


And I already knew about /boot/efi/extraconfig.txt and had 
dtoverlay=hifiberry-dacplus to no avail, I have pre-pended
dtparam=i2s=on as suggested but still no dice (nothing shows up in 
hwinfo, nor Yast - Sound Card)


@Torsten - please can you advise where to configure the strings and 
addresses that you mention?


Best regards
Richard
--
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



Re: [opensuse-arm] Pimoroni pHAT DAC on Raspberry Pi 3

2019-11-25 Thread Torsten Duwe
On Mon, Nov 25, 2019 at 10:59:01AM +, Guillaume Gardet wrote:
> Hi,
> 
> > -Original Message-
> > From: Richard (MQ) 
> > Sent: 25 November 2019 11:42
> > To: opensuse-arm@opensuse.org
> > Subject: [opensuse-arm] Pimoroni pHAT DAC on Raspberry Pi 3
> >
> > Hi All
> >
> > Has anyone had any luck getting Pimoroni accessories such as "pHAT DAC"
> > working on Raspberry Pi 3 under recent opensuse images? This is a PCM5102A
> > DAC connected via I2S interface, the Pimoroni instructions are specific to 
> > Raspian.
> 
> I think you need to create/update  /boot/efi/extraconfig.txt file to enable 
> I2S and select the right DAC:
> dtparam=i2s=on
> dtoverlay=hifiberry-dacplus

Oh yes. And additional pitfalls here are the exact compatible string (there
is some variety of these audio hats, with subtle differences) and the DACs/
AMPs i²C address. BTDT.

Torsten

-- 
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



Re: [opensuse-arm] any hints for getting ds1820s to work with my nano pi neo air?

2019-11-25 Thread Matthias Brugger



On 25/11/2019 11:07, Guillaume Gardet wrote:
> 
> 
>> -Original Message-
>> From: Per Jessen 
>> Sent: 25 November 2019 10:46
>> To: opensuse-arm@opensuse.org
>> Subject: RE: [opensuse-arm] any hints for getting ds1820s to work with my 
>> nano
>> pi neo air?
>>
>> Guillaume Gardet wrote:
>>
>>> Hi,
>>>
 -Original Message-
 From: Per Jessen 
 Sent: 24 November 2019 16:07
 To: opensuse-arm@opensuse.org
 Subject: [opensuse-arm] any hints for getting ds1820s to work with my
 nano pi neo air?

 I measure temperature with DS1820 hooked up to microcontrollers (PIC)
 or via serial interface to regular PCs, now I was hoping to use a
 nanopi neo air, but I am not getting anywhere.

 I have the modules loaded - w1-therm, wire, w1-gpio - but no devices
 turn up in /sys/bus/w1/devices.  I'm connecting the DS1820s to
 GPIO11 - I guess I need to modify the DTB to make this work?
>>>
>>> There are some information about 1-wire here:
>>> https://en.opensuse.org/openSUSE:1-wire
>>
>> Thanks Guillaume,
>>
>> Yes, I've seen that one, but it's very limited :-)
> 
> Yes, it is, but 1-wire as well. 😉
> Feel free to improve it with your findings, if appropriate.
> 
>>
>>> If you want to use 1-wire on a regular gpio, with w1-gpio module, you
>>> need to update your device-tree to setup it properly. Then, you can
>>> check /sys/bus/w1/devices folder for any devices found on the 1-wire
>>> bus.
>>>
>>> If you do not update your DTB, w1-gpio will not know which gpio to
>>> use.
>>
>> I picked gpio11 because it happened to be convenient for the wiring, but I 
>> don't
>> really care which one I use.  What is the easiest way of using 1-wire 
>> devices on
>> the nanopi, without having to modify the DTB ?  I'm using the Friendlycore 
>> DTB,
>> not the one from the openSUSE Jeos image.
> 
> I fear that you need to update your DT. Not sure what is the current status 
> of Device Tree Overlays, upstream.
> 
> If device tree overlays are supported, you may just need to create a dt 
> fragment, compile it and load it at runtime or on boot as a kernel option.
> 
> Matthias, Yousaf, do you know about the status of the DT overlays?
> 

AFAIK there is a way to apply overlays in U-Boot. But I have never tried that.
Feel free to do so and provide feedback (maybe even a openSUSE wiki entry) :)

Regards,
Matthias

> Guillaume
> 
>>
>>
>>
>> --
>> Per Jessen, Zürich (7.1°C)
>> Member, openSUSE Heroes.
>>
>> --
>> To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
>> To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org
> 
> IMPORTANT NOTICE: The contents of this email and any attachments are 
> confidential and may also be privileged. If you are not the intended 
> recipient, please notify the sender immediately and do not disclose the 
> contents to any other person, use it for any purpose, or store or copy the 
> information in any medium. Thank you.
> 
-- 
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



RE: [opensuse-arm] any hints for getting ds1820s to work with my nano pi neo air?

2019-11-25 Thread Per Jessen
Guillaume Gardet wrote:

> 
> 
>> -Original Message-
>> From: Per Jessen 
>> Sent: 25 November 2019 11:43
>> To: Guillaume Gardet ; opensuse-
>> a...@opensuse.org
>> Subject: Re: [opensuse-arm] any hints for getting ds1820s to work
>> with my nano pi neo air?
>>
>> Guillaume Gardet wrote:
>>
>> >> I picked gpio11 because it happened to be convenient for the
>> >> wiring,
>> >> but I don't really care which one I use.  What is the easiest way
>> >> of using 1-wire devices on the nanopi, without having to modify
>> >> the DTB
>> >> ?  I'm using the Friendlycore DTB, not the one from the openSUSE
>> >> Jeos image.
>> >
>> > I fear that you need to update your DT. Not sure what is the
>> > current status of Device Tree Overlays, upstream.
>> [snip]
>> > If device tree overlays are supported, you may just need to create
>> > a dt fragment, compile it and load it at runtime or on boot as a
>> > kernel option.
>>
>> Okay, I had almost concluded that myself, thanks for confirming it.
>> Judging by the instructions for the Raspi, it seems overlays should
>> be fine?
> 
> On Raspberry Pi, the overlays are handled by firmware. So, this is
> different. RPi is different from other boards.

Yeah, that is certainly true, but I didn't know about that little twist. 

>> I'm going to go and study how to write a dt fragment for the nanopi.
> 
> My understanding is upstream kernel, as used in openSUSE, cannot apply
> DT overlays at runtime. 

Okay, good to know that I can ignore the overlay idea. 

> You need to update your DTB, or create a fragment and merge it with
> your current DT. Then, use this new DTB to boot your board.

Right.  It's good to get my suspicions confirmed, makes it easier to
move in the right direction. 




-- 
Per Jessen, Zürich (7.2°C)
http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.

--
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



RE: [opensuse-arm] any hints for getting ds1820s to work with my nano pi neo air?

2019-11-25 Thread Guillaume Gardet


> -Original Message-
> From: Per Jessen 
> Sent: 25 November 2019 11:43
> To: Guillaume Gardet ; opensuse-
> a...@opensuse.org
> Subject: Re: [opensuse-arm] any hints for getting ds1820s to work with my nano
> pi neo air?
>
> Guillaume Gardet wrote:
>
> >> I picked gpio11 because it happened to be convenient for the wiring,
> >> but I don't really care which one I use.  What is the easiest way of
> >> using 1-wire devices on the nanopi, without having to modify the DTB
> >> ?  I'm using the Friendlycore DTB, not the one from the openSUSE Jeos 
> >> image.
> >
> > I fear that you need to update your DT. Not sure what is the current
> > status of Device Tree Overlays, upstream.
> [snip]
> > If device tree overlays are supported, you may just need to create a
> > dt fragment, compile it and load it at runtime or on boot as a kernel 
> > option.
>
> Okay, I had almost concluded that myself, thanks for confirming it.
> Judging by the instructions for the Raspi, it seems overlays should be fine?

On Raspberry Pi, the overlays are handled by firmware. So, this is different. 
RPi is different from other boards.

>
> I'm going to go and study how to write a dt fragment for the nanopi.

My understanding is upstream kernel, as used in openSUSE, cannot apply DT 
overlays at runtime.
You need to update your DTB, or create a fragment and merge it with your 
current DT. Then, use this new DTB to boot your board.

Cheers,
Guillaume

>
>
> --
> Per Jessen, Zürich (7.1°C)
> Member, openSUSE Heroes.

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.


RE: [opensuse-arm] Pimoroni pHAT DAC on Raspberry Pi 3

2019-11-25 Thread Guillaume Gardet
Hi,

> -Original Message-
> From: Richard (MQ) 
> Sent: 25 November 2019 11:42
> To: opensuse-arm@opensuse.org
> Subject: [opensuse-arm] Pimoroni pHAT DAC on Raspberry Pi 3
>
> Hi All
>
> Has anyone had any luck getting Pimoroni accessories such as "pHAT DAC"
> working on Raspberry Pi 3 under recent opensuse images? This is a PCM5102A
> DAC connected via I2S interface, the Pimoroni instructions are specific to 
> Raspian.

I think you need to create/update  /boot/efi/extraconfig.txt file to enable I2S 
and select the right DAC:
dtparam=i2s=on
dtoverlay=hifiberry-dacplus

>
> Separately, can anyone advise the latest image (JeOS is fine) that runs OK on 
> the
> model 3? I've been very happy with JeOS
> armv6l-2019.07.31-Snapshot20190814 on my model 1B but still using a much older
> image on the model 3 as nothing I have tried recently will boot.

AArch64 images from latest Tumbleweed snapshot should be fine:
http://download.opensuse.org/ports/aarch64/tumbleweed/images/

Cheers,
Guillaume

>
> Many thanks
> --
> Richard (MQ)
> Linux user # 439271
> --
> To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
> To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
N�r��y隊Z)z{.�櫛맲��r��z�^�ˬz��N�(�֜��^�   ޭ隊Z)z{.�櫛�0�Ǩ�

Re: [opensuse-arm] any hints for getting ds1820s to work with my nano pi neo air?

2019-11-25 Thread Per Jessen

Guillaume Gardet wrote:


I picked gpio11 because it happened to be convenient for the wiring, but I
don't really care which one I use.  What is the easiest way of using 1-wire
devices on the nanopi, without having to modify the DTB ?  I'm using the
Friendlycore DTB, not the one from the openSUSE Jeos image.


I fear that you need to update your DT. Not sure what is the current status
of Device Tree Overlays, upstream.

[snip]

If device tree overlays are supported, you may just need to create a dt
fragment, compile it and load it at runtime or on boot as a kernel option.


Okay, I had almost concluded that myself, thanks for confirming it.
Judging by the instructions for the Raspi, it seems overlays should be fine?

I'm going to go and study how to write a dt fragment for the nanopi.


--
Per Jessen, Zürich (7.1°C)
Member, openSUSE Heroes.

--
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



[opensuse-arm] Pimoroni pHAT DAC on Raspberry Pi 3

2019-11-25 Thread Richard (MQ)

Hi All

Has anyone had any luck getting Pimoroni accessories such as "pHAT DAC" 
working on Raspberry Pi 3 under recent opensuse images? This is a 
PCM5102A DAC connected via I2S interface, the Pimoroni instructions are 
specific to Raspian.


Separately, can anyone advise the latest image (JeOS is fine) that runs 
OK on the model 3? I've been very happy with JeOS 
armv6l-2019.07.31-Snapshot20190814 on my model 1B but still using a much 
older image on the model 3 as nothing I have tried recently will boot.


Many thanks
--
Richard (MQ)
Linux user # 439271
--
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



RE: [opensuse-arm] any hints for getting ds1820s to work with my nano pi neo air?

2019-11-25 Thread Guillaume Gardet


> -Original Message-
> From: Per Jessen 
> Sent: 25 November 2019 10:46
> To: opensuse-arm@opensuse.org
> Subject: RE: [opensuse-arm] any hints for getting ds1820s to work with my nano
> pi neo air?
>
> Guillaume Gardet wrote:
>
> > Hi,
> >
> >> -Original Message-
> >> From: Per Jessen 
> >> Sent: 24 November 2019 16:07
> >> To: opensuse-arm@opensuse.org
> >> Subject: [opensuse-arm] any hints for getting ds1820s to work with my
> >> nano pi neo air?
> >>
> >> I measure temperature with DS1820 hooked up to microcontrollers (PIC)
> >> or via serial interface to regular PCs, now I was hoping to use a
> >> nanopi neo air, but I am not getting anywhere.
> >>
> >> I have the modules loaded - w1-therm, wire, w1-gpio - but no devices
> >> turn up in /sys/bus/w1/devices.  I'm connecting the DS1820s to
> >> GPIO11 - I guess I need to modify the DTB to make this work?
> >
> > There are some information about 1-wire here:
> > https://en.opensuse.org/openSUSE:1-wire
>
> Thanks Guillaume,
>
> Yes, I've seen that one, but it's very limited :-)

Yes, it is, but 1-wire as well. 😉
Feel free to improve it with your findings, if appropriate.

>
> > If you want to use 1-wire on a regular gpio, with w1-gpio module, you
> > need to update your device-tree to setup it properly. Then, you can
> > check /sys/bus/w1/devices folder for any devices found on the 1-wire
> > bus.
> >
> > If you do not update your DTB, w1-gpio will not know which gpio to
> > use.
>
> I picked gpio11 because it happened to be convenient for the wiring, but I 
> don't
> really care which one I use.  What is the easiest way of using 1-wire devices 
> on
> the nanopi, without having to modify the DTB ?  I'm using the Friendlycore 
> DTB,
> not the one from the openSUSE Jeos image.

I fear that you need to update your DT. Not sure what is the current status of 
Device Tree Overlays, upstream.

If device tree overlays are supported, you may just need to create a dt 
fragment, compile it and load it at runtime or on boot as a kernel option.

Matthias, Yousaf, do you know about the status of the DT overlays?

Guillaume

>
>
>
> --
> Per Jessen, Zürich (7.1°C)
> Member, openSUSE Heroes.
>
> --
> To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
> To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.


RE: [opensuse-arm] any hints for getting ds1820s to work with my nano pi neo air?

2019-11-25 Thread Per Jessen
Guillaume Gardet wrote:

> Hi,
> 
>> -Original Message-
>> From: Per Jessen 
>> Sent: 24 November 2019 16:07
>> To: opensuse-arm@opensuse.org
>> Subject: [opensuse-arm] any hints for getting ds1820s to work with my
>> nano pi neo air?
>>
>> I measure temperature with DS1820 hooked up to microcontrollers (PIC)
>> or via serial interface to regular PCs, now I was hoping to use a
>> nanopi neo air, but I am not getting anywhere.
>>
>> I have the modules loaded - w1-therm, wire, w1-gpio - but no devices
>> turn up in /sys/bus/w1/devices.  I'm connecting the DS1820s to
>> GPIO11 - I guess I need to modify the DTB to make this work?
> 
> There are some information about 1-wire here:
> https://en.opensuse.org/openSUSE:1-wire

Thanks Guillaume,

Yes, I've seen that one, but it's very limited :-) 

> If you want to use 1-wire on a regular gpio, with w1-gpio module, you
> need to update your device-tree to setup it properly. Then, you can
> check /sys/bus/w1/devices folder for any devices found on the 1-wire
> bus.
> 
> If you do not update your DTB, w1-gpio will not know which gpio to
> use.

I picked gpio11 because it happened to be convenient for the wiring, but
I don't really care which one I use.  What is the easiest way of using
1-wire devices on the nanopi, without having to modify the DTB ?  I'm
using the Friendlycore DTB, not the one from the openSUSE Jeos image. 



-- 
Per Jessen, Zürich (7.1°C)
Member, openSUSE Heroes.

--
To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org



RE: [opensuse-arm] any hints for getting ds1820s to work with my nano pi neo air?

2019-11-25 Thread Guillaume Gardet
Hi,

> -Original Message-
> From: Per Jessen 
> Sent: 24 November 2019 16:07
> To: opensuse-arm@opensuse.org
> Subject: [opensuse-arm] any hints for getting ds1820s to work with my nano pi
> neo air?
>
> I measure temperature with DS1820 hooked up to microcontrollers (PIC) or via
> serial interface to regular PCs, now I was hoping to use a nanopi neo air, 
> but I am
> not getting anywhere.
>
> I have the modules loaded - w1-therm, wire, w1-gpio - but no devices turn up 
> in
> /sys/bus/w1/devices.  I'm connecting the DS1820s to GPIO11 - I guess I need to
> modify the DTB to make this work?

There are some information about 1-wire here: 
https://en.opensuse.org/openSUSE:1-wire

If you want to use 1-wire on a regular gpio, with w1-gpio module, you need to 
update your device-tree to setup it properly.
Then, you can check /sys/bus/w1/devices folder for any devices found on the 
1-wire bus.

If you do not update your DTB, w1-gpio will not know which gpio to use.

Cheers,
Guillaume

>
>
>
>
> --
> Per Jessen, Zürich (8.5°C)
> Member, openSUSE Heroes.
>
> --
> To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org
> To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
N�r��y隊Z)z{.�櫛맲��r��z�^�ˬz��N�(�֜��^�   ޭ隊Z)z{.�櫛�0�Ǩ�