| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* AM62x LP SK: https://www.ti.com/tool/SK-AM62-LP |
| 4 |
* |
| 5 |
* Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
|
| 10 |
#include "k3-am625.dtsi" |
| 11 |
#include "k3-am62x-sk-common.dtsi" |
| 12 |
|
| 13 |
/ { |
| 14 |
compatible = "ti,am62-lp-sk", "ti,am625"; |
| 15 |
model = "Texas Instruments AM62x LP SK"; |
| 16 |
|
| 17 |
memory@80000000 { |
| 18 |
/* 2G RAM */ |
| 19 |
reg = <0x00000000 0x80000000 0x00000000 0x80000000>; |
| 20 |
device_type = "memory"; |
| 21 |
bootph-pre-ram; |
| 22 |
}; |
| 23 |
|
| 24 |
vmain_pd: regulator-0 { |
| 25 |
/* TPS65988 PD CONTROLLER OUTPUT */ |
| 26 |
compatible = "regulator-fixed"; |
| 27 |
regulator-name = "vmain_pd"; |
| 28 |
regulator-min-microvolt = <5000000>; |
| 29 |
regulator-max-microvolt = <5000000>; |
| 30 |
regulator-always-on; |
| 31 |
regulator-boot-on; |
| 32 |
}; |
| 33 |
|
| 34 |
vcc_5v0: regulator-1 { |
| 35 |
/* Output of TPS630702RNMR */ |
| 36 |
compatible = "regulator-fixed"; |
| 37 |
regulator-name = "vcc_5v0"; |
| 38 |
regulator-min-microvolt = <5000000>; |
| 39 |
regulator-max-microvolt = <5000000>; |
| 40 |
vin-supply = <&vmain_pd>; |
| 41 |
regulator-always-on; |
| 42 |
regulator-boot-on; |
| 43 |
}; |
| 44 |
|
| 45 |
vcc_3v3_sys: regulator-2 { |
| 46 |
/* output of LM61460-Q1 */ |
| 47 |
compatible = "regulator-fixed"; |
| 48 |
regulator-name = "vcc_3v3_sys"; |
| 49 |
regulator-min-microvolt = <3300000>; |
| 50 |
regulator-max-microvolt = <3300000>; |
| 51 |
vin-supply = <&vmain_pd>; |
| 52 |
regulator-always-on; |
| 53 |
regulator-boot-on; |
| 54 |
}; |
| 55 |
|
| 56 |
vdd_mmc1: regulator-3 { |
| 57 |
/* TPS22918DBVR */ |
| 58 |
compatible = "regulator-fixed"; |
| 59 |
regulator-name = "vdd_mmc1"; |
| 60 |
regulator-min-microvolt = <3300000>; |
| 61 |
regulator-max-microvolt = <3300000>; |
| 62 |
regulator-boot-on; |
| 63 |
enable-active-high; |
| 64 |
vin-supply = <&vcc_3v3_sys>; |
| 65 |
gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; |
| 66 |
}; |
| 67 |
|
| 68 |
vddshv_sdio: regulator-4 { |
| 69 |
compatible = "regulator-gpio"; |
| 70 |
regulator-name = "vddshv_sdio"; |
| 71 |
pinctrl-names = "default"; |
| 72 |
pinctrl-0 = <&vddshv_sdio_pins_default>; |
| 73 |
regulator-min-microvolt = <1800000>; |
| 74 |
regulator-max-microvolt = <3300000>; |
| 75 |
regulator-boot-on; |
| 76 |
vin-supply = <&ldo1_reg>; |
| 77 |
gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>; |
| 78 |
states = <1800000 0x0>, |
| 79 |
<3300000 0x1>; |
| 80 |
bootph-all; |
| 81 |
}; |
| 82 |
}; |
| 83 |
|
| 84 |
&main_pmx0 { |
| 85 |
main_mmc0_pins_default: main-mmc0-default-pins { |
| 86 |
bootph-all; |
| 87 |
pinctrl-single,pins = < |
| 88 |
AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (V3) MMC0_CMD */ |
| 89 |
AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (Y1) MMC0_CLK */ |
| 90 |
AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (V2) MMC0_DAT0 */ |
| 91 |
AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (V1) MMC0_DAT1 */ |
| 92 |
AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (W2) MMC0_DAT2 */ |
| 93 |
AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (W1) MMC0_DAT3 */ |
| 94 |
AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (Y2) MMC0_DAT4 */ |
| 95 |
AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (W3) MMC0_DAT5 */ |
| 96 |
AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (W4) MMC0_DAT6 */ |
| 97 |
AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (V4) MMC0_DAT7 */ |
| 98 |
>; |
| 99 |
}; |
| 100 |
|
| 101 |
vddshv_sdio_pins_default: vddshv-sdio-default-pins { |
| 102 |
pinctrl-single,pins = < |
| 103 |
AM62X_IOPAD(0x07c, PIN_OUTPUT, 7) /* (M19) GPMC0_CLK.GPIO0_31 */ |
| 104 |
>; |
| 105 |
bootph-all; |
| 106 |
}; |
| 107 |
|
| 108 |
main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins { |
| 109 |
pinctrl-single,pins = < |
| 110 |
AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (C13) UART0_RTSn.GPIO1_23 */ |
| 111 |
>; |
| 112 |
bootph-all; |
| 113 |
}; |
| 114 |
|
| 115 |
pmic_irq_pins_default: pmic-irq-default-pins { |
| 116 |
pinctrl-single,pins = < |
| 117 |
AM62X_IOPAD(0x01f4, PIN_INPUT, 0) /* (B16) EXTINTn */ |
| 118 |
>; |
| 119 |
}; |
| 120 |
}; |
| 121 |
|
| 122 |
&main_i2c1 { |
| 123 |
exp1: gpio@22 { |
| 124 |
compatible = "ti,tca6424"; |
| 125 |
reg = <0x22>; |
| 126 |
gpio-controller; |
| 127 |
#gpio-cells = <2>; |
| 128 |
gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST", |
| 129 |
"PRU_DETECT", "MMC1_SD_EN", |
| 130 |
"VPP_LDO_EN", "EXP_PS_3V3_En", |
| 131 |
"EXP_PS_5V0_En", "EXP_HAT_DETECT", |
| 132 |
"GPIO_AUD_RSTn", "GPIO_eMMC_RSTn", |
| 133 |
"UART1_FET_BUF_EN", "BT_UART_WAKE_SOC", |
| 134 |
"GPIO_HDMI_RSTn", "CSI_GPIO0", |
| 135 |
"CSI_GPIO1", "GPIO_OLDI_INT", |
| 136 |
"HDMI_INTn", "TEST_GPIO2", |
| 137 |
"MCASP1_FET_EN", "MCASP1_BUF_BT_EN", |
| 138 |
"MCASP1_FET_SEL", "UART1_FET_SEL", |
| 139 |
"", "IO_EXP_TEST_LED"; |
| 140 |
|
| 141 |
interrupt-parent = <&main_gpio1>; |
| 142 |
interrupts = <23 IRQ_TYPE_EDGE_FALLING>; |
| 143 |
interrupt-controller; |
| 144 |
#interrupt-cells = <2>; |
| 145 |
|
| 146 |
pinctrl-names = "default"; |
| 147 |
pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; |
| 148 |
bootph-all; |
| 149 |
}; |
| 150 |
|
| 151 |
exp2: gpio@23 { |
| 152 |
compatible = "ti,tca6424"; |
| 153 |
reg = <0x23>; |
| 154 |
gpio-controller; |
| 155 |
#gpio-cells = <2>; |
| 156 |
gpio-line-names = "", "", |
| 157 |
"", "", |
| 158 |
"", "", |
| 159 |
"", "", |
| 160 |
"WL_LT_EN", "CSI_RSTz", |
| 161 |
"", "", |
| 162 |
"", "", |
| 163 |
"", "", |
| 164 |
"SPI0_FET_SEL", "SPI0_FET_OE", |
| 165 |
"GPIO_OLDI_RSTn", "PRU_3V3_EN", |
| 166 |
"", "", |
| 167 |
"CSI_VLDO_SEL", "SOC_WLAN_SDIO_RST"; |
| 168 |
}; |
| 169 |
}; |
| 170 |
|
| 171 |
&sdhci0 { |
| 172 |
bootph-all; |
| 173 |
non-removable; |
| 174 |
pinctrl-names = "default"; |
| 175 |
pinctrl-0 = <&main_mmc0_pins_default>; |
| 176 |
status = "okay"; |
| 177 |
}; |
| 178 |
|
| 179 |
&sdhci1 { |
| 180 |
vmmc-supply = <&vdd_mmc1>; |
| 181 |
vqmmc-supply = <&vddshv_sdio>; |
| 182 |
}; |
| 183 |
|
| 184 |
&cpsw3g { |
| 185 |
status = "okay"; |
| 186 |
}; |
| 187 |
|
| 188 |
&cpsw_port2 { |
| 189 |
status = "disabled"; |
| 190 |
}; |
| 191 |
|
| 192 |
&main_i2c0 { |
| 193 |
tps65219: pmic@30 { |
| 194 |
compatible = "ti,tps65219"; |
| 195 |
reg = <0x30>; |
| 196 |
buck1-supply = <&vcc_3v3_sys>; |
| 197 |
buck2-supply = <&vcc_3v3_sys>; |
| 198 |
buck3-supply = <&vcc_3v3_sys>; |
| 199 |
ldo1-supply = <&vcc_3v3_sys>; |
| 200 |
ldo2-supply = <&buck2_reg>; |
| 201 |
ldo3-supply = <&vcc_3v3_sys>; |
| 202 |
ldo4-supply = <&vcc_3v3_sys>; |
| 203 |
|
| 204 |
pinctrl-names = "default"; |
| 205 |
pinctrl-0 = <&pmic_irq_pins_default>; |
| 206 |
|
| 207 |
interrupt-parent = <&gic500>; |
| 208 |
interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>; |
| 209 |
|
| 210 |
regulators { |
| 211 |
buck1_reg: buck1 { |
| 212 |
regulator-name = "VDD_CORE"; |
| 213 |
regulator-min-microvolt = <750000>; |
| 214 |
regulator-max-microvolt = <750000>; |
| 215 |
regulator-boot-on; |
| 216 |
regulator-always-on; |
| 217 |
}; |
| 218 |
|
| 219 |
buck2_reg: buck2 { |
| 220 |
regulator-name = "VCC1V8_SYS"; |
| 221 |
regulator-min-microvolt = <1800000>; |
| 222 |
regulator-max-microvolt = <1800000>; |
| 223 |
regulator-boot-on; |
| 224 |
regulator-always-on; |
| 225 |
}; |
| 226 |
|
| 227 |
buck3_reg: buck3 { |
| 228 |
regulator-name = "VDD_LPDDR4"; |
| 229 |
regulator-min-microvolt = <1100000>; |
| 230 |
regulator-max-microvolt = <1100000>; |
| 231 |
regulator-boot-on; |
| 232 |
regulator-always-on; |
| 233 |
}; |
| 234 |
|
| 235 |
ldo1_reg: ldo1 { |
| 236 |
regulator-name = "VDDSHV_SDIO"; |
| 237 |
regulator-min-microvolt = <3300000>; |
| 238 |
regulator-max-microvolt = <3300000>; |
| 239 |
}; |
| 240 |
|
| 241 |
ldo2_reg: ldo2 { |
| 242 |
regulator-name = "VDDAR_CORE"; |
| 243 |
regulator-min-microvolt = <850000>; |
| 244 |
regulator-max-microvolt = <850000>; |
| 245 |
regulator-boot-on; |
| 246 |
regulator-always-on; |
| 247 |
}; |
| 248 |
|
| 249 |
ldo3_reg: ldo3 { |
| 250 |
regulator-name = "VDDA_1V8"; |
| 251 |
regulator-min-microvolt = <1800000>; |
| 252 |
regulator-max-microvolt = <1800000>; |
| 253 |
regulator-boot-on; |
| 254 |
regulator-always-on; |
| 255 |
}; |
| 256 |
|
| 257 |
ldo4_reg: ldo4 { |
| 258 |
regulator-name = "VDD_1V2"; |
| 259 |
regulator-min-microvolt = <1200000>; |
| 260 |
regulator-max-microvolt = <1200000>; |
| 261 |
regulator-boot-on; |
| 262 |
regulator-always-on; |
| 263 |
}; |
| 264 |
}; |
| 265 |
}; |
| 266 |
}; |
| 267 |
|
| 268 |
&tlv320aic3106 { |
| 269 |
DVDD-supply = <&buck2_reg>; |
| 270 |
}; |
| 271 |
|
| 272 |
&main_gpio0 { |
| 273 |
bootph-all; |
| 274 |
}; |
| 275 |
|
| 276 |
&main_gpio1 { |
| 277 |
bootph-all; |
| 278 |
}; |
| 279 |
|
| 280 |
&gpmc0 { |
| 281 |
ranges = <0 0 0x00 0x51000000 0x01000000>; /* CS0 space. Min partition = 16MB */ |
| 282 |
}; |
| 283 |
|
| 284 |
&mcu_mcan0 { |
| 285 |
pinctrl-names = "default", "wakeup"; |
| 286 |
pinctrl-0 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_default>; |
| 287 |
pinctrl-1 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_wakeup>; |
| 288 |
wakeup-source = <&system_partial_io>, |
| 289 |
<&system_deep_sleep>, |
| 290 |
<&system_mcu_only>, |
| 291 |
<&system_standby>; |
| 292 |
status = "okay"; |
| 293 |
}; |
| 294 |
|
| 295 |
&mcu_mcan1 { |
| 296 |
pinctrl-names = "default", "wakeup"; |
| 297 |
pinctrl-0 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_default>; |
| 298 |
pinctrl-1 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_wakeup>; |
| 299 |
wakeup-source = <&system_partial_io>, |
| 300 |
<&system_deep_sleep>, |
| 301 |
<&system_mcu_only>, |
| 302 |
<&system_standby>; |
| 303 |
status = "okay"; |
| 304 |
}; |
| 305 |
|
| 306 |
&mcu_pmx0 { |
| 307 |
mcu_mcan0_tx_pins_default: mcu-mcan0-tx-default-pins { |
| 308 |
pinctrl-single,pins = < |
| 309 |
AM62X_IOPAD(0x034, PIN_OUTPUT, 0) /* (D6) MCU_MCAN0_TX */ |
| 310 |
>; |
| 311 |
}; |
| 312 |
|
| 313 |
mcu_mcan0_rx_pins_default: mcu-mcan0-rx-default-pins { |
| 314 |
pinctrl-single,pins = < |
| 315 |
AM62X_IOPAD(0x038, PIN_INPUT, 0) /* (B3) MCU_MCAN0_RX */ |
| 316 |
>; |
| 317 |
}; |
| 318 |
|
| 319 |
mcu_mcan0_rx_pins_wakeup: mcu-mcan0-rx-wakeup-pins { |
| 320 |
pinctrl-single,pins = < |
| 321 |
AM62X_IOPAD(0x038, PIN_INPUT | PIN_WKUP_EN, 0) /* (B3) MCU_MCAN0_RX */ |
| 322 |
>; |
| 323 |
}; |
| 324 |
|
| 325 |
mcu_mcan1_tx_pins_default: mcu-mcan1-tx-default-pins { |
| 326 |
pinctrl-single,pins = < |
| 327 |
AM62X_IOPAD(0x03c, PIN_OUTPUT, 0) /* (E5) MCU_MCAN1_TX */ |
| 328 |
>; |
| 329 |
}; |
| 330 |
|
| 331 |
mcu_mcan1_rx_pins_default: mcu-mcan1-rx-default-pins { |
| 332 |
pinctrl-single,pins = < |
| 333 |
AM62X_IOPAD(0x040, PIN_INPUT, 0) /* (D4) MCU_MCAN1_RX */ |
| 334 |
>; |
| 335 |
}; |
| 336 |
|
| 337 |
mcu_mcan1_rx_pins_wakeup: mcu-mcan1-rx-wakeup-pins { |
| 338 |
pinctrl-single,pins = < |
| 339 |
AM62X_IOPAD(0x040, PIN_INPUT | PIN_WKUP_EN, 0) /* (D4) MCU_MCAN1_RX */ |
| 340 |
>; |
| 341 |
}; |
| 342 |
}; |