How should default settings to gpio pins be configured device tree - specifically on Freescale imx series.
So far I have only been able to configure gpios using the led interface:
gpioinit { compatible = "gpio-leds"; pinctrl-names = "default"; mykpp { gpios = <&gpio4 15 1>; };};
The above code sets gpio 4 15 to 1 during boot which is what I want. However, I assume there is a better way doing this making this pin show up in sysfs as a general gpio and not a gpio-led