dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
	Simon Horman <horms@verge.net.au>, Vinod Koul <vkoul@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>
Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	dmaengine@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org,
	Chris Paterson <Chris.Paterson2@renesas.com>,
	Biju Das <biju.das@bp.renesas.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
	Jacopo Mondi <jacopo+renesas@jmondi.org>
Subject: [PATCH 08/10] arm64: dts: renesas: r8a774b1: Add USB-DMAC and HSUSB device nodes
Date: Tue,  8 Oct 2019 11:38:50 +0100	[thread overview]
Message-ID: <1570531132-21856-9-git-send-email-fabrizio.castro@bp.renesas.com> (raw)
In-Reply-To: <1570531132-21856-1-git-send-email-fabrizio.castro@bp.renesas.com>

Add usb dmac and hsusb device nodes to the RZ/G2N SoC dtsi.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 42 ++++++++++++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi b/arch/arm64/boot/dts/renesas/r8a774b1.dtsi
index 3704ad1..abbcec6 100644
--- a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774b1.dtsi
@@ -675,8 +675,48 @@
 		};
 
 		hsusb: usb@e6590000 {
+			compatible = "renesas,usbhs-r8a774b1",
+				     "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 R8A774B1_PD_ALWAYS_ON>;
+			resets = <&cpg 704>, <&cpg 703>;
+			status = "disabled";
+		};
+
+		usb_dmac0: dma-controller@e65a0000 {
+			compatible = "renesas,r8a774b1-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 R8A774B1_PD_ALWAYS_ON>;
+			resets = <&cpg 330>;
+			#dma-cells = <1>;
+			dma-channels = <2>;
+		};
+
+		usb_dmac1: dma-controller@e65b0000 {
+			compatible = "renesas,r8a774b1-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 R8A774B1_PD_ALWAYS_ON>;
+			resets = <&cpg 331>;
+			#dma-cells = <1>;
+			dma-channels = <2>;
 		};
 
 		usb3_phy0: usb-phy@e65ee000 {
-- 
2.7.4


  parent reply	other threads:[~2019-10-08 10:39 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-08 10:38 [PATCH 00/10] Add USB2/USB3/INTC-EX support to RZ/G2N Fabrizio Castro
2019-10-08 10:38 ` [PATCH 01/10] dt-bindings: rcar-gen3-phy-usb2: Add r8a774b1 support Fabrizio Castro
2019-10-08 11:31   ` Geert Uytterhoeven
2019-10-09  4:09   ` Yoshihiro Shimoda
2019-10-08 10:38 ` [PATCH 02/10] dt-bindings: dmaengine: usb-dmac: Add binding for r8a774b1 Fabrizio Castro
2019-10-08 11:32   ` Geert Uytterhoeven
2019-10-09  4:09   ` Yoshihiro Shimoda
2019-10-15 10:19   ` Vinod Koul
2019-10-08 10:38 ` [PATCH 03/10] dt-bindings: usb: renesas_usbhs: Add r8a774b1 support Fabrizio Castro
2019-10-08 11:34   ` Geert Uytterhoeven
2019-10-09  4:09   ` Yoshihiro Shimoda
2019-10-08 10:38 ` [PATCH 04/10] dt-bindings: rcar-gen3-phy-usb3: " Fabrizio Castro
2019-10-08 11:36   ` Geert Uytterhoeven
2019-10-09  4:09   ` Yoshihiro Shimoda
2019-10-08 10:38 ` [PATCH 05/10] dt-bindings: usb-xhci: " Fabrizio Castro
2019-10-08 11:37   ` Geert Uytterhoeven
2019-10-09  4:09   ` Yoshihiro Shimoda
2019-10-08 10:38 ` [PATCH 06/10] dt-bindings: usb: renesas_usb3: Document " Fabrizio Castro
2019-10-08 11:42   ` Geert Uytterhoeven
2019-10-09  4:09   ` Yoshihiro Shimoda
2019-10-08 10:38 ` [PATCH 07/10] arm64: dts: renesas: r8a774b1: Add USB2.0 phy and host (EHCI/OHCI) device nodes Fabrizio Castro
2019-10-09 14:07   ` Geert Uytterhoeven
2019-10-08 10:38 ` Fabrizio Castro [this message]
2019-10-09 14:38   ` [PATCH 08/10] arm64: dts: renesas: r8a774b1: Add USB-DMAC and HSUSB " Geert Uytterhoeven
2019-10-08 10:38 ` [PATCH 09/10] arm64: dts: renesas: r8a774b1: Add USB3.0 " Fabrizio Castro
2019-10-09 14:41   ` Geert Uytterhoeven
2019-10-08 10:38 ` [PATCH 10/10] arm64: dts: renesas: r8a774b1: Add INTC-EX device node Fabrizio Castro
2019-10-09 14:42   ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1570531132-21856-9-git-send-email-fabrizio.castro@bp.renesas.com \
    --to=fabrizio.castro@bp.renesas.com \
    --cc=Chris.Paterson2@renesas.com \
    --cc=biju.das@bp.renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=horms@verge.net.au \
    --cc=jacopo+renesas@jmondi.org \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=kishon@ti.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).