blob: 2cbe69ed1504e19311a55cc197ff0e0f21f41015 [file] [log] [blame]
Lokesh Vutla853f7f52018-08-27 15:59:09 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
4 */
5
Andreas Dannenberg7202af92019-04-29 12:56:44 -05006#include <dt-bindings/pinctrl/k3.h>
Grygorii Strashko736b6c32019-02-05 17:31:26 +05307#include <dt-bindings/dma/k3-udma.h>
Grygorii Strashko6f2929d2019-07-09 10:30:36 +05308#include <dt-bindings/net/ti-dp83867.h>
Lokesh Vutla853f7f52018-08-27 15:59:09 +05309
10/ {
11 chosen {
12 stdout-path = "serial2:115200n8";
13 };
14
15 aliases {
16 serial2 = &main_uart0;
Grygorii Strashko5195c102019-07-09 10:30:35 +053017 ethernet0 = &cpsw_port1;
Lokesh Vutla853f7f52018-08-27 15:59:09 +053018 };
19};
20
21&cbass_main{
22 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +053023
Lokesh Vutla853f7f52018-08-27 15:59:09 +053024 sdhci1: sdhci@04FA0000 {
Faiz Abbas3a1a0df2019-06-11 00:43:31 +053025 compatible = "ti,am654-sdhci-5.1";
Lokesh Vutla2d0eba32018-11-02 19:51:08 +053026 reg = <0x0 0x4FA0000 0x0 0x1000>,
27 <0x0 0x4FB0000 0x0 0x400>;
Faiz Abbasfe0e30c2020-01-16 19:42:18 +053028 clocks =<&k3_clks 48 0>, <&k3_clks 48 1>;
29 clock-names = "clk_ahb", "clk_xin";
Lokesh Vutla355be912019-06-07 19:24:47 +053030 power-domains = <&k3_pds 48 TI_SCI_PD_EXCLUSIVE>;
Lokesh Vutla853f7f52018-08-27 15:59:09 +053031 max-frequency = <25000000>;
Faiz Abbasbbcfaad2019-06-11 00:43:36 +053032 ti,otap-del-sel = <0x2>;
33 ti,trm-icp = <0x8>;
Lokesh Vutla853f7f52018-08-27 15:59:09 +053034 };
35
36};
37
Lokesh Vutla2d0eba32018-11-02 19:51:08 +053038&cbass_mcu {
39 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053040
41 navss_mcu: navss-mcu {
42 compatible = "simple-bus";
43 #address-cells = <2>;
44 #size-cells = <2>;
45 ranges;
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +053046 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053047
48 ti,sci-dev-id = <119>;
49
50 mcu_ringacc: ringacc@2b800000 {
51 compatible = "ti,am654-navss-ringacc";
52 reg = <0x0 0x2b800000 0x0 0x400000>,
53 <0x0 0x2b000000 0x0 0x400000>,
54 <0x0 0x28590000 0x0 0x100>,
55 <0x0 0x2a500000 0x0 0x40000>;
56 reg-names = "rt", "fifos",
57 "proxy_gcfg", "proxy_target";
58 ti,num-rings = <286>;
59 ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
60 ti,dma-ring-reset-quirk;
61 ti,sci = <&dmsc>;
62 ti,sci-dev-id = <195>;
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +053063 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053064 };
65
66 mcu_udmap: udmap@285c0000 {
67 compatible = "ti,k3-navss-udmap";
68 reg = <0x0 0x285c0000 0x0 0x100>,
69 <0x0 0x2a800000 0x0 0x40000>,
70 <0x0 0x2aa00000 0x0 0x40000>;
71 reg-names = "gcfg", "rchanrt", "tchanrt";
72 #dma-cells = <3>;
73
74 ti,ringacc = <&mcu_ringacc>;
75 ti,psil-base = <0x6000>;
76
77 ti,sci = <&dmsc>;
78 ti,sci-dev-id = <194>;
79
80 ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
81 <0x2>; /* TX_CHAN */
82 ti,sci-rm-range-rchan = <0x3>, /* RX_HCHAN */
83 <0x4>; /* RX_CHAN */
84 ti,sci-rm-range-rflow = <0x5>; /* GP RFLOW */
85 dma-coherent;
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +053086 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053087 };
88 };
Grygorii Strashko5195c102019-07-09 10:30:35 +053089
90 mcu_conf: scm_conf@40f00000 {
91 compatible = "syscon";
92 reg = <0x0 0x40f00000 0x0 0x20000>;
93 };
94
95 mcu_cpsw: cpsw_nuss@046000000 {
96 compatible = "ti,am654-cpsw-nuss";
97 #address-cells = <2>;
98 #size-cells = <2>;
99 reg = <0x0 0x46000000 0x0 0x200000>;
100 reg-names = "cpsw_nuss";
101 ranges;
102 dma-coherent;
103 clocks = <&k3_clks 5 10>;
104 clock-names = "fck";
Suman Annadcddf0f2019-07-29 11:13:41 -0500105 power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
Grygorii Strashko5195c102019-07-09 10:30:35 +0530106 ti,psil-base = <0x7000>;
107
108 dmas = <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_TX>,
109 <&mcu_udmap &mcu_cpsw 1 UDMA_DIR_TX>,
110 <&mcu_udmap &mcu_cpsw 2 UDMA_DIR_TX>,
111 <&mcu_udmap &mcu_cpsw 3 UDMA_DIR_TX>,
112 <&mcu_udmap &mcu_cpsw 4 UDMA_DIR_TX>,
113 <&mcu_udmap &mcu_cpsw 5 UDMA_DIR_TX>,
114 <&mcu_udmap &mcu_cpsw 6 UDMA_DIR_TX>,
115 <&mcu_udmap &mcu_cpsw 7 UDMA_DIR_TX>,
116 <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_RX>;
117 dma-names = "tx0", "tx1", "tx2", "tx3",
118 "tx4", "tx5", "tx6", "tx7",
119 "rx";
120
121 ports {
122 #address-cells = <1>;
123 #size-cells = <0>;
124 host: host@0 {
125 reg = <0>;
126 ti,label = "host";
127 };
128
129 cpsw_port1: port@1 {
130 reg = <1>;
131 ti,mac-only;
132 ti,label = "port1";
133 ti,syscon-efuse = <&mcu_conf 0x200>;
134 };
135 };
136
137 davinci_mdio: mdio {
138 #address-cells = <1>;
139 #size-cells = <0>;
140 bus_freq = <1000000>;
141 };
142
143 ti,psil-config0 {
144 linux,udma-mode = <UDMA_PKT_MODE>;
145 statictr-type = <PSIL_STATIC_TR_NONE>;
146 ti,needs-epib;
147 ti,psd-size = <16>;
148 };
149
150 ti,psil-config1 {
151 linux,udma-mode = <UDMA_PKT_MODE>;
152 statictr-type = <PSIL_STATIC_TR_NONE>;
153 ti,needs-epib;
154 ti,psd-size = <16>;
155 };
156
157 ti,psil-config2 {
158 linux,udma-mode = <UDMA_PKT_MODE>;
159 statictr-type = <PSIL_STATIC_TR_NONE>;
160 ti,needs-epib;
161 ti,psd-size = <16>;
162 };
163
164 ti,psil-config3 {
165 linux,udma-mode = <UDMA_PKT_MODE>;
166 statictr-type = <PSIL_STATIC_TR_NONE>;
167 ti,needs-epib;
168 ti,psd-size = <16>;
169 };
170
171 ti,psil-config4 {
172 linux,udma-mode = <UDMA_PKT_MODE>;
173 statictr-type = <PSIL_STATIC_TR_NONE>;
174 ti,needs-epib;
175 ti,psd-size = <16>;
176 };
177
178 ti,psil-config5 {
179 linux,udma-mode = <UDMA_PKT_MODE>;
180 statictr-type = <PSIL_STATIC_TR_NONE>;
181 ti,needs-epib;
182 ti,psd-size = <16>;
183 };
184
185 ti,psil-config6 {
186 linux,udma-mode = <UDMA_PKT_MODE>;
187 statictr-type = <PSIL_STATIC_TR_NONE>;
188 ti,needs-epib;
189 ti,psd-size = <16>;
190 };
191
192 ti,psil-config7 {
193 linux,udma-mode = <UDMA_PKT_MODE>;
194 statictr-type = <PSIL_STATIC_TR_NONE>;
195 ti,needs-epib;
196 ti,psd-size = <16>;
197 };
198 };
Lokesh Vutla2d0eba32018-11-02 19:51:08 +0530199};
200
201&cbass_wakeup {
202 u-boot,dm-spl;
203};
204
205&secure_proxy_main {
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530206 u-boot,dm-spl;
207};
208
209&dmsc {
210 u-boot,dm-spl;
Lokesh Vutla2d0eba32018-11-02 19:51:08 +0530211 k3_sysreset: sysreset-controller {
212 compatible = "ti,sci-sysreset";
213 u-boot,dm-spl;
214 };
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530215};
216
217&k3_pds {
218 u-boot,dm-spl;
219};
220
221&k3_clks {
222 u-boot,dm-spl;
223};
224
225&k3_reset {
226 u-boot,dm-spl;
227};
228
Andreas Dannenberg7e0363b2019-06-04 18:08:15 -0500229&wkup_pmx0 {
230 u-boot,dm-spl;
231
232 wkup_i2c0_pins_default {
233 u-boot,dm-spl;
234 };
235};
236
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530237&main_pmx0 {
238 u-boot,dm-spl;
239 main_uart0_pins_default: main_uart0_pins_default {
240 pinctrl-single,pins = <
Andreas Dannenberg7202af92019-04-29 12:56:44 -0500241 AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */
242 AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */
243 AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */
244 AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530245 >;
Lokesh Vutla2d0eba32018-11-02 19:51:08 +0530246 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530247 };
248
249 main_mmc0_pins_default: main_mmc0_pins_default {
250 pinctrl-single,pins = <
Andreas Dannenberg7202af92019-04-29 12:56:44 -0500251 AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
252 AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
253 AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
254 AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
255 AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
256 AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
257 AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
258 AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
259 AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
260 AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
Faiz Abbas3a1a0df2019-06-11 00:43:31 +0530261 AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */
262 AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530263 >;
Lokesh Vutla2d0eba32018-11-02 19:51:08 +0530264 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530265 };
266
267 main_mmc1_pins_default: main_mmc1_pins_default {
268 pinctrl-single,pins = <
Andreas Dannenberg7202af92019-04-29 12:56:44 -0500269 AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */
270 AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */
271 AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */
272 AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */
273 AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */
274 AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */
275 AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */
276 AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530277 >;
Lokesh Vutla2d0eba32018-11-02 19:51:08 +0530278 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530279 };
280
281};
282
283&main_pmx1 {
284 u-boot,dm-spl;
285};
286
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530287&wkup_pmx0 {
288 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
289 pinctrl-single,pins = <
290 AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
291 AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
292 AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
293 AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
294 AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
295 AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
296 AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
297 AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
298 AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
299 AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
300 AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
301 AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
302 >;
303 };
304
305 mcu_mdio_pins_default: mcu_mdio1_pins_default {
306 pinctrl-single,pins = <
307 AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
308 AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
309 >;
310 };
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +0530311
312 mcu-fss0-ospi0-pins-default {
313 u-boot,dm-spl;
314 };
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530315};
316
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530317&main_uart0 {
318 u-boot,dm-spl;
319 pinctrl-names = "default";
320 pinctrl-0 = <&main_uart0_pins_default>;
321 status = "okay";
322};
323
324&sdhci0 {
325 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530326};
327
328&sdhci1 {
329 u-boot,dm-spl;
330 status = "okay";
331 pinctrl-names = "default";
332 pinctrl-0 = <&main_mmc1_pins_default>;
333 sdhci-caps-mask = <0x7 0x0>;
Faiz Abbasbbcfaad2019-06-11 00:43:36 +0530334 ti,driver-strength-ohm = <50>;
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530335};
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530336
337&mcu_cpsw {
338 pinctrl-names = "default";
339 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
340};
341
342&davinci_mdio {
343 phy0: ethernet-phy@0 {
344 reg = <0>;
345 /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
346 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530347 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
348 };
349};
350
351&cpsw_port1 {
Grygorii Strashko5efb6922019-11-18 23:04:47 +0200352 phy-mode = "rgmii-rxid";
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530353 phy-handle = <&phy0>;
354};
355
356&mcu_cpsw {
357 reg = <0x0 0x46000000 0x0 0x200000>,
358 <0x0 0x40f00200 0x0 0x2>;
359 reg-names = "cpsw_nuss", "mac_efuse";
360
361 cpsw-phy-sel@40f04040 {
362 compatible = "ti,am654-cpsw-phy-sel";
363 reg= <0x0 0x40f04040 0x0 0x4>;
364 reg-names = "gmii-sel";
365 };
366};
Andreas Dannenberg7e0363b2019-06-04 18:08:15 -0500367
368&wkup_i2c0 {
369 u-boot,dm-spl;
370};
Vignesh Raghavendra60120072019-12-09 10:37:33 +0530371
372&usb1 {
373 dr_mode = "peripheral";
374};
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +0530375
376&fss {
377 u-boot,dm-spl;
378};
379
380&ospi0 {
381 u-boot,dm-spl;
382
383 flash@0{
384 u-boot,dm-spl;
385 };
386};