Hi everybody.
Recenly I've moved to Armbian mainline from Bananian on my Banana pro. 'uname -r' is now saying "BPro 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l GNU/Linux".
I tried to make ds18b20 work but had no luck.
First I've decompiled /boot/dtb/overlay/sun7i-a20-w1-gpio.dtbo, edited dts section to look like this:
__overlay__ {
w1_pins {
pins = "PB6";
function = "gpio_in";
linux,phandle = <0x1>;
phandle = <0x1>;
};
I connected, data line of sensor to pin 38 and pulled it up by external resistor.
Then I compiled dts to dtbo, replaced original .dtbo file and added "overlays=w1-gpio" string to armbianEnv.txt. What I get after reboot:
root@BPro:~/dtb# cat /sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins |grep onewire
pin 38 (PB6): onewire@0 (GPIO UNCLAIMED) function gpio_in group PB6
root@BPro:~/dtb# ls /sys/bus/w1/devices/
w1_bus_master1
root@BPro:~/dtb# dmesg |grep w1
So sensor doesn't work and what is strange for me, there is no even a word about w1 driver in dmesg. What can be the problem?