This post was finally edited by JohnB at 2023-8-23 16:52  
 
Hello, also faced this problem.  
 
my board is OrangePi Zero2 1GB  
OS : debian 3.0.6 Bullseye (Orange Pi 3.0.6 Bullseye)  
 
Does not work because there is no device tree file (in the /boot/dtb/allwinner/) you need to create it.  
 
How to:  
1. You need to create text file "sun50i-h616-w1-gpio.dts" 
/dts-v1/; / {         compatible = "xunlong,orangepi-zero2\0allwinner,sun50i-h616"; 
        fragment@0 {                 target = <0xffffffff>; 
                __overlay__ { 
                        w1_pins {                                 pins = "PC9";                                 function = "gpio_in";                                 phandle = <0x01>;                         };                 };         }; 
        fragment@1 {                 target-path = [2f 00]; 
                __overlay__ { 
                        onewire@0 {                                 compatible = "w1-gpio";                                 pinctrl-names = "default";                                 pinctrl-0 = <0x01>;                                 gpios = <0xffffffff 0x02 0x06 0x00>;                                 status = "okay";                         };                 };         }; 
        __symbols__ {                 w1_pins = "/fragment@0/__overlay__/w1_pins";         }; 
        __fixups__ {                 pio = "/fragment@0:target:0\0/fragment@1/__overlay__/onewire@0:gpios:0";         }; 
        __local_fixups__ { 
                fragment@1 { 
                        __overlay__ { 
                                onewire@0 {                                         pinctrl-0 = <0x00>;                                 };                         };                 };         }; };  
  
2. After you need to compile it, with command "dtc -O dtb -o sun50i-h616-w1-gpio.dtbo sun50i-h616-w1-gpio.dts"  
3. Copy it too /boot/dtb/allwinner/overlay/  
4. Reboot All done:)  
 
 
 
 |