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-y1.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts') diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts index 47505b0984..c573a28d73 100644 --- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts +++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts @@ -17,34 +17,34 @@ compatible = "gpio-leds"; led_power: power { - label = "y1:blue:power"; + label = "newifi-y1:blue:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan1 { - label = "y1:blue:wifi"; + label = "newifi-y1:blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "y1:blue:wifi5g"; + label = "newifi-y1:blue:wifi5g"; gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; }; usb { - label = "y1:blue:usb"; + label = "newifi-y1:blue:usb"; gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; lan { - label = "y1:blue:lan"; + label = "newifi-y1:blue:lan"; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; }; internet { - label = "y1:blue:internet"; + label = "newifi-y1:blue:internet"; gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; }; }; -- cgit v1.2.3