Device Tree configuration form GPIO
Hi,
Is there any example showing how to configure a simple GPIO line using DeviceTree? I would like to set the pullup/pulldown or open drain and then use the /sys/class/gpio to read or write the value. The only example I can find is the GPIO setting for particular peripheral and not for standalone input/output pin.
I have added the following section to the &pinctrl in my device tree but I think it has no effect on the pins configuration.
gpio_pins_mx: gpio_pins_mx-0 {
u-boot,dm-pre-reloc;
pins {
u-boot,dm-pre-reloc;
pinmux = <STM32_PINMUX('D', 11, GPIO)>,
<STM32_PINMUX('C', 0, GPIO)>,
<STM32_PINMUX('B', 7, GPIO)>;
bias-pull-down;
};
};Thank you,
Chris
