|
|
@@ -0,0 +1,699 @@
|
|
|
+// SPDX-License-Identifier: GPL-2.0
|
|
|
+/*
|
|
|
+ * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
|
|
|
+ */
|
|
|
+
|
|
|
+/dts-v1/;
|
|
|
+
|
|
|
+#include "k3-j721e-som-tps65917.dtsi"
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
|
+#include <dt-bindings/net/ti-dp83867.h>
|
|
|
+#include <dt-bindings/pci/pci.h>
|
|
|
+#include <dt-bindings/sound/ti-mcasp.h>
|
|
|
+
|
|
|
+/ {
|
|
|
+ chosen {
|
|
|
+ stdout-path = "serial2:115200n8";
|
|
|
+ bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
|
|
|
+ };
|
|
|
+
|
|
|
+ evm_12v0: fixedregulator-evm12v0 {
|
|
|
+ /* main supply */
|
|
|
+ compatible = "regulator-fixed";
|
|
|
+ regulator-name = "evm_12v0";
|
|
|
+ regulator-min-microvolt = <12000000>;
|
|
|
+ regulator-max-microvolt = <12000000>;
|
|
|
+ regulator-always-on;
|
|
|
+ regulator-boot-on;
|
|
|
+ };
|
|
|
+
|
|
|
+ vsys_3v3: fixedregulator-vsys3v3 {
|
|
|
+ /* Output of LMS140 */
|
|
|
+ compatible = "regulator-fixed";
|
|
|
+ regulator-name = "vsys_3v3";
|
|
|
+ regulator-min-microvolt = <3300000>;
|
|
|
+ regulator-max-microvolt = <3300000>;
|
|
|
+ vin-supply = <&evm_12v0>;
|
|
|
+ regulator-always-on;
|
|
|
+ regulator-boot-on;
|
|
|
+ };
|
|
|
+
|
|
|
+ vsys_5v0: fixedregulator-vsys5v0 {
|
|
|
+ /* Output of LM5140 */
|
|
|
+ compatible = "regulator-fixed";
|
|
|
+ regulator-name = "vsys_5v0";
|
|
|
+ regulator-min-microvolt = <5000000>;
|
|
|
+ regulator-max-microvolt = <5000000>;
|
|
|
+ vin-supply = <&evm_12v0>;
|
|
|
+ regulator-always-on;
|
|
|
+ regulator-boot-on;
|
|
|
+ };
|
|
|
+
|
|
|
+ sound0: sound@0 {
|
|
|
+ compatible = "simple-audio-card";
|
|
|
+ simple-audio-card,name = "j721e-cpb-analog";
|
|
|
+ simple-audio-card,widgets =
|
|
|
+ "Headphone", "Stereo HP 1",
|
|
|
+ "Headphone", "Stereo HP 2",
|
|
|
+ "Headphone", "Stereo HP 3",
|
|
|
+ "Line", "Line Out",
|
|
|
+ "Microphone", "Stereo Mic 1",
|
|
|
+ "Microphone", "Stereo Mic 2",
|
|
|
+ "Line", "Line In";
|
|
|
+ simple-audio-card,routing =
|
|
|
+ "Stereo HP 1", "AOUT1L",
|
|
|
+ "Stereo HP 1", "AOUT1R",
|
|
|
+ "Stereo HP 2", "AOUT2L",
|
|
|
+ "Stereo HP 2", "AOUT2R",
|
|
|
+ "Stereo HP 3", "AOUT3L",
|
|
|
+ "Stereo HP 3", "AOUT3R",
|
|
|
+ "Line Out", "AOUT4L",
|
|
|
+ "Line Out", "AOUT4R",
|
|
|
+ "AIN1L", "Stereo Mic 1",
|
|
|
+ "AIN1R", "Stereo Mic 1",
|
|
|
+ "AIN2L", "Stereo Mic 2",
|
|
|
+ "AIN2R", "Stereo Mic 2",
|
|
|
+ "AIN3L", "Line In",
|
|
|
+ "AIN3R", "Line In";
|
|
|
+ simple-audio-card,mclk-fs = <256>;
|
|
|
+
|
|
|
+ simple-audio-card,dai-link@0 {
|
|
|
+ format = "dsp_a";
|
|
|
+ bitclock-master = <&sound0_0_master>;
|
|
|
+ frame-master = <&sound0_0_master>;
|
|
|
+ sound0_0_master: cpu {
|
|
|
+ sound-dai = <&mcasp10>;
|
|
|
+ clocks = <&k3_clks 184 1>;
|
|
|
+ system-clock-id = <MCASP_CLK_HCLK_AUXCLK>;
|
|
|
+ dai-tdm-slot-num = <2>;
|
|
|
+ dai-tdm-slot-width = <32>;
|
|
|
+ dai-tdm-slot-tx-mask = <1 1>;
|
|
|
+ dai-tdm-slot-rx-mask = <1 1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ codec {
|
|
|
+ sound-dai = <&pcm3168a_1 0>;
|
|
|
+ dai-tdm-slot-num = <2>;
|
|
|
+ dai-tdm-slot-width = <32>;
|
|
|
+ dai-tdm-slot-tx-mask = <1 1>;
|
|
|
+ dai-tdm-slot-rx-mask = <1 1>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ simple-audio-card,dai-link@1 {
|
|
|
+ format = "dsp_a";
|
|
|
+ bitclock-master = <&sound0_1_master>;
|
|
|
+ frame-master = <&sound0_1_master>;
|
|
|
+ sound0_1_master: cpu {
|
|
|
+ sound-dai = <&mcasp10>;
|
|
|
+ clocks = <&k3_clks 184 1>;
|
|
|
+ system-clock-id = <MCASP_CLK_HCLK_AUXCLK>;
|
|
|
+ dai-tdm-slot-num = <2>;
|
|
|
+ dai-tdm-slot-width = <32>;
|
|
|
+ dai-tdm-slot-tx-mask = <1 1>;
|
|
|
+ dai-tdm-slot-rx-mask = <1 1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ codec {
|
|
|
+ sound-dai = <&pcm3168a_1 1>;
|
|
|
+ dai-tdm-slot-num = <2>;
|
|
|
+ dai-tdm-slot-width = <32>;
|
|
|
+ dai-tdm-slot-tx-mask = <1 1>;
|
|
|
+ dai-tdm-slot-rx-mask = <1 1>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ vdd_mmc1: fixedregulator-sd {
|
|
|
+ compatible = "regulator-fixed";
|
|
|
+ regulator-name = "vdd_mmc1";
|
|
|
+ regulator-min-microvolt = <3300000>;
|
|
|
+ regulator-max-microvolt = <3300000>;
|
|
|
+ regulator-boot-on;
|
|
|
+ enable-active-high;
|
|
|
+ vin-supply = <&vsys_3v3>;
|
|
|
+ gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
|
|
|
+ };
|
|
|
+
|
|
|
+ dp0: connector {
|
|
|
+ compatible = "dp-connector"; /* No such binding exists yet.. */
|
|
|
+
|
|
|
+ port {
|
|
|
+ dp_connector_in: endpoint {
|
|
|
+ remote-endpoint = <&dp_bridge_output>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&wkup_pmx0 {
|
|
|
+ mcu_cpsw_pins_default: mcu_cpsw_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
|
|
|
+ J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
|
|
|
+ J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
|
|
|
+ J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
|
|
|
+ J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
|
|
|
+ J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
|
|
|
+ J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
|
|
|
+ J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
|
|
|
+ J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
|
|
|
+ J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
|
|
|
+ J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
|
|
|
+ J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ mcu_mdio_pins_default: mcu_mdio1_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* MCU_MDIO0_MDC */
|
|
|
+ J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_MDIO0_MDIO */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
|
|
|
+ J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
|
|
|
+ J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
|
|
|
+ J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
|
|
|
+ J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
|
|
|
+ J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
|
|
|
+ J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
|
|
|
+ J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&wkup_uart0 {
|
|
|
+ /* Wakeup UART is used by System firmware */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_uart3 {
|
|
|
+ /* UART not brought out */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_uart5 {
|
|
|
+ /* UART not brought out */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_uart6 {
|
|
|
+ /* UART not brought out */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_uart7 {
|
|
|
+ /* UART not brought out */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_uart8 {
|
|
|
+ /* UART not brought out */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_uart9 {
|
|
|
+ /* UART not brought out */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_gpio2 {
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_gpio3 {
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_gpio4 {
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_gpio5 {
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_gpio6 {
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_gpio7 {
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&wkup_gpio1 {
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&main_pmx0 {
|
|
|
+ main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x230, PIN_INPUT, 7) /* (U2) ECAP0_IN_APWM_OUT.GPIO1_11 */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ main_i2c0_pins_default: main-i2c0-pins-default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
|
|
|
+ J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ main_i2c1_pins_default: main-i2c1-pins-default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x228, PIN_INPUT_PULLUP, 0) /* (Y6) I2C1_SCL */
|
|
|
+ J721E_IOPAD(0x22c, PIN_INPUT_PULLUP, 0) /* (AA6) I2C1_SDA */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ main_i2c3_pins_default: main-i2c3-pins-default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x270, PIN_INPUT_PULLUP, 4) /* (T26) MMC2_CLK.I2C3_SCL */
|
|
|
+ J721E_IOPAD(0x274, PIN_INPUT_PULLUP, 4) /* (T25) MMC2_CMD.I2C3_SDA */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ main_i2c6_pins_default: main-i2c6-pins-default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */
|
|
|
+ J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ mcasp10_pins_default: mcasp10_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x158, PIN_OUTPUT_PULLDOWN, 12) /* (U23) RGMII5_TX_CTL.MCASP10_ACLKX */
|
|
|
+ J721E_IOPAD(0x15c, PIN_OUTPUT_PULLDOWN, 12) /* (U26) RGMII5_RX_CTL.MCASP10_AFSX */
|
|
|
+ J721E_IOPAD(0x160, PIN_INPUT_PULLDOWN, 12) /* (V28) RGMII5_TD3.MCASP10_AXR0 */
|
|
|
+ J721E_IOPAD(0x164, PIN_INPUT_PULLDOWN, 12) /* (V29) RGMII5_TD2.MCASP10_AXR1 */
|
|
|
+ J721E_IOPAD(0x170, PIN_INPUT_PULLDOWN, 12) /* (U29) RGMII5_TXC.MCASP10_AXR2 */
|
|
|
+ J721E_IOPAD(0x174, PIN_OUTPUT_PULLDOWN, 12) /* (U25) RGMII5_RXC.MCASP10_AXR3 */
|
|
|
+ J721E_IOPAD(0x198, PIN_OUTPUT_PULLDOWN, 12) /* (V25) RGMII6_TD1.MCASP10_AXR4 */
|
|
|
+ J721E_IOPAD(0x19c, PIN_OUTPUT_PULLDOWN, 12) /* (W27) RGMII6_TD0.MCASP10_AXR5 */
|
|
|
+ J721E_IOPAD(0x1a0, PIN_OUTPUT_PULLDOWN, 12) /* (W29) RGMII6_TXC.MCASP10_AXR6 */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ audi_ext_refclk2_pins_default: audi_ext_refclk2_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x1a4, PIN_OUTPUT, 3) /* (W26) RGMII6_RXC.AUDIO_EXT_REFCLK2 */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ main_usbss0_pins_default: main_usbss0_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
|
|
|
+ J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ main_usbss1_pins_default: main_usbss1_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ main_mmc1_pins_default: main_mmc1_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
|
|
|
+ J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
|
|
|
+ J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
|
|
|
+ J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
|
|
|
+ J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
|
|
|
+ J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
|
|
|
+ J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
|
|
|
+ J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
|
|
|
+ J721E_IOPAD(0x2ac, PIN_INPUT, 0)
|
|
|
+ >;
|
|
|
+ };
|
|
|
+
|
|
|
+ dp0_pins_default: dp0_pins_default {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */
|
|
|
+ >;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&dss {
|
|
|
+ status = "ok";
|
|
|
+};
|
|
|
+
|
|
|
+&dss_ports {
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <0>;
|
|
|
+
|
|
|
+ port@0 {
|
|
|
+ reg = <0>;
|
|
|
+
|
|
|
+ dpi_out_real0: endpoint {
|
|
|
+ remote-endpoint = <&dp_bridge_input>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&main_i2c0 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_i2c0_pins_default>;
|
|
|
+ clock-frequency = <400000>;
|
|
|
+
|
|
|
+ exp1: gpio@20 {
|
|
|
+ compatible = "ti,tca6416";
|
|
|
+ reg = <0x20>;
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+ };
|
|
|
+
|
|
|
+ exp2: gpio@22 {
|
|
|
+ compatible = "ti,tca6424";
|
|
|
+ reg = <0x22>;
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+
|
|
|
+ p09 {
|
|
|
+ /* P11 - MCASP/TRACE_MUX_S0 */
|
|
|
+ gpio-hog;
|
|
|
+ gpios = <9 GPIO_ACTIVE_HIGH>;
|
|
|
+ output-low;
|
|
|
+ line-name = "MCASP/TRACE_MUX_S0";
|
|
|
+ };
|
|
|
+
|
|
|
+ p10 {
|
|
|
+ /* P12 - MCASP/TRACE_MUX_S1 */
|
|
|
+ gpio-hog;
|
|
|
+ gpios = <10 GPIO_ACTIVE_HIGH>;
|
|
|
+ output-high;
|
|
|
+ line-name = "MCASP/TRACE_MUX_S1";
|
|
|
+ };
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&main_i2c1 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_i2c1_pins_default>;
|
|
|
+ clock-frequency = <400000>;
|
|
|
+
|
|
|
+ exp4: gpio@20 {
|
|
|
+ compatible = "ti,tca6408";
|
|
|
+ reg = <0x20>;
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_i2c1_exp4_pins_default>;
|
|
|
+ interrupt-parent = <&main_gpio1>;
|
|
|
+ interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
|
|
|
+ interrupt-controller;
|
|
|
+ #interrupt-cells = <2>;
|
|
|
+
|
|
|
+ p0 {
|
|
|
+ /* P0 - DP0_PWR_SW_EN */
|
|
|
+ gpio-hog;
|
|
|
+ gpios = <0 GPIO_ACTIVE_HIGH>;
|
|
|
+ output-high;
|
|
|
+ line-name = "DP0_PWR_SW_EN";
|
|
|
+ };
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&main_i2c3 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_i2c3_pins_default>;
|
|
|
+ clock-frequency = <400000>;
|
|
|
+
|
|
|
+ exp3: gpio@20 {
|
|
|
+ compatible = "ti,tca6408";
|
|
|
+ reg = <0x20>;
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+
|
|
|
+ p0 {
|
|
|
+ /* P0 - CODEC_RSTz */
|
|
|
+ gpio-hog;
|
|
|
+ gpios = <0 GPIO_ACTIVE_HIGH>;
|
|
|
+ output-high;
|
|
|
+ line-name = "CODEC_RSTz";
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ pcm3168a_1: audio-codec@44 {
|
|
|
+ compatible = "ti,pcm3168a";
|
|
|
+ reg = <0x44>;
|
|
|
+
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&audi_ext_refclk2_pins_default>;
|
|
|
+
|
|
|
+ #sound-dai-cells = <1>;
|
|
|
+
|
|
|
+ /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */
|
|
|
+ clocks = <&k3_clks 157 371>;
|
|
|
+ clock-names = "scki";
|
|
|
+
|
|
|
+ /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */
|
|
|
+ assigned-clocks = <&k3_clks 157 371>;
|
|
|
+ assigned-clock-parents = <&k3_clks 157 400>;
|
|
|
+ assigned-clock-rates = <24576000>; /* for 48KHz */
|
|
|
+
|
|
|
+ VDD1-supply = <&vsys_3v3>;
|
|
|
+ VDD2-supply = <&vsys_3v3>;
|
|
|
+ VCCAD1-supply = <&vsys_5v0>;
|
|
|
+ VCCAD2-supply = <&vsys_5v0>;
|
|
|
+ VCCDA1-supply = <&vsys_5v0>;
|
|
|
+ VCCDA2-supply = <&vsys_5v0>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&main_i2c6 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_i2c6_pins_default>;
|
|
|
+ clock-frequency = <400000>;
|
|
|
+
|
|
|
+ exp5: gpio@20 {
|
|
|
+ compatible = "ti,tca6408";
|
|
|
+ reg = <0x20>;
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&mcu_cpsw {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
|
|
|
+
|
|
|
+ cpts {
|
|
|
+ ti,pps = <3 1>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&davinci_mdio {
|
|
|
+ phy0: ethernet-phy@0 {
|
|
|
+ reg = <0>;
|
|
|
+ ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
|
|
|
+ ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
|
|
|
+ ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&cpsw_port1 {
|
|
|
+ phy-mode = "rgmii-id";
|
|
|
+ phy-handle = <&phy0>;
|
|
|
+};
|
|
|
+
|
|
|
+#define TS_OFFSET(pa, val) (0x4 + (pa) * 4) (0x10000 | val)
|
|
|
+
|
|
|
+×ync_router {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&mcu_cpts>;
|
|
|
+
|
|
|
+ mcu_cpts: mcu_cpts {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ /* pps [cpts genf1] in17 -> out25 [cpts hw4_push] */
|
|
|
+ TS_OFFSET(25, 17)
|
|
|
+ >;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&ospi1 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
|
|
|
+
|
|
|
+ flash@0{
|
|
|
+ compatible = "jedec,spi-nor";
|
|
|
+ reg = <0x0>;
|
|
|
+ spi-tx-bus-width = <1>;
|
|
|
+ spi-rx-bus-width = <4>;
|
|
|
+ spi-max-frequency = <100000000>;
|
|
|
+ cdns,tshsl-ns = <60>;
|
|
|
+ cdns,tsd2d-ns = <60>;
|
|
|
+ cdns,tchsh-ns = <60>;
|
|
|
+ cdns,tslch-ns = <60>;
|
|
|
+ cdns,read-delay = <2>;
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <1>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&mcasp10 {
|
|
|
+ #sound-dai-cells = <0>;
|
|
|
+
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&mcasp10_pins_default>;
|
|
|
+
|
|
|
+ op-mode = <0>; /* MCASP_IIS_MODE */
|
|
|
+ tdm-slots = <2>;
|
|
|
+ auxclk-fs-ratio = <256>;
|
|
|
+
|
|
|
+ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
|
|
|
+ 2 2 2 1
|
|
|
+ 1 1 1 0
|
|
|
+ >;
|
|
|
+ tx-num-evt = <0>;
|
|
|
+ rx-num-evt = <0>;
|
|
|
+
|
|
|
+ status = "okay";
|
|
|
+};
|
|
|
+
|
|
|
+&usb_serdes_mux {
|
|
|
+ idle-states = <1>, <0>; /* USB0 to SERDES3, USB1 to SERDES1 */
|
|
|
+};
|
|
|
+
|
|
|
+&serdes_ln_ctrl {
|
|
|
+ idle-states = <SERDES0_LANE0_PCIE0_LANE0>, <SERDES0_LANE1_PCIE0_LANE1>,
|
|
|
+ <SERDES1_LANE0_PCIE1_LANE0>, <SERDES1_LANE1_PCIE1_LANE1>,
|
|
|
+ <SERDES2_LANE0_PCIE2_LANE0>, <SERDES2_LANE1_PCIE2_LANE1>,
|
|
|
+ <SERDES3_LANE0_USB3_0_SWAP>, <SERDES3_LANE1_USB3_0>,
|
|
|
+ <SERDES4_LANE0_EDP_LANE0>, <SERDES4_LANE1_EDP_LANE1>, <SERDES4_LANE2_EDP_LANE2>, <SERDES4_LANE3_EDP_LANE3>;
|
|
|
+};
|
|
|
+
|
|
|
+&serdes_wiz3 {
|
|
|
+ typec-dir-gpios = <&main_gpio1 3 GPIO_ACTIVE_HIGH>;
|
|
|
+};
|
|
|
+
|
|
|
+&serdes3 {
|
|
|
+ serdes3_usb_link: link@0 {
|
|
|
+ reg = <0>;
|
|
|
+ cdns,num-lanes = <2>;
|
|
|
+ #phy-cells = <0>;
|
|
|
+ cdns,phy-type = <PHY_TYPE_USB3>;
|
|
|
+ resets = <&serdes_wiz3 1>, <&serdes_wiz3 2>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&usbss0 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_usbss0_pins_default>;
|
|
|
+ ti,vbus-divider;
|
|
|
+};
|
|
|
+
|
|
|
+&usb0 {
|
|
|
+ dr_mode = "otg";
|
|
|
+ maximum-speed = "super-speed";
|
|
|
+ phys = <&serdes3_usb_link>;
|
|
|
+ phy-names = "cdns3,usbphy";
|
|
|
+};
|
|
|
+
|
|
|
+&usbss1 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_usbss1_pins_default>;
|
|
|
+ ti,usb2-only;
|
|
|
+};
|
|
|
+
|
|
|
+&usb1 {
|
|
|
+ dr_mode = "host";
|
|
|
+ maximum-speed = "high-speed";
|
|
|
+};
|
|
|
+
|
|
|
+&main_sdhci0 {
|
|
|
+ /* eMMC */
|
|
|
+ non-removable;
|
|
|
+ ti,driver-strength-ohm = <50>;
|
|
|
+};
|
|
|
+
|
|
|
+&main_sdhci1 {
|
|
|
+ /* SD/MMC */
|
|
|
+ vmmc-supply = <&vdd_mmc1>;
|
|
|
+ vqmmc-supply = <&ldo1_reg>;
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&main_mmc1_pins_default>;
|
|
|
+};
|
|
|
+
|
|
|
+&main_sdhci2 {
|
|
|
+ /* Unused */
|
|
|
+ status = "disabled";
|
|
|
+};
|
|
|
+
|
|
|
+&serdes0 {
|
|
|
+ serdes0_pcie_link: link@0 {
|
|
|
+ reg = <0>;
|
|
|
+ cdns,num-lanes = <1>;
|
|
|
+ #phy-cells = <0>;
|
|
|
+ cdns,phy-type = <PHY_TYPE_PCIE>;
|
|
|
+ resets = <&serdes_wiz0 1>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&serdes1 {
|
|
|
+ serdes1_pcie_link: link@0 {
|
|
|
+ reg = <0>;
|
|
|
+ cdns,num-lanes = <2>;
|
|
|
+ #phy-cells = <0>;
|
|
|
+ cdns,phy-type = <PHY_TYPE_PCIE>;
|
|
|
+ resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&serdes2 {
|
|
|
+ serdes2_pcie_link: link@0 {
|
|
|
+ reg = <0>;
|
|
|
+ cdns,num-lanes = <2>;
|
|
|
+ #phy-cells = <0>;
|
|
|
+ cdns,phy-type = <PHY_TYPE_PCIE>;
|
|
|
+ resets = <&serdes_wiz2 1>, <&serdes_wiz2 2>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&pcie0 {
|
|
|
+ pci-mode = <PCI_MODE_RC>;
|
|
|
+ num-lanes = <1>;
|
|
|
+};
|
|
|
+
|
|
|
+&pcie1 {
|
|
|
+ pci-mode = <PCI_MODE_RC>;
|
|
|
+ num-lanes = <2>;
|
|
|
+};
|
|
|
+
|
|
|
+&pcie2 {
|
|
|
+ pci-mode = <PCI_MODE_RC>;
|
|
|
+ num-lanes = <2>;
|
|
|
+};
|
|
|
+
|
|
|
+&pcie0_rc {
|
|
|
+ reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
|
|
|
+ phys = <&serdes0_pcie_link>;
|
|
|
+ phy-names = "pcie_phy";
|
|
|
+};
|
|
|
+
|
|
|
+&pcie1_rc {
|
|
|
+ reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
|
|
|
+ phys = <&serdes1_pcie_link>;
|
|
|
+ phy-names = "pcie_phy";
|
|
|
+};
|
|
|
+
|
|
|
+&pcie2_rc {
|
|
|
+ reset-gpios = <&exp2 20 GPIO_ACTIVE_HIGH>;
|
|
|
+ phys = <&serdes2_pcie_link>;
|
|
|
+ phy-names = "pcie_phy";
|
|
|
+};
|
|
|
+
|
|
|
+&tscadc0 {
|
|
|
+ adc {
|
|
|
+ ti,adc-channels = <0 1 2 3 4 5 6 7>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&tscadc1 {
|
|
|
+ adc {
|
|
|
+ ti,adc-channels = <0 1 2 3 4 5 6 7>;
|
|
|
+ };
|
|
|
+};
|