Sinthu Raja | d44e0c6 | 2023-01-10 21:17:56 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | * |
| 5 | * Base Board: **Yet to Add** |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "k3-am68-sk-som.dtsi" |
| 11 | #include <dt-bindings/net/ti-dp83867.h> |
| 12 | #include <dt-bindings/phy/phy-cadence.h> |
| 13 | #include <dt-bindings/phy/phy.h> |
| 14 | |
| 15 | / { |
| 16 | compatible = "ti,am68-sk", "ti,j721s2"; |
| 17 | model = "Texas Instruments AM68 SK"; |
| 18 | |
| 19 | chosen { |
| 20 | stdout-path = "serial2:115200n8"; |
| 21 | bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x2880000"; |
| 22 | }; |
| 23 | |
| 24 | aliases { |
| 25 | serial2 = &main_uart8; |
| 26 | mmc1 = &main_sdhci1; |
| 27 | }; |
| 28 | |
| 29 | vusb_main: fixedregulator-vusb-main5v0 { |
| 30 | /* USB MAIN INPUT 5V DC */ |
| 31 | compatible = "regulator-fixed"; |
| 32 | regulator-name = "vusb-main5v0"; |
| 33 | regulator-min-microvolt = <5000000>; |
| 34 | regulator-max-microvolt = <5000000>; |
| 35 | regulator-always-on; |
| 36 | regulator-boot-on; |
| 37 | }; |
| 38 | |
| 39 | vsys_3v3: fixedregulator-vsys3v3 { |
| 40 | /* Output of LM5141 */ |
| 41 | compatible = "regulator-fixed"; |
| 42 | regulator-name = "vsys_3v3"; |
| 43 | regulator-min-microvolt = <3300000>; |
| 44 | regulator-max-microvolt = <3300000>; |
| 45 | vin-supply = <&vusb_main>; |
| 46 | regulator-always-on; |
| 47 | regulator-boot-on; |
| 48 | }; |
| 49 | |
| 50 | vdd_mmc1: fixedregulator-sd { |
| 51 | /* Output of TPS22918 */ |
| 52 | compatible = "regulator-fixed"; |
| 53 | regulator-name = "vdd_mmc1"; |
| 54 | regulator-min-microvolt = <3300000>; |
| 55 | regulator-max-microvolt = <3300000>; |
| 56 | regulator-boot-on; |
| 57 | enable-active-high; |
| 58 | vin-supply = <&vsys_3v3>; |
| 59 | gpio = <&exp1 10 GPIO_ACTIVE_HIGH>; |
| 60 | }; |
| 61 | |
| 62 | vdd_sd_dv: gpio-regulator-TLV71033 { |
| 63 | /* Output of TLV71033 */ |
| 64 | compatible = "regulator-gpio"; |
| 65 | regulator-name = "tlv71033"; |
| 66 | pinctrl-names = "default"; |
| 67 | pinctrl-0 = <&vdd_sd_dv_pins_default>; |
| 68 | regulator-min-microvolt = <1800000>; |
| 69 | regulator-max-microvolt = <3300000>; |
| 70 | regulator-boot-on; |
| 71 | vin-supply = <&vsys_3v3>; |
| 72 | gpios = <&main_gpio0 49 GPIO_ACTIVE_HIGH>; |
| 73 | states = <1800000 0x0>, |
| 74 | <3300000 0x1>; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | &main_pmx0 { |
| 79 | main_uart8_pins_default: main-uart8-pins-default { |
| 80 | pinctrl-single,pins = < |
| 81 | J721S2_IOPAD(0x040, PIN_INPUT, 14) /* (AC28) MCASP0_AXR0.UART8_CTSn */ |
| 82 | J721S2_IOPAD(0x044, PIN_OUTPUT, 14) /* (Y26) MCASP0_AXR1.UART8_RTSn */ |
| 83 | J721S2_IOPAD(0x0d0, PIN_INPUT, 11) /* (AF26) SPI0_CS1.UART8_RXD */ |
| 84 | J721S2_IOPAD(0x0d4, PIN_OUTPUT, 11) /* (AH27) SPI0_CLK.UART8_TXD */ |
| 85 | >; |
| 86 | }; |
| 87 | |
| 88 | main_i2c0_pins_default: i2c0-pins-default { |
| 89 | pinctrl-single,pins = < |
| 90 | J721S2_IOPAD(0x0e0, PIN_INPUT_PULLUP, 0) /* (AH25) I2C0_SCL */ |
| 91 | J721S2_IOPAD(0x0e4, PIN_INPUT_PULLUP, 0) /* (AE24) I2C0_SDA */ |
| 92 | >; |
| 93 | }; |
| 94 | |
| 95 | main_mmc1_pins_default: main-mmc1-pins-default { |
| 96 | pinctrl-single,pins = < |
| 97 | J721S2_IOPAD(0x104, PIN_INPUT, 0) /* (P23) MMC1_CLK */ |
| 98 | J721S2_IOPAD(0x108, PIN_INPUT, 0) /* (N24) MMC1_CMD */ |
| 99 | J721S2_IOPAD(0x100, PIN_INPUT, 0) /* (###) MMC1_CLKLB */ |
| 100 | J721S2_IOPAD(0x0fc, PIN_INPUT, 0) /* (M23) MMC1_DAT0 */ |
| 101 | J721S2_IOPAD(0x0f8, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */ |
| 102 | J721S2_IOPAD(0x0f4, PIN_INPUT, 0) /* (R24) MMC1_DAT2 */ |
| 103 | J721S2_IOPAD(0x0f0, PIN_INPUT, 0) /* (R22) MMC1_DAT3 */ |
| 104 | J721S2_IOPAD(0x0e8, PIN_INPUT, 8) /* (AE25) TIMER_IO0.MMC1_SDCD */ |
| 105 | >; |
| 106 | }; |
| 107 | |
| 108 | vdd_sd_dv_pins_default: vdd-sd-dv-pins-default { |
| 109 | pinctrl-single,pins = < |
| 110 | J721S2_IOPAD(0x0c4, PIN_INPUT, 7) /* (AB26) ECAP0_IN_APWM_OUT.GPIO0_49 */ |
| 111 | >; |
| 112 | }; |
| 113 | }; |
| 114 | |
| 115 | &wkup_pmx0 { |
| 116 | mcu_cpsw_pins_default: mcu-cpsw-pins-default { |
| 117 | pinctrl-single,pins = < |
| 118 | J721S2_WKUP_IOPAD(0x094, PIN_INPUT, 0) /* (B22) MCU_RGMII1_RD0 */ |
| 119 | J721S2_WKUP_IOPAD(0x090, PIN_INPUT, 0) /* (B21) MCU_RGMII1_RD1 */ |
| 120 | J721S2_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (C22) MCU_RGMII1_RD2 */ |
| 121 | J721S2_WKUP_IOPAD(0x088, PIN_INPUT, 0) /* (D23) MCU_RGMII1_RD3 */ |
| 122 | J721S2_WKUP_IOPAD(0x084, PIN_INPUT, 0) /* (D22) MCU_RGMII1_RXC */ |
| 123 | J721S2_WKUP_IOPAD(0x06c, PIN_INPUT, 0) /* (E23) MCU_RGMII1_RX_CTL */ |
| 124 | J721S2_WKUP_IOPAD(0x07c, PIN_OUTPUT, 0) /* (F23) MCU_RGMII1_TD0 */ |
| 125 | J721S2_WKUP_IOPAD(0x078, PIN_OUTPUT, 0) /* (G22) MCU_RGMII1_TD1 */ |
| 126 | J721S2_WKUP_IOPAD(0x074, PIN_OUTPUT, 0) /* (E21) MCU_RGMII1_TD2 */ |
| 127 | J721S2_WKUP_IOPAD(0x070, PIN_OUTPUT, 0) /* (E22) MCU_RGMII1_TD3 */ |
| 128 | J721S2_WKUP_IOPAD(0x080, PIN_OUTPUT, 0) /* (F21) MCU_RGMII1_TXC */ |
| 129 | J721S2_WKUP_IOPAD(0x068, PIN_OUTPUT, 0) /* (F22) MCU_RGMII1_TX_CTL */ |
| 130 | >; |
| 131 | }; |
| 132 | |
| 133 | mcu_mdio_pins_default: mcu-mdio-pins-default { |
| 134 | pinctrl-single,pins = < |
| 135 | J721S2_WKUP_IOPAD(0x09c, PIN_OUTPUT, 0) /* (A21) MCU_MDIO0_MDC */ |
| 136 | J721S2_WKUP_IOPAD(0x098, PIN_INPUT, 0) /* (A22) MCU_MDIO0_MDIO */ |
| 137 | >; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | &main_gpio2 { |
| 142 | status = "disabled"; |
| 143 | }; |
| 144 | |
| 145 | &main_gpio4 { |
| 146 | status = "disabled"; |
| 147 | }; |
| 148 | |
| 149 | &main_gpio6 { |
| 150 | status = "disabled"; |
| 151 | }; |
| 152 | |
| 153 | &wkup_gpio1 { |
| 154 | status = "disabled"; |
| 155 | }; |
| 156 | |
| 157 | &wkup_uart0 { |
| 158 | status = "reserved"; |
| 159 | }; |
| 160 | |
| 161 | &main_uart0 { |
| 162 | status = "disabled"; |
| 163 | }; |
| 164 | |
| 165 | &main_uart1 { |
| 166 | status = "disabled"; |
| 167 | }; |
| 168 | |
| 169 | &main_uart2 { |
| 170 | status = "disabled"; |
| 171 | }; |
| 172 | |
| 173 | &main_uart3 { |
| 174 | status = "disabled"; |
| 175 | }; |
| 176 | |
| 177 | &main_uart4 { |
| 178 | status = "disabled"; |
| 179 | }; |
| 180 | |
| 181 | &main_uart5 { |
| 182 | status = "disabled"; |
| 183 | }; |
| 184 | |
| 185 | &main_uart6 { |
| 186 | status = "disabled"; |
| 187 | }; |
| 188 | |
| 189 | &main_uart7 { |
| 190 | status = "disabled"; |
| 191 | }; |
| 192 | |
| 193 | &main_uart8 { |
| 194 | pinctrl-names = "default"; |
| 195 | pinctrl-0 = <&main_uart8_pins_default>; |
| 196 | /* Shared with TFA on this platform */ |
| 197 | power-domains = <&k3_pds 357 TI_SCI_PD_SHARED>; |
| 198 | }; |
| 199 | |
| 200 | &main_uart9 { |
| 201 | status = "disabled"; |
| 202 | }; |
| 203 | |
| 204 | &main_i2c0 { |
| 205 | pinctrl-names = "default"; |
| 206 | pinctrl-0 = <&main_i2c0_pins_default>; |
| 207 | clock-frequency = <400000>; |
| 208 | |
| 209 | exp1: gpio@21 { |
| 210 | compatible = "ti,tca6416"; |
| 211 | reg = <0x21>; |
| 212 | gpio-controller; |
| 213 | #gpio-cells = <2>; |
| 214 | gpio-line-names = "CSI_VIO_SEL", "CSI_SEL_FPC_EXPN", "HDMI_PDN", |
| 215 | "HDMI_LS_OE", "DP0_3V3_EN", "BOARDID_EEPROM_WP", |
| 216 | "CAN_STB", "","GPIO_uSD_PWR_EN", "EDP_ENABLE", |
| 217 | "IO_EXP_PCIE1_M2_RSTZ", "IO_EXP_MCU_RGMII_RSTZ", |
| 218 | "IO_EXP_CSI1_EXP_RSTZ", "","CSI0_B_GPIO1", |
| 219 | "CSI1_B_GPIO1"; |
| 220 | }; |
| 221 | }; |
| 222 | |
| 223 | &main_i2c1 { |
| 224 | status = "disabled"; |
| 225 | }; |
| 226 | |
| 227 | &main_i2c2 { |
| 228 | status = "disabled"; |
| 229 | }; |
| 230 | |
| 231 | &main_i2c3 { |
| 232 | status = "disabled"; |
| 233 | }; |
| 234 | |
| 235 | &main_i2c4 { |
| 236 | status = "disabled"; |
| 237 | }; |
| 238 | |
| 239 | &main_i2c5 { |
| 240 | status = "disabled"; |
| 241 | }; |
| 242 | |
| 243 | &main_i2c6 { |
| 244 | status = "disabled"; |
| 245 | }; |
| 246 | |
| 247 | &main_sdhci0 { |
| 248 | status = "disabled"; |
| 249 | }; |
| 250 | |
| 251 | &main_sdhci1 { |
| 252 | /* SD card */ |
| 253 | pinctrl-0 = <&main_mmc1_pins_default>; |
| 254 | pinctrl-names = "default"; |
| 255 | disable-wp; |
| 256 | vmmc-supply = <&vdd_mmc1>; |
| 257 | vqmmc-supply = <&vdd_sd_dv>; |
| 258 | }; |
| 259 | |
| 260 | &mcu_cpsw { |
| 261 | pinctrl-names = "default"; |
| 262 | pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; |
| 263 | }; |
| 264 | |
| 265 | &davinci_mdio { |
| 266 | phy0: ethernet-phy@0 { |
| 267 | reg = <0>; |
| 268 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 269 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 270 | ti,min-output-impedance; |
| 271 | }; |
| 272 | }; |
| 273 | |
| 274 | &cpsw_port1 { |
| 275 | phy-mode = "rgmii-rxid"; |
| 276 | phy-handle = <&phy0>; |
| 277 | }; |
| 278 | |
| 279 | &mcu_mcan0 { |
| 280 | status = "disabled"; |
| 281 | }; |
| 282 | |
| 283 | &mcu_mcan1 { |
| 284 | status = "disabled"; |
| 285 | }; |
| 286 | |
| 287 | &main_mcan0 { |
| 288 | status = "disabled"; |
| 289 | }; |
| 290 | |
| 291 | &main_mcan1 { |
| 292 | status = "disabled"; |
| 293 | }; |
| 294 | |
| 295 | &main_mcan2 { |
| 296 | status = "disabled"; |
| 297 | }; |
| 298 | |
| 299 | &main_mcan3 { |
| 300 | status = "disabled"; |
| 301 | }; |
| 302 | |
| 303 | &main_mcan4 { |
| 304 | status = "disabled"; |
| 305 | }; |
| 306 | |
| 307 | &main_mcan5 { |
| 308 | status = "disabled"; |
| 309 | }; |
| 310 | |
| 311 | &main_mcan6 { |
| 312 | status = "disabled"; |
| 313 | }; |
| 314 | |
| 315 | &main_mcan7 { |
| 316 | status = "disabled"; |
| 317 | }; |
| 318 | |
| 319 | &main_mcan8 { |
| 320 | status = "disabled"; |
| 321 | }; |
| 322 | |
| 323 | &main_mcan9 { |
| 324 | status = "disabled"; |
| 325 | }; |
| 326 | |
| 327 | &main_mcan10 { |
| 328 | status = "disabled"; |
| 329 | }; |
| 330 | |
| 331 | &main_mcan11 { |
| 332 | status = "disabled"; |
| 333 | }; |
| 334 | |
| 335 | &main_mcan12 { |
| 336 | status = "disabled"; |
| 337 | }; |
| 338 | |
| 339 | &main_mcan13 { |
| 340 | status = "disabled"; |
| 341 | }; |
| 342 | |
| 343 | &main_mcan14 { |
| 344 | status = "disabled"; |
| 345 | }; |
| 346 | |
| 347 | &main_mcan15 { |
| 348 | status = "disabled"; |
| 349 | }; |
| 350 | |
| 351 | &main_mcan17 { |
| 352 | status = "disabled"; |
| 353 | }; |