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 :-) > 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: [email protected] To contact the owner, e-mail: [email protected]
