[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191021161654.14353-2-igor.opaniuk@gmail.com>
Date: Mon, 21 Oct 2019 19:16:54 +0300
From: Igor Opaniuk <igor.opaniuk@...il.com>
To: linux-usb@...r.kernel.org
Cc: Marcel Ziswiler <marcel.ziswiler@...adex.com>,
Philippe Schenker <philippe.schenker@...adex.com>,
Stefan Agner <stefan.agner@...adex.com>,
Max Krummenacher <max.krummenacher@...adex.com>,
Oleksandr Suvorov <oleksandr.suvorov@...adex.com>,
Igor Opaniuk <igor.opaniuk@...adex.com>,
Fabio Estevam <festevam@...il.com>,
Mark Rutland <mark.rutland@....com>,
NXP Linux Team <linux-imx@....com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Rob Herring <robh+dt@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH v1 2/2] ARM: dts: colibri-imx6ull: add extcon for usbotg1
From: Igor Opaniuk <igor.opaniuk@...adex.com>
Add extcon usb gpio configuration for support dual roles for usbotg1.
USB host/gadget switching test (1. USB NIC emulation; 2. USB storage):
[ 52.491957] ci_hdrc ci_hdrc.1: switching to gadget role
[ 52.502911] mxs_phy 20c9000.usbphy: vbus is not valid
[ 56.749160] using random self ethernet address
[ 56.758637] using random host ethernet address
[ 65.768968] usb0: HOST MAC 00:14:2d:ff:ff:fe
[ 65.887980] usb0: MAC 00:14:2d:ff:ff:ff
[ 66.294961] configfs-gadget gadget: high-speed config #1: c
[ 78.741971] ci_hdrc ci_hdrc.1: switching to host role
[ 78.747522] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 78.790174] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus
number 2
[ 78.868498] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
Signed-off-by: Igor Opaniuk <igor.opaniuk@...adex.com>
---
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi
index a78849fd2afa..988f1a800d5a 100644
--- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi
+++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi
@@ -29,6 +29,14 @@
clock-frequency = <16000000>;
};
+ extcon_usbc_det: usbc_det {
+ compatible = "linux,extcon-usb-gpio";
+ debounce = <25>;
+ id-gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_snvs_usbc_det>;
+ };
+
panel: panel {
compatible = "edt,et057090dhu";
backlight = <&bl>;
@@ -150,6 +158,7 @@
};
&usbotg1 {
+ extcon = <&extcon_usbc_det &extcon_usbc_det>;
status = "okay";
};
--
2.17.1
Powered by blists - more mailing lists