devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller
@ 2015-04-26  9:41 Yunzhi Li
  2015-04-26  9:41 ` [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board Yunzhi Li
  2015-04-28 20:59 ` [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller Heiko Stübner
  0 siblings, 2 replies; 6+ messages in thread
From: Yunzhi Li @ 2015-04-26  9:41 UTC (permalink / raw)
  To: heiko
  Cc: cf, hl, yk, gauravsh, alberto, wulf, Yunzhi Li, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	linux-arm-kernel, linux-rockchip, devicetree, linux-kernel

Add properties for dwc2 usb device controller according to
Documentation/devicetree/bindings/usb/dwc2.txt

Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
---

 arch/arm/boot/dts/rk3288.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index eccc78d..2b55b07 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -432,6 +432,7 @@
 		interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USBHOST1>;
 		clock-names = "otg";
+		dr_mode = "host";
 		status = "disabled";
 	};
 
@@ -442,6 +443,11 @@
 		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_OTG0>;
 		clock-names = "otg";
+		dr_mode = "otg";
+		g-np-tx-fifo-size = <16>;
+		g-rx-fifo-size = <275>;
+		g-tx-fifo-size = <256 128 128 64 64 32>;
+		g-use-dma;
 		status = "disabled";
 	};
 
-- 
2.0.0

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

