blob: b030d750f2a14d46a94d32592779f2d2304ca583 [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 Strashko6f2929d2019-07-09 10:30:36 +05307#include <dt-bindings/net/ti-dp83867.h>
Lokesh Vutla853f7f52018-08-27 15:59:09 +05308
9/ {
10 chosen {
11 stdout-path = "serial2:115200n8";
12 };
13
14 aliases {
15 serial2 = &main_uart0;
Grygorii Strashko5195c102019-07-09 10:30:35 +053016 ethernet0 = &cpsw_port1;
Aswath Govindraju62be2362020-11-20 21:18:55 +053017 usb0 = &usb0;
18 usb1 = &usb1;
Lokesh Vutla853f7f52018-08-27 15:59:09 +053019 };
20};
21
22&cbass_main{
23 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +053024};
25
Lokesh Vutla2d0eba32018-11-02 19:51:08 +053026&cbass_mcu {
27 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053028
Vignesh Raghavendra99faf0d2020-07-07 13:43:35 +053029 mcu_navss {
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +053030 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053031
Vignesh Raghavendra99faf0d2020-07-07 13:43:35 +053032 ringacc@2b800000 {
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +053033 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053034 };
35
Vignesh Raghavendra99faf0d2020-07-07 13:43:35 +053036 dma-controller@285c0000 {
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +053037 u-boot,dm-spl;
Grygorii Strashko736b6c32019-02-05 17:31:26 +053038 };
39 };
Lokesh Vutla2d0eba32018-11-02 19:51:08 +053040};
41
42&cbass_wakeup {
43 u-boot,dm-spl;
44};
45
46&secure_proxy_main {
Lokesh Vutla853f7f52018-08-27 15:59:09 +053047 u-boot,dm-spl;
48};
49
50&dmsc {
51 u-boot,dm-spl;
Lokesh Vutla2d0eba32018-11-02 19:51:08 +053052 k3_sysreset: sysreset-controller {
53 compatible = "ti,sci-sysreset";
54 u-boot,dm-spl;
55 };
Lokesh Vutla853f7f52018-08-27 15:59:09 +053056};
57
58&k3_pds {
59 u-boot,dm-spl;
60};
61
62&k3_clks {
63 u-boot,dm-spl;
64};
65
66&k3_reset {
67 u-boot,dm-spl;
68};
69
Andreas Dannenberg7e0363b2019-06-04 18:08:15 -050070&wkup_pmx0 {
71 u-boot,dm-spl;
72
73 wkup_i2c0_pins_default {
74 u-boot,dm-spl;
75 };
76};
77
Lokesh Vutla853f7f52018-08-27 15:59:09 +053078&main_pmx0 {
79 u-boot,dm-spl;
80 main_uart0_pins_default: main_uart0_pins_default {
81 pinctrl-single,pins = <
Andreas Dannenberg7202af92019-04-29 12:56:44 -050082 AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */
83 AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */
84 AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */
85 AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */
Lokesh Vutla853f7f52018-08-27 15:59:09 +053086 >;
Lokesh Vutla2d0eba32018-11-02 19:51:08 +053087 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +053088 };
89
Faiz Abbasc20aee32020-08-03 11:35:12 +053090 usb0_pins_default: usb0_pins_default {
91 pinctrl-single,pins = <
92 AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */
93 >;
94 u-boot,dm-spl;
95 };
Lokesh Vutla853f7f52018-08-27 15:59:09 +053096};
97
98&main_pmx1 {
99 u-boot,dm-spl;
100};
101
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530102&wkup_pmx0 {
103 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
104 pinctrl-single,pins = <
105 AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
106 AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
107 AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
108 AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
109 AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
110 AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
111 AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
112 AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
113 AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
114 AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
115 AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
116 AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
117 >;
118 };
119
120 mcu_mdio_pins_default: mcu_mdio1_pins_default {
121 pinctrl-single,pins = <
122 AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
123 AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
124 >;
125 };
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +0530126
127 mcu-fss0-ospi0-pins-default {
128 u-boot,dm-spl;
129 };
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530130};
131
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530132&main_uart0 {
133 u-boot,dm-spl;
134 pinctrl-names = "default";
135 pinctrl-0 = <&main_uart0_pins_default>;
136 status = "okay";
137};
138
Faiz Abbas2121c7e2021-02-04 15:10:56 +0530139&main_mmc0_pins_default {
140 u-boot,dm-spl;
141};
142
143&main_mmc1_pins_default {
144 u-boot,dm-spl;
145};
146
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530147&sdhci0 {
148 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530149};
150
151&sdhci1 {
152 u-boot,dm-spl;
Lokesh Vutla853f7f52018-08-27 15:59:09 +0530153};
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530154
155&mcu_cpsw {
156 pinctrl-names = "default";
157 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
158};
159
160&davinci_mdio {
161 phy0: ethernet-phy@0 {
162 reg = <0>;
163 /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
164 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530165 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
166 };
167};
168
169&cpsw_port1 {
Grygorii Strashko5efb6922019-11-18 23:04:47 +0200170 phy-mode = "rgmii-rxid";
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530171 phy-handle = <&phy0>;
172};
173
174&mcu_cpsw {
175 reg = <0x0 0x46000000 0x0 0x200000>,
176 <0x0 0x40f00200 0x0 0x2>;
177 reg-names = "cpsw_nuss", "mac_efuse";
Vignesh Raghavendra3f09ebf2020-07-06 13:36:56 +0530178 /delete-property/ ranges;
Grygorii Strashko6f2929d2019-07-09 10:30:36 +0530179
180 cpsw-phy-sel@40f04040 {
181 compatible = "ti,am654-cpsw-phy-sel";
182 reg= <0x0 0x40f04040 0x0 0x4>;
183 reg-names = "gmii-sel";
184 };
185};
Andreas Dannenberg7e0363b2019-06-04 18:08:15 -0500186
187&wkup_i2c0 {
188 u-boot,dm-spl;
189};
Vignesh Raghavendra60120072019-12-09 10:37:33 +0530190
191&usb1 {
192 dr_mode = "peripheral";
193};
Vignesh Raghavendra9e9dfc12020-02-04 11:09:51 +0530194
195&fss {
196 u-boot,dm-spl;
197};
198
199&ospi0 {
200 u-boot,dm-spl;
201
202 flash@0{
203 u-boot,dm-spl;
204 };
205};
Dave Gerlachbec8b942020-07-15 23:40:00 -0500206
207&chipid {
208 u-boot,dm-spl;
209};
Faiz Abbasc20aee32020-08-03 11:35:12 +0530210
211&dwc3_0 {
212 status = "okay";
213 u-boot,dm-spl;
214};
215
216&usb0_phy {
217 status = "okay";
218 u-boot,dm-spl;
219};
220
221&usb0 {
222 pinctrl-names = "default";
223 pinctrl-0 = <&usb0_pins_default>;
Aswath Govindrajud3af9e32020-11-20 21:18:54 +0530224 dr_mode = "host";
Faiz Abbasc20aee32020-08-03 11:35:12 +0530225 u-boot,dm-spl;
226};
227
228&scm_conf {
229 u-boot,dm-spl;
230};