Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | * |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 5 | * Common Processor Board: https://www.ti.com/tool/J721EXCPXEVM |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "k3-j721s2-som-p0.dtsi" |
| 11 | #include <dt-bindings/net/ti-dp83867.h> |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 12 | #include <dt-bindings/phy/phy-cadence.h> |
| 13 | #include <dt-bindings/phy/phy.h> |
| 14 | |
| 15 | #include "k3-serdes.h" |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | compatible = "ti,j721s2-evm", "ti,j721s2"; |
| 19 | model = "Texas Instruments J721S2 EVM"; |
| 20 | |
| 21 | chosen { |
| 22 | stdout-path = "serial2:115200n8"; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | aliases { |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 26 | serial1 = &mcu_uart0; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 27 | serial2 = &main_uart8; |
| 28 | mmc0 = &main_sdhci0; |
| 29 | mmc1 = &main_sdhci1; |
| 30 | can0 = &main_mcan16; |
| 31 | can1 = &mcu_mcan0; |
| 32 | can2 = &mcu_mcan1; |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 33 | can3 = &main_mcan3; |
| 34 | can4 = &main_mcan5; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 35 | }; |
| 36 | |
| 37 | evm_12v0: fixedregulator-evm12v0 { |
| 38 | /* main supply */ |
| 39 | compatible = "regulator-fixed"; |
| 40 | regulator-name = "evm_12v0"; |
| 41 | regulator-min-microvolt = <12000000>; |
| 42 | regulator-max-microvolt = <12000000>; |
| 43 | regulator-always-on; |
| 44 | regulator-boot-on; |
| 45 | }; |
| 46 | |
| 47 | vsys_3v3: fixedregulator-vsys3v3 { |
| 48 | /* Output of LM5140 */ |
| 49 | compatible = "regulator-fixed"; |
| 50 | regulator-name = "vsys_3v3"; |
| 51 | regulator-min-microvolt = <3300000>; |
| 52 | regulator-max-microvolt = <3300000>; |
| 53 | vin-supply = <&evm_12v0>; |
| 54 | regulator-always-on; |
| 55 | regulator-boot-on; |
| 56 | }; |
| 57 | |
| 58 | vsys_5v0: fixedregulator-vsys5v0 { |
| 59 | /* Output of LM5140 */ |
| 60 | compatible = "regulator-fixed"; |
| 61 | regulator-name = "vsys_5v0"; |
| 62 | regulator-min-microvolt = <5000000>; |
| 63 | regulator-max-microvolt = <5000000>; |
| 64 | vin-supply = <&evm_12v0>; |
| 65 | regulator-always-on; |
| 66 | regulator-boot-on; |
| 67 | }; |
| 68 | |
| 69 | vdd_mmc1: fixedregulator-sd { |
| 70 | /* Output of TPS22918 */ |
| 71 | compatible = "regulator-fixed"; |
| 72 | regulator-name = "vdd_mmc1"; |
| 73 | regulator-min-microvolt = <3300000>; |
| 74 | regulator-max-microvolt = <3300000>; |
| 75 | regulator-boot-on; |
| 76 | enable-active-high; |
| 77 | vin-supply = <&vsys_3v3>; |
| 78 | gpio = <&exp2 2 GPIO_ACTIVE_HIGH>; |
| 79 | }; |
| 80 | |
| 81 | vdd_sd_dv: gpio-regulator-TLV71033 { |
| 82 | /* Output of TLV71033 */ |
| 83 | compatible = "regulator-gpio"; |
| 84 | regulator-name = "tlv71033"; |
| 85 | pinctrl-names = "default"; |
| 86 | pinctrl-0 = <&vdd_sd_dv_pins_default>; |
| 87 | regulator-min-microvolt = <1800000>; |
| 88 | regulator-max-microvolt = <3300000>; |
| 89 | regulator-boot-on; |
| 90 | vin-supply = <&vsys_5v0>; |
| 91 | gpios = <&main_gpio0 8 GPIO_ACTIVE_HIGH>; |
| 92 | states = <1800000 0x0>, |
| 93 | <3300000 0x1>; |
| 94 | }; |
| 95 | |
| 96 | transceiver1: can-phy1 { |
| 97 | compatible = "ti,tcan1043"; |
| 98 | #phy-cells = <0>; |
| 99 | max-bitrate = <5000000>; |
| 100 | pinctrl-names = "default"; |
| 101 | pinctrl-0 = <&mcu_mcan0_gpio_pins_default>; |
| 102 | standby-gpios = <&wkup_gpio0 69 GPIO_ACTIVE_LOW>; |
| 103 | enable-gpios = <&wkup_gpio0 0 GPIO_ACTIVE_HIGH>; |
| 104 | }; |
| 105 | |
| 106 | transceiver2: can-phy2 { |
| 107 | compatible = "ti,tcan1042"; |
| 108 | #phy-cells = <0>; |
| 109 | max-bitrate = <5000000>; |
| 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&mcu_mcan1_gpio_pins_default>; |
| 112 | standby-gpios = <&wkup_gpio0 2 GPIO_ACTIVE_HIGH>; |
| 113 | }; |
| 114 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 115 | transceiver3: can-phy3 { |
| 116 | compatible = "ti,tcan1043"; |
| 117 | #phy-cells = <0>; |
| 118 | max-bitrate = <5000000>; |
| 119 | standby-gpios = <&exp2 7 GPIO_ACTIVE_LOW>; |
| 120 | enable-gpios = <&exp2 6 GPIO_ACTIVE_HIGH>; |
| 121 | mux-states = <&mux0 1>; |
| 122 | }; |
| 123 | |
| 124 | transceiver4: can-phy4 { |
| 125 | compatible = "ti,tcan1042"; |
| 126 | #phy-cells = <0>; |
| 127 | max-bitrate = <5000000>; |
| 128 | standby-gpios = <&exp_som 7 GPIO_ACTIVE_HIGH>; |
| 129 | mux-states = <&mux1 1>; |
| 130 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 131 | }; |
| 132 | |
| 133 | &main_pmx0 { |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 134 | main_uart8_pins_default: main-uart8-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 135 | pinctrl-single,pins = < |
| 136 | J721S2_IOPAD(0x040, PIN_INPUT, 14) /* (AC28) MCASP0_AXR0.UART8_CTSn */ |
| 137 | J721S2_IOPAD(0x044, PIN_OUTPUT, 14) /* (Y26) MCASP0_AXR1.UART8_RTSn */ |
| 138 | J721S2_IOPAD(0x0d0, PIN_INPUT, 11) /* (AF26) SPI0_CS1.UART8_RXD */ |
| 139 | J721S2_IOPAD(0x0d4, PIN_OUTPUT, 11) /* (AH27) SPI0_CLK.UART8_TXD */ |
| 140 | >; |
| 141 | }; |
| 142 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 143 | main_i2c3_pins_default: main-i2c3-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 144 | pinctrl-single,pins = < |
| 145 | J721S2_IOPAD(0x064, PIN_INPUT_PULLUP, 13) /* (W28) MCAN0_TX.I2C3_SCL */ |
| 146 | J721S2_IOPAD(0x060, PIN_INPUT_PULLUP, 13) /* (AC27) MCASP2_AXR1.I2C3_SDA */ |
| 147 | >; |
| 148 | }; |
| 149 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 150 | main_mmc1_pins_default: main-mmc1-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 151 | pinctrl-single,pins = < |
| 152 | J721S2_IOPAD(0x104, PIN_INPUT, 0) /* (P23) MMC1_CLK */ |
| 153 | J721S2_IOPAD(0x108, PIN_INPUT, 0) /* (N24) MMC1_CMD */ |
| 154 | J721S2_IOPAD(0x100, PIN_INPUT, 0) /* (###) MMC1_CLKLB */ |
| 155 | J721S2_IOPAD(0x0fc, PIN_INPUT, 0) /* (M23) MMC1_DAT0 */ |
| 156 | J721S2_IOPAD(0x0f8, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */ |
| 157 | J721S2_IOPAD(0x0f4, PIN_INPUT, 0) /* (R24) MMC1_DAT2 */ |
| 158 | J721S2_IOPAD(0x0f0, PIN_INPUT, 0) /* (R22) MMC1_DAT3 */ |
| 159 | J721S2_IOPAD(0x0e8, PIN_INPUT, 8) /* (AE25) TIMER_IO0.MMC1_SDCD */ |
| 160 | >; |
| 161 | }; |
| 162 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 163 | vdd_sd_dv_pins_default: vdd-sd-dv-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 164 | pinctrl-single,pins = < |
| 165 | J721S2_IOPAD(0x020, PIN_INPUT, 7) /* (AA23) MCAN15_RX.GPIO0_8 */ |
| 166 | >; |
| 167 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 168 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 169 | main_usbss0_pins_default: main-usbss0-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 170 | pinctrl-single,pins = < |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 171 | J721S2_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AG25) TIMER_IO1.USB0_DRVVBUS */ |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 172 | >; |
| 173 | }; |
| 174 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 175 | main_mcan3_pins_default: main-mcan3-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 176 | pinctrl-single,pins = < |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 177 | J721S2_IOPAD(0x080, PIN_INPUT, 0) /* (U26) MCASP0_AXR4.MCAN3_RX */ |
| 178 | J721S2_IOPAD(0x07c, PIN_OUTPUT, 0) /* (T27) MCASP0_AXR3.MCAN3_TX */ |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 179 | >; |
| 180 | }; |
| 181 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 182 | main_mcan5_pins_default: main-mcan5-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 183 | pinctrl-single,pins = < |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 184 | J721S2_IOPAD(0x03c, PIN_INPUT, 0) /* (U27) MCASP0_AFSX.MCAN5_RX */ |
| 185 | J721S2_IOPAD(0x038, PIN_OUTPUT, 0) /* (AB28) MCASP0_ACLKX.MCAN5_TX */ |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 186 | >; |
| 187 | }; |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 188 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 189 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 190 | &wkup_pmx2 { |
| 191 | wkup_uart0_pins_default: wkup-uart0-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 192 | pinctrl-single,pins = < |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 193 | J721S2_WKUP_IOPAD(0x070, PIN_INPUT, 0) /* (E25) WKUP_GPIO0_6.WKUP_UART0_CTSn */ |
| 194 | J721S2_WKUP_IOPAD(0x074, PIN_OUTPUT, 0) /* (F28) WKUP_GPIO0_7.WKUP_UART0_RTSn */ |
| 195 | J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (D28) WKUP_UART0_RXD */ |
| 196 | J721S2_WKUP_IOPAD(0x04c, PIN_OUTPUT, 0) /* (D27) WKUP_UART0_TXD */ |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 197 | >; |
| 198 | }; |
| 199 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 200 | mcu_uart0_pins_default: mcu-uart0-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 201 | pinctrl-single,pins = < |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 202 | J721S2_WKUP_IOPAD(0x090, PIN_INPUT, 0) /* (B24) WKUP_GPIO0_14.MCU_UART0_CTSn */ |
| 203 | J721S2_WKUP_IOPAD(0x094, PIN_OUTPUT, 0) /* (D25) WKUP_GPIO0_15.MCU_UART0_RTSn */ |
| 204 | J721S2_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (C24) WKUP_GPIO0_13.MCU_UART0_RXD */ |
| 205 | J721S2_WKUP_IOPAD(0x088, PIN_OUTPUT, 0) /* (C25) WKUP_GPIO0_12.MCU_UART0_TXD */ |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 206 | >; |
| 207 | }; |
| 208 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 209 | mcu_cpsw_pins_default: mcu-cpsw-default-pins { |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 210 | pinctrl-single,pins = < |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 211 | J721S2_WKUP_IOPAD(0x02c, PIN_INPUT, 0) /* (B22) MCU_RGMII1_RD0 */ |
| 212 | J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (B21) MCU_RGMII1_RD1 */ |
| 213 | J721S2_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (C22) MCU_RGMII1_RD2 */ |
| 214 | J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (D23) MCU_RGMII1_RD3 */ |
| 215 | J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (D22) MCU_RGMII1_RXC */ |
| 216 | J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E23) MCU_RGMII1_RX_CTL */ |
| 217 | J721S2_WKUP_IOPAD(0x014, PIN_OUTPUT, 0) /* (F23) MCU_RGMII1_TD0 */ |
| 218 | J721S2_WKUP_IOPAD(0x010, PIN_OUTPUT, 0) /* (G22) MCU_RGMII1_TD1 */ |
| 219 | J721S2_WKUP_IOPAD(0x00c, PIN_OUTPUT, 0) /* (E21) MCU_RGMII1_TD2 */ |
| 220 | J721S2_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (E22) MCU_RGMII1_TD3 */ |
| 221 | J721S2_WKUP_IOPAD(0x018, PIN_OUTPUT, 0) /* (F21) MCU_RGMII1_TXC */ |
| 222 | J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (F22) MCU_RGMII1_TX_CTL */ |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 223 | >; |
| 224 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 225 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 226 | mcu_mdio_pins_default: mcu-mdio-default-pins { |
| 227 | pinctrl-single,pins = < |
| 228 | J721S2_WKUP_IOPAD(0x034, PIN_OUTPUT, 0) /* (A21) MCU_MDIO0_MDC */ |
| 229 | J721S2_WKUP_IOPAD(0x030, PIN_INPUT, 0) /* (A22) MCU_MDIO0_MDIO */ |
| 230 | >; |
| 231 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 232 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 233 | mcu_mcan0_pins_default: mcu-mcan0-default-pins { |
| 234 | pinctrl-single,pins = < |
| 235 | J721S2_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (E28) MCU_MCAN0_RX */ |
| 236 | J721S2_WKUP_IOPAD(0x050, PIN_OUTPUT, 0) /* (E27) MCU_MCAN0_TX */ |
| 237 | >; |
| 238 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 239 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 240 | mcu_mcan1_pins_default: mcu-mcan1-default-pins { |
| 241 | pinctrl-single,pins = < |
| 242 | J721S2_WKUP_IOPAD(0x06c, PIN_INPUT, 0) /* (F26) WKUP_GPIO0_5.MCU_MCAN1_RX */ |
| 243 | J721S2_WKUP_IOPAD(0x068, PIN_OUTPUT, 0) /*(C23) WKUP_GPIO0_4.MCU_MCAN1_TX */ |
| 244 | >; |
| 245 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 246 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 247 | mcu_mcan0_gpio_pins_default: mcu-mcan0-gpio-default-pins { |
| 248 | pinctrl-single,pins = < |
| 249 | J721S2_WKUP_IOPAD(0x058, PIN_INPUT, 7) /* (D26) WKUP_GPIO0_0 */ |
| 250 | J721S2_WKUP_IOPAD(0x040, PIN_INPUT, 7) /* (B25) MCU_SPI0_D1.WKUP_GPIO0_69 */ |
| 251 | >; |
| 252 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 253 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 254 | mcu_mcan1_gpio_pins_default: mcu-mcan1-gpio-default-pins { |
| 255 | pinctrl-single,pins = < |
| 256 | J721S2_WKUP_IOPAD(0x060, PIN_INPUT, 7) /* (C28) WKUP_GPIO0_2 */ |
| 257 | >; |
| 258 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 259 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 260 | mcu_adc0_pins_default: mcu-adc0-default-pins { |
| 261 | pinctrl-single,pins = < |
| 262 | J721S2_WKUP_IOPAD(0x0cc, PIN_INPUT, 0) /* (L25) MCU_ADC0_AIN0 */ |
| 263 | J721S2_WKUP_IOPAD(0x0d0, PIN_INPUT, 0) /* (K25) MCU_ADC0_AIN1 */ |
| 264 | J721S2_WKUP_IOPAD(0x0d4, PIN_INPUT, 0) /* (M24) MCU_ADC0_AIN2 */ |
| 265 | J721S2_WKUP_IOPAD(0x0d8, PIN_INPUT, 0) /* (L24) MCU_ADC0_AIN3 */ |
| 266 | J721S2_WKUP_IOPAD(0x0dc, PIN_INPUT, 0) /* (L27) MCU_ADC0_AIN4 */ |
| 267 | J721S2_WKUP_IOPAD(0x0e0, PIN_INPUT, 0) /* (K24) MCU_ADC0_AIN5 */ |
| 268 | J721S2_WKUP_IOPAD(0x0e4, PIN_INPUT, 0) /* (M27) MCU_ADC0_AIN6 */ |
| 269 | J721S2_WKUP_IOPAD(0x0e8, PIN_INPUT, 0) /* (M26) MCU_ADC0_AIN7 */ |
| 270 | >; |
| 271 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 272 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 273 | mcu_adc1_pins_default: mcu-adc1-default-pins { |
| 274 | pinctrl-single,pins = < |
| 275 | J721S2_WKUP_IOPAD(0x0ec, PIN_INPUT, 0) /* (P25) MCU_ADC1_AIN0 */ |
| 276 | J721S2_WKUP_IOPAD(0x0f0, PIN_INPUT, 0) /* (R25) MCU_ADC1_AIN1 */ |
| 277 | J721S2_WKUP_IOPAD(0x0f4, PIN_INPUT, 0) /* (P28) MCU_ADC1_AIN2 */ |
| 278 | J721S2_WKUP_IOPAD(0x0f8, PIN_INPUT, 0) /* (P27) MCU_ADC1_AIN3 */ |
| 279 | J721S2_WKUP_IOPAD(0x0fc, PIN_INPUT, 0) /* (N25) MCU_ADC1_AIN4 */ |
| 280 | J721S2_WKUP_IOPAD(0x100, PIN_INPUT, 0) /* (P26) MCU_ADC1_AIN5 */ |
| 281 | J721S2_WKUP_IOPAD(0x104, PIN_INPUT, 0) /* (N26) MCU_ADC1_AIN6 */ |
| 282 | J721S2_WKUP_IOPAD(0x108, PIN_INPUT, 0) /* (N27) MCU_ADC1_AIN7 */ |
| 283 | >; |
| 284 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 285 | }; |
| 286 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 287 | &wkup_pmx1 { |
| 288 | mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-default-pins { |
| 289 | pinctrl-single,pins = < |
| 290 | J721S2_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (A19) MCU_OSPI1_CLK */ |
| 291 | J721S2_WKUP_IOPAD(0x024, PIN_OUTPUT, 0) /* (D20) MCU_OSPI1_CSn0 */ |
| 292 | J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (D21) MCU_OSPI1_D0 */ |
| 293 | J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (G20) MCU_OSPI1_D1 */ |
| 294 | J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (C20) MCU_OSPI1_D2 */ |
| 295 | J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (A20) MCU_OSPI1_D3 */ |
| 296 | J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B19) MCU_OSPI1_DQS */ |
| 297 | J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B20) MCU_OSPI1_LBCLKO */ |
| 298 | >; |
| 299 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 300 | }; |
| 301 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 302 | &main_gpio0 { |
| 303 | status = "okay"; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 304 | }; |
| 305 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 306 | &wkup_gpio0 { |
| 307 | status = "okay"; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 308 | }; |
| 309 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 310 | &wkup_uart0 { |
| 311 | status = "reserved"; |
| 312 | pinctrl-names = "default"; |
| 313 | pinctrl-0 = <&wkup_uart0_pins_default>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 314 | }; |
| 315 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 316 | &mcu_uart0 { |
| 317 | status = "okay"; |
| 318 | pinctrl-names = "default"; |
| 319 | pinctrl-0 = <&mcu_uart0_pins_default>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 320 | }; |
| 321 | |
| 322 | &main_uart8 { |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 323 | status = "okay"; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 324 | pinctrl-names = "default"; |
| 325 | pinctrl-0 = <&main_uart8_pins_default>; |
| 326 | /* Shared with TFA on this platform */ |
| 327 | power-domains = <&k3_pds 357 TI_SCI_PD_SHARED>; |
| 328 | }; |
| 329 | |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 330 | &main_i2c0 { |
| 331 | clock-frequency = <400000>; |
| 332 | |
| 333 | exp1: gpio@20 { |
| 334 | compatible = "ti,tca6416"; |
| 335 | reg = <0x20>; |
| 336 | gpio-controller; |
| 337 | #gpio-cells = <2>; |
| 338 | gpio-line-names = "PCIE_2L_MODE_SEL", "PCIE_2L_PERSTZ", "PCIE_2L_RC_RSTZ", |
| 339 | "PCIE_2L_EP_RST_EN", "PCIE_1L_MODE_SEL", "PCIE_1L_PERSTZ", |
| 340 | "PCIE_1L_RC_RSTZ", "PCIE_1L_EP_RST_EN", "PCIE_2L_PRSNT#", |
| 341 | "PCIE_1L_PRSNT#", "CDCI1_OE1/OE4", "CDCI1_OE2/OE3", "EXP_MUX1", |
| 342 | "EXP_MUX2", "EXP_MUX3", "GESI_EXP_PHY_RSTz"; |
| 343 | }; |
| 344 | |
| 345 | exp2: gpio@22 { |
| 346 | compatible = "ti,tca6424"; |
| 347 | reg = <0x22>; |
| 348 | gpio-controller; |
| 349 | #gpio-cells = <2>; |
| 350 | gpio-line-names = "APPLE_AUTH_RSTZ", "MLB_RSTZ", "GPIO_USD_PWR_EN", "USBC_PWR_EN", |
| 351 | "USBC_MODE_SEL1", "USBC_MODE_SEL0", "MCAN0_EN", "MCAN0_STB#", |
| 352 | "MUX_SPAREMUX_SPARE", "MCASP/TRACE_MUX_S0", "MCASP/TRACE_MUX_S1", |
| 353 | "MLB_MUX_SEL", "MCAN_MUX_SEL", "MCASP2/SPI3_MUX_SEL", "PCIe_CLKREQn_MUX_SEL", |
| 354 | "CDCI2_RSTZ", "ENET_EXP_PWRDN", "ENET_EXP_RESETZ", "ENET_I2CMUX_SEL", |
| 355 | "ENET_EXP_SPARE2", "M2PCIE_RTSZ", "USER_INPUT1", "USER_LED1", "USER_LED2"; |
| 356 | }; |
| 357 | }; |
| 358 | |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 359 | &main_sdhci0 { |
| 360 | /* eMMC */ |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 361 | status = "okay"; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 362 | non-removable; |
| 363 | ti,driver-strength-ohm = <50>; |
| 364 | disable-wp; |
| 365 | }; |
| 366 | |
| 367 | &main_sdhci1 { |
| 368 | /* SD card */ |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 369 | status = "okay"; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 370 | pinctrl-0 = <&main_mmc1_pins_default>; |
| 371 | pinctrl-names = "default"; |
| 372 | disable-wp; |
| 373 | vmmc-supply = <&vdd_mmc1>; |
| 374 | vqmmc-supply = <&vdd_sd_dv>; |
| 375 | }; |
| 376 | |
| 377 | &mcu_cpsw { |
| 378 | pinctrl-names = "default"; |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 379 | pinctrl-0 = <&mcu_cpsw_pins_default>, <&mcu_mdio_pins_default>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 380 | }; |
| 381 | |
| 382 | &davinci_mdio { |
| 383 | phy0: ethernet-phy@0 { |
| 384 | reg = <0>; |
| 385 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 386 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 387 | ti,min-output-impedance; |
| 388 | }; |
| 389 | }; |
| 390 | |
| 391 | &cpsw_port1 { |
| 392 | phy-mode = "rgmii-rxid"; |
| 393 | phy-handle = <&phy0>; |
| 394 | }; |
| 395 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 396 | &serdes_ln_ctrl { |
| 397 | idle-states = <J721S2_SERDES0_LANE0_PCIE1_LANE0>, <J721S2_SERDES0_LANE1_USB>, |
| 398 | <J721S2_SERDES0_LANE2_EDP_LANE2>, <J721S2_SERDES0_LANE3_EDP_LANE3>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 399 | }; |
| 400 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 401 | &serdes_refclk { |
| 402 | clock-frequency = <100000000>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 403 | }; |
| 404 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 405 | &serdes0 { |
| 406 | status = "okay"; |
| 407 | serdes0_pcie_link: phy@0 { |
| 408 | reg = <0>; |
| 409 | cdns,num-lanes = <1>; |
| 410 | #phy-cells = <0>; |
| 411 | cdns,phy-type = <PHY_TYPE_PCIE>; |
| 412 | resets = <&serdes_wiz0 1>; |
| 413 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 414 | }; |
| 415 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 416 | &usb_serdes_mux { |
| 417 | idle-states = <1>; /* USB0 to SERDES lane 1 */ |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 418 | }; |
| 419 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 420 | &usbss0 { |
| 421 | status = "okay"; |
| 422 | pinctrl-0 = <&main_usbss0_pins_default>; |
| 423 | pinctrl-names = "default"; |
| 424 | ti,vbus-divider; |
| 425 | ti,usb2-only; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 426 | }; |
| 427 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 428 | &usb0 { |
| 429 | dr_mode = "otg"; |
| 430 | maximum-speed = "high-speed"; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 431 | }; |
| 432 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 433 | &ospi1 { |
| 434 | status = "okay"; |
| 435 | pinctrl-names = "default"; |
| 436 | pinctrl-0 = <&mcu_fss0_ospi1_pins_default>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 437 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 438 | flash@0 { |
| 439 | compatible = "jedec,spi-nor"; |
| 440 | reg = <0x0>; |
| 441 | spi-tx-bus-width = <1>; |
| 442 | spi-rx-bus-width = <4>; |
| 443 | spi-max-frequency = <40000000>; |
| 444 | cdns,tshsl-ns = <60>; |
| 445 | cdns,tsd2d-ns = <60>; |
| 446 | cdns,tchsh-ns = <60>; |
| 447 | cdns,tslch-ns = <60>; |
| 448 | cdns,read-delay = <2>; |
| 449 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 450 | }; |
| 451 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 452 | &pcie1_rc { |
| 453 | status = "okay"; |
| 454 | reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>; |
| 455 | phys = <&serdes0_pcie_link>; |
| 456 | phy-names = "pcie-phy"; |
| 457 | num-lanes = <1>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 458 | }; |
| 459 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 460 | &mcu_mcan0 { |
| 461 | status = "okay"; |
| 462 | pinctrl-names = "default"; |
| 463 | pinctrl-0 = <&mcu_mcan0_pins_default>; |
| 464 | phys = <&transceiver1>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 465 | }; |
| 466 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 467 | &mcu_mcan1 { |
| 468 | status = "okay"; |
| 469 | pinctrl-names = "default"; |
| 470 | pinctrl-0 = <&mcu_mcan1_pins_default>; |
| 471 | phys = <&transceiver2>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 472 | }; |
| 473 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 474 | &tscadc0 { |
| 475 | pinctrl-0 = <&mcu_adc0_pins_default>; |
| 476 | pinctrl-names = "default"; |
| 477 | status = "okay"; |
| 478 | adc { |
| 479 | ti,adc-channels = <0 1 2 3 4 5 6 7>; |
| 480 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 481 | }; |
| 482 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 483 | &tscadc1 { |
| 484 | pinctrl-0 = <&mcu_adc1_pins_default>; |
| 485 | pinctrl-names = "default"; |
| 486 | status = "okay"; |
| 487 | adc { |
| 488 | ti,adc-channels = <0 1 2 3 4 5 6 7>; |
| 489 | }; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 490 | }; |
| 491 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 492 | &main_mcan3 { |
| 493 | status = "okay"; |
| 494 | pinctrl-names = "default"; |
| 495 | pinctrl-0 = <&main_mcan3_pins_default>; |
| 496 | phys = <&transceiver3>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 497 | }; |
| 498 | |
Manorit Chawdhry | 377cc64 | 2023-10-06 10:15:58 +0530 | [diff] [blame] | 499 | &main_mcan5 { |
| 500 | status = "okay"; |
| 501 | pinctrl-names = "default"; |
| 502 | pinctrl-0 = <&main_mcan5_pins_default>; |
| 503 | phys = <&transceiver4>; |
Aswath Govindraju | 2684421 | 2022-01-25 20:56:42 +0530 | [diff] [blame] | 504 | }; |