blob: d75d1b1c285abaf333aafa2fe851bcc35cb73696 [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 Strashko08512392019-07-09 10:30:36 +05307#include <dt-bindings/net/ti-dp83867.h>
Lokesh Vutla76a36492018-08-27 15:59:09 +05308
9/ {
10 chosen {
11 stdout-path = "serial2:115200n8";
12 };
13
14 aliases {
15 serial2 = &main_uart0;
Grygorii Strashkob33dd702019-07-09 10:30:35 +053016 ethernet0 = &cpsw_port1;
Lokesh Vutla76a36492018-08-27 15:59:09 +053017 };
18};
19
20&cbass_main{
21 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +053022
Lokesh Vutla76a36492018-08-27 15:59:09 +053023 sdhci1: sdhci@04FA0000 {
Faiz Abbasd8fb3092019-06-11 00:43:31 +053024 compatible = "ti,am654-sdhci-5.1";
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053025 reg = <0x0 0x4FA0000 0x0 0x1000>,
26 <0x0 0x4FB0000 0x0 0x400>;
Faiz Abbasdc2bcc22020-01-16 19:42:18 +053027 clocks =<&k3_clks 48 0>, <&k3_clks 48 1>;
28 clock-names = "clk_ahb", "clk_xin";
Lokesh Vutla61ff6a32019-06-07 19:24:47 +053029 power-domains = <&k3_pds 48 TI_SCI_PD_EXCLUSIVE>;
Lokesh Vutla76a36492018-08-27 15:59:09 +053030 max-frequency = <25000000>;
Faiz Abbasc6eb9e72020-02-26 13:44:33 +053031 ti,otap-del-sel-legacy = <0x0>;
32 ti,otap-del-sel-mmc-hs = <0x0>;
33 ti,otap-del-sel-sd-hs = <0x0>;
34 ti,otap-del-sel-sdr12 = <0x0>;
35 ti,otap-del-sel-sdr25 = <0x0>;
36 ti,otap-del-sel-sdr50 = <0x8>;
37 ti,otap-del-sel-sdr104 = <0x7>;
38 ti,otap-del-sel-ddr50 = <0x4>;
39 ti,otap-del-sel-ddr52 = <0x4>;
40 ti,otap-del-sel-hs200 = <0x7>;
Faiz Abbasaa8d1b72019-06-11 00:43:36 +053041 ti,trm-icp = <0x8>;
Lokesh Vutla76a36492018-08-27 15:59:09 +053042 };
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053043
44};
45
46&cbass_mcu {
47 u-boot,dm-spl;
Grygorii Strashko2d457302019-02-05 17:31:26 +053048
Vignesh Raghavendra01250d82020-07-07 13:43:35 +053049 mcu_navss {
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +053050 u-boot,dm-spl;
Grygorii Strashko2d457302019-02-05 17:31:26 +053051
Vignesh Raghavendra01250d82020-07-07 13:43:35 +053052 ringacc@2b800000 {
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +053053 u-boot,dm-spl;
Grygorii Strashko2d457302019-02-05 17:31:26 +053054 };
55
Vignesh Raghavendra01250d82020-07-07 13:43:35 +053056 dma-controller@285c0000 {
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +053057 u-boot,dm-spl;
Grygorii Strashko2d457302019-02-05 17:31:26 +053058 };
59 };
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053060};
Lokesh Vutla76a36492018-08-27 15:59:09 +053061
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053062&cbass_wakeup {
63 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +053064};
65
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053066&secure_proxy_main {
Lokesh Vutla76a36492018-08-27 15:59:09 +053067 u-boot,dm-spl;
68};
69
70&dmsc {
71 u-boot,dm-spl;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +053072 k3_sysreset: sysreset-controller {
73 compatible = "ti,sci-sysreset";
74 u-boot,dm-spl;
75 };
Lokesh Vutla76a36492018-08-27 15:59:09 +053076};
77
78&k3_pds {
79 u-boot,dm-spl;
80};
81
82&k3_clks {
83 u-boot,dm-spl;
84};
85
86&k3_reset {
87 u-boot,dm-spl;
88};
89
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -050090&wkup_pmx0 {
91 u-boot,dm-spl;
92
93 wkup_i2c0_pins_default {
94 u-boot,dm-spl;
95 };
96};
97
Lokesh Vutla76a36492018-08-27 15:59:09 +053098&main_pmx0 {
99 u-boot,dm-spl;
100 main_uart0_pins_default: main_uart0_pins_default {
101 pinctrl-single,pins = <
Andreas Dannenbergbfdf4982019-04-29 12:56:44 -0500102 AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */
103 AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */
104 AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */
105 AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */
Lokesh Vutla76a36492018-08-27 15:59:09 +0530106 >;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530107 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530108 };
109
110 main_mmc0_pins_default: main_mmc0_pins_default {
111 pinctrl-single,pins = <
Andreas Dannenbergbfdf4982019-04-29 12:56:44 -0500112 AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */
113 AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */
114 AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */
115 AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */
116 AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */
117 AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */
118 AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */
119 AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */
120 AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */
121 AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530122 AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */
123 AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
Lokesh Vutla76a36492018-08-27 15:59:09 +0530124 >;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530125 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530126 };
127
128 main_mmc1_pins_default: main_mmc1_pins_default {
129 pinctrl-single,pins = <
Andreas Dannenbergbfdf4982019-04-29 12:56:44 -0500130 AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */
131 AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */
132 AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */
133 AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */
134 AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */
135 AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */
136 AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */
137 AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
Lokesh Vutla76a36492018-08-27 15:59:09 +0530138 >;
Lokesh Vutla3d09ed32018-11-02 19:51:08 +0530139 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530140 };
141
Faiz Abbas07383712020-08-03 11:35:12 +0530142 usb0_pins_default: usb0_pins_default {
143 pinctrl-single,pins = <
144 AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */
145 >;
146 u-boot,dm-spl;
147 };
Lokesh Vutla76a36492018-08-27 15:59:09 +0530148};
149
150&main_pmx1 {
151 u-boot,dm-spl;
152};
153
Grygorii Strashko08512392019-07-09 10:30:36 +0530154&wkup_pmx0 {
155 mcu_cpsw_pins_default: mcu_cpsw_pins_default {
156 pinctrl-single,pins = <
157 AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
158 AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
159 AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
160 AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
161 AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
162 AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
163 AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
164 AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
165 AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
166 AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
167 AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
168 AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
169 >;
170 };
171
172 mcu_mdio_pins_default: mcu_mdio1_pins_default {
173 pinctrl-single,pins = <
174 AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
175 AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
176 >;
177 };
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530178
179 mcu-fss0-ospi0-pins-default {
180 u-boot,dm-spl;
181 };
Grygorii Strashko08512392019-07-09 10:30:36 +0530182};
183
Lokesh Vutla76a36492018-08-27 15:59:09 +0530184&main_uart0 {
185 u-boot,dm-spl;
186 pinctrl-names = "default";
187 pinctrl-0 = <&main_uart0_pins_default>;
188 status = "okay";
189};
190
191&sdhci0 {
192 u-boot,dm-spl;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530193};
194
195&sdhci1 {
196 u-boot,dm-spl;
197 status = "okay";
198 pinctrl-names = "default";
199 pinctrl-0 = <&main_mmc1_pins_default>;
200 sdhci-caps-mask = <0x7 0x0>;
Faiz Abbasaa8d1b72019-06-11 00:43:36 +0530201 ti,driver-strength-ohm = <50>;
Lokesh Vutla76a36492018-08-27 15:59:09 +0530202};
Grygorii Strashko08512392019-07-09 10:30:36 +0530203
204&mcu_cpsw {
205 pinctrl-names = "default";
206 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
207};
208
209&davinci_mdio {
210 phy0: ethernet-phy@0 {
211 reg = <0>;
212 /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
213 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
Grygorii Strashko08512392019-07-09 10:30:36 +0530214 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
215 };
216};
217
218&cpsw_port1 {
Grygorii Strashkodb0d2622019-11-18 23:04:47 +0200219 phy-mode = "rgmii-rxid";
Grygorii Strashko08512392019-07-09 10:30:36 +0530220 phy-handle = <&phy0>;
221};
222
223&mcu_cpsw {
224 reg = <0x0 0x46000000 0x0 0x200000>,
225 <0x0 0x40f00200 0x0 0x2>;
226 reg-names = "cpsw_nuss", "mac_efuse";
Vignesh Raghavendra388b1172020-07-06 13:36:56 +0530227 /delete-property/ ranges;
Grygorii Strashko08512392019-07-09 10:30:36 +0530228
229 cpsw-phy-sel@40f04040 {
230 compatible = "ti,am654-cpsw-phy-sel";
231 reg= <0x0 0x40f04040 0x0 0x4>;
232 reg-names = "gmii-sel";
233 };
234};
Andreas Dannenbergd20cf7b2019-06-04 18:08:15 -0500235
236&wkup_i2c0 {
237 u-boot,dm-spl;
238};
Vignesh Raghavendra5bbcabb2019-12-09 10:37:33 +0530239
240&usb1 {
241 dr_mode = "peripheral";
242};
Vignesh Raghavendra1ee79552020-02-04 11:09:51 +0530243
244&fss {
245 u-boot,dm-spl;
246};
247
248&ospi0 {
249 u-boot,dm-spl;
250
251 flash@0{
252 u-boot,dm-spl;
253 };
254};
Dave Gerlachc70c4962020-07-15 23:40:00 -0500255
256&chipid {
257 u-boot,dm-spl;
258};
Faiz Abbas07383712020-08-03 11:35:12 +0530259
260&dwc3_0 {
261 status = "okay";
262 u-boot,dm-spl;
263};
264
265&usb0_phy {
266 status = "okay";
267 u-boot,dm-spl;
268};
269
270&usb0 {
271 pinctrl-names = "default";
272 pinctrl-0 = <&usb0_pins_default>;
273 dr_mode = "peripheral";
274 u-boot,dm-spl;
275};
276
277&scm_conf {
278 u-boot,dm-spl;
279};