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>;
71 compatible = "ti,j721e-cpb-audio";
74 ti,cpb-mcasp = <&mcasp10>;
75 ti,cpb-codec = <&pcm3168a_1>;
77 clocks = <&k3_clks 184 1>,
78 <&k3_clks 184 2>, <&k3_clks 184 4>,
80 <&k3_clks 157 400>, <&k3_clks 157 401>;
81 clock-names = "cpb-mcasp-auxclk",
82 "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100",
84 "cpb-codec-scki-48000", "cpb-codec-scki-44100";
89 sw10_button_pins_default: sw10-button-pins-default {
90 pinctrl-single,pins = <
91 J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */
95 main_mmc1_pins_default: main-mmc1-pins-default {
96 pinctrl-single,pins = <
97 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
98 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
99 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
100 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
101 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
102 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
103 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
104 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
105 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
109 main_usbss0_pins_default: main-usbss0-pins-default {
110 pinctrl-single,pins = <
111 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
112 J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
116 main_usbss1_pins_default: main-usbss1-pins-default {
117 pinctrl-single,pins = <
118 J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */
122 main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default {
123 pinctrl-single,pins = <
124 J721E_IOPAD(0x230, PIN_INPUT, 7) /* (U2) ECAP0_IN_APWM_OUT.GPIO1_11 */
128 main_i2c0_pins_default: main-i2c0-pins-default {
129 pinctrl-single,pins = <
130 J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
131 J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
135 main_i2c1_pins_default: main-i2c1-pins-default {
136 pinctrl-single,pins = <
137 J721E_IOPAD(0x228, PIN_INPUT_PULLUP, 0) /* (Y6) I2C1_SCL */
138 J721E_IOPAD(0x22c, PIN_INPUT_PULLUP, 0) /* (AA6) I2C1_SDA */
142 main_i2c3_pins_default: main-i2c3-pins-default {
143 pinctrl-single,pins = <
144 J721E_IOPAD(0x270, PIN_INPUT_PULLUP, 4) /* (T26) MMC2_CLK.I2C3_SCL */
145 J721E_IOPAD(0x274, PIN_INPUT_PULLUP, 4) /* (T25) MMC2_CMD.I2C3_SDA */
149 main_i2c6_pins_default: main-i2c6-pins-default {
150 pinctrl-single,pins = <
151 J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */
152 J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */
156 mcasp10_pins_default: mcasp10-pins-default {
157 pinctrl-single,pins = <
158 J721E_IOPAD(0x158, PIN_OUTPUT_PULLDOWN, 12) /* (U23) RGMII5_TX_CTL.MCASP10_ACLKX */
159 J721E_IOPAD(0x15c, PIN_OUTPUT_PULLDOWN, 12) /* (U26) RGMII5_RX_CTL.MCASP10_AFSX */
160 J721E_IOPAD(0x160, PIN_OUTPUT_PULLDOWN, 12) /* (V28) RGMII5_TD3.MCASP10_AXR0 */
161 J721E_IOPAD(0x164, PIN_OUTPUT_PULLDOWN, 12) /* (V29) RGMII5_TD2.MCASP10_AXR1 */
162 J721E_IOPAD(0x170, PIN_OUTPUT_PULLDOWN, 12) /* (U29) RGMII5_TXC.MCASP10_AXR2 */
163 J721E_IOPAD(0x174, PIN_OUTPUT_PULLDOWN, 12) /* (U25) RGMII5_RXC.MCASP10_AXR3 */
164 J721E_IOPAD(0x198, PIN_INPUT_PULLDOWN, 12) /* (V25) RGMII6_TD1.MCASP10_AXR4 */
165 J721E_IOPAD(0x19c, PIN_INPUT_PULLDOWN, 12) /* (W27) RGMII6_TD0.MCASP10_AXR5 */
166 J721E_IOPAD(0x1a0, PIN_INPUT_PULLDOWN, 12) /* (W29) RGMII6_TXC.MCASP10_AXR6 */
170 audi_ext_refclk2_pins_default: audi-ext-refclk2-pins-default {
171 pinctrl-single,pins = <
172 J721E_IOPAD(0x1a4, PIN_OUTPUT, 3) /* (W26) RGMII6_RXC.AUDIO_EXT_REFCLK2 */
178 sw11_button_pins_default: sw11-button-pins-default {
179 pinctrl-single,pins = <
180 J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */
184 mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
185 pinctrl-single,pins = <
186 J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
187 J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
188 J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
189 J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
190 J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
191 J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
192 J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
193 J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
197 mcu_cpsw_pins_default: mcu-cpsw-pins-default {
198 pinctrl-single,pins = <
199 J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
200 J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
201 J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
202 J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
203 J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
204 J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
205 J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
206 J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
207 J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
208 J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
209 J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
210 J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
214 mcu_mdio_pins_default: mcu-mdio1-pins-default {
215 pinctrl-single,pins = <
216 J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* MCU_MDIO0_MDC */
217 J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_MDIO0_MDIO */
223 /* Wakeup UART is used by System firmware */
228 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
232 /* UART not brought out */
237 /* UART not brought out */
242 /* UART not brought out */
247 /* UART not brought out */
252 /* UART not brought out */
257 /* UART not brought out */
292 ti,driver-strength-ohm = <50>;
298 pinctrl-names = "default";
299 pinctrl-0 = <&main_mmc1_pins_default>;
300 ti,driver-strength-ohm = <50>;
310 idle-states = <1>, <0>; /* USB0 to SERDES3, USB1 to SERDES1 */
314 idle-states = <J721E_SERDES0_LANE0_PCIE0_LANE0>, <J721E_SERDES0_LANE1_PCIE0_LANE1>,
315 <J721E_SERDES1_LANE0_PCIE1_LANE0>, <J721E_SERDES1_LANE1_PCIE1_LANE1>,
316 <J721E_SERDES2_LANE0_PCIE2_LANE0>, <J721E_SERDES2_LANE1_PCIE2_LANE1>,
317 <J721E_SERDES3_LANE0_USB3_0_SWAP>, <J721E_SERDES3_LANE1_USB3_0>,
318 <J721E_SERDES4_LANE0_EDP_LANE0>, <J721E_SERDES4_LANE1_EDP_LANE1>,
319 <J721E_SERDES4_LANE2_EDP_LANE2>, <J721E_SERDES4_LANE3_EDP_LANE3>;
323 typec-dir-gpios = <&main_gpio1 3 GPIO_ACTIVE_HIGH>;
324 typec-dir-debounce-ms = <700>; /* TUSB321, tCCB_DEFAULT 133 ms */
328 serdes3_usb_link: link@0 {
330 cdns,num-lanes = <2>;
332 cdns,phy-type = <PHY_TYPE_USB3>;
333 resets = <&serdes_wiz3 1>, <&serdes_wiz3 2>;
338 pinctrl-names = "default";
339 pinctrl-0 = <&main_usbss0_pins_default>;
345 maximum-speed = "super-speed";
346 phys = <&serdes3_usb_link>;
347 phy-names = "cdns3,usb3-phy";
351 pinctrl-names = "default";
352 pinctrl-0 = <&main_usbss1_pins_default>;
358 maximum-speed = "high-speed";
362 pinctrl-names = "default";
363 pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
366 compatible = "jedec,spi-nor";
368 spi-tx-bus-width = <1>;
369 spi-rx-bus-width = <4>;
370 spi-max-frequency = <40000000>;
371 cdns,tshsl-ns = <60>;
372 cdns,tsd2d-ns = <60>;
373 cdns,tchsh-ns = <60>;
374 cdns,tslch-ns = <60>;
375 cdns,read-delay = <2>;
376 #address-cells = <1>;
383 ti,adc-channels = <0 1 2 3 4 5 6 7>;
389 ti,adc-channels = <0 1 2 3 4 5 6 7>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&main_i2c0_pins_default>;
396 clock-frequency = <400000>;
399 compatible = "ti,tca6416";
406 compatible = "ti,tca6424";
412 /* P11 - MCASP/TRACE_MUX_S0 */
414 gpios = <9 GPIO_ACTIVE_HIGH>;
416 line-name = "MCASP/TRACE_MUX_S0";
420 /* P12 - MCASP/TRACE_MUX_S1 */
422 gpios = <10 GPIO_ACTIVE_HIGH>;
424 line-name = "MCASP/TRACE_MUX_S1";
430 pinctrl-names = "default";
431 pinctrl-0 = <&main_i2c1_pins_default>;
432 clock-frequency = <400000>;
435 compatible = "ti,tca6408";
439 pinctrl-names = "default";
440 pinctrl-0 = <&main_i2c1_exp4_pins_default>;
441 interrupt-parent = <&main_gpio1>;
442 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
443 interrupt-controller;
444 #interrupt-cells = <2>;
449 /* Confiure AUDIO_EXT_REFCLK2 pin as output */
450 pinctrl-names = "default";
451 pinctrl-0 = <&audi_ext_refclk2_pins_default>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&main_i2c3_pins_default>;
457 clock-frequency = <400000>;
460 compatible = "ti,tca6408";
466 pcm3168a_1: audio-codec@44 {
467 compatible = "ti,pcm3168a";
470 #sound-dai-cells = <1>;
472 reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>;
474 /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */
475 clocks = <&k3_clks 157 371>;
476 clock-names = "scki";
478 /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */
479 assigned-clocks = <&k3_clks 157 371>;
480 assigned-clock-parents = <&k3_clks 157 400>;
481 assigned-clock-rates = <24576000>; /* for 48KHz */
483 VDD1-supply = <&vsys_3v3>;
484 VDD2-supply = <&vsys_3v3>;
485 VCCAD1-supply = <&vsys_5v0>;
486 VCCAD2-supply = <&vsys_5v0>;
487 VCCDA1-supply = <&vsys_5v0>;
488 VCCDA2-supply = <&vsys_5v0>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&main_i2c6_pins_default>;
495 clock-frequency = <400000>;
498 compatible = "ti,tca6408";
506 pinctrl-names = "default";
507 pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
511 phy0: ethernet-phy@0 {
513 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
514 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
519 phy-mode = "rgmii-rxid";
520 phy-handle = <&phy0>;
525 * These clock assignments are chosen to enable the following outputs:
527 * VP0 - DisplayPort SST
533 assigned-clocks = <&k3_clks 152 1>,
537 assigned-clock-parents = <&k3_clks 152 2>, /* PLL16_HSDIV0 */
538 <&k3_clks 152 6>, /* PLL19_HSDIV0 */
539 <&k3_clks 152 11>, /* PLL18_HSDIV0 */
540 <&k3_clks 152 18>; /* PLL23_HSDIV0 */
544 #sound-dai-cells = <0>;
546 pinctrl-names = "default";
547 pinctrl-0 = <&mcasp10_pins_default>;
549 op-mode = <0>; /* MCASP_IIS_MODE */
551 auxclk-fs-ratio = <256>;
553 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
564 serdes0_pcie_link: link@0 {
566 cdns,num-lanes = <1>;
568 cdns,phy-type = <PHY_TYPE_PCIE>;
569 resets = <&serdes_wiz0 1>;
574 serdes1_pcie_link: link@0 {
576 cdns,num-lanes = <2>;
578 cdns,phy-type = <PHY_TYPE_PCIE>;
579 resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>;
584 serdes2_pcie_link: link@0 {
586 cdns,num-lanes = <2>;
588 cdns,phy-type = <PHY_TYPE_PCIE>;
589 resets = <&serdes_wiz2 1>, <&serdes_wiz2 2>;
594 reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
595 phys = <&serdes0_pcie_link>;
596 phy-names = "pcie-phy";
601 reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
602 phys = <&serdes1_pcie_link>;
603 phy-names = "pcie-phy";
608 reset-gpios = <&exp2 20 GPIO_ACTIVE_HIGH>;
609 phys = <&serdes2_pcie_link>;
610 phy-names = "pcie-phy";
615 phys = <&serdes0_pcie_link>;
616 phy-names = "pcie-phy";
622 phys = <&serdes1_pcie_link>;
623 phy-names = "pcie-phy";
629 phys = <&serdes2_pcie_link>;
630 phy-names = "pcie-phy";