Hello.
I try without success to have a DS18B20 working on Rockpi4B with Linux rockpi-4b 5.10.131-2-rockchip-g8802564cbf09 kernel.
In dmesg, I have:
[ 13.300128] rockchip-pinctrl pinctrl: unable to find group for node w1_pins
[ 13.300307] w1-gpio: probe of onewire@0 failed with error -22
When I decompile the dtbo file (with dtc -I dtb -O dts /boot/overlays/w1-gpio4-30.dtbo), I have:
: Warning (unit_address_vs_reg): /fragment@0/overlay/onewire@0: node has a unit name, but no reg property
: Warning (unit_address_vs_reg): /local_fixups/fragment@0/overlay/onewire@0: node has a unit name, but no reg property
: Warning (gpios_property): /fragment@0/overlay/onewire@0:gpios: Could not get phandle node for (cell 1)
/dts-v1/;
/ {
compatible = “rockchip,rockpi\0rockchip,rk3399”;
fragment@0 {
target-path = [ 2f 00 ];
__overlay__ {
onewire@0 {
compatible = "w1-gpio";
pinctrl-names = "default";
pinctrl-0 = < 0x01 >;
gpios = < 0xffffffff 0x1e 0x00 >;
status = "okay";
phandle = < 0x02 >;
};
};
};
fragment@1 {
target = < 0xffffffff >;
__overlay__ {
w1_pins {
rockchip,pins = < 0x04 0x1e 0x00 0xffffffff >;
phandle = < 0x01 >;
};
};
};
__symbols__ {
w1 = "/fragment@0/__overlay__/onewire@0";
w1_pins = "/fragment@1/__overlay__/w1_pins";
};
__fixups__ {
gpio4 = "/fragment@0/__overlay__/onewire@0:gpios:0\0/fragment@1:target:0";
pcfg_pull_none = "/fragment@1/__overlay__/w1_pins:rockchip,pins:12";
};
__local_fixups__ {
fragment@0 {
__overlay__ {
onewire@0 {
pinctrl-0 = < 0x00 >;
};
};
};
};
};
Could you give me an explanation or a link to understand the syntax of this file, mainly the rockchip,pins = < 0x04 0x1e 0x00 0xffffffff >;