[PATCH 1/1] ARM: dts: imx6q-arm2: enable USB OTG

Shawn Guo shawn.guo at linaro.org
Mon Oct 28 04:20:07 EDT 2013


On Mon, Oct 28, 2013 at 02:05:02PM +0800, Peter Chen wrote:
> Enable USB OTG controller at imx6q-arm2 board
> 
> Signed-off-by: Peter Chen <peter.chen at freescale.com>
> ---
>  arch/arm/boot/dts/imx6q-arm2.dts |   17 +++++++++++++++++
>  1 files changed, 17 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/imx6q-arm2.dts b/arch/arm/boot/dts/imx6q-arm2.dts
> index edf1bd9..8f125b1 100644
> --- a/arch/arm/boot/dts/imx6q-arm2.dts
> +++ b/arch/arm/boot/dts/imx6q-arm2.dts
> @@ -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 */

The comment is not useful.  I just dropped it and applied the patch.

Shawn

> +	vbus-supply = <&reg_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>;
> -- 
> 1.7.1
> 
> 




More information about the linux-arm-kernel mailing list