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_lenovo_newifi-y1s.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts') 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>; }; }; -- cgit v1.2.3