From c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 27 Sep 2020 19:40:51 +0200 Subject: 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 --- target/linux/ramips/dts/mt7620a_netgear_ex6120.dts | 47 ---------------------- 1 file changed, 47 deletions(-) (limited to 'target/linux/ramips/dts/mt7620a_netgear_ex6120.dts') diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts b/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts index 58581e6706..2d376275a0 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts @@ -5,51 +5,4 @@ / { compatible = "netgear,ex6120", "ralink,mt7620a-soc"; model = "Netgear EX6120"; - - aliases { - led-boot = &led_power_amber; - led-failsafe = &led_power_amber; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "ex6120:green:power"; - gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - led_power_amber: power_amber { - label = "ex6120:amber:power"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - router_green { - label = "ex6120:green:router"; - gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; - }; - - router_red { - label = "ex6120:red:router"; - gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; - }; - - device_green { - label = "ex6120:green:device"; - gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; - }; - - device_red { - label = "ex6120:red:device"; - gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "ex6120:green:wps"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - }; }; -- cgit v1.2.3