aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.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_asus_rt-ac5x.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_asus_rt-ac5x.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
index adec8a1a6f..423b4edc6b 100644
--- a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
+++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
@@ -6,6 +6,10 @@
/ {
aliases {
label-mac-device = &ethernet;
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
};
keys {
@@ -23,6 +27,28 @@
linux,code = <KEY_WPS_BUTTON>;
};
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "blue:power";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ };
+
+ usb {
+ label = "blue:usb";
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
+ };
+
+ wifi2g {
+ label = "blue:wifi2g";
+ gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy1tpt";
+ };
+ };
};
&spi0 {
@@ -88,6 +114,13 @@
status = "okay";
};
+&state_default {
+ gpio {
+ groups = "i2c", "wled", "uartf";
+ function = "gpio";
+ };
+};
+
&ethernet {
mtd-mac-address = <&factory 0x28>;