ARM: dts: imx6q-arm2: enable USB OTG
Subsystems (2)
PATCH 1/1 ARM: dts: imx6q-arm2: enable USB OTG
Enable USB OTG controller at imx6q-arm2 board
Signed-off-by Peter Chen <[email protected]>
--- arch/arm/boot/dts/imx6q-arm2.dts | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)
arch/arm/boot/dts/imx6q-arm2.dts +17 -0
@@ -31,6 +31,15 @@ regulator-max-microvolt = <3300000>; regulator-always-on; }; + + reg_usb_otg_vbus: usb_otg_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 22 0>; + enable-active-high; + }; }; leds {
@@ -79,6 +88,14 @@ status = "okay"; }; +&usbotg { /* USB OTG */ + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg_1>; + disable-over-current; + status = "okay"; +}; + &usdhc3 { cd-gpios = <&gpio6 11 0>; wp-gpios = <&gpio6 14 0>;
Signature · 1 line
1.7.1
PATCH 1/1 ARM: dts: imx6q-arm2: enable USB OTG
Quoted 28 lines · Peter Chen
Enable USB OTG controller at imx6q-arm2 board
Signed-off-by Peter Chen <[email protected]>--- arch/arm/boot/dts/imx6q-arm2.dts | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)arch/arm/boot/dts/imx6q-arm2.dts +9
-0@@ -31,6 +31,15 @@ regulator-max-microvolt = <3300000>; regulator-always-on; }; + + reg_usb_otg_vbus: usb_otg_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 22 0>; + enable-active-high; + }; }; leds {
arch/arm/boot/dts/imx6q-arm2.dts line 91
Quoted 4 lines
arch/arm/boot/dts/imx6q-arm2.dts +1
-0@@ -79,6 +88,14 @@ status = "okay"; }; +&usbotg { /* USB OTG */
The comment is not useful. I just dropped it and applied the patch.
Shawn
Quoted 14 lines
arch/arm/boot/dts/imx6q-arm2.dts +7
-0+ vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg_1>; + disable-over-current; + status = "okay"; +}; + &usdhc3 { cd-gpios = <&gpio6 11 0>; wp-gpios = <&gpio6 14 0>;Signature · 1 line
1.7.1
PATCH 1/1 ARM: dts: imx6q-arm2: enable USB OTG
Quoted 27 lines · Shawn Guo
Quoted 26 lines · Peter Chen
Enable USB OTG controller at imx6q-arm2 board
Signed-off-by Peter Chen <[email protected]>--- arch/arm/boot/dts/imx6q-arm2.dts | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)arch/arm/boot/dts/imx6q-arm2.dts +9
-0@@ -31,6 +31,15 @@ regulator-max-microvolt = <3300000>; regulator-always-on; }; + + reg_usb_otg_vbus: usb_otg_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 22 0>; + enable-active-high; + }; };
Quoted 8 lines
arch/arm/boot/dts/imx6q-arm2.dts line 91
Quoted 6 lines
arch/arm/boot/dts/imx6q-arm2.dts +1
-0leds {@@ -79,6 +88,14 @@ status = "okay"; }; +&usbotg { /* USB OTG */The comment is not useful. I just dropped it and applied the patch.
Oh, my careless, thanks.
Quoted 17 lines
Shawn
Quoted 14 lines
arch/arm/boot/dts/imx6q-arm2.dts +7
-0+ vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg_1>; + disable-over-current; + status = "okay"; +}; + &usdhc3 { cd-gpios = <&gpio6 11 0>; wp-gpios = <&gpio6 14 0>;Signature · 1 line
1.7.1
Signature · 2 lines
Best Regards, Peter Chen