devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Niklas Söderlund" <niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org>
To: horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org,
	magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org,
	laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org
Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	"Niklas Söderlund"
	<niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org>
Subject: [PATCHv2 19/31] ARM: dts: r8a7793: Reference both DMA controllers in SCIFA nodes
Date: Tue, 15 Mar 2016 13:41:56 +0100	[thread overview]
Message-ID: <1458045728-4758-20-git-send-email-niklas.soderlund+renesas@ragnatech.se> (raw)
In-Reply-To: <1458045728-4758-1-git-send-email-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org>

R-Car Gen2 have two DMA controllers, which are equivalent. Add
references to both dmac0 and dmac1 so the driver can fallback to the
later if the first one is unavailable.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
---
 arch/arm/boot/dts/r8a7793.dtsi | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi
index b482159..d833423 100644
--- a/arch/arm/boot/dts/r8a7793.dtsi
+++ b/arch/arm/boot/dts/r8a7793.dtsi
@@ -514,8 +514,9 @@
 		interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp2_clks R8A7793_CLK_SCIFA0>;
 		clock-names = "fck";
-		dmas = <&dmac0 0x21>, <&dmac0 0x22>;
-		dma-names = "tx", "rx";
+		dmas = <&dmac0 0x21>, <&dmac0 0x22>,
+		       <&dmac1 0x21>, <&dmac1 0x22>;
+		dma-names = "tx", "rx", "tx", "rx";
 		power-domains = <&cpg_clocks>;
 		status = "disabled";
 	};
@@ -527,8 +528,9 @@
 		interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp2_clks R8A7793_CLK_SCIFA1>;
 		clock-names = "fck";
-		dmas = <&dmac0 0x25>, <&dmac0 0x26>;
-		dma-names = "tx", "rx";
+		dmas = <&dmac0 0x25>, <&dmac0 0x26>,
+		       <&dmac1 0x25>, <&dmac1 0x26>;
+		dma-names = "tx", "rx", "tx", "rx";
 		power-domains = <&cpg_clocks>;
 		status = "disabled";
 	};
@@ -540,8 +542,9 @@
 		interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp2_clks R8A7793_CLK_SCIFA2>;
 		clock-names = "fck";
-		dmas = <&dmac0 0x27>, <&dmac0 0x28>;
-		dma-names = "tx", "rx";
+		dmas = <&dmac0 0x27>, <&dmac0 0x28>,
+		       <&dmac1 0x27>, <&dmac1 0x28>;
+		dma-names = "tx", "rx", "tx", "rx";
 		power-domains = <&cpg_clocks>;
 		status = "disabled";
 	};
@@ -553,8 +556,9 @@
 		interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp11_clks R8A7793_CLK_SCIFA3>;
 		clock-names = "fck";
-		dmas = <&dmac0 0x1b>, <&dmac0 0x1c>;
-		dma-names = "tx", "rx";
+		dmas = <&dmac0 0x1b>, <&dmac0 0x1c>,
+		       <&dmac1 0x1b>, <&dmac1 0x1c>;
+		dma-names = "tx", "rx", "tx", "rx";
 		power-domains = <&cpg_clocks>;
 		status = "disabled";
 	};
@@ -566,8 +570,9 @@
 		interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp11_clks R8A7793_CLK_SCIFA4>;
 		clock-names = "fck";
-		dmas = <&dmac0 0x1f>, <&dmac0 0x20>;
-		dma-names = "tx", "rx";
+		dmas = <&dmac0 0x1f>, <&dmac0 0x20>,
+		       <&dmac1 0x1f>, <&dmac1 0x20>;
+		dma-names = "tx", "rx", "tx", "rx";
 		power-domains = <&cpg_clocks>;
 		status = "disabled";
 	};
@@ -579,8 +584,9 @@
 		interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp11_clks R8A7793_CLK_SCIFA5>;
 		clock-names = "fck";
-		dmas = <&dmac0 0x23>, <&dmac0 0x24>;
-		dma-names = "tx", "rx";
+		dmas = <&dmac0 0x23>, <&dmac0 0x24>,
+		       <&dmac1 0x23>, <&dmac1 0x24>;
+		dma-names = "tx", "rx", "tx", "rx";
 		power-domains = <&cpg_clocks>;
 		status = "disabled";
 	};
-- 
2.7.2

--
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

  parent reply	other threads:[~2016-03-15 12:41 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15 12:41 [PATCHv2 00/31] ARM: dts: r8a779[0-4]: Reference both DMA controllers Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 01/31] ARM: dts: r8a7790: Reference both DMA controllers in SCIFA nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 02/31] ARM: dts: r8a7790: Reference both DMA controllers in SCIFB nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 03/31] ARM: dts: r8a7790: Reference both DMA controllers in HSCIF nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 04/31] ARM: dts: r8a7790: Reference both DMA controllers in SCIF nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 05/31] ARM: dts: r8a7790: Reference both DMA controllers in MSIOF nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 07/31] ARM: dts: r8a7790: Reference both DMA controllers in IIC nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 08/31] ARM: dts: r8a7790: Reference both DMA controllers in SDHI nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 09/31] ARM: dts: r8a7790: Reference both DMA controllers in MMCIF nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 10/31] ARM: dts: r8a7791: Reference both DMA controllers in SCIFA nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 12/31] ARM: dts: r8a7791: Reference both DMA controllers in HSCIF nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 13/31] ARM: dts: r8a7791: Reference both DMA controllers in SCIF nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 14/31] ARM: dts: r8a7791: Reference both DMA controllers in MSIOF nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 15/31] ARM: dts: r8a7791: Reference both DMA controllers in QSPI node Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 18/31] ARM: dts: r8a7791: Reference both DMA controllers in MMCIF node Niklas Söderlund
     [not found] ` <1458045728-4758-1-git-send-email-niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org>
2016-03-15 12:41   ` [PATCHv2 06/31] ARM: dts: r8a7790: Reference both DMA controllers in QSPI node Niklas Söderlund
2016-03-15 12:41   ` [PATCHv2 11/31] ARM: dts: r8a7791: Reference both DMA controllers in SCIFB nodes Niklas Söderlund
2016-03-15 12:41   ` [PATCHv2 16/31] ARM: dts: r8a7791: Reference both DMA controllers in IIC nodes Niklas Söderlund
2016-03-15 12:41   ` [PATCHv2 17/31] ARM: dts: r8a7791: Reference both DMA controllers in SDHI nodes Niklas Söderlund
2016-03-15 12:41   ` Niklas Söderlund [this message]
2016-03-15 12:41   ` [PATCHv2 22/31] ARM: dts: r8a7793: Reference both DMA controllers in SCIF nodes Niklas Söderlund
2016-03-15 12:42   ` [PATCHv2 27/31] ARM: dts: r8a7794: Reference both DMA controllers in HSCIF nodes Niklas Söderlund
2016-03-15 12:42   ` [PATCHv2 30/31] ARM: dts: r8a7794: Reference both DMA controllers in SDHI nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 20/31] ARM: dts: r8a7793: Reference both DMA controllers in SCIFB nodes Niklas Söderlund
2016-03-15 12:41 ` [PATCHv2 21/31] ARM: dts: r8a7793: Reference both DMA controllers in HSCIF nodes Niklas Söderlund
2016-03-15 12:42 ` [PATCHv2 23/31] ARM: dts: r8a7793: Reference both DMA controllers in QSPI node Niklas Söderlund
2016-03-15 12:42 ` [PATCHv2 24/31] ARM: dts: r8a7793: Reference both DMA controllers in IIC nodes Niklas Söderlund
2016-03-15 12:42 ` [PATCHv2 25/31] ARM: dts: r8a7794: Reference both DMA controllers in SCIFA nodes Niklas Söderlund
2016-03-15 12:42 ` [PATCHv2 26/31] ARM: dts: r8a7794: Reference both DMA controllers in SCIFB nodes Niklas Söderlund
2016-03-15 12:42 ` [PATCHv2 28/31] ARM: dts: r8a7794: Reference both DMA controllers in SCIF nodes Niklas Söderlund
2016-03-15 12:42 ` [PATCHv2 29/31] ARM: dts: r8a7794: Reference both DMA controllers in QSPI node Niklas Söderlund
2016-03-15 12:42 ` [PATCHv2 31/31] ARM: dts: r8a7794: Reference both DMA controllers in MMCIF node Niklas Söderlund
2016-03-16  0:06 ` [PATCHv2 00/31] ARM: dts: r8a779[0-4]: Reference both DMA controllers Simon Horman

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=1458045728-4758-20-git-send-email-niklas.soderlund+renesas@ragnatech.se \
    --to=niklas.soderlund+renesas-1zkq55x86mtxsap9fp7wbw@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org \
    --cc=horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org \
    --cc=laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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).