Jump to content

inx-onlya

Members
  • Posts

    2
  • Joined

  • Last visited

  1. 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?
  2. Maybe it should be: user_overlays=gpio-pwr-status The device name prefix is not needed, which is similar to the provided overlays. Have a look at the overlays line here: https://docs.armbian.com/User-Guide_Allwinner_overlays/#example-bootarmbianenvtxt-contents and compare that to the .dto files in the folder. You can find that the device name prefix in the filename is omitted in the overlays line.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines