Message ID | 1347557619-17793-2-git-send-email-fabio.estevam@freescale.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Sep 13, 2012 at 02:33:39PM -0300, Fabio Estevam wrote: > Add USB host support. > > Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> > --- > arch/arm/boot/dts/imx23-olinuxino.dts | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts > index 711dcf5..daddd1e 100644 > --- a/arch/arm/boot/dts/imx23-olinuxino.dts > +++ b/arch/arm/boot/dts/imx23-olinuxino.dts > @@ -40,6 +40,7 @@ > reg = <0>; > fsl,pinmux-ids = < > 0x2013 /* MX23_PAD_SSP1_DETECT__GPIO_2_1 */ > + 0x0113 /* MX23_PAD_GPMI_ALE__GPIO_0_17 */ > >; > fsl,drive-strength = <0>; > fsl,voltage = <1>; > @@ -60,6 +61,31 @@ > pinctrl-0 = <&auart0_2pins_a>; > status = "okay"; > }; > + > + usbphy0: usbphy@8007c000 { > + status = "okay"; > + }; > + }; > + }; > + > + ahb@80080000 { > + usb0: usb@80080000 { > + vbus-supply = <®_usb0_vbus>; > + status = "okay"; > + }; > + }; > + > + regulators { > + compatible = "simple-bus"; > + > + reg_usb0_vbus: usb0_vbus { > + compatible = "regulator-fixed"; > + regulator-name = "usb0_vbus"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; The indentation needs a fix. > + enable-active-high; > + startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */ So the regulator also supplies LAN9215? Regards, Shawn > + gpio = <&gpio0 17 0>; > }; > }; > > -- > 1.7.9.5 > >
On Mon, Sep 17, 2012 at 3:46 AM, Shawn Guo <shawn.guo@linaro.org> wrote: > The indentation needs a fix. Ok, just fixed it in v2. > >> + enable-active-high; >> + startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */ > > So the regulator also supplies LAN9215? On this board the VBUS is generated from LAN9215. Regards, Fabio Estevam
diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts index 711dcf5..daddd1e 100644 --- a/arch/arm/boot/dts/imx23-olinuxino.dts +++ b/arch/arm/boot/dts/imx23-olinuxino.dts @@ -40,6 +40,7 @@ reg = <0>; fsl,pinmux-ids = < 0x2013 /* MX23_PAD_SSP1_DETECT__GPIO_2_1 */ + 0x0113 /* MX23_PAD_GPMI_ALE__GPIO_0_17 */ >; fsl,drive-strength = <0>; fsl,voltage = <1>; @@ -60,6 +61,31 @@ pinctrl-0 = <&auart0_2pins_a>; status = "okay"; }; + + usbphy0: usbphy@8007c000 { + status = "okay"; + }; + }; + }; + + ahb@80080000 { + usb0: usb@80080000 { + vbus-supply = <®_usb0_vbus>; + status = "okay"; + }; + }; + + regulators { + compatible = "simple-bus"; + + reg_usb0_vbus: usb0_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb0_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + startup-delay-us = <300>; /* LAN9215 requires a POR of 200us minimum */ + gpio = <&gpio0 17 0>; }; };
Add USB host support. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> --- arch/arm/boot/dts/imx23-olinuxino.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)