blob: 54ecb3d44400241f110647885521ea7b6d80ffa8 [file] [log] [blame]
Lokesh Vutla76a36492018-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 Dannenbergbfdf4982019-04-29 12:56:44 -05006#include <dt-bindings/pinctrl/k3.h>
Grygorii Strashko2d457302019-02-05 17:31:26 +05307#include <dt-bindings/dma/k3-udma.h>
Grygorii Strashko08512392019-07-09 10:30:36 +05308#include <dt-bindings/net/ti-dp83867.h>
Lokesh Vutla76a36492018-08-27 15:59:09 +05309
10/ {
11 chosen {
12 stdout-path = "serial2:115200n8";
13 };
14
15 aliases {
16 serial2 = &main_uart0;
Grygorii Strashkob33dd702019-07-09 10:30:35 +053017 ethernet0 = &cpsw_port1;
Lokesh Vutla76a36492018-08-27 15:59:09 +053018 };
19};
20
21&cbass_main{
22 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +053023
Lokesh Vutla76a36492018-08-27 15:59:09 +053024 sdhci1: sdhci@04FA0000 {
Faiz Abbasd8fb3092019-06-11 00:43:31 +053025 compatible = "ti,am654-sdhci-5.1";
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053026 reg = <0x0 0x4FA0000 0x0 0x1000>,
27 <0x0 0x4FB0000 0x0 0x400>;
Faiz Abbasdc2bcc22020-01-16 19:42:18 +053028 clocks =<&k3_clks 48 0>, <&k3_clks 48 1>;
29 clock-names = "clk_ahb", "clk_xin";
Lokesh Vutla61ff6a32019-06-07 19:24:47 +053030 power-domains = <&k3_pds 48 TI_SCI_PD_EXCLUSIVE>;
Lokesh Vutla76a36492018-08-27 15:59:09 +053031 max-frequency = <25000000>;
Faiz Abbasc6eb9e72020-02-26 13:44:33 +053032 ti,otap-del-sel-legacy = <0x0>;
33 ti,otap-del-sel-mmc-hs = <0x0>;
34 ti,otap-del-sel-sd-hs = <0x0>;
35 ti,otap-del-sel-sdr12 = <0x0>;
36 ti,otap-del-sel-sdr25 = <0x0>;
37 ti,otap-del-sel-sdr50 = <0x8>;
38 ti,otap-del-sel-sdr104 = <0x7>;
39 ti,otap-del-sel-ddr50 = <0x4>;
40 ti,otap-del-sel-ddr52 = <0x4>;
41 ti,otap-del-sel-hs200 = <0x7>;
Faiz Abbasaa8d1b72019-06-11 00:43:36 +053042 ti,trm-icp = <0x8>;
Lokesh Vutla76a36492018-08-27 15:59:09 +053043 };
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053044
45};
46
47&cbass_mcu {
48 u-boot,dm-spl;
Grygorii Strashko2d457302019-02-05 17:31:26 +053049
50 navss_mcu: navss-mcu {
51 compatible = "simple-bus";
52 #address-cells = <2>;
53 #size-cells = <2>;
54 ranges;
55
56 ti,sci-dev-id = <119>;
57
58 mcu_ringacc: ringacc@2b800000 {
59 compatible = "ti,am654-navss-ringacc";
60 reg = <0x0 0x2b800000 0x0 0x400000>,
61 <0x0 0x2b000000 0x0 0x400000>,
62 <0x0 0x28590000 0x0 0x100>,
63 <0x0 0x2a500000 0x0 0x40000>;
64 reg-names = "rt", "fifos",
65 "proxy_gcfg", "proxy_target";
66 ti,num-rings = <286>;
67 ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
68 ti,dma-ring-reset-quirk;
69 ti,sci = <&dmsc>;
70 ti,sci-dev-id = <195>;
71 };
72
73 mcu_udmap: udmap@285c0000 {
74 compatible = "ti,k3-navss-udmap";
75 reg = <0x0 0x285c0000 0x0 0x100>,
76 <0x0 0x2a800000 0x0 0x40000>,
77 <0x0 0x2aa00000 0x0 0x40000>;
78 reg-names = "gcfg", "rchanrt", "tchanrt";
79 #dma-cells = <3>;
80
81 ti,ringacc = <&mcu_ringacc>;
82 ti,psil-base = <0x6000>;
83
84 ti,sci = <&dmsc>;
85 ti,sci-dev-id = <194>;
86
87 ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
88 <0x2>; /* TX_CHAN */
89 ti,sci-rm-range-rchan = <0x3>, /* RX_HCHAN */
90 <0x4>; /* RX_CHAN */
91 ti,sci-rm-range-rflow = <0x5>; /* GP RFLOW */
92 dma-coherent;
93 };
94 };
Grygorii Strashkob33dd702019-07-09 10:30:35 +053095
96 mcu_conf: scm_conf@40f00000 {
97 compatible = "syscon";
98 reg = <0x0 0x40f00000 0x0 0x20000>;
99 };
100
101 mcu_cpsw: cpsw_nuss@046000000 {
102 compatible = "ti,am654-cpsw-nuss";
103 #address-cells = <2>;
104 #size-cells = <2>;
105 reg = <0x0 0x46000000 0x0 0x200000>;
106 reg-names = "cpsw_nuss";
107 ranges;
108 dma-coherent;
109 clocks = <&k3_clks 5 10>;
110 clock-names = "fck";
Suman Anna4cd2cc02019-07-29 11:13:41 -0500111 power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
Grygorii Strashkob33dd702019-07-09 10:30:35 +0530112 ti,psil-base = <0x7000>;
113
114 dmas = <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_TX>,
115 <&mcu_udmap &mcu_cpsw 1 UDMA_DIR_TX>,
116 <&mcu_udmap &mcu_cpsw 2 UDMA_DIR_TX>,
117 <&mcu_udmap &mcu_cpsw 3 UDMA_DIR_TX>,
118 <&mcu_udmap &mcu_cpsw 4 UDMA_DIR_TX>,
119 <&mcu_udmap &mcu_cpsw 5 UDMA_DIR_TX>,
120 <&mcu_udmap &mcu_cpsw 6 UDMA_DIR_TX>,
121 <&mcu_udmap &mcu_cpsw 7 UDMA_DIR_TX>,
122 <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_RX>;
123 dma-names = "tx0", "tx1", "tx2", "tx3",
124 "tx4", "tx5", "tx6", "tx7",
125 "rx";
126
127 ports {
128 #address-cells = <1>;
129 #size-cells = <0>;
130 host: host@0 {
131 reg = <0>;
132 ti,label = "host";
133 };
134
135 cpsw_port1: port@1 {
136 reg = <1>;
137 ti,mac-only;
138 ti,label = "port1";
139 ti,syscon-efuse = <&mcu_conf 0x200>;
140 };
141 };
142
143 davinci_mdio: mdio {
144 #address-cells = <1>;
145 #size-cells = <0>;
146 bus_freq = <1000000>;
147 };
148
149 ti,psil-config0 {
150 linux,udma-mode = <UDMA_PKT_MODE>;
151 statictr-type = <PSIL_STATIC_TR_NONE>;
152 ti,needs-epib;
153 ti,psd-size = <16>;
154 };
155
156 ti,psil-config1 {
157 linux,udma-mode = <UDMA_PKT_MODE>;
158 statictr-type = <PSIL_STATIC_TR_NONE>;
159 ti,needs-epib;
160 ti,psd-size = <16>;
161 };
162
163 ti,psil-config2 {
164 linux,udma-mode = <UDMA_PKT_MODE>;
165 statictr-type = <PSIL_STATIC_TR_NONE>;
166 ti,needs-epib;
167 ti,psd-size = <16>;
168 };
169
170 ti,psil-config3 {
171 linux,udma-mode = <UDMA_PKT_MODE>;
172 statictr-type = <PSIL_STATIC_TR_NONE>;
173 ti,needs-epib;
174 ti,psd-size = <16>;
175 };
176
177 ti,psil-config4 {
178 linux,udma-mode = <UDMA_PKT_MODE>;
179 statictr-type = <PSIL_STATIC_TR_NONE>;
180 ti,needs-epib;
181 ti,psd-size = <16>;
182 };
183
184 ti,psil-config5 {
185 linux,udma-mode = <UDMA_PKT_MODE>;
186 statictr-type = <PSIL_STATIC_TR_NONE>;
187 ti,needs-epib;
188 ti,psd-size = <16>;
189 };
190
191 ti,psil-config6 {
192 linux,udma-mode = <UDMA_PKT_MODE>;
193 statictr-type = <PSIL_STATIC_TR_NONE>;
194 ti,needs-epib;
195 ti,psd-size = <16>;
196 };
197
198 ti,psil-config7 {
199 linux,udma-mode = <UDMA_PKT_MODE>;
200 statictr-type = <PSIL_STATIC_TR_NONE>;
201 ti,needs-epib;
202 ti,psd-size = <16>;
203 };
204 };
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530205};
Lokesh Vutla76a36492018-08-27 15:59:09 +0530206
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530207&cbass_wakeup {
208 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530209};
210
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530211&secure_proxy_main {
Lokesh Vutla76a36492018-08-27 15:59:09 +0530212 u-boot,dm-spl;
213};
214
215&dmsc {
216 u-boot,dm-spl;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530217 k3_sysreset: sysreset-controller {
218 compatible = "ti,sci-sysreset";
219 u-boot,dm-spl;
220 };
Lokesh Vutla76a36492018-08-27 15:59:09 +0530221};
222
223&k3_pds {
224 u-boot,dm-spl;
225};
226
227&k3_clks {
228 u-boot,dm-spl;
229};
230
231&k3_reset {
232 u-boot,dm-spl;
233};
234
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500235&wkup_pmx0 {
236 u-boot,dm-spl;
237
238 wkup_i2c0_pins_default {
239 u-boot,dm-spl;
240 };
241};
242
Lokesh Vutla76a36492018-08-27 15:59:09 +0530243&main_pmx0 {
244 u-boot,dm-spl;
245 main_uart0_pins_default: main_uart0_pins_default {
246 pinctrl-single,pins = <
Andreas Dannenbergbfdf4982019-04-29 12:56:44 -0500247 AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */
248 AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */
249 AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */
250 AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */
Lokesh Vutla76a36492018-08-27 15:59:09 +0530251 >;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530252 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530253 };
254
255 main_mmc0_pins_default: main_mmc0_pins_default {
256 pinctrl-single,pins = <
Andreas Dannenbergbfdf4982019-04-29 12:56:44 -0500257 AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
258 AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
259 AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
260 AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
261 AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
262 AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
263 AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
264 AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
265 AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
266 AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530267 AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */
268 AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
Lokesh Vutla76a36492018-08-27 15:59:09 +0530269 >;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530270 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530271 };
272
273 main_mmc1_pins_default: main_mmc1_pins_default {
274 pinctrl-single,pins = <
Andreas Dannenbergbfdf4982019-04-29 12:56:44 -0500275 AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */
276 AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */
277 AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */
278 AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */
279 AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */
280 AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */
281 AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */
282 AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
Lokesh Vutla76a36492018-08-27 15:59:09 +0530283 >;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530284 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530285 };
286
287};
288
289&main_pmx1 {
290 u-boot,dm-spl;
291};
292
Grygorii Strashko08512392019-07-09 10:30:36 +0530293&wkup_pmx0 {
294 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
295 pinctrl-single,pins = <
296 AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
297 AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
298 AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
299 AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
300 AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
301 AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
302 AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
303 AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
304 AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
305 AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
306 AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
307 AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
308 >;
309 };
310
311 mcu_mdio_pins_default: mcu_mdio1_pins_default {
312 pinctrl-single,pins = <
313 AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
314 AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
315 >;
316 };
317};
318
Lokesh Vutla76a36492018-08-27 15:59:09 +0530319&main_uart0 {
320 u-boot,dm-spl;
321 pinctrl-names = "default";
322 pinctrl-0 = <&main_uart0_pins_default>;
323 status = "okay";
324};
325
326&sdhci0 {
327 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530328};
329
330&sdhci1 {
331 u-boot,dm-spl;
332 status = "okay";
333 pinctrl-names = "default";
334 pinctrl-0 = <&main_mmc1_pins_default>;
335 sdhci-caps-mask = <0x7 0x0>;
Faiz Abbasaa8d1b72019-06-11 00:43:36 +0530336 ti,driver-strength-ohm = <50>;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530337};
Grygorii Strashko08512392019-07-09 10:30:36 +0530338
339&mcu_cpsw {
340 pinctrl-names = "default";
341 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
342};
343
344&davinci_mdio {
345 phy0: ethernet-phy@0 {
346 reg = <0>;
347 /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
348 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
Grygorii Strashko08512392019-07-09 10:30:36 +0530349 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
350 };
351};
352
353&cpsw_port1 {
Grygorii Strashkodb0d2622019-11-18 23:04:47 +0200354 phy-mode = "rgmii-rxid";
Grygorii Strashko08512392019-07-09 10:30:36 +0530355 phy-handle = <&phy0>;
356};
357
358&mcu_cpsw {
359 reg = <0x0 0x46000000 0x0 0x200000>,
360 <0x0 0x40f00200 0x0 0x2>;
361 reg-names = "cpsw_nuss", "mac_efuse";
362
363 cpsw-phy-sel@40f04040 {
364 compatible = "ti,am654-cpsw-phy-sel";
365 reg= <0x0 0x40f04040 0x0 0x4>;
366 reg-names = "gmii-sel";
367 };
368};
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500369
370&wkup_i2c0 {
371 u-boot,dm-spl;
372};
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530373
374&usb1 {
375 dr_mode = "peripheral";
376};