On 25/11/2019 11:07, Guillaume Gardet wrote:
>
>
>> -----Original Message-----
>> From: Per Jessen <[email protected]>
>> Sent: 25 November 2019 10:46
>> To: [email protected]
>> 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 <[email protected]>
>>>> Sent: 24 November 2019 16:07
>>>> To: [email protected]
>>>> 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: [email protected]
>> To contact the owner, e-mail: [email protected]
>
> 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: [email protected]
To contact the owner, e-mail: [email protected]