ARM: DTS: am33xx/am437x: Use the new eDMA bindings
v2 cover ARM: DTS: am33xx/am437x: Use the new eDMA bindings
Hi,
Changes since v1:
- Updated to use the non 16bit arrays [1]
- send the two patch as a series
[1]
As it has been discussed earlier:
https://www.mail-archive.com/linux-omap at vger.kernel.org/msg122117.html
the DT bindings has been changes compared to what we had in 4.4-rc1: the arrays now don't have the 16bit type.
The changes are now merged to mainline and Vinod provided us a branch:
git://git.infradead.org/users/vkoul/slave-dma.git fix/edma
Which is based on 4.4-rc1 and only contains the two patch for changing the eDMA bindings.
Regards,
Peter
---
Peter Ujfalusi (2):
ARM: DTS: am33xx: Use the new DT bindings for the eDMA3
ARM: DTS: am437x: Use the new DT bindings for the eDMA3
arch/arm/boot/dts/am335x-evm.dts | 9 +--- arch/arm/boot/dts/am335x-pepper.dts | 11 +---- arch/arm/boot/dts/am33xx.dtsi | 94 ++++++++++++++++++++++++++----------- arch/arm/boot/dts/am4372.dtsi | 80 +++++++++++++++++++++++-------- arch/arm/boot/dts/am437x-gp-evm.dts | 9 +--- 5 files changed, 133 insertions(+), 70 deletions(-)
Signature · 1 line
2.6.4
PATCH v2 1/2 ARM: DTS: am33xx: Use the new DT bindings for the eDMA3
Switch to use the ti,edma3-tpcc and ti,edma3-tptc binding for the eDMA3 and enable the DMA even crossbar with ti,am335x-edma-crossbar.
With the new bindings boards can customize and tweak the DMA channel priority to match their needs. With the new binding the memcpy is safe to be used since with the old binding it was not possible for a driver to know which channel is allowed to be used as non HW triggered channel.
--- arch/arm/boot/dts/am335x-evm.dts | 9 +--- arch/arm/boot/dts/am335x-pepper.dts | 11 +---- arch/arm/boot/dts/am33xx.dtsi | 94 ++++++++++++++++++++++++++----------- 3 files changed, 71 insertions(+), 43 deletions(-)
arch/arm/boot/dts/am335x-evm.dts +2 -7
@@ -743,8 +743,8 @@ &mmc3 { /* these are on the crossbar and are outlined in the xbar-event-map element */ - dmas = <&edma 12 - &edma 13>; + dmas = <&edma_xbar 12 0 1 + &edma_xbar 13 0 2>; dma-names = "tx", "rx"; status = "okay"; vmmc-supply = <&wlan_en_reg>;
@@ -766,11 +766,6 @@ }; }; -&edma { - ti,edma-xbar-event-map = /bits/ 16 <1 12 - 2 13>; -}; - &sham { status = "okay"; };
arch/arm/boot/dts/am335x-pepper.dts +2 -9
@@ -339,13 +339,6 @@ ti,non-removable; }; -&edma { - /* Map eDMA MMC2 Events from Crossbar */ - ti,edma-xbar-event-map = /bits/ 16 <1 12 - 2 13>; -}; - - &mmc3 { /* Wifi & Bluetooth on MMC #3 */ status = "okay";
@@ -354,8 +347,8 @@ vmmmc-supply = <&v3v3c_reg>; bus-width = <4>; ti,non-removable; - dmas = <&edma 12 - &edma 13>; + dmas = <&edma_xbar 12 0 1 + &edma_xbar 13 0 2>; dma-names = "tx", "rx"; };
arch/arm/boot/dts/am33xx.dtsi +67 -27
173 lines not on this page · raw message
Signature · 1 line
2.6.4
PATCH v2 2/2 ARM: DTS: am437x: Use the new DT bindings for the eDMA3
In reply to Peter UjfalusiSwitch to use the ti,edma3-tpcc and ti,edma3-tptc binding for the eDMA3 and enable the DMA even crossbar with ti,am335x-edma-crossbar.
With the new bindings boards can customize and tweak the DMA channel priority to match their needs. With the new binding the memcpy is safe to be used since with the old binding it was not possible for a driver to know which channel is allowed to be used as non HW triggered channel.
--- arch/arm/boot/dts/am4372.dtsi | 80 +++++++++++++++++++++++++++---------- arch/arm/boot/dts/am437x-gp-evm.dts | 9 +---- 2 files changed, 62 insertions(+), 27 deletions(-)
arch/arm/boot/dts/am4372.dtsi +60 -20
@@ -172,6 +172,14 @@ mboxes = <&mailbox &mbox_wkupm3>; }; + edma_xbar: dma-router at f90 { + compatible = "ti,am335x-edma-crossbar"; + reg = <0xf90 0x40>; + #dma-cells = <3>; + dma-requests = <64>; + dma-masters = <&edma>; + }; + scm_clockdomains: clockdomains { }; };
@@ -184,14 +192,46 @@ }; edma: edma at 49000000 { - compatible = "ti,edma3"; - ti,hwmods = "tpcc", "tptc0", "tptc1", "tptc2"; - reg = <0x49000000 0x10000>, - <0x44e10f90 0x10>; + compatible = "ti,edma3-tpcc"; + ti,hwmods = "tpcc"; + reg = <0x49000000 0x10000>; + reg-names = "edma3_cc"; interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; - #dma-cells = <1>; + <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "edma3_ccint", "emda3_mperr", + "edma3_ccerrint"; + dma-requests = <64>; + #dma-cells = <2>; + + ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 5>, + <&edma_tptc2 0>; + + ti,edma-memcpy-channels = <32 33>; + }; + + edma_tptc0: tptc at 49800000 { + compatible = "ti,edma3-tptc"; + ti,hwmods = "tptc0"; + reg = <0x49800000 0x100000>; + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "edma3_tcerrint"; + }; + + edma_tptc1: tptc at 49900000 { + compatible = "ti,edma3-tptc"; + ti,hwmods = "tptc1"; + reg = <0x49900000 0x100000>; + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "edma3_tcerrint"; + }; + + edma_tptc2: tptc at 49a00000 { + compatible = "ti,edma3-tptc"; + ti,hwmods = "tptc2"; + reg = <0x49a00000 0x100000>; + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "edma3_tcerrint"; }; uart0: serial at 44e09000 {
@@ -496,8 +536,8 @@ ti,hwmods = "mmc1"; ti,dual-volt; ti,needs-special-reset; - dmas = <&edma 24 - &edma 25>; + dmas = <&edma 24 0>, + <&edma 25 0>; dma-names = "tx", "rx"; interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; status = "disabled";
@@ -508,8 +548,8 @@ reg = <0x481d8000 0x1000>; ti,hwmods = "mmc2"; ti,needs-special-reset; - dmas = <&edma 2 - &edma 3>; + dmas = <&edma 2 0>, + <&edma 3 0>; dma-names = "tx", "rx"; interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; status = "disabled";
@@ -777,7 +817,7 @@ compatible = "ti,omap5-sham"; ti,hwmods = "sham"; reg = <0x53100000 0x300>; - dmas = <&edma 36>; + dmas = <&edma 36 0>; dma-names = "rx"; interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>; };
@@ -787,8 +827,8 @@ ti,hwmods = "aes"; reg = <0x53501000 0xa0>; interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; - dmas = <&edma 6 - &edma 5>; + dmas = <&edma 6 0>, + <&edma 5 0>; dma-names = "tx", "rx"; };
@@ -797,8 +837,8 @@ ti,hwmods = "des"; reg = <0x53701000 0xa0>; interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>; - dmas = <&edma 34 - &edma 33>; + dmas = <&edma 34 0>, + <&edma 33 0>; dma-names = "tx", "rx"; };
@@ -811,8 +851,8 @@ interrupts = <80>, <81>; interrupt-names = "tx", "rx"; status = "disabled"; - dmas = <&edma 8>, - <&edma 9>; + dmas = <&edma 8 2>, + <&edma 9 2>; dma-names = "tx", "rx"; };
@@ -825,8 +865,8 @@ interrupts = <82>, <83>; interrupt-names = "tx", "rx"; status = "disabled"; - dmas = <&edma 10>, - <&edma 11>; + dmas = <&edma 10 2>, + <&edma 11 2>; dma-names = "tx", "rx"; };
arch/arm/boot/dts/am437x-gp-evm.dts +2 -7
@@ -734,8 +734,8 @@ status = "okay"; /* these are on the crossbar and are outlined in the xbar-event-map element */ - dmas = <&edma 30 - &edma 31>; + dmas = <&edma_xbar 30 0 1>, + <&edma_xbar 31 0 2>; dma-names = "tx", "rx"; vmmc-supply = <&vmmcwl_fixed>; bus-width = <4>;
@@ -756,11 +756,6 @@ }; }; -&edma { - ti,edma-xbar-event-map = /bits/ 16 <1 30 - 2 31>; -}; - &uart3 { status = "okay"; pinctrl-names = "default";
Signature · 1 line
2.6.4
Quoted 10 lines · Peter Ujfalusi
Hi,
Changes since v1:
- Updated to use the non 16bit arrays [1]
- send the two patch as a series[1]
As it has been discussed earlier:
https://www.mail-archive.com/linux-omap at vger.kernel.org/msg122117.html
Quoted 8 lines
the DT bindings has been changes compared to what we had in 4.4-rc1: the arrays now don't have the 16bit type.
The changes are now merged to mainline and Vinod provided us a branch:
git://git.infradead.org/users/vkoul/slave-dma.gitfix/edmaWhich is based on 4.4-rc1 and only contains the two patch for changing the eDMA bindings.
Great, I'll merge the fix/edma also into omap-for-v4.5/dt and apply your two patches.
Regards,
Tony
Quoted 15 lines · Tony Lindgren
Quoted 14 lines · Peter Ujfalusi
Hi,
Changes since v1:
- Updated to use the non 16bit arrays [1]
- send the two patch as a series[1]
As it has been discussed earlier:
https://www.mail-archive.com/[email protected]/msg122117.htmlthe DT bindings has been changes compared to what we had in 4.4-rc1: the arrays now don't have the 16bit type.
The changes are now merged to mainline and Vinod provided us a branch:
Quoted 7 lines
Quoted 4 lines
git://git.infradead.org/users/vkoul/slave-dma.gitfix/edmaWhich is based on 4.4-rc1 and only contains the two patch for changing the eDMA bindings.
Great, I'll merge the fix/edma also into omap-for-v4.5/dt and apply your two patches.
FWIW, fix/edma is in Linu's tree now and should be in -rc6
Thanks
Signature · 1 line
~Vinod
Quoted 18 lines · Vinod Koul
Quoted 17 lines · Tony Lindgren
Quoted 16 lines · Peter Ujfalusi
Hi,
Changes since v1:
- Updated to use the non 16bit arrays [1]
- send the two patch as a series[1]
As it has been discussed earlier:
https://www.mail-archive.com/linux-omap at vger.kernel.org/msg122117.htmlthe DT bindings has been changes compared to what we had in 4.4-rc1: the arrays now don't have the 16bit type.
The changes are now merged to mainline and Vinod provided us a branch:
git://git.infradead.org/users/vkoul/slave-dma.gitfix/edma
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Which is based on 4.4-rc1 and only contains the two patch for changing the eDMA bindings.
Great, I'll merge the fix/edma also into omap-for-v4.5/dt and apply your two patches.
FWIW, fix/edma is in Linu's tree now and should be in -rc6
Yes that's great, but now I can keep my branches at early -rc's and that leaves out the need of late -rc backmerges to the whole arm soc tree.
Regards,
Tony