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
If it's a GPIO, your dts file should show something like:
This example is taken from MPC8377's dts file. You may want to have a look at /drivers/gpio/gpio-fsl.c