Hi,
I have a requirement to set a GPIO pin to a default value (e,g, high) during Linux kernel starting up.
This is the snippet of my gpio configuration in am335x-boneblack.dts to change the gpio0_23 configuration:
am33xx_pinmux {
pinctrl-names = "default";
pinctrl-0 = <&my_gpio0_pins>;
my_gpio0_pins: pinmux_my_gpio0_pins {
pinctrl-single,pins = <
...
AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_OUTPUT, MUX_MODE7) /* gpmc_ad9.gpio0_23 */
...
>;
};
...
};
However, I cannot seem to find an example of setting its default value to high.
Question: What is the proper way to do this in Linux?
Thank you for your help!