How to configure a generic gpio in .dts file

Hi,

do you know a way to declare genric gpio in .dts file without using gpio-leds/gpio-keys bindings?

I know those bindings work, but if i need to use gpio for controlling a mosfet  I get bored seeing that I have to use something led-related.

I would something like this:

pins {
compatible = "gpio"; // sort of
pin0: pin0 {
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
label = "Mosfet controlling pin";
};
};

Thanks,
Alessandro
Related