b0ac409f7e1f65f234d1bfd4f0906ff564b399cd
[openwrt/staging/chunkeey.git] / target / linux / imx6 / patches-5.4 / 006-v5.8-ARM-dts-imx6qdl-gw552x-add-USB-OTG-support.patch
1 From 957743b79b1ebb710f5498b61a212cebc302e685 Mon Sep 17 00:00:00 2001
2 From: Tim Harvey <tharvey@gateworks.com>
3 Date: Wed, 29 Apr 2020 08:22:35 -0700
4 Subject: [PATCH 01/20] ARM: dts: imx6qdl-gw552x: add USB OTG support
5
6 The GW552x-B board revision adds USB OTG support.
7
8 Enable the device-tree node and configure the OTG_ID pin.
9
10 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
11 Signed-off-by: Shawn Guo <shawnguo@kernel.org>
12 ---
13 arch/arm/boot/dts/imx6qdl-gw552x.dtsi | 14 ++++++++++++++
14 1 file changed, 14 insertions(+)
15
16 diff --git a/arch/arm/boot/dts/imx6qdl-gw552x.dtsi b/arch/arm/boot/dts/imx6qdl-gw552x.dtsi
17 index dc646b7..bb35971 100644
18 --- a/arch/arm/boot/dts/imx6qdl-gw552x.dtsi
19 +++ b/arch/arm/boot/dts/imx6qdl-gw552x.dtsi
20 @@ -258,6 +258,14 @@
21 status = "okay";
22 };
23
24 +&usbotg {
25 + vbus-supply = <&reg_5p0v>;
26 + pinctrl-names = "default";
27 + pinctrl-0 = <&pinctrl_usbotg>;
28 + disable-over-current;
29 + status = "okay";
30 +};
31 +
32 &wdog1 {
33 pinctrl-names = "default";
34 pinctrl-0 = <&pinctrl_wdog>;
35 @@ -359,6 +367,12 @@
36 >;
37 };
38
39 + pinctrl_usbotg: usbotggrp {
40 + fsl,pins = <
41 + MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x13059
42 + >;
43 + };
44 +
45 pinctrl_wdog: wdoggrp {
46 fsl,pins = <
47 MX6QDL_PAD_DISP0_DAT8__WDOG1_B 0x1b0b0
48 --
49 2.7.4
50