diff mbox series

[v2,4/5] arm64: dts: ti: k3-am64-main: Enable DMA support

Message ID 20210119163927.774-5-d-gerlach@ti.com
State Superseded
Headers show
Series arm64: Initial support for Texas Instruments AM642 Platform | expand

Commit Message

Dave Gerlach Jan. 19, 2021, 4:39 p.m. UTC
From: Peter Ujfalusi <peter.ujfalusi@ti.com>


Add the nodes for DMSS INTA, BCDMA and PKTDMA to enable the use of the
DMAs in the system.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>

---
v1 -> v2:
* New patch from v1

 arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 74 ++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

-- 
2.28.0

Comments

Vignesh Raghavendra Jan. 21, 2021, 1:27 p.m. UTC | #1
On 1/19/21 10:09 PM, Dave Gerlach wrote:
> From: Peter Ujfalusi <peter.ujfalusi@ti.com>

> 

> Add the nodes for DMSS INTA, BCDMA and PKTDMA to enable the use of the

> DMAs in the system.

> 

> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>

> ---


Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>


Regards
Vignesh
Nishanth Menon Jan. 21, 2021, 2:21 p.m. UTC | #2
On 18:57-20210121, Vignesh Raghavendra wrote:
> 

> 

> On 1/19/21 10:09 PM, Dave Gerlach wrote:

> > From: Peter Ujfalusi <peter.ujfalusi@ti.com>

> > 

> > Add the nodes for DMSS INTA, BCDMA and PKTDMA to enable the use of the

> > DMAs in the system.

> > 

> > Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

> > Signed-off-by: Dave Gerlach <d-gerlach@ti.com>

> > ---

> 

> Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>


Is V3 of this series valid as well?

https://lore.kernel.org/linux-arm-kernel/20210120202532.9011-5-d-gerlach@ti.com/


-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Vignesh Raghavendra Jan. 21, 2021, 3:03 p.m. UTC | #3
On 1/21/21 7:51 PM, Nishanth Menon wrote:
> On 18:57-20210121, Vignesh Raghavendra wrote:

>>

>>

>> On 1/19/21 10:09 PM, Dave Gerlach wrote:

>>> From: Peter Ujfalusi <peter.ujfalusi@ti.com>

>>>

>>> Add the nodes for DMSS INTA, BCDMA and PKTDMA to enable the use of the

>>> DMAs in the system.

>>>

>>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

>>> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>

>>> ---

>>

>> Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>

> 

> Is V3 of this series valid as well?

> 

> https://lore.kernel.org/linux-arm-kernel/20210120202532.9011-5-d-gerlach@ti.com/

> 

> 

Sorry, did not notice v3. However this patch has not changed. So, feel
free to carried forward the R-by to v3.
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
index e65fdb358c4c..d0c804111079 100644
--- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
@@ -49,6 +49,8 @@  dmss: dmss {
 		dma-ranges;
 		ranges;
 
+		ti,sci-dev-id = <25>;
+
 		secure_proxy_main: mailbox@4d000000 {
 			compatible = "ti,am654-secure-proxy";
 			#mbox-cells = <1>;
@@ -59,6 +61,78 @@  secure_proxy_main: mailbox@4d000000 {
 			interrupt-names = "rx_012";
 			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
 		};
+
+		inta_main_dmss: interrupt-controller@48000000 {
+			compatible = "ti,sci-inta";
+			reg = <0x00 0x48000000 0x00 0x100000>;
+			#address-cells = <0>;
+			#interrupt-cells = <0>;
+			interrupt-controller;
+			interrupt-parent = <&gic500>;
+			msi-controller;
+			ti,sci = <&dmsc>;
+			ti,sci-dev-id = <28>;
+			ti,interrupt-ranges = <4 68 36>;
+			ti,unmapped-event-sources = <&main_bcdma>, <&main_pktdma>;
+		};
+
+		main_bcdma: dma-controller@485c0100 {
+			compatible = "ti,am64-dmss-bcdma";
+			reg = <0x00 0x485c0100 0x00 0x100>,
+			      <0x00 0x4c000000 0x00 0x20000>,
+			      <0x00 0x4a820000 0x00 0x20000>,
+			      <0x00 0x4aa40000 0x00 0x20000>,
+			      <0x00 0x4bc00000 0x00 0x100000>;
+			reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
+			msi-parent = <&inta_main_dmss>;
+			#dma-cells = <3>;
+
+			ti,sci = <&dmsc>;
+			ti,sci-dev-id = <26>;
+			ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
+			ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
+			ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */
+		};
+
+		main_pktdma: dma-controller@485c0000 {
+			compatible = "ti,am64-dmss-pktdma";
+			reg = <0x00 0x485c0000 0x00 0x100>,
+			      <0x00 0x4a800000 0x00 0x20000>,
+			      <0x00 0x4aa00000 0x00 0x40000>,
+			      <0x00 0x4b800000 0x00 0x400000>;
+			reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt";
+			msi-parent = <&inta_main_dmss>;
+			#dma-cells = <2>;
+
+			ti,sci = <&dmsc>;
+			ti,sci-dev-id = <30>;
+			ti,sci-rm-range-tchan = <0x23>, /* UNMAPPED_TX_CHAN */
+						<0x24>, /* CPSW_TX_CHAN */
+						<0x25>, /* SAUL_TX_0_CHAN */
+						<0x26>, /* SAUL_TX_1_CHAN */
+						<0x27>, /* ICSSG_0_TX_CHAN */
+						<0x28>; /* ICSSG_1_TX_CHAN */
+			ti,sci-rm-range-tflow = <0x10>, /* RING_UNMAPPED_TX_CHAN */
+						<0x11>, /* RING_CPSW_TX_CHAN */
+						<0x12>, /* RING_SAUL_TX_0_CHAN */
+						<0x13>, /* RING_SAUL_TX_1_CHAN */
+						<0x14>, /* RING_ICSSG_0_TX_CHAN */
+						<0x15>; /* RING_ICSSG_1_TX_CHAN */
+			ti,sci-rm-range-rchan = <0x29>, /* UNMAPPED_RX_CHAN */
+						<0x2b>, /* CPSW_RX_CHAN */
+						<0x2d>, /* SAUL_RX_0_CHAN */
+						<0x2f>, /* SAUL_RX_1_CHAN */
+						<0x31>, /* SAUL_RX_2_CHAN */
+						<0x33>, /* SAUL_RX_3_CHAN */
+						<0x35>, /* ICSSG_0_RX_CHAN */
+						<0x37>; /* ICSSG_1_RX_CHAN */
+			ti,sci-rm-range-rflow = <0x2a>, /* FLOW_UNMAPPED_RX_CHAN */
+						<0x2c>, /* FLOW_CPSW_RX_CHAN */
+						<0x2e>, /* FLOW_SAUL_RX_0/1_CHAN */
+						<0x32>, /* FLOW_SAUL_RX_2/3_CHAN */
+						<0x36>, /* FLOW_ICSSG_0_RX_CHAN */
+						<0x38>; /* FLOW_ICSSG_1_RX_CHAN */
+		};
 	};
 
 	dmsc: dmsc@44043000 {