aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
index 4f30972f60..3f3bae43f1 100644
--- a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
+++ b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
@@ -8,6 +8,10 @@
/ {
aliases {
label-mac-device = &gmac0;
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
};
keys {
@@ -25,6 +29,30 @@
linux,code = <KEY_WPS_BUTTON>;
};
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: led_1 {
+ label = "red:led1";
+ gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
+ };
+
+ led_2 {
+ label = "red:led2";
+ gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
+ };
+
+ led_3 {
+ label = "red:led3";
+ gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
+ };
+
+ led_4 {
+ label = "red:led4";
+ gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
+ };
+ };
};
&spi0 {