xref: /linux/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
1// SPDX-License-Identifier: GPL-2.0-only OR MIT
2/*
3 * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
4 *
5 * Base Board: https://www.ti.com/lit/zip/SPRR463
6 */
7
8/dts-v1/;
9
10#include "k3-am68-sk-som.dtsi"
11#include <dt-bindings/net/ti-dp83867.h>
12#include <dt-bindings/phy/phy-cadence.h>
13#include <dt-bindings/phy/phy.h>
14
15#include "k3-serdes.h"
16
17/ {
18	compatible = "ti,am68-sk", "ti,j721s2";
19	model = "Texas Instruments AM68 SK";
20
21	chosen {
22		stdout-path = "serial2:115200n8";
23	};
24
25	aliases {
26		serial0 = &wkup_uart0;
27		serial1 = &mcu_uart0;
28		serial2 = &main_uart8;
29		mmc1 = &main_sdhci1;
30		can0 = &mcu_mcan0;
31		can1 = &mcu_mcan1;
32		can2 = &main_mcan6;
33		can3 = &main_mcan7;
34		ethernet0 = &cpsw_port1;
35	};
36
37	vusb_main: regulator-vusb-main5v0 {
38		/* USB MAIN INPUT 5V DC */
39		compatible = "regulator-fixed";
40		regulator-name = "vusb-main5v0";
41		regulator-min-microvolt = <5000000>;
42		regulator-max-microvolt = <5000000>;
43		regulator-always-on;
44		regulator-boot-on;
45	};
46
47	vsys_3v3: regulator-vsys3v3 {
48		/* Output of LM5141 */
49		compatible = "regulator-fixed";
50		regulator-name = "vsys_3v3";
51		regulator-min-microvolt = <3300000>;
52		regulator-max-microvolt = <3300000>;
53		vin-supply = <&vusb_main>;
54		regulator-always-on;
55		regulator-boot-on;
56	};
57
58	vdd_mmc1: regulator-sd {
59		/* Output of TPS22918 */
60		compatible = "regulator-fixed";
61		regulator-name = "vdd_mmc1";
62		regulator-min-microvolt = <3300000>;
63		regulator-max-microvolt = <3300000>;
64		regulator-boot-on;
65		enable-active-high;
66		vin-supply = <&vsys_3v3>;
67		gpio = <&exp1 8 GPIO_ACTIVE_HIGH>;
68	};
69
70	vdd_sd_dv: regulator-tlv71033 {
71		/* Output of TLV71033 */
72		compatible = "regulator-gpio";
73		regulator-name = "tlv71033";
74		pinctrl-names = "default";
75		pinctrl-0 = <&vdd_sd_dv_pins_default>;
76		regulator-min-microvolt = <1800000>;
77		regulator-max-microvolt = <3300000>;
78		regulator-boot-on;
79		vin-supply = <&vsys_3v3>;
80		gpios = <&main_gpio0 49 GPIO_ACTIVE_HIGH>;
81		states = <1800000 0x0>,
82			 <3300000 0x1>;
83	};
84
85	vsys_io_1v8: regulator-vsys-io-1v8 {
86		compatible = "regulator-fixed";
87		regulator-name = "vsys_io_1v8";
88		regulator-min-microvolt = <1800000>;
89		regulator-max-microvolt = <1800000>;
90		regulator-always-on;
91		regulator-boot-on;
92	};
93
94	vsys_io_1v2: regulator-vsys-io-1v2 {
95		compatible = "regulator-fixed";
96		regulator-name = "vsys_io_1v2";
97		regulator-min-microvolt = <1200000>;
98		regulator-max-microvolt = <1200000>;
99		regulator-always-on;
100		regulator-boot-on;
101	};
102
103	transceiver1: can-phy0 {
104		compatible = "ti,tcan1042";
105		#phy-cells = <0>;
106		max-bitrate = <5000000>;
107	};
108
109	transceiver2: can-phy1 {
110		compatible = "ti,tcan1042";
111		#phy-cells = <0>;
112		max-bitrate = <5000000>;
113	};
114
115	transceiver3: can-phy2 {
116		compatible = "ti,tcan1042";
117		#phy-cells = <0>;
118		max-bitrate = <5000000>;
119	};
120
121	transceiver4: can-phy3 {
122		compatible = "ti,tcan1042";
123		#phy-cells = <0>;
124		max-bitrate = <5000000>;
125	};
126
127	connector-hdmi {
128		compatible = "hdmi-connector";
129		label = "hdmi";
130		type = "a";
131		pinctrl-names = "default";
132		pinctrl-0 = <&hdmi_hpd_pins_default>;
133		ddc-i2c-bus = <&mcu_i2c1>;
134		/* HDMI_HPD */
135		hpd-gpios = <&main_gpio0 0 GPIO_ACTIVE_HIGH>;
136
137		port {
138			hdmi_connector_in: endpoint {
139				remote-endpoint = <&tfp410_out>;
140			};
141		};
142	};
143
144	bridge-dvi {
145		compatible = "ti,tfp410";
146		/* HDMI_PDn */
147		powerdown-gpios = <&exp2 0 GPIO_ACTIVE_LOW>;
148		ti,deskew = <0>;
149
150		ports {
151			#address-cells = <1>;
152			#size-cells = <0>;
153
154			port@0 {
155				reg = <0>;
156
157				tfp410_in: endpoint {
158					remote-endpoint = <&dpi_out0>;
159					pclk-sample = <1>;
160				};
161			};
162
163			port@1 {
164				reg = <1>;
165
166				tfp410_out: endpoint {
167					remote-endpoint = <&hdmi_connector_in>;
168				};
169			};
170		};
171	};
172
173	csi_mux: mux-controller {
174		compatible = "gpio-mux";
175		#mux-state-cells = <1>;
176		mux-gpios = <&exp3 1 GPIO_ACTIVE_HIGH>;
177		idle-state = <0>;
178	};
179};
180
181&main_pmx0 {
182	main_uart8_pins_default: main-uart8-default-pins {
183		pinctrl-single,pins = <
184			J721S2_IOPAD(0x0d0, PIN_INPUT, 11) /* (AF26) SPI0_CS1.UART8_RXD */
185			J721S2_IOPAD(0x0d4, PIN_OUTPUT, 11) /* (AH27) SPI0_CLK.UART8_TXD */
186		>;
187		bootph-all;
188	};
189
190	main_i2c0_pins_default: main-i2c0-default-pins {
191		pinctrl-single,pins = <
192			J721S2_IOPAD(0x0e0, PIN_INPUT, 0) /* (AH25) I2C0_SCL */
193			J721S2_IOPAD(0x0e4, PIN_INPUT, 0) /* (AE24) I2C0_SDA */
194		>;
195	};
196
197	main_i2c1_pins_default: main-i2c1-default-pins {
198		pinctrl-single,pins = <
199			J721S2_IOPAD(0x0ac, PIN_INPUT, 13) /* (AC25) MCASP0_AXR15.I2C1_SCL */
200			J721S2_IOPAD(0x0b0, PIN_INPUT, 13) /* (AD26) MCASP1_AXR3.I2C1_SDA */
201		>;
202	};
203
204	main_mmc1_pins_default: main-mmc1-default-pins {
205		pinctrl-single,pins = <
206			J721S2_IOPAD(0x104, PIN_INPUT, 0) /* (P23) MMC1_CLK */
207			J721S2_IOPAD(0x108, PIN_INPUT, 0) /* (N24) MMC1_CMD */
208			J721S2_IOPAD(0x100, PIN_INPUT, 0) /* (###) MMC1_CLKLB */
209			J721S2_IOPAD(0x0fc, PIN_INPUT, 0) /* (M23) MMC1_DAT0 */
210			J721S2_IOPAD(0x0f8, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
211			J721S2_IOPAD(0x0f4, PIN_INPUT, 0) /* (R24) MMC1_DAT2 */
212			J721S2_IOPAD(0x0f0, PIN_INPUT, 0) /* (R22) MMC1_DAT3 */
213			J721S2_IOPAD(0x0e8, PIN_INPUT, 8) /* (AE25) TIMER_IO0.MMC1_SDCD */
214		>;
215		bootph-all;
216	};
217
218	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
219		pinctrl-single,pins = <
220			J721S2_IOPAD(0x0c4, PIN_INPUT, 7) /* (AB26) ECAP0_IN_APWM_OUT.GPIO0_49 */
221		>;
222	};
223
224	main_usbss0_pins_default: main-usbss0-default-pins {
225		pinctrl-single,pins = <
226			J721S2_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AG25) TIMER_IO1.USB0_DRVVBUS */
227		>;
228	};
229
230	main_mcan6_pins_default: main-mcan6-default-pins {
231		pinctrl-single,pins = <
232			J721S2_IOPAD(0x098, PIN_INPUT, 0) /* (V25) MCASP0_AXR10.MCAN6_RX */
233			J721S2_IOPAD(0x094, PIN_INPUT, 0) /* (AA25) MCASP0_AXR9.MCAN6_TX */
234		>;
235	};
236
237	main_mcan7_pins_default: main-mcan7-default-pins {
238		pinctrl-single,pins = <
239			J721S2_IOPAD(0x0a0, PIN_INPUT, 0) /* (AB25) MCASP0_AXR12.MCAN7_RX */
240			J721S2_IOPAD(0x09c, PIN_INPUT, 0) /* (T24) MCASP0_AXR11.MCAN7_TX */
241		>;
242	};
243
244	main_i2c4_pins_default: main-i2c4-default-pins {
245		pinctrl-single,pins = <
246			J721S2_IOPAD(0x010, PIN_INPUT_PULLUP, 8) /* (AF28) MCAN13_RX.I2C4_SDA */
247			J721S2_IOPAD(0x014, PIN_INPUT_PULLUP, 8) /* (AD25) MCAN14_TX.I2C4_SCL */
248		>;
249	};
250
251	rpi_header_gpio0_pins_default: rpi-header-gpio0-default-pins {
252		pinctrl-single,pins = <
253			J721S2_IOPAD(0x0a8, PIN_INPUT, 7) /* (U24)  MCASP0_AXR14.GPIO0_42 */
254			J721S2_IOPAD(0x090, PIN_INPUT, 7) /* (W24) MCASP0_AXR8.GPIO0_36 */
255			J721S2_IOPAD(0x0bc, PIN_INPUT, 7) /* (V28) MCASP1_AFSX.GPIO0_47 */
256			J721S2_IOPAD(0x06c, PIN_INPUT, 7) /* (V26) MCAN1_TX.GPIO0_27 */
257			J721S2_IOPAD(0x004, PIN_INPUT, 7) /* (W25) MCAN12_TX.GPIO0_1 */
258			J721S2_IOPAD(0x008, PIN_INPUT, 7) /* (AC24) MCAN12_RX.GPIO0_2 */
259			J721S2_IOPAD(0x0b8, PIN_INPUT, 7) /* (AA24) MCASP1_ACLKX.GPIO0_46 */
260			J721S2_IOPAD(0x00c, PIN_INPUT, 7) /* (AE28) MCAN13_TX.GPIO0_3 */
261			J721S2_IOPAD(0x034, PIN_INPUT, 7) /* (AD24) PMIC_WAKE0.GPIO0_13 */
262			J721S2_IOPAD(0x0a4, PIN_INPUT, 7) /* (T23) MCASP0_AXR13.GPIO0_41 */
263			J721S2_IOPAD(0x0c0, PIN_INPUT, 7) /* (T28) MCASP1_AXR0.GPIO0_48 */
264			J721S2_IOPAD(0x0b4, PIN_INPUT, 7) /* (U25) MCASP1_AXR4.GPIO0_45 */
265			J721S2_IOPAD(0x0cc, PIN_INPUT, 7) /* (AE27) SPI0_CS0.GPIO0_51 */
266			J721S2_IOPAD(0x08c, PIN_INPUT, 7) /* (T25) MCASP0_AXR7.GPIO0_35 */
267		>;
268	};
269
270	dss_vout0_pins_default: dss-vout0-default-pins {
271		pinctrl-single,pins = <
272			J721S2_IOPAD(0x074, PIN_OUTPUT, 2) /* (R28) MCAN2_TX.VOUT0_DATA0 */
273			J721S2_IOPAD(0x070, PIN_OUTPUT, 2) /* (R27) MCAN1_RX.VOUT0_DATA1 */
274			J721S2_IOPAD(0x04c, PIN_OUTPUT, 2) /* (V27) MCASP1_AXR1.VOUT0_DATA10 */
275			J721S2_IOPAD(0x048, PIN_OUTPUT, 2) /* (AB27) MCASP0_AXR2.VOUT0_DATA11 */
276			J721S2_IOPAD(0x044, PIN_OUTPUT, 2) /* (Y26) MCASP0_AXR1.VOUT0_DATA12 */
277			J721S2_IOPAD(0x040, PIN_OUTPUT, 2) /* (AC28) MCASP0_AXR0.VOUT0_DATA13 */
278			J721S2_IOPAD(0x03c, PIN_OUTPUT, 2) /* (U27) MCASP0_AFSX.VOUT0_DATA14 */
279			J721S2_IOPAD(0x038, PIN_OUTPUT, 2) /* (AB28) MCASP0_ACLKX.VOUT0_DATA15 */
280			J721S2_IOPAD(0x0c8, PIN_OUTPUT, 2) /* (AD28) EXT_REFCLK1.VOUT0_DATA16 */
281			J721S2_IOPAD(0x030, PIN_OUTPUT, 2) /* (T26) GPIO0_12.VOUT0_DATA17 */
282			J721S2_IOPAD(0x02c, PIN_OUTPUT, 2) /* (V23) GPIO0_11.VOUT0_DATA18 */
283			J721S2_IOPAD(0x028, PIN_OUTPUT, 2) /* (AB24) MCAN16_RX.VOUT0_DATA19 */
284			J721S2_IOPAD(0x07c, PIN_OUTPUT, 2) /* (T27) MCASP0_AXR3.VOUT0_DATA2 */
285			J721S2_IOPAD(0x024, PIN_OUTPUT, 2) /* (Y28) MCAN16_TX.VOUT0_DATA20 */
286			J721S2_IOPAD(0x020, PIN_OUTPUT, 2) /* (AA23) MCAN15_RX.VOUT0_DATA21 */
287			J721S2_IOPAD(0x01c, PIN_OUTPUT, 2) /* (Y24) MCAN15_TX.VOUT0_DATA22 */
288			J721S2_IOPAD(0x018, PIN_OUTPUT, 2) /* (W23) MCAN14_RX.VOUT0_DATA23 */
289			J721S2_IOPAD(0x068, PIN_OUTPUT, 2) /* (U28) MCAN0_RX.VOUT0_DATA3 */
290			J721S2_IOPAD(0x064, PIN_OUTPUT, 2) /* (W28) MCAN0_TX.VOUT0_DATA4 */
291			J721S2_IOPAD(0x060, PIN_OUTPUT, 2) /* (AC27) MCASP2_AXR1.VOUT0_DATA5 */
292			J721S2_IOPAD(0x05c, PIN_OUTPUT, 2) /* (AA26) MCASP2_AXR0.VOUT0_DATA6 */
293			J721S2_IOPAD(0x058, PIN_OUTPUT, 2) /* (AA27) MCASP2_AFSX.VOUT0_DATA7 */
294			J721S2_IOPAD(0x054, PIN_OUTPUT, 2) /* (Y27) MCASP2_ACLKX.VOUT0_DATA8 */
295			J721S2_IOPAD(0x050, PIN_OUTPUT, 2) /* (W27) MCASP1_AXR2.VOUT0_DATA9 */
296			J721S2_IOPAD(0x084, PIN_OUTPUT, 2) /* (AA28) MCASP0_AXR5.VOUT0_DE */
297			J721S2_IOPAD(0x080, PIN_OUTPUT, 2) /* (U26) MCASP0_AXR4.VOUT0_HSYNC */
298			J721S2_IOPAD(0x078, PIN_OUTPUT, 2) /* (Y25) MCAN2_RX.VOUT0_PCLK */
299			J721S2_IOPAD(0x088, PIN_OUTPUT, 2) /* (AD27) MCASP0_AXR6.VOUT0_VP0_VSYNC */
300		>;
301	};
302
303	hdmi_hpd_pins_default: hdmi-hpd-default-pins {
304		pinctrl-single,pins = <
305			J721S2_IOPAD(0x000, PIN_INPUT, 7) /* (AG24) EXTINTN.GPIO0_0  */
306		>;
307	};
308};
309
310&wkup_pmx2 {
311	wkup_uart0_pins_default: wkup-uart0-default-pins {
312		pinctrl-single,pins = <
313			J721S2_WKUP_IOPAD(0x070, PIN_INPUT, 0) /* (E25) WKUP_GPIO0_6.WKUP_UART0_CTSn */
314			J721S2_WKUP_IOPAD(0x074, PIN_OUTPUT, 0) /* (F28) WKUP_GPIO0_7.WKUP_UART0_RTSn */
315			J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (D28) WKUP_UART0_RXD */
316			J721S2_WKUP_IOPAD(0x04c, PIN_OUTPUT, 0) /* (D27) WKUP_UART0_TXD */
317		>;
318		bootph-all;
319	};
320
321	mcu_cpsw_pins_default: mcu-cpsw-default-pins {
322		pinctrl-single,pins = <
323			J721S2_WKUP_IOPAD(0x02C, PIN_INPUT, 0) /* (B22) MCU_RGMII1_RD0 */
324			J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (B21) MCU_RGMII1_RD1 */
325			J721S2_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (C22) MCU_RGMII1_RD2 */
326			J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (D23) MCU_RGMII1_RD3 */
327			J721S2_WKUP_IOPAD(0x01C, PIN_INPUT, 0) /* (D22) MCU_RGMII1_RXC */
328			J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E23) MCU_RGMII1_RX_CTL */
329			J721S2_WKUP_IOPAD(0x014, PIN_OUTPUT, 0) /* (F23) MCU_RGMII1_TD0 */
330			J721S2_WKUP_IOPAD(0x010, PIN_OUTPUT, 0) /* (G22) MCU_RGMII1_TD1 */
331			J721S2_WKUP_IOPAD(0x00C, PIN_OUTPUT, 0) /* (E21) MCU_RGMII1_TD2 */
332			J721S2_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (E22) MCU_RGMII1_TD3 */
333			J721S2_WKUP_IOPAD(0x018, PIN_OUTPUT, 0) /* (F21) MCU_RGMII1_TXC */
334			J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (F22) MCU_RGMII1_TX_CTL */
335		>;
336	};
337
338	mcu_mdio_pins_default: mcu-mdio-default-pins {
339		pinctrl-single,pins = <
340			J721S2_WKUP_IOPAD(0x034, PIN_OUTPUT, 0) /* (A21) MCU_MDIO0_MDC */
341			J721S2_WKUP_IOPAD(0x030, PIN_INPUT, 0) /* (A22) MCU_MDIO0_MDIO */
342		>;
343	};
344
345	mcu_mcan0_pins_default: mcu-mcan0-default-pins {
346		pinctrl-single,pins = <
347			J721S2_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (E28) MCU_MCAN0_RX */
348			J721S2_WKUP_IOPAD(0x050, PIN_OUTPUT, 0) /* (E27) MCU_MCAN0_TX */
349		>;
350	};
351
352	mcu_mcan1_pins_default: mcu-mcan1-default-pins {
353		pinctrl-single,pins = <
354			J721S2_WKUP_IOPAD(0x06C, PIN_INPUT, 0) /* (F26) WKUP_GPIO0_5.MCU_MCAN1_RX */
355			J721S2_WKUP_IOPAD(0x068, PIN_OUTPUT, 0) /* (C23) WKUP_GPIO0_4.MCU_MCAN1_TX*/
356		>;
357	};
358
359	mcu_i2c0_pins_default: mcu-i2c0-default-pins {
360		pinctrl-single,pins = <
361			J721S2_WKUP_IOPAD(0x0a0, PIN_INPUT, 0) /* (G24) MCU_I2C0_SCL */
362			J721S2_WKUP_IOPAD(0x0a4, PIN_INPUT, 0) /* (J25) MCU_I2C0_SDA */
363		>;
364	};
365
366	mcu_i2c1_pins_default: mcu-i2c1-default-pins {
367		pinctrl-single,pins = <
368			J721S2_WKUP_IOPAD(0x078, PIN_INPUT, 0) /* (F24) WKUP_GPIO0_8.MCU_I2C1_SCL */
369			J721S2_WKUP_IOPAD(0x07c, PIN_INPUT, 0) /* (H26) WKUP_GPIO0_9.MCU_I2C1_SDA */
370		>;
371	};
372
373	mcu_uart0_pins_default: mcu-uart0-default-pins {
374		pinctrl-single,pins = <
375			J721S2_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (C24) WKUP_GPIO0_13.MCU_UART0_RXD */
376			J721S2_WKUP_IOPAD(0x088, PIN_OUTPUT, 0) /* (C25) WKUP_GPIO0_12.MCU_UART0_TXD */
377		>;
378		bootph-all;
379	};
380
381	mcu_rpi_header_gpio0_pins0_default: mcu-rpi-header-gpio0-default-pins-0 {
382		pinctrl-single,pins = <
383			J721S2_WKUP_IOPAD(0x118, PIN_INPUT, 7) /* (G25) WKUP_GPIO0_66 */
384			J721S2_WKUP_IOPAD(0x05C, PIN_INPUT, 7) /* (E24) MCU_SPI1_D0.WKUP_GPIO0_1 */
385			J721S2_WKUP_IOPAD(0x060, PIN_INPUT, 7) /* (C28) MCU_SPI1_D1.WKUP_GPIO0_2 */
386			J721S2_WKUP_IOPAD(0x058, PIN_INPUT, 7) /* (D26) MCU_SPI1_CLK.WKUP_GPIO0_0 */
387			J721S2_WKUP_IOPAD(0x094, PIN_INPUT, 7) /* (D25) MCU_SPI1_CS2.WKUP_GPIO0_15*/
388			J721S2_WKUP_IOPAD(0x0B8, PIN_INPUT, 7) /* (G27) WKUP_GPIO0_56 */
389			J721S2_WKUP_IOPAD(0x114, PIN_INPUT, 7) /* (J26) WKUP_GPIO0_57 */
390			J721S2_WKUP_IOPAD(0x11C, PIN_INPUT, 7) /* (J27) WKUP_GPIO0_67 */
391			J721S2_WKUP_IOPAD(0x064, PIN_INPUT, 7) /* (C27) MCU_SPI1_CS0.WKUP_GPIO0_3 */
392		>;
393	};
394};
395
396&wkup_pmx3 {
397	mcu_rpi_header_gpio0_pins1_default: mcu-rpi-header-gpio0-default-pins-1 {
398		pinctrl-single,pins = <
399			J721S2_WKUP_IOPAD(0x000, PIN_INPUT, 7) /* (K26) WKUP_GPIO0_49 */
400		>;
401	};
402};
403
404&main_gpio0 {
405	status = "okay";
406	pinctrl-names = "default";
407	pinctrl-0 = <&rpi_header_gpio0_pins_default>;
408};
409
410&wkup_gpio0 {
411	status = "okay";
412	pinctrl-names = "default";
413	pinctrl-0 = <&mcu_rpi_header_gpio0_pins0_default>, <&mcu_rpi_header_gpio0_pins1_default>;
414};
415
416&wkup_uart0 {
417	status = "reserved";
418	pinctrl-names = "default";
419	pinctrl-0 = <&wkup_uart0_pins_default>;
420	bootph-all;
421};
422
423&wkup_i2c0 {
424	bootph-all;
425	clock-frequency = <400000>;
426	pinctrl-names = "default";
427	pinctrl-0 = <&wkup_i2c0_pins_default>;
428	status = "okay";
429
430	lp8733: pmic@60 {
431		compatible = "ti,lp8733";
432		reg = <0x60>;
433		buck0-in-supply = <&vsys_3v3>;
434		buck1-in-supply = <&vsys_3v3>;
435		ldo0-in-supply = <&vsys_3v3>;
436		ldo1-in-supply = <&vsys_3v3>;
437
438		lp8733_regulators: regulators {
439			lp8733_buck0_reg: buck0 {
440				/* FB_B0 -> LP8733-BUCK1 - VDD_MCU_0V85 */
441				regulator-name = "lp8733-buck0";
442				regulator-min-microvolt = <850000>;
443				regulator-max-microvolt = <850000>;
444				regulator-always-on;
445				regulator-boot-on;
446			};
447
448			lp8733_buck1_reg: buck1 {
449				/* FB_B1 -> LP8733-BUCK2 - VDD_DDR_1V1 */
450				regulator-name = "lp8733-buck1";
451				regulator-min-microvolt = <1100000>;
452				regulator-max-microvolt = <1100000>;
453				regulator-always-on;
454				regulator-boot-on;
455			};
456
457			lp8733_ldo0_reg: ldo0 {
458				/* LDO0 -> LP8733-LDO1 - VDA_DLL_0V8 */
459				regulator-name = "lp8733-ldo0";
460				regulator-min-microvolt = <800000>;
461				regulator-max-microvolt = <800000>;
462				regulator-boot-on;
463				regulator-always-on;
464			};
465
466			lp8733_ldo1_reg: ldo1 {
467				/* LDO1 -> LP8733-LDO2 - VDA_LN_1V8 */
468				regulator-name = "lp8733-ldo1";
469				regulator-min-microvolt = <1800000>;
470				regulator-max-microvolt = <1800000>;
471				regulator-always-on;
472				regulator-boot-on;
473			};
474		};
475	};
476
477	tps62873a: regulator@40 {
478		compatible = "ti,tps62873";
479		reg = <0x40>;
480		bootph-pre-ram;
481		regulator-name = "VDD_CPU_AVS";
482		regulator-min-microvolt = <600000>;
483		regulator-max-microvolt = <900000>;
484		regulator-boot-on;
485		regulator-always-on;
486	};
487
488	tps62873b: regulator@43 {
489		compatible = "ti,tps62873";
490		reg = <0x43>;
491		regulator-name = "VDD_CORE_0V8";
492		regulator-min-microvolt = <800000>;
493		regulator-max-microvolt = <800000>;
494		regulator-boot-on;
495		regulator-always-on;
496	};
497};
498
499&mcu_uart0 {
500	status = "okay";
501	pinctrl-names = "default";
502	pinctrl-0 = <&mcu_uart0_pins_default>;
503	bootph-all;
504};
505
506&main_uart8 {
507	status = "okay";
508	pinctrl-names = "default";
509	pinctrl-0 = <&main_uart8_pins_default>;
510	/* Shared with TFA on this platform */
511	power-domains = <&k3_pds 357 TI_SCI_PD_SHARED>;
512	bootph-all;
513};
514
515&main_i2c0 {
516	pinctrl-names = "default";
517	pinctrl-0 = <&main_i2c0_pins_default>;
518	clock-frequency = <400000>;
519
520	exp1: gpio@21 {
521		compatible = "ti,tca6416";
522		reg = <0x21>;
523		gpio-controller;
524		#gpio-cells = <2>;
525		gpio-line-names = " ", " ", " ", " ", " ",
526				  "BOARDID_EEPROM_WP", "CAN_STB", " ",
527				  "GPIO_uSD_PWR_EN", " ", "IO_EXP_PCIe1_M.2_RTSz",
528				  "IO_EXP_MCU_RGMII_RST#", " ", " ", " ", " ";
529	};
530};
531
532&main_i2c1 {
533	pinctrl-names = "default";
534	pinctrl-0 = <&main_i2c1_pins_default>;
535	status = "okay";
536
537	exp3: gpio@20 {
538		compatible = "ti,tca6408";
539		reg = <0x20>;
540		gpio-controller;
541		#gpio-cells = <2>;
542		gpio-line-names = "CSI_VIO_SEL", "CSI_SEL_FPC_EXPn",
543				  "IO_EXP_CSI2_EXP_RSTz","CSI0_B_GPIO1",
544				  "CSI1_B_GPIO1";
545	};
546
547	i2c-mux@70 {
548		compatible = "nxp,pca9543";
549		#address-cells = <1>;
550		#size-cells = <0>;
551		reg = <0x70>;
552
553		cam0_i2c: i2c@0 {
554			#address-cells = <1>;
555			#size-cells = <0>;
556			reg = <0>;
557		};
558
559		cam1_i2c: i2c@1 {
560			#address-cells = <1>;
561			#size-cells = <0>;
562			reg = <1>;
563		};
564
565	};
566};
567
568&main_i2c4 {
569	status = "okay";
570	pinctrl-names = "default";
571	pinctrl-0 = <&main_i2c4_pins_default>;
572	clock-frequency = <400000>;
573};
574
575&mcu_i2c0 {
576	status = "okay";
577	pinctrl-names = "default";
578	pinctrl-0 = <&mcu_i2c0_pins_default>;
579	clock-frequency = <400000>;
580};
581
582&mcu_i2c1 {
583	status = "okay";
584	pinctrl-names = "default";
585	pinctrl-0 = <&mcu_i2c1_pins_default>;
586	/* i2c1 is used for DVI DDC, so we need to use 100kHz */
587	clock-frequency = <100000>;
588
589	exp2: gpio@20 {
590		compatible = "ti,tca6408";
591		reg = <0x20>;
592		gpio-controller;
593		#gpio-cells = <2>;
594		gpio-line-names = "HDMI_PDn","HDMI_LS_OE",
595				  "DP0_3V3_EN","eDP_ENABLE";
596	};
597};
598
599&main_sdhci1 {
600	/* SD card */
601	status = "okay";
602	pinctrl-0 = <&main_mmc1_pins_default>;
603	pinctrl-names = "default";
604	disable-wp;
605	vmmc-supply = <&vdd_mmc1>;
606	vqmmc-supply = <&vdd_sd_dv>;
607	bootph-all;
608};
609
610&mcu_cpsw {
611	pinctrl-names = "default";
612	pinctrl-0 = <&mcu_cpsw_pins_default>, <&mcu_mdio_pins_default>;
613};
614
615&davinci_mdio {
616	phy0: ethernet-phy@0 {
617		reg = <0>;
618		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
619		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
620		ti,min-output-impedance;
621	};
622};
623
624&cpsw_port1 {
625	phy-mode = "rgmii-rxid";
626	phy-handle = <&phy0>;
627};
628
629&mcu_mcan0 {
630	status = "okay";
631	pinctrl-names = "default";
632	pinctrl-0 = <&mcu_mcan0_pins_default>;
633	phys = <&transceiver1>;
634};
635
636&mcu_mcan1 {
637	status = "okay";
638	pinctrl-names = "default";
639	pinctrl-0 = <&mcu_mcan1_pins_default>;
640	phys = <&transceiver2>;
641};
642
643&main_mcan6 {
644	status = "okay";
645	pinctrl-names = "default";
646	pinctrl-0 = <&main_mcan6_pins_default>;
647	phys = <&transceiver3>;
648};
649
650&main_mcan7 {
651	status = "okay";
652	pinctrl-names = "default";
653	pinctrl-0 = <&main_mcan7_pins_default>;
654	phys = <&transceiver4>;
655};
656
657&dss {
658	status = "okay";
659	pinctrl-names = "default";
660	pinctrl-0 = <&dss_vout0_pins_default>;
661	/*
662	 * These clock assignments are chosen to enable the following outputs:
663	 *
664	 * VP0 - DisplayPort SST
665	 * VP1 - DPI0
666	 * VP2 - DSI
667	 * VP3 - DPI1
668	 */
669	assigned-clocks = <&k3_clks 158 2>,
670			  <&k3_clks 158 5>,
671			  <&k3_clks 158 14>,
672			  <&k3_clks 158 18>;
673	assigned-clock-parents = <&k3_clks 158 3>,
674				 <&k3_clks 158 7>,
675				 <&k3_clks 158 16>,
676				 <&k3_clks 158 22>;
677};
678
679&dss_ports {
680	#address-cells = <1>;
681	#size-cells = <0>;
682
683	/* HDMI */
684	port@1 {
685		reg = <1>;
686
687		dpi_out0: endpoint {
688			remote-endpoint = <&tfp410_in>;
689		};
690	};
691};
692
693&serdes_ln_ctrl {
694	idle-states = <J721S2_SERDES0_LANE0_PCIE1_LANE0>, <J721S2_SERDES0_LANE1_PCIE1_LANE1>,
695		      <J721S2_SERDES0_LANE2_USB_SWAP>, <J721S2_SERDES0_LANE3_USB>;
696};
697
698&serdes_refclk {
699	clock-frequency = <100000000>;
700};
701
702&serdes0 {
703	status = "okay";
704
705	serdes0_pcie_link: phy@0 {
706		reg = <0>;
707		cdns,num-lanes = <2>;
708		#phy-cells = <0>;
709		cdns,phy-type = <PHY_TYPE_PCIE>;
710		resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>;
711	};
712
713	serdes0_usb_link: phy@2 {
714		status = "okay";
715		reg = <2>;
716		cdns,num-lanes = <1>;
717		#phy-cells = <0>;
718		cdns,phy-type = <PHY_TYPE_USB3>;
719		resets = <&serdes_wiz0 3>;
720	};
721};
722
723&pcie1_rc {
724	status = "okay";
725	reset-gpios = <&exp1 10 GPIO_ACTIVE_HIGH>;
726	phys = <&serdes0_pcie_link>;
727	phy-names = "pcie-phy";
728	num-lanes = <2>;
729};
730
731&usb_serdes_mux {
732	idle-states = <0>; /* USB0 to SERDES lane 2 */
733};
734
735&usbss0 {
736	status = "okay";
737	pinctrl-0 = <&main_usbss0_pins_default>;
738	pinctrl-names = "default";
739	ti,vbus-divider;
740};
741
742&usb0 {
743	dr_mode = "host";
744	maximum-speed = "super-speed";
745	phys = <&serdes0_usb_link>;
746	phy-names = "cdns3,usb3-phy";
747};
748