From: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com> Date: Sun, 1 Jul 2018 13:57:22 +0000 (+0300) Subject: ath79: swap TP-Link Archer C7 v2 USB port LED and GPIO names X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=63c9081c775f1829a5511c055ba44c61ea1ee56e;p=openwrt%2Fstaging%2Fwigyori.git ath79: swap TP-Link Archer C7 v2 USB port LED and GPIO names 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> --- diff --git a/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi b/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi index 36520898bf..3be8786897 100644 --- a/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi +++ b/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi @@ -26,17 +26,17 @@ 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"; }; @@ -87,13 +87,13 @@ 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>; }; };