From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Tony Lindgren <tony@atomide.com>, linux-omap@vger.kernel.org
Cc: Matthijs van Duin <matthijsvanduin@gmail.com>,
Neil Armstrong <narmstrong@baylibre.com>,
Philipp Rosenberger <ilu@linutronix.de>,
Delio Brignoli <dbrignoli@audioscience.com>,
Brian Hutchinson <b.hutchman@gmail.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/7] ARM: dts: Update edma bindings on dm814x to use edma_xbar
Date: Fri, 4 Dec 2015 11:18:07 +0200 [thread overview]
Message-ID: <56615A4F.3080207@ti.com> (raw)
In-Reply-To: <1449192335-10137-3-git-send-email-tony@atomide.com>
On 12/04/2015 03:25 AM, Tony Lindgren wrote:
> The edma is the same as on am33xx, except it has four tptc
> instances. And we need the edma_xbar for at least mmc3, so
> let's use the edma_xbar and the new binding as suggested by
> Peter Ujfalusi <peter.ujfalusi@ti.com>.
>
> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> arch/arm/boot/dts/dm814x.dtsi | 68 ++++++++++++++++++++++++++++++++++++-------
> 1 file changed, 58 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm/boot/dts/dm814x.dtsi b/arch/arm/boot/dts/dm814x.dtsi
> index ca92346..9d81980e 100644
> --- a/arch/arm/boot/dts/dm814x.dtsi
> +++ b/arch/arm/boot/dts/dm814x.dtsi
> @@ -126,8 +126,8 @@
> interrupts = <65>;
> ti,spi-num-cs = <4>;
> ti,hwmods = "mcspi1";
> - dmas = <&edma 16 &edma 17
> - &edma 18 &edma 19>;
> + dmas = <&edma 16 0 &edma 17 0
> + &edma 18 0 &edma 19 0>;
> dma-names = "tx0", "rx0", "tx1", "rx1";
> };
>
> @@ -145,7 +145,7 @@
> reg = <0x20000 0x2000>;
> clock-frequency = <48000000>;
> interrupts = <72>;
> - dmas = <&edma 26 &edma 27>;
> + dmas = <&edma 26 0 &edma 27 0>;
> dma-names = "tx", "rx";
> };
>
> @@ -155,7 +155,7 @@
> reg = <0x22000 0x2000>;
> clock-frequency = <48000000>;
> interrupts = <73>;
> - dmas = <&edma 28 &edma 29>;
> + dmas = <&edma 28 0 &edma 29 0>;
> dma-names = "tx", "rx";
> };
>
> @@ -165,7 +165,7 @@
> reg = <0x24000 0x2000>;
> clock-frequency = <48000000>;
> interrupts = <74>;
> - dmas = <&edma 30 &edma 31>;
> + dmas = <&edma 30 0 &edma 31 0>;
> dma-names = "tx", "rx";
> };
>
> @@ -205,6 +205,14 @@
> };
> };
>
> + edma_xbar: dma-router@f90 {
> + compatible = "ti,am335x-edma-crossbar";
> + reg = <0xf90 0x40>;
> + #dma-cells = <3>;
> + dma-requests = <32>;
> + dma-masters = <&edma>;
> + };
> +
> /*
> * Note that silicon revision 2.1 and older
> * require input enabled (bit 18 set) for all
> @@ -272,12 +280,52 @@
> };
>
> edma: edma@49000000 {
> - compatible = "ti,edma3";
> - ti,hwmods = "tpcc", "tptc0", "tptc1", "tptc2";
> - reg = <0x49000000 0x10000>,
> - <0x44e10f90 0x40>;
> + compatible = "ti,edma3-tpcc";
> + ti,hwmods = "tpcc";
> + reg = <0x49000000 0x10000>;
> + reg-names = "edma3_cc";
> interrupts = <12 13 14>;
> - #dma-cells = <1>;
> + interrupt-names = "edma3_ccint", "emda3_mperr",
> + "edma3_ccerrint";
> + dma-requests = <64>;
> + #dma-cells = <2>;
> +
> + ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 5>,
> + <&edma_tptc2 3>, <&edma_tptc3 0>;
> +
> + ti,edma-memcpy-channels = /bits/ 16 <20 21>;
> + };
> +
> + edma_tptc0: tptc@49800000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc0";
> + reg = <0x49800000 0x100000>;
> + interrupts = <112>;
> + interrupt-names = "edma3_tcerrint";
> + };
> +
> + edma_tptc1: tptc@49900000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc1";
> + reg = <0x49900000 0x100000>;
> + interrupts = <113>;
> + interrupt-names = "edma3_tcerrint";
> + };
> +
> + edma_tptc2: tptc@49a00000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc2";
> + reg = <0x49a00000 0x100000>;
> + interrupts = <114>;
> + interrupt-names = "edma3_tcerrint";
> + };
> +
> + edma_tptc3: tptc@49b00000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc3";
> + reg = <0x49b00000 0x100000>;
> + interrupts = <115>;
> + interrupt-names = "edma3_tcerrint";
> };
>
> /* See TRM "Table 1-318. L4HS Instance Summary" */
>
--
Péter
WARNING: multiple messages have this Message-ID (diff)
From: peter.ujfalusi@ti.com (Peter Ujfalusi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/7] ARM: dts: Update edma bindings on dm814x to use edma_xbar
Date: Fri, 4 Dec 2015 11:18:07 +0200 [thread overview]
Message-ID: <56615A4F.3080207@ti.com> (raw)
In-Reply-To: <1449192335-10137-3-git-send-email-tony@atomide.com>
On 12/04/2015 03:25 AM, Tony Lindgren wrote:
> The edma is the same as on am33xx, except it has four tptc
> instances. And we need the edma_xbar for at least mmc3, so
> let's use the edma_xbar and the new binding as suggested by
> Peter Ujfalusi <peter.ujfalusi@ti.com>.
>
> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> arch/arm/boot/dts/dm814x.dtsi | 68 ++++++++++++++++++++++++++++++++++++-------
> 1 file changed, 58 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm/boot/dts/dm814x.dtsi b/arch/arm/boot/dts/dm814x.dtsi
> index ca92346..9d81980e 100644
> --- a/arch/arm/boot/dts/dm814x.dtsi
> +++ b/arch/arm/boot/dts/dm814x.dtsi
> @@ -126,8 +126,8 @@
> interrupts = <65>;
> ti,spi-num-cs = <4>;
> ti,hwmods = "mcspi1";
> - dmas = <&edma 16 &edma 17
> - &edma 18 &edma 19>;
> + dmas = <&edma 16 0 &edma 17 0
> + &edma 18 0 &edma 19 0>;
> dma-names = "tx0", "rx0", "tx1", "rx1";
> };
>
> @@ -145,7 +145,7 @@
> reg = <0x20000 0x2000>;
> clock-frequency = <48000000>;
> interrupts = <72>;
> - dmas = <&edma 26 &edma 27>;
> + dmas = <&edma 26 0 &edma 27 0>;
> dma-names = "tx", "rx";
> };
>
> @@ -155,7 +155,7 @@
> reg = <0x22000 0x2000>;
> clock-frequency = <48000000>;
> interrupts = <73>;
> - dmas = <&edma 28 &edma 29>;
> + dmas = <&edma 28 0 &edma 29 0>;
> dma-names = "tx", "rx";
> };
>
> @@ -165,7 +165,7 @@
> reg = <0x24000 0x2000>;
> clock-frequency = <48000000>;
> interrupts = <74>;
> - dmas = <&edma 30 &edma 31>;
> + dmas = <&edma 30 0 &edma 31 0>;
> dma-names = "tx", "rx";
> };
>
> @@ -205,6 +205,14 @@
> };
> };
>
> + edma_xbar: dma-router at f90 {
> + compatible = "ti,am335x-edma-crossbar";
> + reg = <0xf90 0x40>;
> + #dma-cells = <3>;
> + dma-requests = <32>;
> + dma-masters = <&edma>;
> + };
> +
> /*
> * Note that silicon revision 2.1 and older
> * require input enabled (bit 18 set) for all
> @@ -272,12 +280,52 @@
> };
>
> edma: edma at 49000000 {
> - compatible = "ti,edma3";
> - ti,hwmods = "tpcc", "tptc0", "tptc1", "tptc2";
> - reg = <0x49000000 0x10000>,
> - <0x44e10f90 0x40>;
> + compatible = "ti,edma3-tpcc";
> + ti,hwmods = "tpcc";
> + reg = <0x49000000 0x10000>;
> + reg-names = "edma3_cc";
> interrupts = <12 13 14>;
> - #dma-cells = <1>;
> + interrupt-names = "edma3_ccint", "emda3_mperr",
> + "edma3_ccerrint";
> + dma-requests = <64>;
> + #dma-cells = <2>;
> +
> + ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 5>,
> + <&edma_tptc2 3>, <&edma_tptc3 0>;
> +
> + ti,edma-memcpy-channels = /bits/ 16 <20 21>;
> + };
> +
> + edma_tptc0: tptc at 49800000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc0";
> + reg = <0x49800000 0x100000>;
> + interrupts = <112>;
> + interrupt-names = "edma3_tcerrint";
> + };
> +
> + edma_tptc1: tptc at 49900000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc1";
> + reg = <0x49900000 0x100000>;
> + interrupts = <113>;
> + interrupt-names = "edma3_tcerrint";
> + };
> +
> + edma_tptc2: tptc at 49a00000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc2";
> + reg = <0x49a00000 0x100000>;
> + interrupts = <114>;
> + interrupt-names = "edma3_tcerrint";
> + };
> +
> + edma_tptc3: tptc at 49b00000 {
> + compatible = "ti,edma3-tptc";
> + ti,hwmods = "tptc3";
> + reg = <0x49b00000 0x100000>;
> + interrupts = <115>;
> + interrupt-names = "edma3_tcerrint";
> };
>
> /* See TRM "Table 1-318. L4HS Instance Summary" */
>
--
P?ter
next prev parent reply other threads:[~2015-12-04 9:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 1:25 [PATCH 0/7] Add mmc support for dm814x and dra62x Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 1:25 ` [PATCH 1/7] ARM: dts: Add pinctrl macros for dm814x Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 1:25 ` [PATCH 2/7] ARM: dts: Update edma bindings on dm814x to use edma_xbar Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 9:18 ` Peter Ujfalusi [this message]
2015-12-04 9:18 ` Peter Ujfalusi
2015-12-04 1:25 ` [PATCH 3/7] ARM: OMAP2+: Add mmc hwmod entries for dm814x Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 1:25 ` [PATCH 4/7] ARM: dts: Add mmc device " Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 1:25 ` [PATCH 5/7] ARM: dts: Add mmc support for dm8148-evm Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 1:25 ` [PATCH 6/7] ARM: dts: Add mmc support for dra62x j5-eco evm Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 1:25 ` [PATCH 7/7] ARM: dts: Enable emmc on hp t410 Tony Lindgren
2015-12-04 1:25 ` Tony Lindgren
2015-12-04 9:20 ` Peter Ujfalusi
2015-12-04 9:20 ` Peter Ujfalusi
2015-12-04 16:00 ` Tony Lindgren
2015-12-04 16:00 ` Tony Lindgren
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=56615A4F.3080207@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=b.hutchman@gmail.com \
--cc=dbrignoli@audioscience.com \
--cc=ilu@linutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=matthijsvanduin@gmail.com \
--cc=narmstrong@baylibre.com \
--cc=tony@atomide.com \
/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 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.