I finally have the DS18B20 working on a new kernel (Armbian with 5.19.5-rockchip64 kernel) !!!
- Create and edit a w1-gpio.dts file as this:
/dts-v1/;
/plugin/;/ {
compatible = “rockchip,rockpi”,“rockchip,rk3399”;fragment@0 { target-path = "/"; __overlay__ { w1: onewire@0 { compatible = "w1-gpio"; pinctrl-names = "default"; gpios = <&gpio4 30 0>; status = "okay"; }; }; };};
- Compile it and put it where he must go (note dtc is normally installed with recents armbian):
sudo dtc -I dts -O dtb -o /boot/dtb-5.19.5-rockchip64/rockchip/overlay/rockchip-w1-gpio.dtbo w1-gpio.dts - Reboot, et voilà !!!
sudo dmesg | grep w1
[ 5.754498] w1_master_driver w1_bus_master1: Attaching one wire slave 10.000802e5e4d1 crc 3c
I think this trick should work with all distro using device tree (dietPi, armbian, etc..)