1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
6 #include <dt-bindings/pinctrl/k3.h>
7 #include <dt-bindings/dma/k3-udma.h>
8 #include <dt-bindings/net/ti-dp83867.h>
12 stdout-path = "serial2:115200n8";
16 serial2 = &main_uart0;
17 ethernet0 = &cpsw_port1;
24 sdhci1: sdhci@04FA0000 {
25 compatible = "ti,am654-sdhci-5.1";
26 reg = <0x0 0x4FA0000 0x0 0x1000>,
27 <0x0 0x4FB0000 0x0 0x400>;
28 clocks =<&k3_clks 48 0>, <&k3_clks 48 1>;
29 clock-names = "clk_ahb", "clk_xin";
30 power-domains = <&k3_pds 48 TI_SCI_PD_EXCLUSIVE>;
31 max-frequency = <25000000>;
32 ti,otap-del-sel = <0x2>;
41 navss_mcu: navss-mcu {
42 compatible = "simple-bus";
47 ti,sci-dev-id = <119>;
49 mcu_ringacc: ringacc@2b800000 {
50 compatible = "ti,am654-navss-ringacc";
51 reg = <0x0 0x2b800000 0x0 0x400000>,
52 <0x0 0x2b000000 0x0 0x400000>,
53 <0x0 0x28590000 0x0 0x100>,
54 <0x0 0x2a500000 0x0 0x40000>;
55 reg-names = "rt", "fifos",
56 "proxy_gcfg", "proxy_target";
58 ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
59 ti,dma-ring-reset-quirk;
61 ti,sci-dev-id = <195>;
64 mcu_udmap: udmap@285c0000 {
65 compatible = "ti,k3-navss-udmap";
66 reg = <0x0 0x285c0000 0x0 0x100>,
67 <0x0 0x2a800000 0x0 0x40000>,
68 <0x0 0x2aa00000 0x0 0x40000>;
69 reg-names = "gcfg", "rchanrt", "tchanrt";
72 ti,ringacc = <&mcu_ringacc>;
73 ti,psil-base = <0x6000>;
76 ti,sci-dev-id = <194>;
78 ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
80 ti,sci-rm-range-rchan = <0x3>, /* RX_HCHAN */
82 ti,sci-rm-range-rflow = <0x5>; /* GP RFLOW */
87 mcu_conf: scm_conf@40f00000 {
88 compatible = "syscon";
89 reg = <0x0 0x40f00000 0x0 0x20000>;
92 mcu_cpsw: cpsw_nuss@046000000 {
93 compatible = "ti,am654-cpsw-nuss";
96 reg = <0x0 0x46000000 0x0 0x200000>;
97 reg-names = "cpsw_nuss";
100 clocks = <&k3_clks 5 10>;
102 power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
103 ti,psil-base = <0x7000>;
105 dmas = <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_TX>,
106 <&mcu_udmap &mcu_cpsw 1 UDMA_DIR_TX>,
107 <&mcu_udmap &mcu_cpsw 2 UDMA_DIR_TX>,
108 <&mcu_udmap &mcu_cpsw 3 UDMA_DIR_TX>,
109 <&mcu_udmap &mcu_cpsw 4 UDMA_DIR_TX>,
110 <&mcu_udmap &mcu_cpsw 5 UDMA_DIR_TX>,
111 <&mcu_udmap &mcu_cpsw 6 UDMA_DIR_TX>,
112 <&mcu_udmap &mcu_cpsw 7 UDMA_DIR_TX>,
113 <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_RX>;
114 dma-names = "tx0", "tx1", "tx2", "tx3",
115 "tx4", "tx5", "tx6", "tx7",
119 #address-cells = <1>;
130 ti,syscon-efuse = <&mcu_conf 0x200>;
135 #address-cells = <1>;
137 bus_freq = <1000000>;
141 linux,udma-mode = <UDMA_PKT_MODE>;
142 statictr-type = <PSIL_STATIC_TR_NONE>;
148 linux,udma-mode = <UDMA_PKT_MODE>;
149 statictr-type = <PSIL_STATIC_TR_NONE>;
155 linux,udma-mode = <UDMA_PKT_MODE>;
156 statictr-type = <PSIL_STATIC_TR_NONE>;
162 linux,udma-mode = <UDMA_PKT_MODE>;
163 statictr-type = <PSIL_STATIC_TR_NONE>;
169 linux,udma-mode = <UDMA_PKT_MODE>;
170 statictr-type = <PSIL_STATIC_TR_NONE>;
176 linux,udma-mode = <UDMA_PKT_MODE>;
177 statictr-type = <PSIL_STATIC_TR_NONE>;
183 linux,udma-mode = <UDMA_PKT_MODE>;
184 statictr-type = <PSIL_STATIC_TR_NONE>;
190 linux,udma-mode = <UDMA_PKT_MODE>;
191 statictr-type = <PSIL_STATIC_TR_NONE>;
208 k3_sysreset: sysreset-controller {
209 compatible = "ti,sci-sysreset";
229 wkup_i2c0_pins_default {
236 main_uart0_pins_default: main_uart0_pins_default {
237 pinctrl-single,pins = <
238 AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */
239 AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */
240 AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */
241 AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */
246 main_mmc0_pins_default: main_mmc0_pins_default {
247 pinctrl-single,pins = <
248 AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
249 AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
250 AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
251 AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
252 AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
253 AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
254 AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
255 AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
256 AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
257 AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
258 AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */
259 AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
264 main_mmc1_pins_default: main_mmc1_pins_default {
265 pinctrl-single,pins = <
266 AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */
267 AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */
268 AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */
269 AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */
270 AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */
271 AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */
272 AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */
273 AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
285 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
286 pinctrl-single,pins = <
287 AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
288 AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
289 AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
290 AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
291 AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
292 AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
293 AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
294 AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
295 AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
296 AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
297 AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
298 AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
302 mcu_mdio_pins_default: mcu_mdio1_pins_default {
303 pinctrl-single,pins = <
304 AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
305 AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
312 pinctrl-names = "default";
313 pinctrl-0 = <&main_uart0_pins_default>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&main_mmc1_pins_default>;
326 sdhci-caps-mask = <0x7 0x0>;
327 ti,driver-strength-ohm = <50>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
336 phy0: ethernet-phy@0 {
338 /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
339 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
340 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
345 phy-mode = "rgmii-rxid";
346 phy-handle = <&phy0>;
350 reg = <0x0 0x46000000 0x0 0x200000>,
351 <0x0 0x40f00200 0x0 0x2>;
352 reg-names = "cpsw_nuss", "mac_efuse";
354 cpsw-phy-sel@40f04040 {
355 compatible = "ti,am654-cpsw-phy-sel";
356 reg= <0x0 0x40f04040 0x0 0x4>;
357 reg-names = "gmii-sel";