diff mbox series

[4/5] ARM: dts: imx50-kobo-aura: Enable USB support

Message ID 20190319152421.16179-5-j.neuschaefer@gmx.net
State New
Headers show
Series ARM: Initial devicetree for Kobo Aura | expand

Commit Message

J. Neuschäfer March 19, 2019, 3:24 p.m. UTC
Enable the USBOTG controller in device mode, and also enable the
corresponding PHY. The presence of Vbus is detected via a GPIO.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
 arch/arm/boot/dts/imx50-kobo-aura.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

--
2.20.1
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx50-kobo-aura.dts
index e778a677c752..d0dc20d99d99 100644
--- a/arch/arm/boot/dts/imx50-kobo-aura.dts
+++ b/arch/arm/boot/dts/imx50-kobo-aura.dts
@@ -87,6 +87,12 @@ 
 		>;
 	};

+	pinctrl_usbphy: usbphy {
+		fsl,pins = <
+			MX50_PAD_ECSPI2_SS0__GPIO4_19		0x0
+		>;
+	};
+
 	pinctrl_i2c1: i2c1 {
 		fsl,pins = <
 			MX50_PAD_I2C1_SCL__I2C1_SCL		0x400001fd
@@ -180,6 +186,18 @@ 
 	status = "okay";
 };

+&usbotg {
+	status = "okay";
+	phy_type = "utmi_wide";
+	dr_mode = "peripheral";
+};
+
+&usbphy0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usbphy>;
+	vbus-detect-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>;
+};
+
 &i2c1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c1>;