How to configure 1-Wire support
I want to port my little 1-Wire based temperature sensor app over from my RPi.
I have a DS18B20 temp sensor connected to the GPIO connector of my Raspberry Pi 3.
I used the steps of this Adafruit lesson to get things working;
How can I do the same on the ROC-RK3328-CC?
I've built a kernel with the W1 drivers "compiled in" (as opposed to compiled as modules).
After rebooting the new kernel, I see the W1 drivers in
But, despite having a DS18B20 connected to the GPIO header:
pin-1 = +3.3v
pin-6 = GND
pin-7 = CLK
I do not see the sensor under
/sys/bus/w1/devices like I do on the RPi.
I suspect this has something to do with the Device Tree.
On the RPi I can tell the bootloader to add a DT Overlay (w1-gpio) by adding
dtoverlay=w1-gpio to the
Near as I can tell, we don't have a similar ability to incorporate DT Overlays at boot time on the roc-rk3328-cc, right?
So, I'm guessing the GPIO pin's signal isn't being correctly routed (or made visible to) the W1 kernel driver. And to do so, will probably require some sort of modification to the
Anybody gotten 1-Wire support working on this board?
Any Device Tree guru's out there that know what mods have to be made to the Device Tree (.dts) files?