1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
6 #include <dt-bindings/dma/k3-udma.h>
7 #include <dt-bindings/net/ti-dp83867.h>
11 stdout-path = "serial2:115200n8";
16 ethernet0 = &cpsw_port1;
27 timer1: timer@40400000 {
28 compatible = "ti,omap5430-timer";
29 reg = <0x0 0x40400000 0x0 0x80>;
31 clock-frequency = <25000000>;
35 mcu_conf: scm_conf@40f00000 {
36 compatible = "syscon", "simple-mfd";
37 reg = <0x0 0x40f00000 0x0 0x20000>;
40 ranges = <0x0 0x0 0x40f00000 0x20000>;
42 phy_sel: cpsw-phy-sel@4040 {
43 compatible = "ti,am654-cpsw-phy-sel";
45 reg-names = "gmii-sel";
49 cbass_mcu_navss: mcu_navss {
50 compatible = "simple-bus";
57 ti,sci-dev-id = <232>;
60 mcu_ringacc: ringacc@2b800000 {
61 compatible = "ti,am654-navss-ringacc";
62 reg = <0x0 0x2b800000 0x0 0x400000>,
63 <0x0 0x2b000000 0x0 0x400000>,
64 <0x0 0x28590000 0x0 0x100>,
65 <0x0 0x2a500000 0x0 0x40000>;
66 reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
68 ti,sci-rm-range-gp-rings = <0x1>; /* GP ring range */
70 ti,sci-dev-id = <235>;
74 mcu_udmap: udmap@31150000 {
75 compatible = "ti,j721e-navss-mcu-udmap";
76 reg = <0x0 0x285c0000 0x0 0x100>,
77 <0x0 0x2a800000 0x0 0x40000>,
78 <0x0 0x2aa00000 0x0 0x40000>;
79 reg-names = "gcfg", "rchanrt", "tchanrt";
82 ti,ringacc = <&mcu_ringacc>;
83 ti,psil-base = <0x6000>;
86 ti,sci-dev-id = <236>;
88 ti,sci-rm-range-tchan = <0x0d>, /* TX_CHAN */
89 <0x0f>; /* TX_HCHAN */
90 ti,sci-rm-range-rchan = <0x0a>, /* RX_CHAN */
91 <0x0b>; /* RX_HCHAN */
92 ti,sci-rm-range-rflow = <0x00>; /* GP RFLOW */
97 mcu_cpsw: ethernet@046000000 {
98 compatible = "ti,j721e-cpsw-nuss";
101 reg = <0x0 0x46000000 0x0 0x200000>;
102 reg-names = "cpsw_nuss";
105 clocks = <&k3_clks 18 22>;
107 power-domains = <&k3_pds 18 TI_SCI_PD_EXCLUSIVE>;
108 ti,psil-base = <0x7000>;
109 cpsw-phy-sel = <&phy_sel>;
111 dmas = <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_TX>,
112 <&mcu_udmap &mcu_cpsw 1 UDMA_DIR_TX>,
113 <&mcu_udmap &mcu_cpsw 2 UDMA_DIR_TX>,
114 <&mcu_udmap &mcu_cpsw 3 UDMA_DIR_TX>,
115 <&mcu_udmap &mcu_cpsw 4 UDMA_DIR_TX>,
116 <&mcu_udmap &mcu_cpsw 5 UDMA_DIR_TX>,
117 <&mcu_udmap &mcu_cpsw 6 UDMA_DIR_TX>,
118 <&mcu_udmap &mcu_cpsw 7 UDMA_DIR_TX>,
119 <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_RX>;
120 dma-names = "tx0", "tx1", "tx2", "tx3",
121 "tx4", "tx5", "tx6", "tx7",
125 #address-cells = <1>;
137 ti,syscon-efuse = <&mcu_conf 0x200>;
142 #address-cells = <1>;
144 bus_freq = <1000000>;
148 clocks = <&k3_clks 18 2>;
149 clock-names = "cpts";
150 interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>;
151 interrupt-names = "cpts";
152 ti,cpts-ext-ts-inputs = <4>;
153 ti,cpts-periodic-outputs = <2>;
157 linux,udma-mode = <UDMA_PKT_MODE>;
158 statictr-type = <PSIL_STATIC_TR_NONE>;
164 linux,udma-mode = <UDMA_PKT_MODE>;
165 statictr-type = <PSIL_STATIC_TR_NONE>;
171 linux,udma-mode = <UDMA_PKT_MODE>;
172 statictr-type = <PSIL_STATIC_TR_NONE>;
178 linux,udma-mode = <UDMA_PKT_MODE>;
179 statictr-type = <PSIL_STATIC_TR_NONE>;
185 linux,udma-mode = <UDMA_PKT_MODE>;
186 statictr-type = <PSIL_STATIC_TR_NONE>;
192 linux,udma-mode = <UDMA_PKT_MODE>;
193 statictr-type = <PSIL_STATIC_TR_NONE>;
199 linux,udma-mode = <UDMA_PKT_MODE>;
200 statictr-type = <PSIL_STATIC_TR_NONE>;
206 linux,udma-mode = <UDMA_PKT_MODE>;
207 statictr-type = <PSIL_STATIC_TR_NONE>;
220 k3_sysreset: sysreset-controller {
221 compatible = "ti,sci-sysreset";
240 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
241 pinctrl-single,pins = <
242 J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
243 J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
244 J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
245 J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
246 J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
247 J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
248 J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
249 J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
250 J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
251 J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
252 J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
253 J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
257 mcu_mdio_pins_default: mcu_mdio1_pins_default {
258 pinctrl-single,pins = <
259 J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
260 J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
285 &main_usbss0_pins_default {
295 dr_mode = "peripheral";
300 pinctrl-names = "default";
301 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
305 phy0: ethernet-phy@0 {
307 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
308 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
313 phy-mode = "rgmii-rxid";
314 phy-handle = <&phy0>;
318 reg = <0x0 0x46000000 0x0 0x200000>,
319 <0x0 0x40f00200 0x0 0x2>;
320 reg-names = "cpsw_nuss", "mac_efuse";
322 cpsw-phy-sel@40f04040 {
323 compatible = "ti,am654-cpsw-phy-sel";
324 reg= <0x0 0x40f04040 0x0 0x4>;
325 reg-names = "gmii-sel";
329 &main_mmc1_pins_default {
333 &wkup_i2c0_pins_default {
345 &main_i2c0_pins_default {