All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1]  ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin
@ 2013-08-23  5:56 Peter Chen
  2013-08-23 10:41 ` Marek Vasut
  2013-08-23 13:01 ` Fabio Estevam
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Chen @ 2013-08-23  5:56 UTC (permalink / raw)
  To: linux-arm-kernel

After that, the dual-role switch can be used at imx28-evk.

Due to hardware limitations, it needs to switch VDD 5V
SOURCE SELECT to "USB 5V" if the user wants to use OTG
dual-role switch function. it needs to switch VDD 5V
SOURCE SELECT to "WALL 5V" if the user wants to Host 1.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
---
 arch/arm/boot/dts/imx28-evk.dts |    2 ++
 arch/arm/boot/dts/imx28.dtsi    |   11 +++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts
index 15715d9..fa48bd5 100644
--- a/arch/arm/boot/dts/imx28-evk.dts
+++ b/arch/arm/boot/dts/imx28-evk.dts
@@ -243,6 +243,8 @@
 	ahb at 80080000 {
 		usb0: usb at 80080000 {
 			vbus-supply = <&reg_usb0_vbus>;
+			pinctrl-names = "default";
+  			pinctrl-0 = <&usb0_pins_a>;
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
index 7363fde..54bd17c 100644
--- a/arch/arm/boot/dts/imx28.dtsi
+++ b/arch/arm/boot/dts/imx28.dtsi
@@ -731,6 +731,17 @@
 					fsl,pull-up = <0>;
 				};
 
+				usb0_pins_a: usb0 at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <
+						0x3071 /* MX28_PAD_AUART1_RTS__USB0_ID */
+					>;
+					fsl,drive-strength = <2>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <1>;
+				};
+
+
 				usbphy1_pins_a: usbphy1 at 0 {
 					reg = <0>;
 					fsl,pinmux-ids = <
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 1/1]  ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin
  2013-08-23  5:56 [PATCH 1/1] ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin Peter Chen
@ 2013-08-23 10:41 ` Marek Vasut
  2013-08-23 13:01 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2013-08-23 10:41 UTC (permalink / raw)
  To: linux-arm-kernel

Dear Peter Chen,

> After that, the dual-role switch can be used at imx28-evk.
> 
> Due to hardware limitations, it needs to switch VDD 5V
> SOURCE SELECT to "USB 5V" if the user wants to use OTG
> dual-role switch function. it needs to switch VDD 5V
> SOURCE SELECT to "WALL 5V" if the user wants to Host 1.
> 
> Signed-off-by: Peter Chen <peter.chen@freescale.com>
> ---
>  arch/arm/boot/dts/imx28-evk.dts |    2 ++
>  arch/arm/boot/dts/imx28.dtsi    |   11 +++++++++++
>  2 files changed, 13 insertions(+), 0 deletions(-)

Thanks.

Acked-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin
  2013-08-23  5:56 [PATCH 1/1] ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin Peter Chen
  2013-08-23 10:41 ` Marek Vasut
@ 2013-08-23 13:01 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2013-08-23 13:01 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Peter,

On Fri, Aug 23, 2013 at 2:56 AM, Peter Chen <peter.chen@freescale.com> wrote:
> After that, the dual-role switch can be used at imx28-evk.
>
> Due to hardware limitations, it needs to switch VDD 5V
> SOURCE SELECT to "USB 5V" if the user wants to use OTG
> dual-role switch function. it needs to switch VDD 5V
> SOURCE SELECT to "WALL 5V" if the user wants to Host 1.
>
> Signed-off-by: Peter Chen <peter.chen@freescale.com>

I have already sent this:
http://www.spinics.net/lists/arm-kernel/msg268746.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-23 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23  5:56 [PATCH 1/1] ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin Peter Chen
2013-08-23 10:41 ` Marek Vasut
2013-08-23 13:01 ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.