inx-onlya Posted November 4, 2022 Share Posted November 4, 2022 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? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.