From 18c95c9d6ebea5cef1254ee917bff8aba993666d Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 30 Jan 2020 14:59:25 +0100 Subject: [PATCH] ath79: add gpio4 pinmux on TL-WR841N/ND v8, WR842N v2, MR3420 v2 This adds a pinmux to the shared DTSI for TP-Link TL-WR841N/ND v8, TL-WR842N v2 and TL-MR3420 v2. It is supposed to be the equivalent of: /* config gpio4 as normal gpio function */ ath79_gpio_output_select(TL_MR3420V2_GPIO_USB_POWER,AR934X_GPIO_OUT_GPIO); This allows to enable USB power on these devices. While at it, move the jtag_disable_pins to &gpio node and remove the redundant status=okay there. Tested on TP-Link TL-WR842N v2. Fixes: FS#2753 Signed-off-by: Adrian Schmutzler Tested-by: Armin Fuerst --- target/linux/ath79/dts/ar9341_tplink.dtsi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/target/linux/ath79/dts/ar9341_tplink.dtsi b/target/linux/ath79/dts/ar9341_tplink.dtsi index 0a950bd1a63..6bd7c3409ba 100644 --- a/target/linux/ath79/dts/ar9341_tplink.dtsi +++ b/target/linux/ath79/dts/ar9341_tplink.dtsi @@ -18,9 +18,6 @@ keys: keys { compatible = "gpio-keys"; - pinctrl-names = "default"; - pinctrl-0 = <&jtag_disable_pins>; - rfkill { label = "WiFi"; linux,code = ; @@ -85,7 +82,14 @@ }; &gpio { - status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&jtag_disable_pins &pmx_usb_power>; +}; + +&pinmux { + pmx_usb_power: usb_power { + pinctrl-single,bits = <0x4 0x0 0xff>; + }; }; ð0 {