blob: 51ca4b4d4c21438d43de8b1bbc2a80a92b4d8df7 [file] [log] [blame]
Nishanth Menon4201af22018-09-05 11:20:22 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for AM6 SoC Family MCU Domain peripherals
4 *
Alexander A. Klimov303d6f62020-07-13 12:14:09 +02005 * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
Nishanth Menon4201af22018-09-05 11:20:22 -05006 */
7
8&cbass_mcu {
Grygorii Strashkof2965b92019-12-16 21:39:33 +02009 mcu_conf: scm_conf@40f00000 {
10 compatible = "syscon", "simple-mfd";
11 reg = <0x0 0x40f00000 0x0 0x20000>;
12 #address-cells = <1>;
13 #size-cells = <1>;
14 ranges = <0x0 0x0 0x40f00000 0x20000>;
Grygorii Strashko243246b2020-03-03 18:00:28 +020015
16 phy_gmii_sel: phy@4040 {
17 compatible = "ti,am654-phy-gmii-sel";
18 reg = <0x4040 0x4>;
19 #phy-cells = <1>;
20 };
Grygorii Strashkof2965b92019-12-16 21:39:33 +020021 };
22
Nishanth Menon4201af22018-09-05 11:20:22 -050023 mcu_uart0: serial@40a00000 {
24 compatible = "ti,am654-uart";
25 reg = <0x00 0x40a00000 0x00 0x100>;
26 reg-shift = <2>;
27 reg-io-width = <4>;
28 interrupts = <GIC_SPI 565 IRQ_TYPE_LEVEL_HIGH>;
29 clock-frequency = <96000000>;
30 current-speed = <115200>;
Lokesh Vutlac68272c2019-07-29 18:00:22 +053031 power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>;
Nishanth Menon4201af22018-09-05 11:20:22 -050032 };
Vignesh R19a17682018-11-13 11:31:11 +053033
Suman Annaf853f002019-06-05 11:34:32 -050034 mcu_ram: sram@41c00000 {
35 compatible = "mmio-sram";
36 reg = <0x00 0x41c00000 0x00 0x80000>;
37 ranges = <0x0 0x00 0x41c00000 0x80000>;
38 #address-cells = <1>;
39 #size-cells = <1>;
40 };
41
Vignesh R19a17682018-11-13 11:31:11 +053042 mcu_i2c0: i2c@40b00000 {
43 compatible = "ti,am654-i2c", "ti,omap4-i2c";
44 reg = <0x0 0x40b00000 0x0 0x100>;
45 interrupts = <GIC_SPI 564 IRQ_TYPE_LEVEL_HIGH>;
46 #address-cells = <1>;
47 #size-cells = <0>;
48 clock-names = "fck";
49 clocks = <&k3_clks 114 1>;
Lokesh Vutlac68272c2019-07-29 18:00:22 +053050 power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
Vignesh R19a17682018-11-13 11:31:11 +053051 };
Vignesh R2cd7d392018-12-09 15:52:21 +053052
53 mcu_spi0: spi@40300000 {
54 compatible = "ti,am654-mcspi","ti,omap4-mcspi";
55 reg = <0x0 0x40300000 0x0 0x400>;
56 interrupts = <GIC_SPI 560 IRQ_TYPE_LEVEL_HIGH>;
57 clocks = <&k3_clks 142 1>;
Lokesh Vutlac68272c2019-07-29 18:00:22 +053058 power-domains = <&k3_pds 142 TI_SCI_PD_EXCLUSIVE>;
Vignesh R2cd7d392018-12-09 15:52:21 +053059 #address-cells = <1>;
60 #size-cells = <0>;
61 };
62
63 mcu_spi1: spi@40310000 {
64 compatible = "ti,am654-mcspi","ti,omap4-mcspi";
65 reg = <0x0 0x40310000 0x0 0x400>;
66 interrupts = <GIC_SPI 561 IRQ_TYPE_LEVEL_HIGH>;
67 clocks = <&k3_clks 143 1>;
Lokesh Vutlac68272c2019-07-29 18:00:22 +053068 power-domains = <&k3_pds 143 TI_SCI_PD_EXCLUSIVE>;
Vignesh R2cd7d392018-12-09 15:52:21 +053069 #address-cells = <1>;
70 #size-cells = <0>;
71 };
72
73 mcu_spi2: spi@40320000 {
74 compatible = "ti,am654-mcspi","ti,omap4-mcspi";
75 reg = <0x0 0x40320000 0x0 0x400>;
76 interrupts = <GIC_SPI 562 IRQ_TYPE_LEVEL_HIGH>;
77 clocks = <&k3_clks 144 1>;
Lokesh Vutlac68272c2019-07-29 18:00:22 +053078 power-domains = <&k3_pds 144 TI_SCI_PD_EXCLUSIVE>;
Vignesh R2cd7d392018-12-09 15:52:21 +053079 #address-cells = <1>;
80 #size-cells = <0>;
81 };
Vignesh Raa6eaaa2019-02-12 17:52:37 +053082
83 tscadc0: tscadc@40200000 {
84 compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
85 reg = <0x0 0x40200000 0x0 0x1000>;
86 interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
87 clocks = <&k3_clks 0 2>;
88 assigned-clocks = <&k3_clks 0 2>;
89 assigned-clock-rates = <60000000>;
90 clock-names = "adc_tsc_fck";
Vignesh Raghavendra85800da2020-03-12 14:58:23 +053091 dmas = <&mcu_udmap 0x7100>,
92 <&mcu_udmap 0x7101 >;
93 dma-names = "fifo0", "fifo1";
Vignesh Raa6eaaa2019-02-12 17:52:37 +053094
95 adc {
96 #io-channel-cells = <1>;
97 compatible = "ti,am654-adc", "ti,am3359-adc";
98 };
99 };
100
101 tscadc1: tscadc@40210000 {
102 compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
103 reg = <0x0 0x40210000 0x0 0x1000>;
104 interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
105 clocks = <&k3_clks 1 2>;
106 assigned-clocks = <&k3_clks 1 2>;
107 assigned-clock-rates = <60000000>;
108 clock-names = "adc_tsc_fck";
Vignesh Raghavendra85800da2020-03-12 14:58:23 +0530109 dmas = <&mcu_udmap 0x7102>,
110 <&mcu_udmap 0x7103>;
111 dma-names = "fifo0", "fifo1";
Vignesh Raa6eaaa2019-02-12 17:52:37 +0530112
113 adc {
114 #io-channel-cells = <1>;
115 compatible = "ti,am654-adc", "ti,am3359-adc";
116 };
117 };
Vignesh Raghavendra07481772019-12-11 22:34:13 +0530118
Peter Ujfalusi3d623052020-01-23 13:45:22 +0200119 mcu_navss {
120 compatible = "simple-mfd";
121 #address-cells = <2>;
122 #size-cells = <2>;
123 ranges;
124 dma-coherent;
125 dma-ranges;
126
127 ti,sci-dev-id = <119>;
128
129 mcu_ringacc: ringacc@2b800000 {
130 compatible = "ti,am654-navss-ringacc";
131 reg = <0x0 0x2b800000 0x0 0x400000>,
132 <0x0 0x2b000000 0x0 0x400000>,
133 <0x0 0x28590000 0x0 0x100>,
134 <0x0 0x2a500000 0x0 0x40000>;
135 reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
136 ti,num-rings = <286>;
Lokesh Vutla6da45872020-08-06 13:18:26 +0530137 ti,sci-rm-range-gp-rings = <0x1>; /* GP ring range */
Peter Ujfalusi3d623052020-01-23 13:45:22 +0200138 ti,dma-ring-reset-quirk;
139 ti,sci = <&dmsc>;
140 ti,sci-dev-id = <195>;
141 msi-parent = <&inta_main_udmass>;
142 };
143
144 mcu_udmap: dma-controller@285c0000 {
145 compatible = "ti,am654-navss-mcu-udmap";
146 reg = <0x0 0x285c0000 0x0 0x100>,
147 <0x0 0x2a800000 0x0 0x40000>,
148 <0x0 0x2aa00000 0x0 0x40000>;
149 reg-names = "gcfg", "rchanrt", "tchanrt";
150 msi-parent = <&inta_main_udmass>;
151 #dma-cells = <1>;
152
153 ti,sci = <&dmsc>;
154 ti,sci-dev-id = <194>;
155 ti,ringacc = <&mcu_ringacc>;
156
Lokesh Vutla6da45872020-08-06 13:18:26 +0530157 ti,sci-rm-range-tchan = <0xf>, /* TX_HCHAN */
158 <0xd>; /* TX_CHAN */
159 ti,sci-rm-range-rchan = <0xb>, /* RX_HCHAN */
160 <0xa>; /* RX_CHAN */
161 ti,sci-rm-range-rflow = <0x0>; /* GP RFLOW */
Peter Ujfalusi3d623052020-01-23 13:45:22 +0200162 };
163 };
164
Vignesh Raghavendra07481772019-12-11 22:34:13 +0530165 fss: fss@47000000 {
166 compatible = "simple-bus";
167 #address-cells = <2>;
168 #size-cells = <2>;
169 ranges;
170
171 ospi0: spi@47040000 {
172 compatible = "ti,am654-ospi", "cdns,qspi-nor";
173 reg = <0x0 0x47040000 0x0 0x100>,
174 <0x5 0x00000000 0x1 0x0000000>;
175 interrupts = <GIC_SPI 552 IRQ_TYPE_LEVEL_HIGH>;
176 cdns,fifo-depth = <256>;
177 cdns,fifo-width = <4>;
178 cdns,trigger-address = <0x0>;
179 clocks = <&k3_clks 248 0>;
180 assigned-clocks = <&k3_clks 248 0>;
181 assigned-clock-parents = <&k3_clks 248 2>;
182 assigned-clock-rates = <166666666>;
183 power-domains = <&k3_pds 248 TI_SCI_PD_EXCLUSIVE>;
184 #address-cells = <1>;
185 #size-cells = <0>;
186 };
187
188 ospi1: spi@47050000 {
189 compatible = "ti,am654-ospi", "cdns,qspi-nor";
190 reg = <0x0 0x47050000 0x0 0x100>,
191 <0x7 0x00000000 0x1 0x00000000>;
192 interrupts = <GIC_SPI 553 IRQ_TYPE_LEVEL_HIGH>;
193 cdns,fifo-depth = <256>;
194 cdns,fifo-width = <4>;
195 cdns,trigger-address = <0x0>;
196 clocks = <&k3_clks 249 6>;
197 power-domains = <&k3_pds 249 TI_SCI_PD_EXCLUSIVE>;
198 #address-cells = <1>;
199 #size-cells = <0>;
200 };
201 };
Grygorii Strashkoba86a6e2020-03-24 00:52:50 +0200202
203 mcu_cpsw: ethernet@46000000 {
204 compatible = "ti,am654-cpsw-nuss";
205 #address-cells = <2>;
206 #size-cells = <2>;
207 reg = <0x0 0x46000000 0x0 0x200000>;
208 reg-names = "cpsw_nuss";
209 ranges = <0x0 0x0 0x0 0x46000000 0x0 0x200000>;
210 dma-coherent;
211 clocks = <&k3_clks 5 10>;
212 clock-names = "fck";
213 power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
214
215 dmas = <&mcu_udmap 0xf000>,
216 <&mcu_udmap 0xf001>,
217 <&mcu_udmap 0xf002>,
218 <&mcu_udmap 0xf003>,
219 <&mcu_udmap 0xf004>,
220 <&mcu_udmap 0xf005>,
221 <&mcu_udmap 0xf006>,
222 <&mcu_udmap 0xf007>,
223 <&mcu_udmap 0x7000>;
224 dma-names = "tx0", "tx1", "tx2", "tx3",
225 "tx4", "tx5", "tx6", "tx7",
226 "rx";
227
228 ethernet-ports {
229 #address-cells = <1>;
230 #size-cells = <0>;
231
232 cpsw_port1: port@1 {
233 reg = <1>;
234 ti,mac-only;
235 label = "port1";
236 ti,syscon-efuse = <&mcu_conf 0x200>;
237 phys = <&phy_gmii_sel 1>;
238 };
239 };
240
241 davinci_mdio: mdio@f00 {
242 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
243 reg = <0x0 0xf00 0x0 0x100>;
244 #address-cells = <1>;
245 #size-cells = <0>;
246 clocks = <&k3_clks 5 10>;
247 clock-names = "fck";
248 bus_freq = <1000000>;
249 };
Grygorii Strashko885a26b2020-05-01 23:50:08 +0300250
Grygorii Strashkoef2d1362020-05-06 21:14:01 +0300251 cpts@3d000 {
252 compatible = "ti,am65-cpts";
253 reg = <0x0 0x3d000 0x0 0x400>;
Grygorii Strashko885a26b2020-05-01 23:50:08 +0300254 clocks = <&mcu_cpsw_cpts_mux>;
255 clock-names = "cpts";
256 interrupts-extended = <&gic500 GIC_SPI 570 IRQ_TYPE_LEVEL_HIGH>;
257 interrupt-names = "cpts";
258 ti,cpts-ext-ts-inputs = <4>;
259 ti,cpts-periodic-outputs = <2>;
260
261 mcu_cpsw_cpts_mux: refclk-mux {
262 #clock-cells = <0>;
263 clocks = <&k3_clks 118 5>, <&k3_clks 118 11>,
264 <&k3_clks 118 6>, <&k3_clks 118 3>,
265 <&k3_clks 118 8>, <&k3_clks 118 14>,
266 <&k3_clks 120 3>, <&k3_clks 121 3>;
267 assigned-clocks = <&mcu_cpsw_cpts_mux>;
268 assigned-clock-parents = <&k3_clks 118 5>;
269 };
270 };
Grygorii Strashkoba86a6e2020-03-24 00:52:50 +0200271 };
Nishanth Menon4201af22018-09-05 11:20:22 -0500272};