14201af25SNishanth Menon// SPDX-License-Identifier: GPL-2.0
24201af25SNishanth Menon/*
34201af25SNishanth Menon * Device Tree Source for AM6 SoC Family MCU Domain peripherals
44201af25SNishanth Menon *
54201af25SNishanth Menon * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
64201af25SNishanth Menon */
74201af25SNishanth Menon
84201af25SNishanth Menon&cbass_mcu {
9f2965b99SGrygorii Strashko	mcu_conf: scm_conf@40f00000 {
10f2965b99SGrygorii Strashko		compatible = "syscon", "simple-mfd";
11f2965b99SGrygorii Strashko		reg = <0x0 0x40f00000 0x0 0x20000>;
12f2965b99SGrygorii Strashko		#address-cells = <1>;
13f2965b99SGrygorii Strashko		#size-cells = <1>;
14f2965b99SGrygorii Strashko		ranges = <0x0 0x0 0x40f00000 0x20000>;
15f2965b99SGrygorii Strashko	};
16f2965b99SGrygorii Strashko
174201af25SNishanth Menon	mcu_uart0: serial@40a00000 {
184201af25SNishanth Menon		compatible = "ti,am654-uart";
194201af25SNishanth Menon			reg = <0x00 0x40a00000 0x00 0x100>;
204201af25SNishanth Menon			reg-shift = <2>;
214201af25SNishanth Menon			reg-io-width = <4>;
224201af25SNishanth Menon			interrupts = <GIC_SPI 565 IRQ_TYPE_LEVEL_HIGH>;
234201af25SNishanth Menon			clock-frequency = <96000000>;
244201af25SNishanth Menon			current-speed = <115200>;
25c68272cbSLokesh Vutla			power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>;
264201af25SNishanth Menon	};
2719a1768fSVignesh R
28f853f005SSuman Anna	mcu_ram: sram@41c00000 {
29f853f005SSuman Anna		compatible = "mmio-sram";
30f853f005SSuman Anna		reg = <0x00 0x41c00000 0x00 0x80000>;
31f853f005SSuman Anna		ranges = <0x0 0x00 0x41c00000 0x80000>;
32f853f005SSuman Anna		#address-cells = <1>;
33f853f005SSuman Anna		#size-cells = <1>;
34f853f005SSuman Anna	};
35f853f005SSuman Anna
3619a1768fSVignesh R	mcu_i2c0: i2c@40b00000 {
3719a1768fSVignesh R		compatible = "ti,am654-i2c", "ti,omap4-i2c";
3819a1768fSVignesh R		reg = <0x0 0x40b00000 0x0 0x100>;
3919a1768fSVignesh R		interrupts = <GIC_SPI 564 IRQ_TYPE_LEVEL_HIGH>;
4019a1768fSVignesh R		#address-cells = <1>;
4119a1768fSVignesh R		#size-cells = <0>;
4219a1768fSVignesh R		clock-names = "fck";
4319a1768fSVignesh R		clocks = <&k3_clks 114 1>;
44c68272cbSLokesh Vutla		power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
4519a1768fSVignesh R	};
462cd7d393SVignesh R
472cd7d393SVignesh R	mcu_spi0: spi@40300000 {
482cd7d393SVignesh R		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
492cd7d393SVignesh R		reg = <0x0 0x40300000 0x0 0x400>;
502cd7d393SVignesh R		interrupts = <GIC_SPI 560 IRQ_TYPE_LEVEL_HIGH>;
512cd7d393SVignesh R		clocks = <&k3_clks 142 1>;
52c68272cbSLokesh Vutla		power-domains = <&k3_pds 142 TI_SCI_PD_EXCLUSIVE>;
532cd7d393SVignesh R		#address-cells = <1>;
542cd7d393SVignesh R		#size-cells = <0>;
552cd7d393SVignesh R	};
562cd7d393SVignesh R
572cd7d393SVignesh R	mcu_spi1: spi@40310000 {
582cd7d393SVignesh R		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
592cd7d393SVignesh R		reg = <0x0 0x40310000 0x0 0x400>;
602cd7d393SVignesh R		interrupts = <GIC_SPI 561 IRQ_TYPE_LEVEL_HIGH>;
612cd7d393SVignesh R		clocks = <&k3_clks 143 1>;
62c68272cbSLokesh Vutla		power-domains = <&k3_pds 143 TI_SCI_PD_EXCLUSIVE>;
632cd7d393SVignesh R		#address-cells = <1>;
642cd7d393SVignesh R		#size-cells = <0>;
652cd7d393SVignesh R	};
662cd7d393SVignesh R
672cd7d393SVignesh R	mcu_spi2: spi@40320000 {
682cd7d393SVignesh R		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
692cd7d393SVignesh R		reg = <0x0 0x40320000 0x0 0x400>;
702cd7d393SVignesh R		interrupts = <GIC_SPI 562 IRQ_TYPE_LEVEL_HIGH>;
712cd7d393SVignesh R		clocks = <&k3_clks 144 1>;
72c68272cbSLokesh Vutla		power-domains = <&k3_pds 144 TI_SCI_PD_EXCLUSIVE>;
732cd7d393SVignesh R		#address-cells = <1>;
742cd7d393SVignesh R		#size-cells = <0>;
752cd7d393SVignesh R	};
76aa6eaaa2SVignesh R
77aa6eaaa2SVignesh R	tscadc0: tscadc@40200000 {
78aa6eaaa2SVignesh R		compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
79aa6eaaa2SVignesh R		reg = <0x0 0x40200000 0x0 0x1000>;
80aa6eaaa2SVignesh R		interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
81aa6eaaa2SVignesh R		clocks = <&k3_clks 0 2>;
82aa6eaaa2SVignesh R		assigned-clocks = <&k3_clks 0 2>;
83aa6eaaa2SVignesh R		assigned-clock-rates = <60000000>;
84aa6eaaa2SVignesh R		clock-names = "adc_tsc_fck";
85aa6eaaa2SVignesh R
86aa6eaaa2SVignesh R		adc {
87aa6eaaa2SVignesh R			#io-channel-cells = <1>;
88aa6eaaa2SVignesh R			compatible = "ti,am654-adc", "ti,am3359-adc";
89aa6eaaa2SVignesh R		};
90aa6eaaa2SVignesh R	};
91aa6eaaa2SVignesh R
92aa6eaaa2SVignesh R	tscadc1: tscadc@40210000 {
93aa6eaaa2SVignesh R		compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
94aa6eaaa2SVignesh R		reg = <0x0 0x40210000 0x0 0x1000>;
95aa6eaaa2SVignesh R		interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
96aa6eaaa2SVignesh R		clocks = <&k3_clks 1 2>;
97aa6eaaa2SVignesh R		assigned-clocks = <&k3_clks 1 2>;
98aa6eaaa2SVignesh R		assigned-clock-rates = <60000000>;
99aa6eaaa2SVignesh R		clock-names = "adc_tsc_fck";
100aa6eaaa2SVignesh R
101aa6eaaa2SVignesh R		adc {
102aa6eaaa2SVignesh R			#io-channel-cells = <1>;
103aa6eaaa2SVignesh R			compatible = "ti,am654-adc", "ti,am3359-adc";
104aa6eaaa2SVignesh R		};
105aa6eaaa2SVignesh R	};
10607481770SVignesh Raghavendra
1073d623054SPeter Ujfalusi	mcu_navss {
1083d623054SPeter Ujfalusi		compatible = "simple-mfd";
1093d623054SPeter Ujfalusi		#address-cells = <2>;
1103d623054SPeter Ujfalusi		#size-cells = <2>;
1113d623054SPeter Ujfalusi		ranges;
1123d623054SPeter Ujfalusi		dma-coherent;
1133d623054SPeter Ujfalusi		dma-ranges;
1143d623054SPeter Ujfalusi
1153d623054SPeter Ujfalusi		ti,sci-dev-id = <119>;
1163d623054SPeter Ujfalusi
1173d623054SPeter Ujfalusi		mcu_ringacc: ringacc@2b800000 {
1183d623054SPeter Ujfalusi			compatible = "ti,am654-navss-ringacc";
1193d623054SPeter Ujfalusi			reg =	<0x0 0x2b800000 0x0 0x400000>,
1203d623054SPeter Ujfalusi				<0x0 0x2b000000 0x0 0x400000>,
1213d623054SPeter Ujfalusi				<0x0 0x28590000 0x0 0x100>,
1223d623054SPeter Ujfalusi				<0x0 0x2a500000 0x0 0x40000>;
1233d623054SPeter Ujfalusi			reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
1243d623054SPeter Ujfalusi			ti,num-rings = <286>;
1253d623054SPeter Ujfalusi			ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
1263d623054SPeter Ujfalusi			ti,dma-ring-reset-quirk;
1273d623054SPeter Ujfalusi			ti,sci = <&dmsc>;
1283d623054SPeter Ujfalusi			ti,sci-dev-id = <195>;
1293d623054SPeter Ujfalusi			msi-parent = <&inta_main_udmass>;
1303d623054SPeter Ujfalusi		};
1313d623054SPeter Ujfalusi
1323d623054SPeter Ujfalusi		mcu_udmap: dma-controller@285c0000 {
1333d623054SPeter Ujfalusi			compatible = "ti,am654-navss-mcu-udmap";
1343d623054SPeter Ujfalusi			reg =	<0x0 0x285c0000 0x0 0x100>,
1353d623054SPeter Ujfalusi				<0x0 0x2a800000 0x0 0x40000>,
1363d623054SPeter Ujfalusi				<0x0 0x2aa00000 0x0 0x40000>;
1373d623054SPeter Ujfalusi			reg-names = "gcfg", "rchanrt", "tchanrt";
1383d623054SPeter Ujfalusi			msi-parent = <&inta_main_udmass>;
1393d623054SPeter Ujfalusi			#dma-cells = <1>;
1403d623054SPeter Ujfalusi
1413d623054SPeter Ujfalusi			ti,sci = <&dmsc>;
1423d623054SPeter Ujfalusi			ti,sci-dev-id = <194>;
1433d623054SPeter Ujfalusi			ti,ringacc = <&mcu_ringacc>;
1443d623054SPeter Ujfalusi
1453d623054SPeter Ujfalusi			ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
1463d623054SPeter Ujfalusi						<0x2>; /* TX_CHAN */
1473d623054SPeter Ujfalusi			ti,sci-rm-range-rchan = <0x3>, /* RX_HCHAN */
1483d623054SPeter Ujfalusi						<0x4>; /* RX_CHAN */
1493d623054SPeter Ujfalusi			ti,sci-rm-range-rflow = <0x5>; /* GP RFLOW */
1503d623054SPeter Ujfalusi		};
1513d623054SPeter Ujfalusi	};
1523d623054SPeter Ujfalusi
15307481770SVignesh Raghavendra	fss: fss@47000000 {
15407481770SVignesh Raghavendra		compatible = "simple-bus";
15507481770SVignesh Raghavendra		#address-cells = <2>;
15607481770SVignesh Raghavendra		#size-cells = <2>;
15707481770SVignesh Raghavendra		ranges;
15807481770SVignesh Raghavendra
15907481770SVignesh Raghavendra		ospi0: spi@47040000 {
16007481770SVignesh Raghavendra			compatible = "ti,am654-ospi", "cdns,qspi-nor";
16107481770SVignesh Raghavendra			reg = <0x0 0x47040000 0x0 0x100>,
16207481770SVignesh Raghavendra				<0x5 0x00000000 0x1 0x0000000>;
16307481770SVignesh Raghavendra			interrupts = <GIC_SPI 552 IRQ_TYPE_LEVEL_HIGH>;
16407481770SVignesh Raghavendra			cdns,fifo-depth = <256>;
16507481770SVignesh Raghavendra			cdns,fifo-width = <4>;
16607481770SVignesh Raghavendra			cdns,trigger-address = <0x0>;
16707481770SVignesh Raghavendra			clocks = <&k3_clks 248 0>;
16807481770SVignesh Raghavendra			assigned-clocks = <&k3_clks 248 0>;
16907481770SVignesh Raghavendra			assigned-clock-parents = <&k3_clks 248 2>;
17007481770SVignesh Raghavendra			assigned-clock-rates = <166666666>;
17107481770SVignesh Raghavendra			power-domains = <&k3_pds 248 TI_SCI_PD_EXCLUSIVE>;
17207481770SVignesh Raghavendra			#address-cells = <1>;
17307481770SVignesh Raghavendra			#size-cells = <0>;
17407481770SVignesh Raghavendra		};
17507481770SVignesh Raghavendra
17607481770SVignesh Raghavendra		ospi1: spi@47050000 {
17707481770SVignesh Raghavendra			compatible = "ti,am654-ospi", "cdns,qspi-nor";
17807481770SVignesh Raghavendra			reg = <0x0 0x47050000 0x0 0x100>,
17907481770SVignesh Raghavendra				<0x7 0x00000000 0x1 0x00000000>;
18007481770SVignesh Raghavendra			interrupts = <GIC_SPI 553 IRQ_TYPE_LEVEL_HIGH>;
18107481770SVignesh Raghavendra			cdns,fifo-depth = <256>;
18207481770SVignesh Raghavendra			cdns,fifo-width = <4>;
18307481770SVignesh Raghavendra			cdns,trigger-address = <0x0>;
18407481770SVignesh Raghavendra			clocks = <&k3_clks 249 6>;
18507481770SVignesh Raghavendra			power-domains = <&k3_pds 249 TI_SCI_PD_EXCLUSIVE>;
18607481770SVignesh Raghavendra			#address-cells = <1>;
18707481770SVignesh Raghavendra			#size-cells = <0>;
18807481770SVignesh Raghavendra		};
18907481770SVignesh Raghavendra	};
190ba86a6e9SGrygorii Strashko
191ba86a6e9SGrygorii Strashko	mcu_cpsw: ethernet@46000000 {
192ba86a6e9SGrygorii Strashko		compatible = "ti,am654-cpsw-nuss";
193ba86a6e9SGrygorii Strashko		#address-cells = <2>;
194ba86a6e9SGrygorii Strashko		#size-cells = <2>;
195ba86a6e9SGrygorii Strashko		reg = <0x0 0x46000000 0x0 0x200000>;
196ba86a6e9SGrygorii Strashko		reg-names = "cpsw_nuss";
197ba86a6e9SGrygorii Strashko		ranges = <0x0 0x0 0x0 0x46000000 0x0 0x200000>;
198ba86a6e9SGrygorii Strashko		dma-coherent;
199ba86a6e9SGrygorii Strashko		clocks = <&k3_clks 5 10>;
200ba86a6e9SGrygorii Strashko		clock-names = "fck";
201ba86a6e9SGrygorii Strashko		power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
202ba86a6e9SGrygorii Strashko
203ba86a6e9SGrygorii Strashko		dmas = <&mcu_udmap 0xf000>,
204ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0xf001>,
205ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0xf002>,
206ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0xf003>,
207ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0xf004>,
208ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0xf005>,
209ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0xf006>,
210ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0xf007>,
211ba86a6e9SGrygorii Strashko		       <&mcu_udmap 0x7000>;
212ba86a6e9SGrygorii Strashko		dma-names = "tx0", "tx1", "tx2", "tx3",
213ba86a6e9SGrygorii Strashko			    "tx4", "tx5", "tx6", "tx7",
214ba86a6e9SGrygorii Strashko			    "rx";
215ba86a6e9SGrygorii Strashko
216ba86a6e9SGrygorii Strashko		ethernet-ports {
217ba86a6e9SGrygorii Strashko			#address-cells = <1>;
218ba86a6e9SGrygorii Strashko			#size-cells = <0>;
219ba86a6e9SGrygorii Strashko
220ba86a6e9SGrygorii Strashko			cpsw_port1: port@1 {
221ba86a6e9SGrygorii Strashko				reg = <1>;
222ba86a6e9SGrygorii Strashko				ti,mac-only;
223ba86a6e9SGrygorii Strashko				label = "port1";
224ba86a6e9SGrygorii Strashko				ti,syscon-efuse = <&mcu_conf 0x200>;
225ba86a6e9SGrygorii Strashko				phys = <&phy_gmii_sel 1>;
226ba86a6e9SGrygorii Strashko			};
227ba86a6e9SGrygorii Strashko		};
228ba86a6e9SGrygorii Strashko
229ba86a6e9SGrygorii Strashko		davinci_mdio: mdio@f00 {
230ba86a6e9SGrygorii Strashko			compatible = "ti,cpsw-mdio","ti,davinci_mdio";
231ba86a6e9SGrygorii Strashko			reg = <0x0 0xf00 0x0 0x100>;
232ba86a6e9SGrygorii Strashko			#address-cells = <1>;
233ba86a6e9SGrygorii Strashko			#size-cells = <0>;
234ba86a6e9SGrygorii Strashko			clocks = <&k3_clks 5 10>;
235ba86a6e9SGrygorii Strashko			clock-names = "fck";
236ba86a6e9SGrygorii Strashko			bus_freq = <1000000>;
237ba86a6e9SGrygorii Strashko		};
238ba86a6e9SGrygorii Strashko	};
2394201af25SNishanth Menon};
240