diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-09-27 19:40:51 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-10-02 14:51:57 +0200 |
commit | c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2 (patch) | |
tree | 700447cce24d5047340897eb5e5cf5c9d0e03726 /target/linux/ramips/dts/mt7621_netgear_r6800.dts | |
parent | 9b4eab023c0add0063260e8a5da6193fc44f1658 (diff) | |
download | upstream-c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2.tar.gz upstream-c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2.tar.bz2 upstream-c846dd91f0a6f99b529ed6e1ec4ab149466dc0d2.zip |
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 <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_netgear_r6800.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_netgear_r6800.dts | 117 |
1 files changed, 6 insertions, 111 deletions
diff --git a/target/linux/ramips/dts/mt7621_netgear_r6800.dts b/target/linux/ramips/dts/mt7621_netgear_r6800.dts index 9b6de32b50..c7afc53016 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6800.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6800.dts @@ -5,118 +5,13 @@ / { compatible = "netgear,r6800", "mediatek,mt7621-soc"; model = "Netgear R6800"; - - aliases { - led-boot = &led_power_white; - led-failsafe = &led_power_orange; - led-running = &led_power_white; - led-upgrade = &led_power_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>; - label = "r6800:orange:power"; - }; - - led_power_white: power_white { - gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>; - label = "r6800:white:power"; - }; - - wan_orange { - gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>; - label = "r6800:orange:wan"; - }; - - wan_white { - gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>; - label = "r6800:white:wan"; - }; - - wlan2g { - gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan2g"; - linux,default-trigger = "phy0radio"; - }; - - wlan5g { - gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan5g"; - linux,default-trigger = "phy1radio"; - }; - - usb2 { - gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; - label = "r6800:white:usb2"; - linux,default-trigger = "usbport"; - trigger-sources = <&ehci_port2>; - }; - - usb3 { - gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>; - label = "r6800:white:usb3"; - linux,default-trigger = "usbport"; - trigger-sources = <&xhci_ehci_port1>; - }; - - lan1_orange { - gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan1"; - }; - - lan1_white { - gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan1"; - }; - - lan2_orange { - gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan2"; - }; - - lan2_white { - gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan2"; - }; - - lan3_orange { - gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan3"; - }; - - lan3_white { - gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan3"; - }; - - lan4_orange { - gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan4"; - }; - - lan4_white { - gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan4"; - }; - - wps { - gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - label = "r6800:white:wps"; - }; - - wlan { - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan"; - }; - }; }; -&state_default { - gpio { - groups = "uart3", "uart2", "jtag", "wdt"; - function = "gpio"; +&leds { + usb2 { + gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; + label = "white:usb2"; + linux,default-trigger = "usbport"; + trigger-sources = <&ehci_port2>; }; }; |