blob: a14b148e11f11be84f6f22dbd39435adb0871408 [file] [log] [blame]
Lokesh Vutlaac736802019-06-13 10:29:55 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
4 */
5
6/dts-v1/;
7
8#include "k3-j721e-som-p0.dtsi"
Praneeth Bajjuri11077532020-12-03 17:43:47 -06009#include "k3-j721e-ddr-evm-lp4-4266.dtsi"
Lokesh Vutla430a0b32019-10-07 19:26:37 +053010#include "k3-j721e-ddr.dtsi"
Aswath Govindrajudcfb97e2022-01-28 13:41:39 +053011#include <dt-bindings/phy/phy-cadence.h>
Lokesh Vutlaac736802019-06-13 10:29:55 +053012
13/ {
14 aliases {
15 remoteproc0 = &sysctrler;
16 remoteproc1 = &a72_0;
17 };
18
19 chosen {
20 stdout-path = "serial2:115200n8";
21 tick-timer = &timer1;
22 };
23
24 a72_0: a72@0 {
25 compatible = "ti,am654-rproc";
26 reg = <0x0 0x00a90000 0x0 0x10>;
27 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
28 <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>;
29 resets = <&k3_reset 202 0>;
Nishanth Menon975b78c2021-01-06 13:20:31 -060030 clocks = <&k3_clks 61 1>;
Lokesh Vutlaac736802019-06-13 10:29:55 +053031 assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>;
32 assigned-clock-rates = <2000000000>, <200000000>;
33 ti,sci = <&dmsc>;
34 ti,sci-proc-id = <32>;
35 ti,sci-host-id = <10>;
36 u-boot,dm-spl;
37 };
38
Faiz Abbas6f08b482020-02-26 13:44:37 +053039 clk_200mhz: dummy_clock_200mhz {
Lokesh Vutlaac736802019-06-13 10:29:55 +053040 compatible = "fixed-clock";
41 #clock-cells = <0>;
42 clock-frequency = <200000000>;
43 u-boot,dm-spl;
44 };
Vignesh Raghavendra4bdd3302020-01-27 17:59:25 +053045
Faiz Abbas6f08b482020-02-26 13:44:37 +053046 clk_19_2mhz: dummy_clock_19_2mhz {
Vignesh Raghavendra4bdd3302020-01-27 17:59:25 +053047 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <19200000>;
50 u-boot,dm-spl;
51 };
Lokesh Vutlaac736802019-06-13 10:29:55 +053052};
53
54&cbass_mcu_wakeup {
55 mcu_secproxy: secproxy@28380000 {
56 u-boot,dm-spl;
57 compatible = "ti,am654-secure-proxy";
58 reg = <0x0 0x2a380000 0x0 0x80000>,
59 <0x0 0x2a400000 0x0 0x80000>,
60 <0x0 0x2a480000 0x0 0x80000>;
61 reg-names = "rt", "scfg", "target_data";
62 #mbox-cells = <1>;
63 };
64
65 sysctrler: sysctrler {
66 u-boot,dm-spl;
67 compatible = "ti,am654-system-controller";
68 mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>;
69 mbox-names = "tx", "rx";
70 };
Keerthybe86d322019-10-24 15:00:58 +053071
72 wkup_vtm0: wkup_vtm@42040000 {
73 compatible = "ti,am654-vtm", "ti,j721e-avs";
74 reg = <0x0 0x42040000 0x0 0x330>;
75 power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
76 #thermal-sensor-cells = <1>;
77 };
Vignesh Raghavendra98181972021-06-07 19:47:50 +053078
79 dm_tifs: dm-tifs {
80 compatible = "ti,j721e-dm-sci";
81 ti,host-id = <3>;
82 ti,secure-host;
83 mbox-names = "rx", "tx";
84 mboxes= <&mcu_secproxy 21>,
85 <&mcu_secproxy 23>;
86 u-boot,dm-spl;
87 };
Lokesh Vutlaac736802019-06-13 10:29:55 +053088};
89
Tero Kristo3cafcd82020-02-14 11:18:17 +020090&cbass_main {
91 main_esm: esm@700000 {
92 compatible = "ti,j721e-esm";
93 reg = <0x0 0x700000 0x0 0x1000>;
94 ti,esm-pins = <344>, <345>;
95 u-boot,dm-spl;
96 };
97};
98
Lokesh Vutlaac736802019-06-13 10:29:55 +053099&dmsc {
100 mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>;
101 mbox-names = "tx", "rx", "notify";
102 ti,host-id = <4>;
103 ti,secure-host;
104};
105
106&wkup_pmx0 {
107 wkup_uart0_pins_default: wkup_uart0_pins_default {
108 u-boot,dm-spl;
109 pinctrl-single,pins = <
110 J721E_WKUP_IOPAD(0xa0, PIN_INPUT, 0) /* (J29) WKUP_UART0_RXD */
111 J721E_WKUP_IOPAD(0xa4, PIN_OUTPUT, 0) /* (J28) WKUP_UART0_TXD */
112 >;
113 };
114
115 mcu_uart0_pins_default: mcu_uart0_pins_default {
116 u-boot,dm-spl;
117 pinctrl-single,pins = <
118 J721E_WKUP_IOPAD(0xe8, PIN_INPUT, 0) /* (H29) WKUP_GPIO0_14.MCU_UART0_CTSn */
119 J721E_WKUP_IOPAD(0xec, PIN_OUTPUT, 0) /* (J27) WKUP_GPIO0_15.MCU_UART0_RTSn */
120 J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */
121 J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */
122 >;
123 };
Keerthyc6f86542019-10-24 15:00:59 +0530124
125 wkup_i2c0_pins_default: wkup-i2c0-pins-default {
126 pinctrl-single,pins = <
127 J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
128 J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
129 >;
130 };
Vignesh Raghavendrada674372020-02-04 11:09:52 +0530131
132 mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
133 pinctrl-single,pins = <
134 J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_OSPI0_CLK */
135 J721E_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* MCU_OSPI0_DQS */
136 J721E_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* MCU_OSPI0_D0 */
137 J721E_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* MCU_OSPI0_D1 */
138 J721E_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* MCU_OSPI0_D2 */
139 J721E_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* MCU_OSPI0_D3 */
140 J721E_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* MCU_OSPI0_D4 */
141 J721E_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* MCU_OSPI0_D5 */
142 J721E_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* MCU_OSPI0_D6 */
143 J721E_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* MCU_OSPI0_D7 */
144 J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */
145 >;
146 };
Keerthy71156c92020-03-04 10:09:59 +0530147
148 mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
149 u-boot,dm-spl;
150 pinctrl-single,pins = <
151 J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
152 J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
153 J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
154 J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
155 J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
156 J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
157 J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
158 J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
159 >;
160 };
Lokesh Vutlaac736802019-06-13 10:29:55 +0530161};
162
163&main_pmx0 {
164 main_uart0_pins_default: main_uart0_pins_default {
165 u-boot,dm-spl;
166 pinctrl-single,pins = <
167 J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */
168 J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */
169 J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */
170 J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */
171 >;
172 };
Vignesh Raghavendra04ed4932019-11-18 19:16:35 +0530173
174 main_usbss0_pins_default: main_usbss0_pins_default {
175 pinctrl-single,pins = <
176 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
177 J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
178 >;
179 };
Faiz Abbasc67d3892020-01-16 19:42:21 +0530180
181 main_mmc1_pins_default: main_mmc1_pins_default {
182 pinctrl-single,pins = <
183 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
184 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
185 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
186 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
187 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
188 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
189 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
190 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
191 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
192 >;
193 };
Vignesh Raghavendra8a290cc2020-01-27 23:22:15 +0530194
195 main_i2c0_pins_default: main-i2c0-pins-default {
196 pinctrl-single,pins = <
197 J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
198 J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
199 >;
200 };
Lokesh Vutlaac736802019-06-13 10:29:55 +0530201};
202
203&wkup_uart0 {
204 u-boot,dm-spl;
205 pinctrl-names = "default";
206 pinctrl-0 = <&wkup_uart0_pins_default>;
207 status = "okay";
208};
209
210&mcu_uart0 {
Lokesh Vutlabad3d412020-02-03 19:16:53 +0530211 /delete-property/ power-domains;
212 /delete-property/ clocks;
213 /delete-property/ clock-names;
Lokesh Vutlaac736802019-06-13 10:29:55 +0530214 pinctrl-names = "default";
215 pinctrl-0 = <&mcu_uart0_pins_default>;
216 status = "okay";
Lokesh Vutlabad3d412020-02-03 19:16:53 +0530217 clock-frequency = <48000000>;
Lokesh Vutlaac736802019-06-13 10:29:55 +0530218};
219
220&main_uart0 {
221 pinctrl-names = "default";
222 pinctrl-0 = <&main_uart0_pins_default>;
223 status = "okay";
224 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
225};
226
227&main_sdhci0 {
228 /delete-property/ power-domains;
229 /delete-property/ assigned-clocks;
230 /delete-property/ assigned-clock-parents;
231 clock-names = "clk_xin";
232 clocks = <&clk_200mhz>;
233 ti,driver-strength-ohm = <50>;
234 non-removable;
235 bus-width = <8>;
236};
237
238&main_sdhci1 {
239 /delete-property/ power-domains;
240 /delete-property/ assigned-clocks;
241 /delete-property/ assigned-clock-parents;
Faiz Abbasc67d3892020-01-16 19:42:21 +0530242 pinctrl-names = "default";
243 pinctrl-0 = <&main_mmc1_pins_default>;
Lokesh Vutlaac736802019-06-13 10:29:55 +0530244 clock-names = "clk_xin";
245 clocks = <&clk_200mhz>;
246 ti,driver-strength-ohm = <50>;
247};
248
Keerthyc6f86542019-10-24 15:00:59 +0530249&wkup_i2c0 {
250 u-boot,dm-spl;
251 tps659413a: tps659413a@48 {
252 reg = <0x48>;
253 compatible = "ti,tps659413";
254 u-boot,dm-spl;
255 pinctrl-names = "default";
256 pinctrl-0 = <&wkup_i2c0_pins_default>;
257 clock-frequency = <400000>;
258
259 regulators: regulators {
260 u-boot,dm-spl;
261 buck12_reg: buck12 {
Keerthyac20ebd2022-02-10 09:25:58 +0530262 /*VDD_CPU*/
Keerthyc6f86542019-10-24 15:00:59 +0530263 regulator-name = "buck12";
Keerthyac20ebd2022-02-10 09:25:58 +0530264 regulator-min-microvolt = <600000>;
265 regulator-max-microvolt = <900000>;
Keerthyc6f86542019-10-24 15:00:59 +0530266 regulator-always-on;
267 regulator-boot-on;
268 u-boot,dm-spl;
269 };
270 };
271 };
272};
273
Keerthy7c9fa302019-10-24 15:01:00 +0530274&wkup_vtm0 {
275 vdd-supply-2 = <&buck12_reg>;
276 u-boot,dm-spl;
277};
278
Vignesh Raghavendra4bdd3302020-01-27 17:59:25 +0530279&usbss0 {
280 /delete-property/ power-domains;
281 /delete-property/ assigned-clocks;
282 /delete-property/ assigned-clock-parents;
283 clocks = <&clk_19_2mhz>;
Aswath Govindraju2cd46c22021-08-26 21:28:57 +0530284 clock-names = "ref";
Vignesh Raghavendra4bdd3302020-01-27 17:59:25 +0530285 pinctrl-names = "default";
286 pinctrl-0 = <&main_usbss0_pins_default>;
287 ti,vbus-divider;
288};
289
Vignesh Raghavendra8a290cc2020-01-27 23:22:15 +0530290&main_i2c0 {
291 pinctrl-names = "default";
292 pinctrl-0 = <&main_i2c0_pins_default>;
293 clock-frequency = <400000>;
294
295 exp1: gpio@20 {
296 compatible = "ti,tca6416";
297 reg = <0x20>;
298 gpio-controller;
299 #gpio-cells = <2>;
300 };
301
302 exp2: gpio@22 {
303 compatible = "ti,tca6424";
304 reg = <0x22>;
305 gpio-controller;
306 #gpio-cells = <2>;
307 };
308};
309
Vignesh Raghavendrada674372020-02-04 11:09:52 +0530310&ospi0 {
311 pinctrl-names = "default";
312 pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
313
314 reg = <0x0 0x47040000 0x0 0x100>,
315 <0x0 0x50000000 0x0 0x8000000>;
316
317 flash@0{
318 compatible = "jedec,spi-nor";
319 reg = <0x0>;
320 spi-tx-bus-width = <1>;
321 spi-rx-bus-width = <8>;
Vignesh Raghavendraf9a36d52020-04-02 18:59:13 +0530322 spi-max-frequency = <50000000>;
Vignesh Raghavendrada674372020-02-04 11:09:52 +0530323 cdns,tshsl-ns = <60>;
324 cdns,tsd2d-ns = <60>;
325 cdns,tchsh-ns = <60>;
326 cdns,tslch-ns = <60>;
327 cdns,read-delay = <0>;
328 #address-cells = <1>;
329 #size-cells = <1>;
330 };
331};
332
Keerthy7b0b42d2020-03-04 10:10:01 +0530333&ospi1 {
334 pinctrl-names = "default";
335 pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
336 u-boot,dm-spl;
337
338 reg = <0x0 0x47050000 0x0 0x100>,
339 <0x0 0x58000000 0x0 0x8000000>;
340
341 flash@0{
342 compatible = "jedec,spi-nor";
343 reg = <0x0>;
344 spi-tx-bus-width = <1>;
345 spi-rx-bus-width = <4>;
346 spi-max-frequency = <40000000>;
347 cdns,tshsl-ns = <60>;
348 cdns,tsd2d-ns = <60>;
349 cdns,tchsh-ns = <60>;
350 cdns,tslch-ns = <60>;
351 cdns,read-delay = <2>;
352 #address-cells = <1>;
353 #size-cells = <1>;
354 u-boot,dm-spl;
355 };
356};
Vignesh Raghavendra98181972021-06-07 19:47:50 +0530357
358&mcu_ringacc {
359 ti,sci = <&dm_tifs>;
360};
361
362&mcu_udmap {
363 ti,sci = <&dm_tifs>;
364};
Aswath Govindrajudcfb97e2022-01-28 13:41:39 +0530365
366&wiz0_pll1_refclk {
367 assigned-clocks = <&wiz0_pll1_refclk>;
368 assigned-clock-parents = <&cmn_refclk1>;
369};
370
371&wiz0_refclk_dig {
372 assigned-clocks = <&wiz0_refclk_dig>;
373 assigned-clock-parents = <&cmn_refclk1>;
374};
375
376&serdes0 {
Aswath Govindraju83a83672022-01-28 13:41:51 +0530377 assigned-clocks = <&serdes0 CDNS_SIERRA_PLL_CMNLC>, <&serdes0 CDNS_SIERRA_PLL_CMNLC1>;
378 assigned-clock-parents = <&wiz0_pll1_refclk>, <&wiz0_pll1_refclk>;
Aswath Govindrajudcfb97e2022-01-28 13:41:39 +0530379
380 serdes0_pcie_link: link@0 {
381 reg = <0>;
382 cdns,num-lanes = <1>;
383 #phy-cells = <0>;
384 cdns,phy-type = <PHY_TYPE_PCIE>;
385 resets = <&serdes_wiz0 1>;
386 };
Aswath Govindraju83a83672022-01-28 13:41:51 +0530387
388 serdes0_qsgmii_link: phy@1 {
389 reg = <1>;
390 cdns,num-lanes = <1>;
391 #phy-cells = <0>;
392 cdns,phy-type = <PHY_TYPE_QSGMII>;
393 resets = <&serdes_wiz0 2>;
394 };
Aswath Govindrajudcfb97e2022-01-28 13:41:39 +0530395};
Sinthu Raja7fa564c2022-02-09 15:06:54 +0530396
397/* EEPROM might be read before SYSFW is available */
398&wkup_i2c0 {
399 /delete-property/ power-domains;
400};