diff mbox series

[v2,08/10] arm: dts: k3-am65-main: Add pruss nodes for ICSSG2

Message ID 20200218051004.32524-9-j-keerthy@ti.com
State New
Headers show
Series net: ti: icssg: Add prueth support | expand

Commit Message

J, KEERTHY Feb. 18, 2020, 5:10 a.m. UTC
Add pruss nodes. This is based 4.19 DT with interrupt properties
removed from pur/rtu nodes.

Signed-off-by: Keerthy <j-keerthy at ti.com>
---
 arch/arm/dts/k3-am65-main.dtsi | 162 +++++++++++++++++++++++++++++++++
 1 file changed, 162 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi
index 71a540376f..7499bab309 100644
--- a/arch/arm/dts/k3-am65-main.dtsi
+++ b/arch/arm/dts/k3-am65-main.dtsi
@@ -8,6 +8,8 @@ 
 #include <dt-bindings/phy/phy-am654-serdes.h>
 #include <dt-bindings/phy/phy.h>
 
+#include <dt-bindings/dma/k3-udma.h>
+
 &cbass_main {
 	msmc_ram: sram at 70000000 {
 		compatible = "mmio-sram";
@@ -358,4 +360,164 @@ 
 		#phy-cells = <0>;
 		ti,dis-chg-det-quirk;
 	};
+
+	icssg2: icssg at b200000 {
+		compatible = "ti,am654-icssg";
+		power-domains = <&k3_pds 64 TI_SCI_PD_EXCLUSIVE>;
+		reg = <0xb200000 0x80000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+		dma-ranges;
+		ti,psil-base = <0x4300>;	/* ICSSG2 PSIL thread start */
+
+		ti,psil-config0 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		ti,psil-config1 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		ti,psil-config2 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		ti,psil-config3 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		ti,psil-config4 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		ti,psil-config5 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		ti,psil-config6 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		ti,psil-config7 {
+			linux,udma-mode = <UDMA_PKT_MODE>;
+			statictr-type = <PSIL_STATIC_TR_NONE>;
+			ti,needs-epib;
+			ti,psd-size = <16>;
+		};
+
+		icssg2_mem: memories at b200000 {
+			reg = <0xb200000 0x2000>,
+			      <0xb202000 0x2000>,
+			      <0xb210000 0x10000>;
+			reg-names = "dram0", "dram1",
+				    "shrdram2";
+		};
+
+		icssg2_cfg: cfg at b226000 {
+			compatible = "syscon";
+			reg = <0xb226000 0x200>;
+		};
+
+		icssg2_iep: iep at b22e000 {
+			compatible = "syscon";
+			reg = <0xb22e000 0x1000>;
+		};
+
+		icssg2_mii_rt: mii-rt at b232000 {
+			compatible = "syscon";
+			reg = <0xb232000 0x100>;
+		};
+
+		icssg2_mii_g_rt: mii-g-rt at b233000 {
+			compatible = "syscon";
+			reg = <0xb233000 0x1000>;
+		};
+
+		icssg2_intc: interrupt-controller at b220000 {
+			compatible = "ti,am654-icssg-intc";
+			reg = <0xb220000 0x2000>;
+			interrupt-controller;
+			#interrupt-cells = <1>;
+			interrupts = <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "host2", "host3", "host4",
+					  "host5", "host6", "host7",
+					  "host8", "host9";
+		};
+
+		pru2_0: pru at b234000 {
+			compatible = "ti,am654-pru";
+			reg = <0xb234000 0x4000>,
+			      <0xb222000 0x100>,
+			      <0xb222400 0x100>;
+			reg-names = "iram", "control", "debug";
+			firmware-name = "am65x-pru2_0-fw";
+		};
+
+		rtu2_0: rtu at b204000 {
+			compatible = "ti,am654-rtu";
+			reg = <0xb204000 0x2000>,
+			      <0xb223000 0x100>,
+			      <0xb223400 0x100>;
+			reg-names = "iram", "control", "debug";
+			firmware-name = "am65x-rtu2_0-fw";
+		};
+
+		pru2_1: pru at b238000 {
+			compatible = "ti,am654-pru";
+			reg = <0xb238000 0x4000>,
+			      <0xb224000 0x100>,
+			      <0xb224400 0x100>;
+			reg-names = "iram", "control", "debug";
+			firmware-name = "am65x-pru2_1-fw";
+		};
+
+		rtu2_1: rtu at b206000 {
+			compatible = "ti,am654-rtu";
+			reg = <0xb206000 0x2000>,
+			      <0xb223800 0x100>,
+			      <0xb223c00 0x100>;
+			reg-names = "iram", "control", "debug";
+			firmware-name = "am65x-rtu2_1-fw";
+		};
+
+		icssg2_mdio: mdio at b232400 {
+			compatible = "ti,davinci_mdio";
+			reg = <0xb232400 0x100>;
+			clocks = <&k3_clks 64 3>;
+			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			bus_freq = <1000000>;
+			status = "disabled";
+		};
+	};
 };