ramips: w2914ns-v2: consolidate leds nodes into dtsi
authorSungbo Eo <mans0n@gorani.run>
Sun, 1 Aug 2021 15:02:49 +0000 (00:02 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 29 Aug 2021 22:37:47 +0000 (00:37 +0200)
w2914ns-v2, 11acnas, and freezio use almost same board and thus share a
common dtsi file. Now that LED labels do not contain "devicename" since
commit c846dd91f0a6 ("ramips: remove model name from LED labels"), let's
move the leds nodes to dtsi and remove them from dts.

Note that freezio has only one USB 3.0 port and adding &ehci_port2 trigger
does not incur any visible changes.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
target/linux/ramips/dts/mt7621_wevo_11acnas.dts
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
target/linux/ramips/dts/mt7621_zio_freezio.dts

index 60d31852f096adc14d6b37bae90dd112990be2c4..173b1de049316f9c620a28e62d000ea4731eb0e6 100644 (file)
@@ -3,15 +3,4 @@
 / {
        compatible = "wevo,11acnas", "mediatek,mt7621-soc";
        model = "WeVO 11AC NAS Router";
-
-       leds {
-               compatible = "gpio-leds";
-
-               usb {
-                       label = "green:usb";
-                       gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
-                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
-                       linux,default-trigger = "usbport";
-               };
-       };
 };
index bd449832e3a85c982e1d923e5551fdcf2c92e8b0..b9ed1868481e2cfdee644be2bbb6cd13cc458f87 100644 (file)
@@ -3,15 +3,4 @@
 / {
        compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
        model = "WeVO W2914NS v2";
-
-       leds {
-               compatible = "gpio-leds";
-
-               usb {
-                       label = "green:usb";
-                       gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
-                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
-                       linux,default-trigger = "usbport";
-               };
-       };
 };
index 06b301ba0be514066a0905e5dbc1d0857a1da45a..005cc619c6177102e46798a51057f4433284b954 100644 (file)
@@ -8,6 +8,17 @@
                label-mac-device = &wan;
        };
 
+       leds {
+               compatible = "gpio-leds";
+
+               usb {
+                       label = "green:usb";
+                       gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
+               };
+       };
+
        keys {
                compatible = "gpio-keys";
 
index be7e5dcf98991a20ebee87776d51c3125fa2cab4..35c4309cba8c765ba9130b2d06b8db7b9994af3e 100644 (file)
@@ -5,15 +5,4 @@
 / {
        compatible = "zio,freezio", "mediatek,mt7621-soc";
        model = "ZIO FREEZIO";
-
-       leds {
-               compatible = "gpio-leds";
-
-               usb {
-                       label = "green:usb";
-                       gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
-                       trigger-sources = <&xhci_ehci_port1>;
-                       linux,default-trigger = "usbport";
-               };
-       };
 };