• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: GPL-2.0-only OR MIT
2/*
3 * AM62A SK: https://www.ti.com/lit/zip/sprr459
4 *
5 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
6 */
7
8/dts-v1/;
9
10#include <dt-bindings/leds/common.h>
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/net/ti-dp83867.h>
13#include "k3-am62a7.dtsi"
14
15/ {
16	compatible = "ti,am62a7-sk", "ti,am62a7";
17	model = "Texas Instruments AM62A7 SK";
18
19	aliases {
20		serial0 = &wkup_uart0;
21		serial2 = &main_uart0;
22		serial3 = &main_uart1;
23		mmc0 = &sdhci0;
24		mmc1 = &sdhci1;
25	};
26
27	chosen {
28		stdout-path = "serial2:115200n8";
29	};
30
31	memory@80000000 {
32		device_type = "memory";
33		/* 4G RAM */
34		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
35		      <0x00000008 0x80000000 0x00000000 0x80000000>;
36	};
37
38	reserved-memory {
39		#address-cells = <2>;
40		#size-cells = <2>;
41		ranges;
42
43		/* global cma region */
44		linux,cma {
45			compatible = "shared-dma-pool";
46			reusable;
47			size = <0x00 0x24000000>;
48			alloc-ranges = <0x00 0xc0000000 0x00 0x24000000>;
49			linux,cma-default;
50		};
51
52		secure_tfa_ddr: tfa@9e780000 {
53			reg = <0x00 0x9e780000 0x00 0x80000>;
54			alignment = <0x1000>;
55			no-map;
56		};
57
58		secure_ddr: optee@9e800000 {
59			reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
60			alignment = <0x1000>;
61			no-map;
62		};
63
64		wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 {
65			compatible = "shared-dma-pool";
66			reg = <0x00 0x9c900000 0x00 0x01e00000>;
67			no-map;
68		};
69	};
70
71	vmain_pd: regulator-0 {
72		/* TPS25750 PD CONTROLLER OUTPUT */
73		compatible = "regulator-fixed";
74		regulator-name = "vmain_pd";
75		regulator-min-microvolt = <5000000>;
76		regulator-max-microvolt = <5000000>;
77		regulator-always-on;
78		regulator-boot-on;
79	};
80
81	vcc_5v0: regulator-1 {
82		/* Output of TPS63070 */
83		compatible = "regulator-fixed";
84		regulator-name = "vcc_5v0";
85		regulator-min-microvolt = <5000000>;
86		regulator-max-microvolt = <5000000>;
87		vin-supply = <&vmain_pd>;
88		regulator-always-on;
89		regulator-boot-on;
90	};
91
92	vcc_3v3_main: regulator-2 {
93		/* output of LM5141-Q1 */
94		compatible = "regulator-fixed";
95		regulator-name = "vcc_3v3_main";
96		regulator-min-microvolt = <3300000>;
97		regulator-max-microvolt = <3300000>;
98		vin-supply = <&vmain_pd>;
99		regulator-always-on;
100		regulator-boot-on;
101	};
102
103	vdd_mmc1: regulator-3 {
104		/* TPS22918DBVR */
105		compatible = "regulator-fixed";
106		regulator-name = "vdd_mmc1";
107		regulator-min-microvolt = <3300000>;
108		regulator-max-microvolt = <3300000>;
109		regulator-boot-on;
110		enable-active-high;
111		gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
112	};
113
114	vcc_3v3_sys: regulator-4 {
115		/* output of TPS222965DSGT */
116		compatible = "regulator-fixed";
117		regulator-name = "vcc_3v3_sys";
118		regulator-min-microvolt = <3300000>;
119		regulator-max-microvolt = <3300000>;
120		vin-supply = <&vcc_3v3_main>;
121		regulator-always-on;
122		regulator-boot-on;
123	};
124
125	vddshv_sdio: regulator-5 {
126		compatible = "regulator-gpio";
127		regulator-name = "vddshv_sdio";
128		pinctrl-names = "default";
129		pinctrl-0 = <&vddshv_sdio_pins_default>;
130		regulator-min-microvolt = <1800000>;
131		regulator-max-microvolt = <3300000>;
132		regulator-boot-on;
133		vin-supply = <&ldo1>;
134		gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
135		states = <1800000 0x0>,
136			 <3300000 0x1>;
137	};
138
139	leds {
140		compatible = "gpio-leds";
141		pinctrl-names = "default";
142		pinctrl-0 = <&usr_led_pins_default>;
143
144		led-0 {
145			label = "am62a-sk:green:heartbeat";
146			gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
147			linux,default-trigger = "heartbeat";
148			function = LED_FUNCTION_HEARTBEAT;
149			default-state = "off";
150		};
151	};
152
153	tlv320_mclk: clk-0 {
154		#clock-cells = <0>;
155		compatible = "fixed-clock";
156		clock-frequency = <12288000>;
157	};
158
159	hdmi0: connector-hdmi {
160		compatible = "hdmi-connector";
161		label = "hdmi";
162		type = "a";
163
164		port {
165			hdmi_connector_in: endpoint {
166				remote-endpoint = <&sii9022_out>;
167			};
168		};
169	};
170
171	codec_audio: sound {
172		compatible = "simple-audio-card";
173		simple-audio-card,name = "AM62Ax-SKEVM";
174		simple-audio-card,widgets =
175			"Headphone",	"Headphone Jack",
176			"Line",		"Line In",
177			"Microphone",	"Microphone Jack";
178		simple-audio-card,routing =
179			"Headphone Jack",	"HPLOUT",
180			"Headphone Jack",	"HPROUT",
181			"LINE1L",		"Line In",
182			"LINE1R",		"Line In",
183			"MIC3R",		"Microphone Jack",
184			"Microphone Jack",	"Mic Bias";
185		simple-audio-card,format = "dsp_b";
186		simple-audio-card,bitclock-master = <&sound_master>;
187		simple-audio-card,frame-master = <&sound_master>;
188		simple-audio-card,bitclock-inversion;
189
190		simple-audio-card,cpu {
191			sound-dai = <&mcasp1>;
192		};
193
194		sound_master: simple-audio-card,codec {
195			sound-dai = <&tlv320aic3106>;
196			clocks = <&tlv320_mclk>;
197		};
198	};
199};
200
201&mcu_pmx0 {
202	wkup_uart0_pins_default: wkup-uart0-default-pins {
203		pinctrl-single,pins = <
204			AM62AX_MCU_IOPAD(0x0024, PIN_INPUT, 0) /* (C9) WKUP_UART0_RXD */
205			AM62AX_MCU_IOPAD(0x0028, PIN_OUTPUT, 0) /* (E9) WKUP_UART0_TXD */
206			AM62AX_MCU_IOPAD(0x002c, PIN_INPUT, 0) /* (C10) WKUP_UART0_CTSn */
207			AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
208		>;
209	};
210};
211
212/* WKUP UART0 is used for DM firmware logs */
213&wkup_uart0 {
214	pinctrl-names = "default";
215	pinctrl-0 = <&wkup_uart0_pins_default>;
216	status = "reserved";
217};
218
219&main_pmx0 {
220	main_dss0_pins_default: main-dss0-default-pins {
221		pinctrl-single,pins = <
222			AM62AX_IOPAD(0x100, PIN_OUTPUT, 0) /* (V17) VOUT0_VSYNC */
223			AM62AX_IOPAD(0x0f8, PIN_OUTPUT, 0) /* (T18) VOUT0_HSYNC */
224			AM62AX_IOPAD(0x104, PIN_OUTPUT, 0) /* (AA22) VOUT0_PCLK */
225			AM62AX_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (U17) VOUT0_DE */
226			AM62AX_IOPAD(0x0b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
227			AM62AX_IOPAD(0x0bc, PIN_OUTPUT, 0) /* (U21) VOUT0_DATA1 */
228			AM62AX_IOPAD(0x0c0, PIN_OUTPUT, 0) /* (U20) VOUT0_DATA2 */
229			AM62AX_IOPAD(0x0c4, PIN_OUTPUT, 0) /* (U19) VOUT0_DATA3 */
230			AM62AX_IOPAD(0x0c8, PIN_OUTPUT, 0) /* (T19) VOUT0_DATA4 */
231			AM62AX_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (U18) VOUT0_DATA5 */
232			AM62AX_IOPAD(0x0d0, PIN_OUTPUT, 0) /* (V22) VOUT0_DATA6 */
233			AM62AX_IOPAD(0x0d4, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA7 */
234			AM62AX_IOPAD(0x0d8, PIN_OUTPUT, 0) /* (V19) VOUT0_DATA8 */
235			AM62AX_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (V18) VOUT0_DATA9 */
236			AM62AX_IOPAD(0x0e0, PIN_OUTPUT, 0) /* (W22) VOUT0_DATA10 */
237			AM62AX_IOPAD(0x0e4, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA11 */
238			AM62AX_IOPAD(0x0e8, PIN_OUTPUT, 0) /* (W20) VOUT0_DATA12 */
239			AM62AX_IOPAD(0x0ec, PIN_OUTPUT, 0) /* (W19) VOUT0_DATA13 */
240			AM62AX_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (Y21) VOUT0_DATA14 */
241			AM62AX_IOPAD(0x0f4, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA15 */
242			AM62AX_IOPAD(0x05c, PIN_OUTPUT, 1) /* (P22) GPMC0_AD8.VOUT0_DATA16 */
243			AM62AX_IOPAD(0x060, PIN_OUTPUT, 1) /* (R19) GPMC0_AD9.VOUT0_DATA17 */
244			AM62AX_IOPAD(0x064, PIN_OUTPUT, 1) /* (R20) GPMC0_AD10.VOUT0_DATA18 */
245			AM62AX_IOPAD(0x068, PIN_OUTPUT, 1) /* (R22) GPMC0_AD11.VOUT0_DATA19 */
246			AM62AX_IOPAD(0x06c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */
247			AM62AX_IOPAD(0x070, PIN_OUTPUT, 1) /* (R21) GPMC0_AD13.VOUT0_DATA21 */
248			AM62AX_IOPAD(0x074, PIN_OUTPUT, 1) /* (T20) GPMC0_AD14.VOUT0_DATA22 */
249			AM62AX_IOPAD(0x078, PIN_OUTPUT, 1) /* (T21) GPMC0_AD15.VOUT0_DATA23 */
250		>;
251	};
252
253	main_uart0_pins_default: main-uart0-default-pins {
254		pinctrl-single,pins = <
255			AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (E14) UART0_RXD */
256			AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */
257		>;
258	};
259
260	main_uart1_pins_default: main-uart1-default-pins {
261		pinctrl-single,pins = <
262			AM62AX_IOPAD(0x01ac, PIN_INPUT, 2) /* (B21) MCASP0_AFSR.UART1_RXD */
263			AM62AX_IOPAD(0x01b0, PIN_OUTPUT, 2) /* (A21) MCASP0_ACLKR.UART1_TXD */
264			AM62AX_IOPAD(0x0194, PIN_INPUT, 2) /* (C19) MCASP0_AXR3.UART1_CTSn */
265			AM62AX_IOPAD(0x0198, PIN_OUTPUT, 2) /* (B19) MCASP0_AXR2.UART1_RTSn */
266		>;
267	};
268
269	main_i2c0_pins_default: main-i2c0-default-pins {
270		pinctrl-single,pins = <
271			AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
272			AM62AX_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
273		>;
274	};
275
276	main_i2c1_pins_default: main-i2c1-default-pins {
277		pinctrl-single,pins = <
278			AM62AX_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
279			AM62AX_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
280		>;
281	};
282
283	main_i2c2_pins_default: main-i2c2-default-pins {
284		pinctrl-single,pins = <
285			AM62AX_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */
286			AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */
287		>;
288	};
289
290	main_mmc0_pins_default: main-mmc0-default-pins {
291		pinctrl-single,pins = <
292			AM62AX_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
293			AM62AX_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLKLB */
294			AM62AX_IOPAD(0x21c, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
295			AM62AX_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
296			AM62AX_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */
297			AM62AX_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */
298			AM62AX_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */
299			AM62AX_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */
300			AM62AX_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */
301			AM62AX_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */
302			AM62AX_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */
303		>;
304		bootph-all;
305	};
306
307	main_mmc1_pins_default: main-mmc1-default-pins {
308		pinctrl-single,pins = <
309			AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
310			AM62AX_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
311			AM62AX_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
312			AM62AX_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
313			AM62AX_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
314			AM62AX_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
315			AM62AX_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
316		>;
317	};
318
319	usr_led_pins_default: usr-led-default-pins {
320		pinctrl-single,pins = <
321			AM62AX_IOPAD(0x244, PIN_OUTPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
322		>;
323	};
324
325	main_usb1_pins_default: main-usb1-default-pins {
326		pinctrl-single,pins = <
327			AM62AX_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
328		>;
329	};
330
331	main_mdio1_pins_default: main-mdio1-default-pins {
332		pinctrl-single,pins = <
333			AM62AX_IOPAD(0x160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */
334			AM62AX_IOPAD(0x15c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */
335		>;
336	};
337
338	main_rgmii1_pins_default: main-rgmii1-default-pins {
339		pinctrl-single,pins = <
340			AM62AX_IOPAD(0x14c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */
341			AM62AX_IOPAD(0x150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */
342			AM62AX_IOPAD(0x154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */
343			AM62AX_IOPAD(0x158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */
344			AM62AX_IOPAD(0x148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */
345			AM62AX_IOPAD(0x144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */
346			AM62AX_IOPAD(0x134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */
347			AM62AX_IOPAD(0x138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */
348			AM62AX_IOPAD(0x13c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */
349			AM62AX_IOPAD(0x140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */
350			AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */
351			AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */
352		>;
353	};
354
355	main_mcasp1_pins_default: main-mcasp1-default-pins {
356		pinctrl-single,pins = <
357			AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */
358			AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */
359			AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */
360			AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */
361		>;
362	};
363
364	main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins {
365		pinctrl-single,pins = <
366			AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */
367		>;
368	};
369
370	vddshv_sdio_pins_default: vddshv-sdio-default-pins {
371		pinctrl-single,pins = <
372			AM62AX_IOPAD(0x07c, PIN_OUTPUT, 7) /* (M19) GPMC0_CLK.GPIO0_31 */
373		>;
374	};
375};
376
377&mcu_pmx0 {
378	status = "okay";
379
380	pmic_irq_pins_default: pmic-irq-default-pins {
381		pinctrl-single,pins = <
382			AM62AX_MCU_IOPAD(0x000, PIN_INPUT, 7) /* (E11) MCU_GPIO0_0 */
383		>;
384	};
385};
386
387&mcu_gpio0 {
388	status = "okay";
389};
390
391&main_i2c0 {
392	status = "okay";
393	pinctrl-names = "default";
394	pinctrl-0 = <&main_i2c0_pins_default>;
395	clock-frequency = <400000>;
396
397	typec_pd0: usb-power-controller@3f {
398		compatible = "ti,tps6598x";
399		reg = <0x3f>;
400
401		connector {
402			compatible = "usb-c-connector";
403			label = "USB-C";
404			self-powered;
405			data-role = "dual";
406			power-role = "sink";
407			port {
408				usb_con_hs: endpoint {
409					remote-endpoint = <&usb0_hs_ep>;
410				};
411			};
412		};
413	};
414
415	tps659312: pmic@48 {
416		compatible = "ti,tps6593-q1";
417		reg = <0x48>;
418		ti,primary-pmic;
419		system-power-controller;
420
421		gpio-controller;
422		#gpio-cells = <2>;
423
424		pinctrl-names = "default";
425		pinctrl-0 = <&pmic_irq_pins_default>;
426		interrupt-parent = <&mcu_gpio0>;
427		interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
428
429		buck123-supply = <&vcc_3v3_sys>;
430		buck4-supply = <&vcc_3v3_sys>;
431		buck5-supply = <&vcc_3v3_sys>;
432		ldo1-supply = <&vcc_3v3_sys>;
433		ldo2-supply = <&vcc_3v3_sys>;
434		ldo3-supply = <&buck5>;
435		ldo4-supply = <&vcc_3v3_sys>;
436
437		regulators {
438			buck123: buck123 {
439				regulator-name = "vcc_core";
440				regulator-min-microvolt = <715000>;
441				regulator-max-microvolt = <895000>;
442				regulator-boot-on;
443				regulator-always-on;
444			};
445
446			buck4: buck4 {
447				regulator-name = "vcc_1v1";
448				regulator-min-microvolt = <1100000>;
449				regulator-max-microvolt = <1100000>;
450				regulator-boot-on;
451				regulator-always-on;
452			};
453
454			buck5: buck5 {
455				regulator-name = "vcc_1v8_sys";
456				regulator-min-microvolt = <1800000>;
457				regulator-max-microvolt = <1800000>;
458				regulator-boot-on;
459				regulator-always-on;
460			};
461
462			ldo1: ldo1 {
463				regulator-name = "vddshv5_sdio";
464				regulator-min-microvolt = <3300000>;
465				regulator-max-microvolt = <3300000>;
466				regulator-boot-on;
467				regulator-always-on;
468			};
469
470			ldo2: ldo2 {
471				regulator-name = "vpp_1v8";
472				regulator-min-microvolt = <1800000>;
473				regulator-max-microvolt = <1800000>;
474				regulator-boot-on;
475				regulator-always-on;
476			};
477
478			ldo3: ldo3 {
479				regulator-name = "vcc_0v85";
480				regulator-min-microvolt = <850000>;
481				regulator-max-microvolt = <850000>;
482				regulator-boot-on;
483				regulator-always-on;
484			};
485
486			ldo4: ldo4 {
487				regulator-name = "vdda_1v8";
488				regulator-min-microvolt = <1800000>;
489				regulator-max-microvolt = <1800000>;
490				regulator-boot-on;
491				regulator-always-on;
492			};
493		};
494	};
495};
496
497&main_i2c1 {
498	status = "okay";
499	pinctrl-names = "default";
500	pinctrl-0 = <&main_i2c1_pins_default>;
501	clock-frequency = <100000>;
502
503	exp1: gpio@22 {
504		compatible = "ti,tca6424";
505		reg = <0x22>;
506		gpio-controller;
507		#gpio-cells = <2>;
508		interrupt-parent = <&main_gpio1>;
509		interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
510		interrupt-controller;
511		#interrupt-cells = <2>;
512		pinctrl-names = "default";
513		pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
514
515		gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
516				   "BT_EN_SOC", "MMC1_SD_EN",
517				   "VPP_EN", "EXP_PS_3V3_En",
518				   "EXP_PS_5V0_En", "EXP_HAT_DETECT",
519				   "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
520				   "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC",
521				   "GPIO_HDMI_RSTn", "CSI_GPIO0",
522				   "CSI_GPIO1", "WLAN_ALERTn",
523				   "HDMI_INTn", "TEST_GPIO2",
524				   "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
525				   "MCASP1_FET_SEL", "UART1_FET_SEL",
526				   "PD_I2C_IRQ", "IO_EXP_TEST_LED";
527	};
528
529	tlv320aic3106: audio-codec@1b {
530		#sound-dai-cells = <0>;
531		compatible = "ti,tlv320aic3106";
532		reg = <0x1b>;
533		ai3x-micbias-vg = <1>;	/* 2.0V */
534
535		/* Regulators */
536		AVDD-supply = <&vcc_3v3_sys>;
537		IOVDD-supply = <&vcc_3v3_sys>;
538		DRVDD-supply = <&vcc_3v3_sys>;
539		DVDD-supply = <&buck5>;
540	};
541
542	exp2: gpio@23 {
543		compatible = "ti,tca6424";
544		reg = <0x23>;
545		gpio-controller;
546		#gpio-cells = <2>;
547
548		gpio-line-names = "", "",
549				  "", "",
550				  "", "",
551				  "", "",
552				  "WL_LT_EN", "CSI_RSTz",
553				  "", "",
554				  "", "",
555				  "", "",
556				  "SPI0_FET_SEL", "SPI0_FET_OE",
557				  "RGMII2_BRD_CONN_DET", "CSI_SEL2",
558				  "CSI_EN", "AUTO_100M_1000M_CONFIG",
559				  "CSI_VLDO_SEL", "SoC_WLAN_SDIO_RST";
560	};
561
562	sii9022: bridge-hdmi@3b {
563		compatible = "sil,sii9022";
564		reg = <0x3b>;
565		interrupt-parent = <&exp1>;
566		interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
567		#sound-dai-cells = <0>;
568		sil,i2s-data-lanes = < 0 >;
569
570		ports {
571			#address-cells = <1>;
572			#size-cells = <0>;
573
574			port@0 {
575				reg = <0>;
576
577				sii9022_in: endpoint {
578					remote-endpoint = <&dpi1_out>;
579				};
580			};
581
582			port@1 {
583				reg = <1>;
584
585				sii9022_out: endpoint {
586					remote-endpoint = <&hdmi_connector_in>;
587				};
588			};
589		};
590	};
591};
592
593&main_i2c2 {
594	status = "okay";
595	pinctrl-names = "default";
596	pinctrl-0 = <&main_i2c2_pins_default>;
597	clock-frequency = <400000>;
598};
599
600&sdhci0 {
601	/* eMMC */
602	status = "okay";
603	non-removable;
604	pinctrl-names = "default";
605	pinctrl-0 = <&main_mmc0_pins_default>;
606	bootph-all;
607};
608
609&sdhci1 {
610	/* SD/MMC */
611	status = "okay";
612	vmmc-supply = <&vdd_mmc1>;
613	vqmmc-supply = <&vddshv_sdio>;
614	pinctrl-names = "default";
615	pinctrl-0 = <&main_mmc1_pins_default>;
616	disable-wp;
617};
618
619&main_gpio0 {
620	status = "okay";
621};
622
623&main_gpio1 {
624	status = "okay";
625};
626
627&main_gpio_intr {
628	status = "okay";
629};
630
631&main_uart0 {
632	status = "okay";
633	pinctrl-names = "default";
634	pinctrl-0 = <&main_uart0_pins_default>;
635};
636
637/* Main UART1 is used for TIFS firmware logs */
638&main_uart1 {
639	pinctrl-names = "default";
640	pinctrl-0 = <&main_uart1_pins_default>;
641	status = "reserved";
642};
643
644&usbss0 {
645	status = "okay";
646	ti,vbus-divider;
647};
648
649&usb0 {
650	usb-role-switch;
651
652	port {
653		usb0_hs_ep: endpoint {
654			remote-endpoint = <&usb_con_hs>;
655		};
656	};
657};
658
659&usbss1 {
660	status = "okay";
661};
662
663&usb1 {
664	dr_mode = "host";
665	pinctrl-names = "default";
666	pinctrl-0 = <&main_usb1_pins_default>;
667};
668
669&cpsw3g {
670	status = "okay";
671	pinctrl-names = "default";
672	pinctrl-0 = <&main_rgmii1_pins_default>;
673};
674
675&cpsw_port1 {
676	status = "okay";
677	phy-mode = "rgmii-rxid";
678	phy-handle = <&cpsw3g_phy0>;
679};
680
681&cpsw_port2 {
682	status = "disabled";
683};
684
685&cpsw3g_mdio {
686	status = "okay";
687	pinctrl-names = "default";
688	pinctrl-0 = <&main_mdio1_pins_default>;
689
690	cpsw3g_phy0: ethernet-phy@0 {
691		reg = <0>;
692		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
693		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
694		ti,min-output-impedance;
695	};
696};
697
698&mcasp1 {
699	status = "okay";
700	#sound-dai-cells = <0>;
701
702	pinctrl-names = "default";
703	pinctrl-0 = <&main_mcasp1_pins_default>;
704
705	op-mode = <0>;          /* MCASP_IIS_MODE */
706	tdm-slots = <2>;
707
708	serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
709	       1 0 2 0
710	       0 0 0 0
711	       0 0 0 0
712	       0 0 0 0
713	>;
714};
715
716&dss {
717	status = "okay";
718	pinctrl-names = "default";
719	pinctrl-0 = <&main_dss0_pins_default>;
720};
721
722&dss_ports {
723	/* VP2: DPI Output */
724	port@1 {
725		reg = <1>;
726
727		dpi1_out: endpoint {
728			remote-endpoint = <&sii9022_in>;
729		};
730	};
731};
732