Configure GPIO in devicetree as "nordic,nrf-gpio" and not as "gpio-leds"

I would like to configure GPIOs as compatible = "nordic,nrf-gpio"; in devicetree file. 

I did check this topic, but I think that this kind of configuration defeats the whole purpose of .dts file.

I did not find any example for compatible = "nordic,nrf-gpio"; but only for compatible = "gpio-leds";.

 

The Zephyr documentation for nordic,nrf-gpio doesn't help me much.


Could you please provide some example?


/ {
    boardGpios {
        compatible = "nordic,nrf-gpio";
        output1: output1 {
            ...
        }
    };
};

Parents Reply Children
No Data
Related