1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
8 #include "k3-j721e-som-p0.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/net/ti-dp83867.h>
15 stdout-path = "serial2:115200n8";
16 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
19 gpio_keys: gpio-keys {
20 compatible = "gpio-keys";
22 pinctrl-names = "default";
23 pinctrl-0 = <&sw10_button_pins_default &sw11_button_pins_default>;
26 label = "GPIO Key USER1";
28 gpios = <&main_gpio0 0 GPIO_ACTIVE_LOW>;
32 label = "GPIO Key USER2";
34 gpios = <&wkup_gpio0 7 GPIO_ACTIVE_LOW>;
38 evm_12v0: fixedregulator-evm12v0 {
40 compatible = "regulator-fixed";
41 regulator-name = "evm_12v0";
42 regulator-min-microvolt = <12000000>;
43 regulator-max-microvolt = <12000000>;
48 vsys_3v3: fixedregulator-vsys3v3 {
49 /* Output of LMS140 */
50 compatible = "regulator-fixed";
51 regulator-name = "vsys_3v3";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
54 vin-supply = <&evm_12v0>;
59 vsys_5v0: fixedregulator-vsys5v0 {
60 /* Output of LM5140 */
61 compatible = "regulator-fixed";
62 regulator-name = "vsys_5v0";
63 regulator-min-microvolt = <5000000>;
64 regulator-max-microvolt = <5000000>;
65 vin-supply = <&evm_12v0>;
70 vdd_mmc1: fixedregulator-sd {
71 compatible = "regulator-fixed";
72 regulator-name = "vdd_mmc1";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
77 vin-supply = <&vsys_3v3>;
78 gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
81 vdd_sd_dv_alt: gpio-regulator-TLV71033 {
82 compatible = "regulator-gpio";
83 pinctrl-names = "default";
84 pinctrl-0 = <&vdd_sd_dv_alt_pins_default>;
85 regulator-name = "tlv71033";
86 regulator-min-microvolt = <1800000>;
87 regulator-max-microvolt = <3300000>;
89 vin-supply = <&vsys_5v0>;
90 gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>;
91 states = <1800000 0x0>,
96 compatible = "ti,j721e-cpb-audio";
99 ti,cpb-mcasp = <&mcasp10>;
100 ti,cpb-codec = <&pcm3168a_1>;
102 clocks = <&k3_clks 184 1>,
103 <&k3_clks 184 2>, <&k3_clks 184 4>,
105 <&k3_clks 157 400>, <&k3_clks 157 401>;
106 clock-names = "cpb-mcasp-auxclk",
107 "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100",
109 "cpb-codec-scki-48000", "cpb-codec-scki-44100";
114 sw10_button_pins_default: sw10-button-pins-default {
115 pinctrl-single,pins = <
116 J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */
120 main_mmc1_pins_default: main-mmc1-pins-default {
121 pinctrl-single,pins = <
122 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
123 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
124 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
125 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
126 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
127 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
128 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
129 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
130 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
134 vdd_sd_dv_alt_pins_default: vdd-sd-dv-alt-pins-default {
135 pinctrl-single,pins = <
136 J721E_IOPAD(0x1d8, PIN_INPUT, 7) /* (W4) SPI1_CS1.GPIO0_117 */
140 main_usbss0_pins_default: main-usbss0-pins-default {
141 pinctrl-single,pins = <
142 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
143 J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
147 main_usbss1_pins_default: main-usbss1-pins-default {
148 pinctrl-single,pins = <
149 J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */
153 main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default {
154 pinctrl-single,pins = <
155 J721E_IOPAD(0x230, PIN_INPUT, 7) /* (U2) ECAP0_IN_APWM_OUT.GPIO1_11 */
159 main_i2c0_pins_default: main-i2c0-pins-default {
160 pinctrl-single,pins = <
161 J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
162 J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
166 main_i2c1_pins_default: main-i2c1-pins-default {
167 pinctrl-single,pins = <
168 J721E_IOPAD(0x228, PIN_INPUT_PULLUP, 0) /* (Y6) I2C1_SCL */
169 J721E_IOPAD(0x22c, PIN_INPUT_PULLUP, 0) /* (AA6) I2C1_SDA */
173 main_i2c3_pins_default: main-i2c3-pins-default {
174 pinctrl-single,pins = <
175 J721E_IOPAD(0x270, PIN_INPUT_PULLUP, 4) /* (T26) MMC2_CLK.I2C3_SCL */
176 J721E_IOPAD(0x274, PIN_INPUT_PULLUP, 4) /* (T25) MMC2_CMD.I2C3_SDA */
180 main_i2c6_pins_default: main-i2c6-pins-default {
181 pinctrl-single,pins = <
182 J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */
183 J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */
187 mcasp10_pins_default: mcasp10-pins-default {
188 pinctrl-single,pins = <
189 J721E_IOPAD(0x158, PIN_OUTPUT_PULLDOWN, 12) /* (U23) RGMII5_TX_CTL.MCASP10_ACLKX */
190 J721E_IOPAD(0x15c, PIN_OUTPUT_PULLDOWN, 12) /* (U26) RGMII5_RX_CTL.MCASP10_AFSX */
191 J721E_IOPAD(0x160, PIN_OUTPUT_PULLDOWN, 12) /* (V28) RGMII5_TD3.MCASP10_AXR0 */
192 J721E_IOPAD(0x164, PIN_OUTPUT_PULLDOWN, 12) /* (V29) RGMII5_TD2.MCASP10_AXR1 */
193 J721E_IOPAD(0x170, PIN_OUTPUT_PULLDOWN, 12) /* (U29) RGMII5_TXC.MCASP10_AXR2 */
194 J721E_IOPAD(0x174, PIN_OUTPUT_PULLDOWN, 12) /* (U25) RGMII5_RXC.MCASP10_AXR3 */
195 J721E_IOPAD(0x198, PIN_INPUT_PULLDOWN, 12) /* (V25) RGMII6_TD1.MCASP10_AXR4 */
196 J721E_IOPAD(0x19c, PIN_INPUT_PULLDOWN, 12) /* (W27) RGMII6_TD0.MCASP10_AXR5 */
197 J721E_IOPAD(0x1a0, PIN_INPUT_PULLDOWN, 12) /* (W29) RGMII6_TXC.MCASP10_AXR6 */
201 audi_ext_refclk2_pins_default: audi-ext-refclk2-pins-default {
202 pinctrl-single,pins = <
203 J721E_IOPAD(0x1a4, PIN_OUTPUT, 3) /* (W26) RGMII6_RXC.AUDIO_EXT_REFCLK2 */
209 sw11_button_pins_default: sw11-button-pins-default {
210 pinctrl-single,pins = <
211 J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */
215 mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
216 pinctrl-single,pins = <
217 J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
218 J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
219 J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
220 J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
221 J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
222 J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
223 J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
224 J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
228 mcu_cpsw_pins_default: mcu-cpsw-pins-default {
229 pinctrl-single,pins = <
230 J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
231 J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
232 J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
233 J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
234 J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
235 J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
236 J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
237 J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
238 J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
239 J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
240 J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
241 J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
245 mcu_mdio_pins_default: mcu-mdio1-pins-default {
246 pinctrl-single,pins = <
247 J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* MCU_MDIO0_MDC */
248 J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_MDIO0_MDIO */
254 /* Wakeup UART is used by System firmware */
259 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
263 /* UART not brought out */
268 /* UART not brought out */
273 /* UART not brought out */
278 /* UART not brought out */
283 /* UART not brought out */
288 /* UART not brought out */
323 ti,driver-strength-ohm = <50>;
329 vmmc-supply = <&vdd_mmc1>;
330 vqmmc-supply = <&vdd_sd_dv_alt>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&main_mmc1_pins_default>;
333 ti,driver-strength-ohm = <50>;
343 idle-states = <1>, <0>; /* USB0 to SERDES3, USB1 to SERDES1 */
347 idle-states = <J721E_SERDES0_LANE0_PCIE0_LANE0>, <J721E_SERDES0_LANE1_PCIE0_LANE1>,
348 <J721E_SERDES1_LANE0_PCIE1_LANE0>, <J721E_SERDES1_LANE1_PCIE1_LANE1>,
349 <J721E_SERDES2_LANE0_PCIE2_LANE0>, <J721E_SERDES2_LANE1_PCIE2_LANE1>,
350 <J721E_SERDES3_LANE0_USB3_0_SWAP>, <J721E_SERDES3_LANE1_USB3_0>,
351 <J721E_SERDES4_LANE0_EDP_LANE0>, <J721E_SERDES4_LANE1_EDP_LANE1>,
352 <J721E_SERDES4_LANE2_EDP_LANE2>, <J721E_SERDES4_LANE3_EDP_LANE3>;
356 typec-dir-gpios = <&main_gpio1 3 GPIO_ACTIVE_HIGH>;
357 typec-dir-debounce-ms = <700>; /* TUSB321, tCCB_DEFAULT 133 ms */
361 serdes3_usb_link: link@0 {
363 cdns,num-lanes = <2>;
365 cdns,phy-type = <PHY_TYPE_USB3>;
366 resets = <&serdes_wiz3 1>, <&serdes_wiz3 2>;
371 pinctrl-names = "default";
372 pinctrl-0 = <&main_usbss0_pins_default>;
378 maximum-speed = "super-speed";
379 phys = <&serdes3_usb_link>;
380 phy-names = "cdns3,usb3-phy";
384 pinctrl-names = "default";
385 pinctrl-0 = <&main_usbss1_pins_default>;
391 maximum-speed = "high-speed";
395 pinctrl-names = "default";
396 pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
399 compatible = "jedec,spi-nor";
401 spi-tx-bus-width = <1>;
402 spi-rx-bus-width = <4>;
403 spi-max-frequency = <40000000>;
404 cdns,tshsl-ns = <60>;
405 cdns,tsd2d-ns = <60>;
406 cdns,tchsh-ns = <60>;
407 cdns,tslch-ns = <60>;
408 cdns,read-delay = <2>;
409 #address-cells = <1>;
416 ti,adc-channels = <0 1 2 3 4 5 6 7>;
422 ti,adc-channels = <0 1 2 3 4 5 6 7>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&main_i2c0_pins_default>;
429 clock-frequency = <400000>;
432 compatible = "ti,tca6416";
439 compatible = "ti,tca6424";
445 /* P11 - MCASP/TRACE_MUX_S0 */
447 gpios = <9 GPIO_ACTIVE_HIGH>;
449 line-name = "MCASP/TRACE_MUX_S0";
453 /* P12 - MCASP/TRACE_MUX_S1 */
455 gpios = <10 GPIO_ACTIVE_HIGH>;
457 line-name = "MCASP/TRACE_MUX_S1";
463 pinctrl-names = "default";
464 pinctrl-0 = <&main_i2c1_pins_default>;
465 clock-frequency = <400000>;
468 compatible = "ti,tca6408";
472 pinctrl-names = "default";
473 pinctrl-0 = <&main_i2c1_exp4_pins_default>;
474 interrupt-parent = <&main_gpio1>;
475 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
476 interrupt-controller;
477 #interrupt-cells = <2>;
482 /* Confiure AUDIO_EXT_REFCLK2 pin as output */
483 pinctrl-names = "default";
484 pinctrl-0 = <&audi_ext_refclk2_pins_default>;
488 pinctrl-names = "default";
489 pinctrl-0 = <&main_i2c3_pins_default>;
490 clock-frequency = <400000>;
493 compatible = "ti,tca6408";
499 pcm3168a_1: audio-codec@44 {
500 compatible = "ti,pcm3168a";
503 #sound-dai-cells = <1>;
505 reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>;
507 /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */
508 clocks = <&k3_clks 157 371>;
509 clock-names = "scki";
511 /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */
512 assigned-clocks = <&k3_clks 157 371>;
513 assigned-clock-parents = <&k3_clks 157 400>;
514 assigned-clock-rates = <24576000>; /* for 48KHz */
516 VDD1-supply = <&vsys_3v3>;
517 VDD2-supply = <&vsys_3v3>;
518 VCCAD1-supply = <&vsys_5v0>;
519 VCCAD2-supply = <&vsys_5v0>;
520 VCCDA1-supply = <&vsys_5v0>;
521 VCCDA2-supply = <&vsys_5v0>;
526 pinctrl-names = "default";
527 pinctrl-0 = <&main_i2c6_pins_default>;
528 clock-frequency = <400000>;
531 compatible = "ti,tca6408";
539 pinctrl-names = "default";
540 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
544 phy0: ethernet-phy@0 {
546 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
547 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
552 phy-mode = "rgmii-rxid";
553 phy-handle = <&phy0>;
558 * These clock assignments are chosen to enable the following outputs:
560 * VP0 - DisplayPort SST
566 assigned-clocks = <&k3_clks 152 1>,
570 assigned-clock-parents = <&k3_clks 152 2>, /* PLL16_HSDIV0 */
571 <&k3_clks 152 6>, /* PLL19_HSDIV0 */
572 <&k3_clks 152 11>, /* PLL18_HSDIV0 */
573 <&k3_clks 152 18>; /* PLL23_HSDIV0 */
617 #sound-dai-cells = <0>;
619 pinctrl-names = "default";
620 pinctrl-0 = <&mcasp10_pins_default>;
622 op-mode = <0>; /* MCASP_IIS_MODE */
624 auxclk-fs-ratio = <256>;
626 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
639 serdes0_pcie_link: link@0 {
641 cdns,num-lanes = <1>;
643 cdns,phy-type = <PHY_TYPE_PCIE>;
644 resets = <&serdes_wiz0 1>;
649 serdes1_pcie_link: link@0 {
651 cdns,num-lanes = <2>;
653 cdns,phy-type = <PHY_TYPE_PCIE>;
654 resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>;
659 serdes2_pcie_link: link@0 {
661 cdns,num-lanes = <2>;
663 cdns,phy-type = <PHY_TYPE_PCIE>;
664 resets = <&serdes_wiz2 1>, <&serdes_wiz2 2>;
669 reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
670 phys = <&serdes0_pcie_link>;
671 phy-names = "pcie-phy";
676 reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
677 phys = <&serdes1_pcie_link>;
678 phy-names = "pcie-phy";
683 reset-gpios = <&exp2 20 GPIO_ACTIVE_HIGH>;
684 phys = <&serdes2_pcie_link>;
685 phy-names = "pcie-phy";
690 phys = <&serdes0_pcie_link>;
691 phy-names = "pcie-phy";
697 phys = <&serdes1_pcie_link>;
698 phy-names = "pcie-phy";
704 phys = <&serdes2_pcie_link>;
705 phy-names = "pcie-phy";