Following @RadxaYuntian’s advices, I come up with the following overlay :
/dts-v1/;
/plugin/;
/ {
compatible = "radxa,zero", "amlogic,g12a";
fragment@0 {
target-path = "/";
__overlay__ {
gpio-poweroff {
compatible = "gpio-poweroff";
/* gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; */
gpios = <&gpio_ao 3 1>;
status = "okay";
};
};
};
};
I’ve removed the includes from w1-gpioao-3.dts
, giving the raw pin number as found in the included file, so that it’s easier to compile.
The overlay compiles and loads successfully. From the latest @theophile’s comments, I believe it should perform as intended. I cannot confirm sin ce I can’t monitor the voltage on GPIOAO_3
(physical pin 7). I’ll report here if I get updates on this. Anyone able to test this overlay before me would be welcome to tell !