09-22-2021, 08:42 AM
May it helps someone, finally I got 1wire work on kernel 5.x.x
Main hint was on github.com from Tonymac32 --- Many thanks!!!
This DT overly worked for me [<&gpio3 4 0> means GPIO3_A4; id100; Pin15] :
Overlay file: rockchip-w1-gpio.dts
Compiling to binary:
dtc -I dts -O dtb rockchip-w1-gpio.dts -o rockchip-w1-gpio.dtbo
Overwriting of existing file:
boot/dtb-5.x.x-rockchip64/rockchip/overlay/rockchip-w1-gpio.dtbo
Than 1Wire can be activated in:
sudo armbian-config
(Activation before changing the overly file crashed my Rock)
Main hint was on github.com from Tonymac32 --- Many thanks!!!
This DT overly worked for me [<&gpio3 4 0> means GPIO3_A4; id100; Pin15] :
Overlay file: rockchip-w1-gpio.dts
Code:
/dts-v1/;
/plugin/;
/ {
compatible = "pine64,rock64", "rockchip,rk3328";
fragment@0 {
target-path = "/";
__overlay__ {
w1: onewire@0 {
compatible = "w1-gpio";
pinctrl-names = "default";
gpios = <&gpio3 4 0>;
status = "okay";
};
};
};
};
Compiling to binary:
dtc -I dts -O dtb rockchip-w1-gpio.dts -o rockchip-w1-gpio.dtbo
Overwriting of existing file:
boot/dtb-5.x.x-rockchip64/rockchip/overlay/rockchip-w1-gpio.dtbo
Than 1Wire can be activated in:
sudo armbian-config
(Activation before changing the overly file crashed my Rock)