[mvebu]: define the power led for the WRT1900AC
[openwrt-github/.git] / target / linux / mvebu / files / arch / arm / boot / dts / armada-xp-mamba.dts
index d732764e90bf7bfa62d1d9af9240982bcfecff55..a8b1643755fc20941ffc45369ed97f067b031adc 100644 (file)
                                        marvell,pins = "mpp32";
                                        marvell,function = "gpio";
                                };
+
+                               power_led_pin: power-led-pin {
+                                       marvell,pins = "mpp40";
+                                       marvell,function = "gpio";
+                               };
+
                        };
 
                        serial@12000 {
                        gpios = <&gpio1 1 1>;
                };
        };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+               pinctrl-0 = <&power_led_pin>;
+               pinctrl-names = "default";
+
+               power {
+                       label = "mamba:white:power";
+                       gpios = <&gpio1 8 0>;
+                       default-state = "on";
+               };
+       };
 };