I would like to set a GPIO to output-high during the boot. In this case, the GPIO is PG0 whose number is 192.
The device tree overlay is
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun50i-a64";
fragment@0 {
target = <&pio>;
__overlay__ {
gpio_out_override_hog {
gpio-hog;
gpios = <192 0>; /* PG0 */
output-high;
line-name = "PG0-gpio-hog";
};
};
};
};
However, after the application and reboot, I do not see any init information in "/sys/kernel/gpio" about GPIO 192. There is no "/sys/class/gpio/gpio192" folder existed after boot either.
Is there anything wrong in the overlay file?