All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 device nodes for r8a77961
@ 2020-03-25  6:24 Yoshihiro Shimoda
  2020-03-25  6:24 ` [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 " Yoshihiro Shimoda
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2020-03-25  6:24 UTC (permalink / raw)
  To: geert+renesas, magnus.damm; +Cc: linux-renesas-soc, Yoshihiro Shimoda

This patch adds USB2.0/3.0 device nodes for r8a77961(R-Car M3-W+).
The dt-bindings of these devices are not merged yet. So, I marked
RFC on this patch series.

Yoshihiro Shimoda (2):
  arm64: dts: renesas: add USB2.0 device nodes for r8a77961
  arm64: dts: renesas: add USB3.0 device nodes for r8a77961

 arch/arm64/boot/dts/renesas/r8a77961.dtsi | 122 +++++++++++++++++++++++++++---
 1 file changed, 112 insertions(+), 10 deletions(-)

-- 
2.7.4


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

* [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 device nodes for r8a77961
  2020-03-25  6:24 [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 device nodes for r8a77961 Yoshihiro Shimoda
@ 2020-03-25  6:24 ` Yoshihiro Shimoda
  2020-03-25 14:03   ` Geert Uytterhoeven
  2020-03-27 12:17   ` Geert Uytterhoeven
  2020-03-25  6:24 ` [PATCH/RFC 2/2] arm64: dts: renesas: add USB3.0 " Yoshihiro Shimoda
  2020-03-27 12:50 ` [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 " Geert Uytterhoeven
  2 siblings, 2 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2020-03-25  6:24 UTC (permalink / raw)
  To: geert+renesas, magnus.damm; +Cc: linux-renesas-soc, Yoshihiro Shimoda

This patch adds USB2.0 related device nodes for r8a77961 (R-Car M3-W+).

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a77961.dtsi | 97 ++++++++++++++++++++++++++++---
 1 file changed, 90 insertions(+), 7 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
index 0d96f2d..d3e0861 100644
--- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
@@ -633,8 +633,48 @@
 		};
 
 		hsusb: usb@e6590000 {
+			compatible = "renesas,usbhs-r8a77961",
+				     "renesas,rcar-gen3-usbhs";
 			reg = <0 0xe6590000 0 0x200>;
-			/* placeholder */
+			interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 704>, <&cpg CPG_MOD 703>;
+			dmas = <&usb_dmac0 0>, <&usb_dmac0 1>,
+			       <&usb_dmac1 0>, <&usb_dmac1 1>;
+			dma-names = "ch0", "ch1", "ch2", "ch3";
+			renesas,buswait = <11>;
+			phys = <&usb2_phy0 3>;
+			phy-names = "usb";
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 704>, <&cpg 703>;
+			status = "disabled";
+		};
+
+		usb_dmac0: dma-controller@e65a0000 {
+			compatible = "renesas,r8a77961-usb-dmac",
+				     "renesas,usb-dmac";
+			reg = <0 0xe65a0000 0 0x100>;
+			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "ch0", "ch1";
+			clocks = <&cpg CPG_MOD 330>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 330>;
+			#dma-cells = <1>;
+			dma-channels = <2>;
+		};
+
+		usb_dmac1: dma-controller@e65b0000 {
+			compatible = "renesas,r8a77961-usb-dmac",
+				     "renesas,usb-dmac";
+			reg = <0 0xe65b0000 0 0x100>;
+			interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "ch0", "ch1";
+			clocks = <&cpg CPG_MOD 331>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 331>;
+			#dma-cells = <1>;
+			dma-channels = <2>;
 		};
 
 		usb3_phy0: usb-phy@e65ee000 {
@@ -899,33 +939,76 @@
 		};
 
 		ohci0: usb@ee080000 {
+			compatible = "generic-ohci";
 			reg = <0 0xee080000 0 0x100>;
-			/* placeholder */
+			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
+			phys = <&usb2_phy0 1>;
+			phy-names = "usb";
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 703>, <&cpg 704>;
+			status = "disabled";
 		};
 
 		ohci1: usb@ee0a0000 {
+			compatible = "generic-ohci";
 			reg = <0 0xee0a0000 0 0x100>;
-			/* placeholder */
+			interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 702>;
+			phys = <&usb2_phy1 1>;
+			phy-names = "usb";
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 702>;
+			status = "disabled";
 		};
 
 		ehci0: usb@ee080100 {
+			compatible = "generic-ehci";
 			reg = <0 0xee080100 0 0x100>;
-			/* placeholder */
+			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
+			phys = <&usb2_phy0 2>;
+			phy-names = "usb";
+			companion = <&ohci0>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 703>, <&cpg 704>;
+			status = "disabled";
 		};
 
 		ehci1: usb@ee0a0100 {
+			compatible = "generic-ehci";
 			reg = <0 0xee0a0100 0 0x100>;
-			/* placeholder */
+			interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 702>;
+			phys = <&usb2_phy1 2>;
+			phy-names = "usb";
+			companion = <&ohci1>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 702>;
+			status = "disabled";
 		};
 
 		usb2_phy0: usb-phy@ee080200 {
+			compatible = "renesas,usb2-phy-r8a77961",
+				     "renesas,rcar-gen3-usb2-phy";
 			reg = <0 0xee080200 0 0x700>;
-			/* placeholder */
+			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 703>, <&cpg 704>;
+			#phy-cells = <1>;
+			status = "disabled";
 		};
 
 		usb2_phy1: usb-phy@ee0a0200 {
+			compatible = "renesas,usb2-phy-r8a77961",
+				     "renesas,rcar-gen3-usb2-phy";
 			reg = <0 0xee0a0200 0 0x700>;
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 702>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 702>;
+			#phy-cells = <1>;
+			status = "disabled";
 		};
 
 		sdhi0: sd@ee100000 {
-- 
2.7.4


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

* [PATCH/RFC 2/2] arm64: dts: renesas: add USB3.0 device nodes for r8a77961
  2020-03-25  6:24 [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 device nodes for r8a77961 Yoshihiro Shimoda
  2020-03-25  6:24 ` [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 " Yoshihiro Shimoda
@ 2020-03-25  6:24 ` Yoshihiro Shimoda
  2020-03-25 14:05   ` Geert Uytterhoeven
  2020-03-27 12:50 ` [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 " Geert Uytterhoeven
  2 siblings, 1 reply; 7+ messages in thread
From: Yoshihiro Shimoda @ 2020-03-25  6:24 UTC (permalink / raw)
  To: geert+renesas, magnus.damm; +Cc: linux-renesas-soc, Yoshihiro Shimoda

This patch adds USB3.0 related device nodes for r8a77961 (R-Car M3-W+).

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a77961.dtsi | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
index d3e0861..de27b2f 100644
--- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
@@ -678,9 +678,16 @@
 		};
 
 		usb3_phy0: usb-phy@e65ee000 {
+			compatible = "renesas,r8a77961-usb3-phy",
+				     "renesas,rcar-gen3-usb3-phy";
 			reg = <0 0xe65ee000 0 0x90>;
+			clocks = <&cpg CPG_MOD 328>, <&usb3s0_clk>,
+				 <&usb_extal_clk>;
+			clock-names = "usb3-if", "usb3s_clk", "usb_extal";
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 328>;
 			#phy-cells = <0>;
-			/* placeholder */
+			status = "disabled";
 		};
 
 		arm_cc630p: crypto@e6601000 {
@@ -929,13 +936,25 @@
 		};
 
 		xhci0: usb@ee000000 {
+			compatible = "renesas,xhci-r8a77961",
+				     "renesas,rcar-gen3-xhci";
 			reg = <0 0xee000000 0 0xc00>;
-			/* placeholder */
+			interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 328>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 328>;
+			status = "disabled";
 		};
 
 		usb3_peri0: usb@ee020000 {
+			compatible = "renesas,r8a77961-usb3-peri",
+				     "renesas,rcar-gen3-usb3-peri";
 			reg = <0 0xee020000 0 0x400>;
-			/* placeholder */
+			interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 328>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 328>;
+			status = "disabled";
 		};
 
 		ohci0: usb@ee080000 {
-- 
2.7.4


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

* Re: [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 device nodes for r8a77961
  2020-03-25  6:24 ` [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 " Yoshihiro Shimoda
@ 2020-03-25 14:03   ` Geert Uytterhoeven
  2020-03-27 12:17   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2020-03-25 14:03 UTC (permalink / raw)
  To: Yoshihiro Shimoda; +Cc: Magnus Damm, Linux-Renesas

On Wed, Mar 25, 2020 at 7:24 AM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> This patch adds USB2.0 related device nodes for r8a77961 (R-Car M3-W+).
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH/RFC 2/2] arm64: dts: renesas: add USB3.0 device nodes for r8a77961
  2020-03-25  6:24 ` [PATCH/RFC 2/2] arm64: dts: renesas: add USB3.0 " Yoshihiro Shimoda
@ 2020-03-25 14:05   ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2020-03-25 14:05 UTC (permalink / raw)
  To: Yoshihiro Shimoda; +Cc: Magnus Damm, Linux-Renesas

On Wed, Mar 25, 2020 at 7:24 AM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> This patch adds USB3.0 related device nodes for r8a77961 (R-Car M3-W+).
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 device nodes for r8a77961
  2020-03-25  6:24 ` [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 " Yoshihiro Shimoda
  2020-03-25 14:03   ` Geert Uytterhoeven
@ 2020-03-27 12:17   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2020-03-27 12:17 UTC (permalink / raw)
  To: Yoshihiro Shimoda; +Cc: Magnus Damm, Linux-Renesas

On Wed, Mar 25, 2020 at 7:24 AM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> This patch adds USB2.0 related device nodes for r8a77961 (R-Car M3-W+).
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Tested with CP2102 USB-UART bridge
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 device nodes for r8a77961
  2020-03-25  6:24 [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 device nodes for r8a77961 Yoshihiro Shimoda
  2020-03-25  6:24 ` [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 " Yoshihiro Shimoda
  2020-03-25  6:24 ` [PATCH/RFC 2/2] arm64: dts: renesas: add USB3.0 " Yoshihiro Shimoda
@ 2020-03-27 12:50 ` Geert Uytterhoeven
  2 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2020-03-27 12:50 UTC (permalink / raw)
  To: Yoshihiro Shimoda; +Cc: Magnus Damm, Linux-Renesas

Hi Shimoda-san,

On Wed, Mar 25, 2020 at 7:24 AM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> This patch adds USB2.0/3.0 device nodes for r8a77961(R-Car M3-W+).
> The dt-bindings of these devices are not merged yet. So, I marked
> RFC on this patch series.
>
> Yoshihiro Shimoda (2):
>   arm64: dts: renesas: add USB2.0 device nodes for r8a77961
>   arm64: dts: renesas: add USB3.0 device nodes for r8a77961

Thank you, will queue in renesas-devel for-v5.8.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2020-03-27 12:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25  6:24 [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 device nodes for r8a77961 Yoshihiro Shimoda
2020-03-25  6:24 ` [PATCH/RFC 1/2] arm64: dts: renesas: add USB2.0 " Yoshihiro Shimoda
2020-03-25 14:03   ` Geert Uytterhoeven
2020-03-27 12:17   ` Geert Uytterhoeven
2020-03-25  6:24 ` [PATCH/RFC 2/2] arm64: dts: renesas: add USB3.0 " Yoshihiro Shimoda
2020-03-25 14:05   ` Geert Uytterhoeven
2020-03-27 12:50 ` [PATCH/RFC 0/2] arm64: dts: renesas: add USB2.0/3.0 " Geert Uytterhoeven

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.