| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
|
| 8 |
#include <dt-bindings/phy/phy.h> |
| 9 |
#include <dt-bindings/gpio/gpio.h> |
| 10 |
#include <dt-bindings/net/ti-dp83867.h> |
| 11 |
#include <dt-bindings/leds/common.h> |
| 12 |
#include "k3-am642.dtsi" |
| 13 |
|
| 14 |
#include "k3-serdes.h" |
| 15 |
|
| 16 |
/ { |
| 17 |
compatible = "ti,am642-sk", "ti,am642"; |
| 18 |
model = "Texas Instruments AM642 SK"; |
| 19 |
|
| 20 |
chosen { |
| 21 |
stdout-path = &main_uart0; |
| 22 |
}; |
| 23 |
|
| 24 |
aliases { |
| 25 |
serial0 = &mcu_uart0; |
| 26 |
serial1 = &main_uart1; |
| 27 |
serial2 = &main_uart0; |
| 28 |
i2c0 = &main_i2c0; |
| 29 |
i2c1 = &main_i2c1; |
| 30 |
mmc0 = &sdhci0; |
| 31 |
mmc1 = &sdhci1; |
| 32 |
ethernet0 = &cpsw_port1; |
| 33 |
ethernet1 = &cpsw_port2; |
| 34 |
}; |
| 35 |
|
| 36 |
memory@80000000 { |
| 37 |
bootph-pre-ram; |
| 38 |
device_type = "memory"; |
| 39 |
/* 2G RAM */ |
| 40 |
reg = <0x00000000 0x80000000 0x00000000 0x80000000>; |
| 41 |
}; |
| 42 |
|
| 43 |
reserved_memory: reserved-memory { |
| 44 |
#address-cells = <2>; |
| 45 |
#size-cells = <2>; |
| 46 |
ranges; |
| 47 |
|
| 48 |
secure_ddr: optee@9e800000 { |
| 49 |
reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ |
| 50 |
alignment = <0x1000>; |
| 51 |
no-map; |
| 52 |
}; |
| 53 |
|
| 54 |
main_r5fss0_core0_dma_memory_region: memory@a0000000 { |
| 55 |
compatible = "shared-dma-pool"; |
| 56 |
reg = <0x00 0xa0000000 0x00 0x100000>; |
| 57 |
no-map; |
| 58 |
}; |
| 59 |
|
| 60 |
main_r5fss0_core0_memory_region: memory@a0100000 { |
| 61 |
compatible = "shared-dma-pool"; |
| 62 |
reg = <0x00 0xa0100000 0x00 0xf00000>; |
| 63 |
no-map; |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
vusb_main: regulator-0 { |
| 68 |
/* USB MAIN INPUT 5V DC */ |
| 69 |
bootph-all; |
| 70 |
compatible = "regulator-fixed"; |
| 71 |
regulator-name = "vusb_main5v0"; |
| 72 |
regulator-min-microvolt = <5000000>; |
| 73 |
regulator-max-microvolt = <5000000>; |
| 74 |
regulator-always-on; |
| 75 |
regulator-boot-on; |
| 76 |
}; |
| 77 |
|
| 78 |
vcc_3v3_sys: regulator-1 { |
| 79 |
/* output of LP8733xx */ |
| 80 |
bootph-all; |
| 81 |
compatible = "regulator-fixed"; |
| 82 |
regulator-name = "vcc_3v3_sys"; |
| 83 |
regulator-min-microvolt = <3300000>; |
| 84 |
regulator-max-microvolt = <3300000>; |
| 85 |
vin-supply = <&vusb_main>; |
| 86 |
regulator-always-on; |
| 87 |
regulator-boot-on; |
| 88 |
}; |
| 89 |
|
| 90 |
vdd_mmc1: regulator-2 { |
| 91 |
/* TPS2051BD */ |
| 92 |
bootph-all; |
| 93 |
compatible = "regulator-fixed"; |
| 94 |
regulator-name = "vdd_mmc1"; |
| 95 |
regulator-min-microvolt = <3300000>; |
| 96 |
regulator-max-microvolt = <3300000>; |
| 97 |
regulator-boot-on; |
| 98 |
enable-active-high; |
| 99 |
vin-supply = <&vcc_3v3_sys>; |
| 100 |
gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; |
| 101 |
}; |
| 102 |
|
| 103 |
com8_ls_en: regulator-3 { |
| 104 |
compatible = "regulator-fixed"; |
| 105 |
regulator-name = "com8_ls_en"; |
| 106 |
regulator-min-microvolt = <3300000>; |
| 107 |
regulator-max-microvolt = <3300000>; |
| 108 |
regulator-always-on; |
| 109 |
regulator-boot-on; |
| 110 |
pinctrl-0 = <&main_com8_ls_en_pins_default>; |
| 111 |
pinctrl-names = "default"; |
| 112 |
gpio = <&main_gpio0 62 GPIO_ACTIVE_LOW>; |
| 113 |
}; |
| 114 |
|
| 115 |
wlan_en: regulator-4 { |
| 116 |
/* output of SN74AVC4T245RSVR */ |
| 117 |
compatible = "regulator-fixed"; |
| 118 |
regulator-name = "wlan_en"; |
| 119 |
regulator-min-microvolt = <1800000>; |
| 120 |
regulator-max-microvolt = <1800000>; |
| 121 |
enable-active-high; |
| 122 |
pinctrl-0 = <&main_wlan_en_pins_default>; |
| 123 |
pinctrl-names = "default"; |
| 124 |
vin-supply = <&com8_ls_en>; |
| 125 |
gpio = <&main_gpio0 48 GPIO_ACTIVE_HIGH>; |
| 126 |
}; |
| 127 |
|
| 128 |
led-controller { |
| 129 |
compatible = "gpio-leds"; |
| 130 |
|
| 131 |
led-0 { |
| 132 |
color = <LED_COLOR_ID_GREEN>; |
| 133 |
function = LED_FUNCTION_INDICATOR; |
| 134 |
function-enumerator = <1>; |
| 135 |
gpios = <&exp2 0 GPIO_ACTIVE_HIGH>; |
| 136 |
default-state = "off"; |
| 137 |
}; |
| 138 |
|
| 139 |
led-1 { |
| 140 |
color = <LED_COLOR_ID_RED>; |
| 141 |
function = LED_FUNCTION_INDICATOR; |
| 142 |
function-enumerator = <2>; |
| 143 |
gpios = <&exp2 1 GPIO_ACTIVE_HIGH>; |
| 144 |
default-state = "off"; |
| 145 |
}; |
| 146 |
|
| 147 |
led-2 { |
| 148 |
color = <LED_COLOR_ID_GREEN>; |
| 149 |
function = LED_FUNCTION_INDICATOR; |
| 150 |
function-enumerator = <3>; |
| 151 |
gpios = <&exp2 2 GPIO_ACTIVE_HIGH>; |
| 152 |
default-state = "off"; |
| 153 |
}; |
| 154 |
|
| 155 |
led-3 { |
| 156 |
color = <LED_COLOR_ID_AMBER>; |
| 157 |
function = LED_FUNCTION_INDICATOR; |
| 158 |
function-enumerator = <4>; |
| 159 |
gpios = <&exp2 3 GPIO_ACTIVE_HIGH>; |
| 160 |
default-state = "off"; |
| 161 |
}; |
| 162 |
|
| 163 |
led-4 { |
| 164 |
color = <LED_COLOR_ID_GREEN>; |
| 165 |
function = LED_FUNCTION_INDICATOR; |
| 166 |
function-enumerator = <5>; |
| 167 |
gpios = <&exp2 4 GPIO_ACTIVE_HIGH>; |
| 168 |
default-state = "off"; |
| 169 |
}; |
| 170 |
|
| 171 |
led-5 { |
| 172 |
color = <LED_COLOR_ID_RED>; |
| 173 |
function = LED_FUNCTION_INDICATOR; |
| 174 |
function-enumerator = <6>; |
| 175 |
gpios = <&exp2 5 GPIO_ACTIVE_HIGH>; |
| 176 |
default-state = "off"; |
| 177 |
}; |
| 178 |
|
| 179 |
led-6 { |
| 180 |
color = <LED_COLOR_ID_GREEN>; |
| 181 |
function = LED_FUNCTION_INDICATOR; |
| 182 |
function-enumerator = <7>; |
| 183 |
gpios = <&exp2 6 GPIO_ACTIVE_HIGH>; |
| 184 |
default-state = "off"; |
| 185 |
}; |
| 186 |
|
| 187 |
led-7 { |
| 188 |
color = <LED_COLOR_ID_AMBER>; |
| 189 |
function = LED_FUNCTION_HEARTBEAT; |
| 190 |
function-enumerator = <8>; |
| 191 |
linux,default-trigger = "heartbeat"; |
| 192 |
gpios = <&exp2 7 GPIO_ACTIVE_HIGH>; |
| 193 |
}; |
| 194 |
}; |
| 195 |
}; |
| 196 |
|
| 197 |
&main_pmx0 { |
| 198 |
main_mmc1_pins_default: main-mmc1-default-pins { |
| 199 |
bootph-all; |
| 200 |
pinctrl-single,pins = < |
| 201 |
AM64X_IOPAD(0x029c, PIN_INPUT_PULLUP, 0) /* (C20) MMC1_SDWP */ |
| 202 |
AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */ |
| 203 |
AM64X_IOPAD(0x0294, PIN_INPUT_PULLUP, 0) /* (J19) MMC1_CMD */ |
| 204 |
AM64X_IOPAD(0x0290, PIN_INPUT, 0) /* (#N/A) MMC1_CLKLB */ |
| 205 |
AM64X_IOPAD(0x028c, PIN_INPUT_PULLDOWN, 0) /* (L20) MMC1_CLK */ |
| 206 |
AM64X_IOPAD(0x0288, PIN_INPUT_PULLUP, 0) /* (K21) MMC1_DAT0 */ |
| 207 |
AM64X_IOPAD(0x0284, PIN_INPUT_PULLUP, 0) /* (L21) MMC1_DAT1 */ |
| 208 |
AM64X_IOPAD(0x0280, PIN_INPUT_PULLUP, 0) /* (K19) MMC1_DAT2 */ |
| 209 |
AM64X_IOPAD(0x027c, PIN_INPUT_PULLUP, 0) /* (K18) MMC1_DAT3 */ |
| 210 |
>; |
| 211 |
}; |
| 212 |
|
| 213 |
main_uart0_pins_default: main-uart0-default-pins { |
| 214 |
bootph-all; |
| 215 |
pinctrl-single,pins = < |
| 216 |
AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */ |
| 217 |
AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */ |
| 218 |
AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */ |
| 219 |
AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */ |
| 220 |
>; |
| 221 |
}; |
| 222 |
|
| 223 |
main_uart1_pins_default: main-uart1-default-pins { |
| 224 |
bootph-pre-ram; |
| 225 |
pinctrl-single,pins = < |
| 226 |
AM64X_IOPAD(0x0248, PIN_INPUT, 0) /* (D16) UART1_CTSn */ |
| 227 |
AM64X_IOPAD(0x024c, PIN_OUTPUT, 0) /* (E16) UART1_RTSn */ |
| 228 |
AM64X_IOPAD(0x0240, PIN_INPUT, 0) /* (E15) UART1_RXD */ |
| 229 |
AM64X_IOPAD(0x0244, PIN_OUTPUT, 0) /* (E14) UART1_TXD */ |
| 230 |
>; |
| 231 |
}; |
| 232 |
|
| 233 |
main_usb0_pins_default: main-usb0-default-pins { |
| 234 |
bootph-all; |
| 235 |
pinctrl-single,pins = < |
| 236 |
AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */ |
| 237 |
>; |
| 238 |
}; |
| 239 |
|
| 240 |
main_i2c0_pins_default: main-i2c0-default-pins { |
| 241 |
bootph-all; |
| 242 |
pinctrl-single,pins = < |
| 243 |
AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */ |
| 244 |
AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */ |
| 245 |
>; |
| 246 |
}; |
| 247 |
|
| 248 |
main_i2c1_pins_default: main-i2c1-default-pins { |
| 249 |
bootph-all; |
| 250 |
pinctrl-single,pins = < |
| 251 |
AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */ |
| 252 |
AM64X_IOPAD(0x026c, PIN_INPUT_PULLUP, 0) /* (B19) I2C1_SDA */ |
| 253 |
>; |
| 254 |
}; |
| 255 |
|
| 256 |
mdio1_pins_default: mdio1-default-pins { |
| 257 |
pinctrl-single,pins = < |
| 258 |
AM64X_IOPAD(0x01fc, PIN_OUTPUT, 4) /* (R2) PRG0_PRU1_GPO19.MDIO0_MDC */ |
| 259 |
AM64X_IOPAD(0x01f8, PIN_INPUT, 4) /* (P5) PRG0_PRU1_GPO18.MDIO0_MDIO */ |
| 260 |
>; |
| 261 |
}; |
| 262 |
|
| 263 |
rgmii1_pins_default: rgmii1-default-pins { |
| 264 |
pinctrl-single,pins = < |
| 265 |
AM64X_IOPAD(0x011c, PIN_INPUT, 4) /* (AA13) PRG1_PRU1_GPO5.RGMII1_RD0 */ |
| 266 |
AM64X_IOPAD(0x0128, PIN_INPUT, 4) /* (U12) PRG1_PRU1_GPO8.RGMII1_RD1 */ |
| 267 |
AM64X_IOPAD(0x0150, PIN_INPUT, 4) /* (Y13) PRG1_PRU1_GPO18.RGMII1_RD2 */ |
| 268 |
AM64X_IOPAD(0x0154, PIN_INPUT, 4) /* (V12) PRG1_PRU1_GPO19.RGMII1_RD3 */ |
| 269 |
AM64X_IOPAD(0x00d8, PIN_INPUT, 4) /* (W13) PRG1_PRU0_GPO8.RGMII1_RXC */ |
| 270 |
AM64X_IOPAD(0x00cc, PIN_INPUT, 4) /* (V13) PRG1_PRU0_GPO5.RGMII1_RX_CTL */ |
| 271 |
AM64X_IOPAD(0x0124, PIN_OUTPUT, 4) /* (V15) PRG1_PRU1_GPO7.RGMII1_TD0 */ |
| 272 |
AM64X_IOPAD(0x012c, PIN_OUTPUT, 4) /* (V14) PRG1_PRU1_GPO9.RGMII1_TD1 */ |
| 273 |
AM64X_IOPAD(0x0130, PIN_OUTPUT, 4) /* (W14) PRG1_PRU1_GPO10.RGMII1_TD2 */ |
| 274 |
AM64X_IOPAD(0x014c, PIN_OUTPUT, 4) /* (AA14) PRG1_PRU1_GPO17.RGMII1_TD3 */ |
| 275 |
AM64X_IOPAD(0x00e0, PIN_OUTPUT, 4) /* (U14) PRG1_PRU0_GPO10.RGMII1_TXC */ |
| 276 |
AM64X_IOPAD(0x00dc, PIN_OUTPUT, 4) /* (U15) PRG1_PRU0_GPO9.RGMII1_TX_CTL */ |
| 277 |
>; |
| 278 |
}; |
| 279 |
|
| 280 |
rgmii2_pins_default: rgmii2-default-pins { |
| 281 |
pinctrl-single,pins = < |
| 282 |
AM64X_IOPAD(0x0108, PIN_INPUT, 4) /* (W11) PRG1_PRU1_GPO0.RGMII2_RD0 */ |
| 283 |
AM64X_IOPAD(0x010c, PIN_INPUT, 4) /* (V11) PRG1_PRU1_GPO1.RGMII2_RD1 */ |
| 284 |
AM64X_IOPAD(0x0110, PIN_INPUT, 4) /* (AA12) PRG1_PRU1_GPO2.RGMII2_RD2 */ |
| 285 |
AM64X_IOPAD(0x0114, PIN_INPUT, 4) /* (Y12) PRG1_PRU1_GPO3.RGMII2_RD3 */ |
| 286 |
AM64X_IOPAD(0x0120, PIN_INPUT, 4) /* (U11) PRG1_PRU1_GPO6.RGMII2_RXC */ |
| 287 |
AM64X_IOPAD(0x0118, PIN_INPUT, 4) /* (W12) PRG1_PRU1_GPO4.RGMII2_RX_CTL */ |
| 288 |
AM64X_IOPAD(0x0134, PIN_OUTPUT, 4) /* (AA10) PRG1_PRU1_GPO11.RGMII2_TD0 */ |
| 289 |
AM64X_IOPAD(0x0138, PIN_OUTPUT, 4) /* (V10) PRG1_PRU1_GPO12.RGMII2_TD1 */ |
| 290 |
AM64X_IOPAD(0x013c, PIN_OUTPUT, 4) /* (U10) PRG1_PRU1_GPO13.RGMII2_TD2 */ |
| 291 |
AM64X_IOPAD(0x0140, PIN_OUTPUT, 4) /* (AA11) PRG1_PRU1_GPO14.RGMII2_TD3 */ |
| 292 |
AM64X_IOPAD(0x0148, PIN_OUTPUT, 4) /* (Y10) PRG1_PRU1_GPO16.RGMII2_TXC */ |
| 293 |
AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */ |
| 294 |
>; |
| 295 |
}; |
| 296 |
|
| 297 |
ospi0_pins_default: ospi0-default-pins { |
| 298 |
pinctrl-single,pins = < |
| 299 |
AM64X_IOPAD(0x0000, PIN_OUTPUT, 0) /* (N20) OSPI0_CLK */ |
| 300 |
AM64X_IOPAD(0x002c, PIN_OUTPUT, 0) /* (L19) OSPI0_CSn0 */ |
| 301 |
AM64X_IOPAD(0x000c, PIN_INPUT, 0) /* (M19) OSPI0_D0 */ |
| 302 |
AM64X_IOPAD(0x0010, PIN_INPUT, 0) /* (M18) OSPI0_D1 */ |
| 303 |
AM64X_IOPAD(0x0014, PIN_INPUT, 0) /* (M20) OSPI0_D2 */ |
| 304 |
AM64X_IOPAD(0x0018, PIN_INPUT, 0) /* (M21) OSPI0_D3 */ |
| 305 |
AM64X_IOPAD(0x001c, PIN_INPUT, 0) /* (P21) OSPI0_D4 */ |
| 306 |
AM64X_IOPAD(0x0020, PIN_INPUT, 0) /* (P20) OSPI0_D5 */ |
| 307 |
AM64X_IOPAD(0x0024, PIN_INPUT, 0) /* (N18) OSPI0_D6 */ |
| 308 |
AM64X_IOPAD(0x0028, PIN_INPUT, 0) /* (M17) OSPI0_D7 */ |
| 309 |
AM64X_IOPAD(0x0008, PIN_INPUT, 0) /* (N19) OSPI0_DQS */ |
| 310 |
>; |
| 311 |
}; |
| 312 |
|
| 313 |
main_ecap0_pins_default: main-ecap0-default-pins { |
| 314 |
pinctrl-single,pins = < |
| 315 |
AM64X_IOPAD(0x0270, PIN_INPUT, 0) /* (D18) ECAP0_IN_APWM_OUT */ |
| 316 |
>; |
| 317 |
}; |
| 318 |
|
| 319 |
main_eqep0_pins_default: main-eqep0-default-pins { |
| 320 |
pinctrl-single,pins = < |
| 321 |
AM64X_IOPAD(0x00a0, PIN_INPUT, 3) /* (N16) GPMC0_WPn.EQEP0_A */ |
| 322 |
AM64X_IOPAD(0x00a4, PIN_INPUT, 3) /* (N17) GPMC0_DIR.EQEP0_B */ |
| 323 |
AM64X_IOPAD(0x00ac, PIN_INPUT, 3) /* (R20) GPMC0_CSn1.EQEP0_I */ |
| 324 |
AM64X_IOPAD(0x00a8, PIN_INPUT, 3) /* (R19) GPMC0_CSn0.EQEP0_S */ |
| 325 |
>; |
| 326 |
}; |
| 327 |
|
| 328 |
main_wlan_en_pins_default: main-wlan-en-default-pins { |
| 329 |
pinctrl-single,pins = < |
| 330 |
AM64X_IOPAD(0x00c4, PIN_OUTPUT_PULLUP, 7) /* (V8) GPIO0_48 */ |
| 331 |
>; |
| 332 |
}; |
| 333 |
|
| 334 |
main_com8_ls_en_pins_default: main-com8-ls-en-default-pins { |
| 335 |
pinctrl-single,pins = < |
| 336 |
AM64X_IOPAD(0x00fc, PIN_OUTPUT, 7) /* (U7) PRG1_PRU0_GPO17.GPIO0_62 */ |
| 337 |
>; |
| 338 |
}; |
| 339 |
|
| 340 |
main_wlan_pins_default: main-wlan-default-pins { |
| 341 |
pinctrl-single,pins = < |
| 342 |
AM64X_IOPAD(0x00bc, PIN_INPUT, 7) /* (U8) GPIO0_46 */ |
| 343 |
>; |
| 344 |
}; |
| 345 |
}; |
| 346 |
|
| 347 |
&main_uart0 { |
| 348 |
bootph-all; |
| 349 |
status = "okay"; |
| 350 |
pinctrl-names = "default"; |
| 351 |
pinctrl-0 = <&main_uart0_pins_default>; |
| 352 |
}; |
| 353 |
|
| 354 |
&main_uart1 { |
| 355 |
/* main_uart1 is reserved for firmware usage */ |
| 356 |
bootph-pre-ram; |
| 357 |
status = "reserved"; |
| 358 |
pinctrl-names = "default"; |
| 359 |
pinctrl-0 = <&main_uart1_pins_default>; |
| 360 |
}; |
| 361 |
|
| 362 |
&main_i2c0 { |
| 363 |
bootph-all; |
| 364 |
status = "okay"; |
| 365 |
pinctrl-names = "default"; |
| 366 |
pinctrl-0 = <&main_i2c0_pins_default>; |
| 367 |
clock-frequency = <400000>; |
| 368 |
|
| 369 |
eeprom@51 { |
| 370 |
compatible = "atmel,24c512"; |
| 371 |
reg = <0x51>; |
| 372 |
}; |
| 373 |
}; |
| 374 |
|
| 375 |
&main_i2c1 { |
| 376 |
bootph-all; |
| 377 |
status = "okay"; |
| 378 |
pinctrl-names = "default"; |
| 379 |
pinctrl-0 = <&main_i2c1_pins_default>; |
| 380 |
clock-frequency = <400000>; |
| 381 |
|
| 382 |
exp1: gpio@70 { |
| 383 |
bootph-all; |
| 384 |
compatible = "nxp,pca9538"; |
| 385 |
reg = <0x70>; |
| 386 |
gpio-controller; |
| 387 |
#gpio-cells = <2>; |
| 388 |
gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST", |
| 389 |
"PRU_DETECT", "MMC1_SD_EN", |
| 390 |
"VPP_LDO_EN", "RPI_PS_3V3_En", |
| 391 |
"RPI_PS_5V0_En", "RPI_HAT_DETECT"; |
| 392 |
}; |
| 393 |
|
| 394 |
exp2: gpio@60 { |
| 395 |
compatible = "ti,tpic2810"; |
| 396 |
reg = <0x60>; |
| 397 |
gpio-controller; |
| 398 |
#gpio-cells = <2>; |
| 399 |
gpio-line-names = "LED1","LED2","LED3","LED4","LED5","LED6","LED7","LED8"; |
| 400 |
}; |
| 401 |
|
| 402 |
/* SoC power supply temperature */ |
| 403 |
tmp100@48 { |
| 404 |
compatible = "ti,tmp100"; |
| 405 |
reg = <0x48>; |
| 406 |
}; |
| 407 |
|
| 408 |
/* DDR power supply temperature */ |
| 409 |
tmp100@49 { |
| 410 |
compatible = "ti,tmp100"; |
| 411 |
reg = <0x49>; |
| 412 |
}; |
| 413 |
}; |
| 414 |
|
| 415 |
/* mcu_gpio0 and mcu_gpio_intr are reserved for mcu firmware usage */ |
| 416 |
&mcu_gpio0 { |
| 417 |
status = "reserved"; |
| 418 |
}; |
| 419 |
|
| 420 |
&mcu_gpio_intr { |
| 421 |
status = "reserved"; |
| 422 |
}; |
| 423 |
|
| 424 |
&sdhci0 { |
| 425 |
status = "okay"; |
| 426 |
vmmc-supply = <&wlan_en>; |
| 427 |
bus-width = <4>; |
| 428 |
non-removable; |
| 429 |
cap-power-off-card; |
| 430 |
keep-power-in-suspend; |
| 431 |
ti,driver-strength-ohm = <50>; |
| 432 |
|
| 433 |
#address-cells = <1>; |
| 434 |
#size-cells = <0>; |
| 435 |
wlcore: wlcore@2 { |
| 436 |
compatible = "ti,wl1837"; |
| 437 |
reg = <2>; |
| 438 |
pinctrl-0 = <&main_wlan_pins_default>; |
| 439 |
pinctrl-names = "default"; |
| 440 |
interrupt-parent = <&main_gpio0>; |
| 441 |
interrupts = <46 IRQ_TYPE_EDGE_FALLING>; |
| 442 |
}; |
| 443 |
}; |
| 444 |
|
| 445 |
/* SD/MMC */ |
| 446 |
&sdhci1 { |
| 447 |
bootph-all; |
| 448 |
status = "okay"; |
| 449 |
vmmc-supply = <&vdd_mmc1>; |
| 450 |
pinctrl-names = "default"; |
| 451 |
pinctrl-0 = <&main_mmc1_pins_default>; |
| 452 |
disable-wp; |
| 453 |
}; |
| 454 |
|
| 455 |
&serdes_ln_ctrl { |
| 456 |
bootph-all; |
| 457 |
idle-states = <AM64_SERDES0_LANE0_USB>; |
| 458 |
}; |
| 459 |
|
| 460 |
&serdes_refclk { |
| 461 |
bootph-all; |
| 462 |
}; |
| 463 |
|
| 464 |
&serdes_wiz0 { |
| 465 |
bootph-all; |
| 466 |
}; |
| 467 |
|
| 468 |
&serdes0 { |
| 469 |
bootph-all; |
| 470 |
serdes0_usb_link: phy@0 { |
| 471 |
bootph-all; |
| 472 |
reg = <0>; |
| 473 |
cdns,num-lanes = <1>; |
| 474 |
#phy-cells = <0>; |
| 475 |
cdns,phy-type = <PHY_TYPE_USB3>; |
| 476 |
resets = <&serdes_wiz0 1>; |
| 477 |
}; |
| 478 |
}; |
| 479 |
|
| 480 |
&usbss0 { |
| 481 |
bootph-all; |
| 482 |
ti,vbus-divider; |
| 483 |
}; |
| 484 |
|
| 485 |
&usb0 { |
| 486 |
bootph-all; |
| 487 |
dr_mode = "host"; |
| 488 |
maximum-speed = "super-speed"; |
| 489 |
pinctrl-names = "default"; |
| 490 |
pinctrl-0 = <&main_usb0_pins_default>; |
| 491 |
phys = <&serdes0_usb_link>; |
| 492 |
phy-names = "cdns3,usb3-phy"; |
| 493 |
}; |
| 494 |
|
| 495 |
&cpsw3g { |
| 496 |
pinctrl-names = "default"; |
| 497 |
pinctrl-0 = <&rgmii1_pins_default>, <&rgmii2_pins_default>; |
| 498 |
status = "okay"; |
| 499 |
}; |
| 500 |
|
| 501 |
&cpsw_port1 { |
| 502 |
phy-mode = "rgmii-id"; |
| 503 |
phy-handle = <&cpsw3g_phy0>; |
| 504 |
status = "okay"; |
| 505 |
}; |
| 506 |
|
| 507 |
&cpsw_port2 { |
| 508 |
phy-mode = "rgmii-id"; |
| 509 |
phy-handle = <&cpsw3g_phy1>; |
| 510 |
status = "okay"; |
| 511 |
}; |
| 512 |
|
| 513 |
&cpsw3g_mdio { |
| 514 |
status = "okay"; |
| 515 |
pinctrl-names = "default"; |
| 516 |
pinctrl-0 = <&mdio1_pins_default>; |
| 517 |
|
| 518 |
cpsw3g_phy0: ethernet-phy@0 { |
| 519 |
reg = <0>; |
| 520 |
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 521 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 522 |
}; |
| 523 |
|
| 524 |
cpsw3g_phy1: ethernet-phy@1 { |
| 525 |
reg = <1>; |
| 526 |
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 527 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 528 |
}; |
| 529 |
}; |
| 530 |
|
| 531 |
&ospi0 { |
| 532 |
status = "okay"; |
| 533 |
pinctrl-names = "default"; |
| 534 |
pinctrl-0 = <&ospi0_pins_default>; |
| 535 |
|
| 536 |
flash@0 { |
| 537 |
compatible = "jedec,spi-nor"; |
| 538 |
reg = <0x0>; |
| 539 |
spi-tx-bus-width = <8>; |
| 540 |
spi-rx-bus-width = <8>; |
| 541 |
spi-max-frequency = <25000000>; |
| 542 |
cdns,tshsl-ns = <60>; |
| 543 |
cdns,tsd2d-ns = <60>; |
| 544 |
cdns,tchsh-ns = <60>; |
| 545 |
cdns,tslch-ns = <60>; |
| 546 |
cdns,read-delay = <4>; |
| 547 |
|
| 548 |
partitions { |
| 549 |
compatible = "fixed-partitions"; |
| 550 |
#address-cells = <1>; |
| 551 |
#size-cells = <1>; |
| 552 |
|
| 553 |
partition@0 { |
| 554 |
label = "ospi.tiboot3"; |
| 555 |
reg = <0x0 0x100000>; |
| 556 |
}; |
| 557 |
|
| 558 |
partition@100000 { |
| 559 |
label = "ospi.tispl"; |
| 560 |
reg = <0x100000 0x200000>; |
| 561 |
}; |
| 562 |
|
| 563 |
partition@300000 { |
| 564 |
label = "ospi.u-boot"; |
| 565 |
reg = <0x300000 0x400000>; |
| 566 |
}; |
| 567 |
|
| 568 |
partition@700000 { |
| 569 |
label = "ospi.env"; |
| 570 |
reg = <0x700000 0x40000>; |
| 571 |
}; |
| 572 |
|
| 573 |
partition@740000 { |
| 574 |
label = "ospi.env.backup"; |
| 575 |
reg = <0x740000 0x40000>; |
| 576 |
}; |
| 577 |
|
| 578 |
partition@800000 { |
| 579 |
label = "ospi.rootfs"; |
| 580 |
reg = <0x800000 0x37c0000>; |
| 581 |
}; |
| 582 |
|
| 583 |
partition@3fc0000 { |
| 584 |
label = "ospi.phypattern"; |
| 585 |
reg = <0x3fc0000 0x40000>; |
| 586 |
}; |
| 587 |
}; |
| 588 |
}; |
| 589 |
}; |
| 590 |
|
| 591 |
&ecap0 { |
| 592 |
status = "okay"; |
| 593 |
/* PWM is available on Pin 1 of header J3 */ |
| 594 |
pinctrl-names = "default"; |
| 595 |
pinctrl-0 = <&main_ecap0_pins_default>; |
| 596 |
}; |
| 597 |
|
| 598 |
&eqep0 { |
| 599 |
status = "okay"; |
| 600 |
/* EQEP0 A & B available on pins 18 & 22 of J4 header */ |
| 601 |
pinctrl-names = "default"; |
| 602 |
pinctrl-0 = <&main_eqep0_pins_default>; |
| 603 |
}; |
| 604 |
|
| 605 |
#include "k3-am64-ti-ipc-firmware.dtsi" |