From da0de5e007cda0abef442bef860f867033206291 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Tue, 6 Aug 2019 14:30:42 +0200 Subject: 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 --- target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts') diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts index 602cc70e02..258c2f21c9 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts @@ -24,45 +24,45 @@ compatible = "gpio-leds"; lan { - label = "c20-v1:blue:lan"; + label = "archer-c20-v1:blue:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "c20-v1:blue:power"; + label = "archer-c20-v1:blue:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "keep"; }; usb { - label = "c20-v1:blue:usb"; + label = "archer-c20-v1:blue:usb"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "c20-v1:blue:wan"; + label = "archer-c20-v1:blue:wan"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; wan_orange { - label = "c20-v1:orange:wan"; + label = "archer-c20-v1:orange:wan"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; wlan5g { - label = "c20-v1:blue:wlan5g"; + label = "archer-c20-v1:blue:wlan5g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "c20-v1:blue:wlan2g"; + label = "archer-c20-v1:blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wps { - label = "c20-v1:blue:wps"; + label = "archer-c20-v1:blue:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; -- cgit v1.2.3