aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-08-06 14:30:42 +0200
committerDavid Bauer <mail@david-bauer.net>2019-08-10 00:32:28 +0200
commitda0de5e007cda0abef442bef860f867033206291 (patch)
treee7aad18a3a2053332beaaaf2a2e91da80491962d /target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
parentd7c082ba4f7de97b3708d1f4a064954ffc774778 (diff)
downloadupstream-da0de5e007cda0abef442bef860f867033206291.tar.gz
upstream-da0de5e007cda0abef442bef860f867033206291.tar.bz2
upstream-da0de5e007cda0abef442bef860f867033206291.zip
ramips: fix LED labels not updated during device name changes
In commit d93969a13a5b ("ramips: Improve compatible for TP-Link Archer devices") and subsequent ones, names of several devices in ramips have been changed. Since LED names are frequently invoked by $boardname, this has broken LED setup in 01_leds, as $boardname and prefix in DTS do not match anymore. This patch updates device name prefixes for LEDs in DTS files, and provides a migration script. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts')
-rw-r--r--target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts14
1 files changed, 7 insertions, 7 deletions
diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
index ccb0d18ead..007e0e69e8 100644
--- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
+++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
@@ -38,39 +38,39 @@
compatible = "gpio-leds";
power1 {
- label = "y1s:yellow:power";
+ label = "newifi-y1s:yellow:power";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
led_power_blue: power2 {
- label = "y1s:blue:power";
+ label = "newifi-y1s:blue:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
wlan1 {
- label = "y1s:yellow:wifi";
+ label = "newifi-y1s:yellow:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
wlan2 {
- label = "y1s:blue:wifi";
+ label = "newifi-y1s:blue:wifi";
gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
};
usb1 {
- label = "y1s:yellow:usb";
+ label = "newifi-y1s:yellow:usb";
gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
};
usb2 {
- label = "y1s:blue:usb";
+ label = "newifi-y1s:blue:usb";
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
};
internet {
- label = "y1s:blue:internet";
+ label = "newifi-y1s:blue:internet";
gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
};
};