* [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board
  2015-04-26  9:41 [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller Yunzhi Li
@ 2015-04-26  9:41 ` Yunzhi Li
       [not found]   ` <1430041299-24874-2-git-send-email-lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
  2015-04-26 11:12   ` Sergei Shtylyov
  2015-04-28 20:59 ` [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller Heiko Stübner
  1 sibling, 2 replies; 6+ messages in thread
From: Yunzhi Li @ 2015-04-26  9:41 UTC (permalink / raw)
  To: heiko
  Cc: cf, hl, yk, gauravsh, alberto, wulf, Yunzhi Li, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	linux-arm-kernel, linux-rockchip, devicetree, linux-kernel

rk3288-firefly board use the dwc2 usb otg controller as a host
controller and the device mode not used, so the dr_mode should be
"host" then the dwc2 usb otg controller will work at host only
mode

Signed-off-by: Yunzhi Li <lyz@rock-chips.com>

---

 arch/arm/boot/dts/rk3288-firefly.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi
index e6f873a..a861776 100644
--- a/arch/arm/boot/dts/rk3288-firefly.dtsi
+++ b/arch/arm/boot/dts/rk3288-firefly.dtsi
@@ -466,6 +466,7 @@
 };
 
 &usb_otg {
+	dr_modr = "host";
 	status = "okay";
 };
 
-- 
2.0.0

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

* Re: [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board
       [not found]   ` <1430041299-24874-2-git-send-email-lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2015-04-26 10:16     ` Heiko Stübner
  2015-04-27  7:47       ` 李云志
  0 siblings, 1 reply; 6+ messages in thread
From: Heiko Stübner @ 2015-04-26 10:16 UTC (permalink / raw)
  To: Yunzhi Li
  Cc: cf-TNX95d0MmH7DzftRWevZcw, hl-TNX95d0MmH7DzftRWevZcw,
	yk-TNX95d0MmH7DzftRWevZcw, gauravsh-hpIqsD4AKlfQT0dZR+AlfA,
	alberto-hpIqsD4AKlfQT0dZR+AlfA, wulf-TNX95d0MmH7DzftRWevZcw,
	Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Hi,

Am Sonntag, 26. April 2015, 17:41:39 schrieb Yunzhi Li:
> rk3288-firefly board use the dwc2 usb otg controller as a host
> controller and the device mode not used, so the dr_mode should be
> "host" then the dwc2 usb otg controller will work at host only
> mode
> 
> Signed-off-by: Yunzhi Li <lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org>

Not sure I understand. Is this some sort of hardware limitation? Because when 
for example flashing a kernel via upgrade_tool it is working just fine as 
gadget.

If it is a software choice, this should not be made in the devicetree, as the 
dt describes the hardware alone.


Heiko


> 
> ---
> 
>  arch/arm/boot/dts/rk3288-firefly.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi
> b/arch/arm/boot/dts/rk3288-firefly.dtsi index e6f873a..a861776 100644
> --- a/arch/arm/boot/dts/rk3288-firefly.dtsi
> +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi
> @@ -466,6 +466,7 @@
>  };
> 
>  &usb_otg {
> +	dr_modr = "host";
>  	status = "okay";
>  };

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board
  2015-04-26  9:41 ` [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board Yunzhi Li
       [not found]   ` <1430041299-24874-2-git-send-email-lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2015-04-26 11:12   ` Sergei Shtylyov
  1 sibling, 0 replies; 6+ messages in thread
From: Sergei Shtylyov @ 2015-04-26 11:12 UTC (permalink / raw)
  To: Yunzhi Li, heiko
  Cc: gauravsh, Mark Rutland, Russell King, hl, Pawel Moll,
	Ian Campbell, devicetree, alberto, linux-kernel, yk,
	linux-rockchip, Rob Herring, Kumar Gala, cf, wulf,
	linux-arm-kernel

Hello.

On 4/26/2015 12:41 PM, Yunzhi Li wrote:

> rk3288-firefly board use the dwc2 usb otg controller as a host
> controller and the device mode not used, so the dr_mode should be
> "host" then the dwc2 usb otg controller will work at host only
> mode

> Signed-off-by: Yunzhi Li <lyz@rock-chips.com>

> ---

>   arch/arm/boot/dts/rk3288-firefly.dtsi | 1 +
>   1 file changed, 1 insertion(+)

> diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi
> index e6f873a..a861776 100644
> --- a/arch/arm/boot/dts/rk3288-firefly.dtsi
> +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi
> @@ -466,6 +466,7 @@
>   };
>
>   &usb_otg {
> +	dr_modr = "host";

    You meant to type "dr_mode".

WBR, Sergei

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

* Re: Re: [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board
  2015-04-26 10:16     ` Heiko Stübner
@ 2015-04-27  7:47       ` 李云志
  0 siblings, 0 replies; 6+ messages in thread
From: 李云志 @ 2015-04-27  7:47 UTC (permalink / raw)
  To: HeikoStübner
  Cc: 蔡枫, 黄林, 杨凯, gauravsh,
	alberto, 吴良峰, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	linux-arm-kernel, linux-rockchip, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]

Hi Heiko:

    I thought the Firefly board has a USB type A receptacle connector for otg like chromebook, but actually Firefly board use a micro-B connector.
If some board use a type A connector for otg port then it should add a dr_mode = "host" property beacuse type A connector not connect usb-id
pin to soc.
    So please ignore this patch, it's my mistake .



李云志
 
From: HeikoStübner
Date: 2015-04-26 18:16
To: Yunzhi Li
CC: cf; hl; yk; gauravsh; alberto; wulf; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala; Russell King; linux-arm-kernel; linux-rockchip; devicetree; linux-kernel
Subject: Re: [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board
Hi,
 
Am Sonntag, 26. April 2015, 17:41:39 schrieb Yunzhi Li:
> rk3288-firefly board use the dwc2 usb otg controller as a host
> controller and the device mode not used, so the dr_mode should be
> "host" then the dwc2 usb otg controller will work at host only
> mode
> 
> Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
 
Not sure I understand. Is this some sort of hardware limitation? Because when 
for example flashing a kernel via upgrade_tool it is working just fine as 
gadget.
 
If it is a software choice, this should not be made in the devicetree, as the 
dt describes the hardware alone.
 
 
Heiko
 
 
> 
> ---
> 
>  arch/arm/boot/dts/rk3288-firefly.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi
> b/arch/arm/boot/dts/rk3288-firefly.dtsi index e6f873a..a861776 100644
> --- a/arch/arm/boot/dts/rk3288-firefly.dtsi
> +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi
> @@ -466,6 +466,7 @@
>  };
> 
>  &usb_otg {
> + dr_modr = "host";
>  status = "okay";
>  };
 
 
 

[-- Attachment #2: Type: text/html, Size: 5198 bytes --]

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

* Re: [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller
  2015-04-26  9:41 [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller Yunzhi Li
  2015-04-26  9:41 ` [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board Yunzhi Li
@ 2015-04-28 20:59 ` Heiko Stübner
  1 sibling, 0 replies; 6+ messages in thread
From: Heiko Stübner @ 2015-04-28 20:59 UTC (permalink / raw)
  To: Yunzhi Li
  Cc: cf, hl, yk, gauravsh, alberto, wulf, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
	linux-arm-kernel, linux-rockchip, devicetree, linux-kernel

Am Sonntag, 26. April 2015, 17:41:38 schrieb Yunzhi Li:
> Add properties for dwc2 usb device controller according to
> Documentation/devicetree/bindings/usb/dwc2.txt
> 
> Signed-off-by: Yunzhi Li <lyz@rock-chips.com>

applied to my dts branch for 4.2


thanks
Heiko

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

end of thread, other threads:[~2015-04-28 20:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-26  9:41 [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller Yunzhi Li
2015-04-26  9:41 ` [PATCH v1 2/2] ARM: dts: rockchip: set dr_mode property for rk3288-firefly board Yunzhi Li
     [not found]   ` <1430041299-24874-2-git-send-email-lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-04-26 10:16     ` Heiko Stübner
2015-04-27  7:47       ` 李云志
2015-04-26 11:12   ` Sergei Shtylyov
2015-04-28 20:59 ` [PATCH v1 1/2] ARM: dts: rockchip: add properties for dwc2 usb otg controller Heiko Stübner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).