aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-09-27 19:40:51 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-10-02 14:51:57 +0200
commitc846dd91f0a6f99b529ed6e1ec4ab149466dc0d2 (patch)
tree700447cce24d5047340897eb5e5cf5c9d0e03726 /target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
parent9b4eab023c0add0063260e8a5da6193fc44f1658 (diff)
downloadupstream-c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2.tar.gz
upstream-c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2.tar.bz2
upstream-c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2.zip
ramips: remove model name from LED labels
Like in the previous patch for ath79 target, this will remove the "devicename" from LED labels in ramips as well. The devicename is removed in DTS files and 01_leds, consolidation of definitions into DTSI files is done where (easily) possible, and migration scripts are updated. For the latter, all existing definitions were actually just devicename migrations anyway. Therefore, those are removed and a common migration file is created in target base-files. This is actually another example of how the devicename removal makes things easier. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi47
1 files changed, 47 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
index 3cafd932ab..0f0d9aee7e 100644
--- a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
+++ b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
@@ -4,6 +4,13 @@
#include <dt-bindings/input/input.h>
/ {
+ aliases {
+ led-boot = &led_power_amber;
+ led-failsafe = &led_power_amber;
+ led-running = &led_power_green;
+ led-upgrade = &led_power_green;
+ };
+
keys {
compatible = "gpio-keys";
@@ -19,6 +26,46 @@
linux,code = <KEY_WPS_BUTTON>;
};
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power_green: power_green {
+ label = "green:power";
+ gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ };
+
+ led_power_amber: power_amber {
+ label = "amber:power";
+ gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
+ };
+
+ router_green {
+ label = "green:router";
+ gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
+ };
+
+ router_red {
+ label = "red:router";
+ gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
+ };
+
+ device_green {
+ label = "green:device";
+ gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
+ };
+
+ device_red {
+ label = "red:device";
+ gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
+ };
+
+ wps {
+ label = "green:wps";
+ gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
+ };
+ };
};
&gpio0 {