ath79: swap TP-Link Archer C7 v2 USB port LED and GPIO names
authorAleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Sun, 1 Jul 2018 13:57:22 +0000 (16:57 +0300)
committerMathias Kresin <dev@kresin.me>
Tue, 3 Jul 2018 23:20:03 +0000 (01:20 +0200)
TP-Link Archer C7 v2 USB port LED and GPIO names are in incorrect order,
i.e. in order to match actual user visible labels, usb1 should be usb2,
and vice versa.
This patch swaps LED and GPIO power control node names.

Signed-off-by: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi

index 36520898bfe7ed95dc728e2b8eeabf3d2e57f7c5..3be87868976fe19facc07dab2edafede8668beb3 100644 (file)
 
                usb1 {
                        label = "tp-link:green:usb1";
-                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                        default-state = "off";
-                       trigger-sources = <&hub_port0>;
+                       trigger-sources = <&hub_port1>;
                        linux,default-trigger = "usbport";
                };
 
                usb2 {
                        label = "tp-link:green:usb2";
-                       gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        default-state = "off";
-                       trigger-sources = <&hub_port1>;
+                       trigger-sources = <&hub_port0>;
                        linux,default-trigger = "usbport";
                };
 
                gpio_usb1_power {
                        gpio-export,name = "tp-link:power:usb1";
                        gpio-export,output = <1>;
-                       gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
                };
 
                gpio_usb2_power {
                        gpio-export,name = "tp-link:power:usb2";
                        gpio-export,output = <1>;
-                       gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
                };
 
        };