Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | |
| 3 | /dts-v1/; |
| 4 | |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 5 | #include <dt-bindings/gpio/gpio.h> |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 6 | #include <dt-bindings/leds/common.h> |
Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 7 | #include "rk3588.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "Radxa ROCK 5 Model B"; |
| 11 | compatible = "radxa,rock-5b", "rockchip,rk3588"; |
| 12 | |
| 13 | aliases { |
| 14 | mmc0 = &sdhci; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 15 | mmc1 = &sdmmc; |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 16 | mmc2 = &sdio; |
Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | chosen { |
| 20 | stdout-path = "serial2:1500000n8"; |
| 21 | }; |
| 22 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 23 | analog-sound { |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 24 | compatible = "audio-graph-card"; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 25 | label = "rk3588-es8316"; |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 26 | |
| 27 | widgets = "Microphone", "Mic Jack", |
| 28 | "Headphone", "Headphones"; |
| 29 | |
| 30 | routing = "MIC2", "Mic Jack", |
| 31 | "Headphones", "HPOL", |
| 32 | "Headphones", "HPOR"; |
| 33 | |
| 34 | dais = <&i2s0_8ch_p0>; |
| 35 | hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; |
| 36 | pinctrl-names = "default"; |
| 37 | pinctrl-0 = <&hp_detect>; |
| 38 | }; |
| 39 | |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 40 | leds { |
| 41 | compatible = "gpio-leds"; |
| 42 | pinctrl-names = "default"; |
| 43 | pinctrl-0 = <&led_rgb_b>; |
| 44 | |
| 45 | led_rgb_b { |
| 46 | function = LED_FUNCTION_STATUS; |
| 47 | color = <LED_COLOR_ID_BLUE>; |
| 48 | gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; |
| 49 | linux,default-trigger = "heartbeat"; |
| 50 | }; |
| 51 | }; |
| 52 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 53 | fan: pwm-fan { |
| 54 | compatible = "pwm-fan"; |
| 55 | cooling-levels = <0 95 145 195 255>; |
| 56 | fan-supply = <&vcc5v0_sys>; |
| 57 | pwms = <&pwm1 0 50000 0>; |
| 58 | #cooling-cells = <2>; |
| 59 | }; |
| 60 | |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 61 | vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator { |
| 62 | compatible = "regulator-fixed"; |
| 63 | enable-active-high; |
| 64 | gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
| 65 | pinctrl-names = "default"; |
| 66 | pinctrl-0 = <&pcie2_0_vcc3v3_en>; |
| 67 | regulator-name = "vcc3v3_pcie2x1l0"; |
| 68 | regulator-always-on; |
| 69 | regulator-boot-on; |
| 70 | regulator-min-microvolt = <3300000>; |
| 71 | regulator-max-microvolt = <3300000>; |
| 72 | startup-delay-us = <50000>; |
| 73 | vin-supply = <&vcc5v0_sys>; |
| 74 | }; |
| 75 | |
| 76 | vcc3v3_pcie2x1l2: vcc3v3-pcie2x1l2-regulator { |
| 77 | compatible = "regulator-fixed"; |
| 78 | regulator-name = "vcc3v3_pcie2x1l2"; |
| 79 | regulator-min-microvolt = <3300000>; |
| 80 | regulator-max-microvolt = <3300000>; |
| 81 | startup-delay-us = <5000>; |
| 82 | vin-supply = <&vcc_3v3_s3>; |
| 83 | }; |
| 84 | |
| 85 | vcc3v3_pcie30: vcc3v3-pcie30-regulator { |
| 86 | compatible = "regulator-fixed"; |
| 87 | enable-active-high; |
| 88 | gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&pcie3_vcc3v3_en>; |
| 91 | regulator-name = "vcc3v3_pcie30"; |
| 92 | regulator-min-microvolt = <3300000>; |
| 93 | regulator-max-microvolt = <3300000>; |
| 94 | startup-delay-us = <5000>; |
| 95 | vin-supply = <&vcc5v0_sys>; |
| 96 | }; |
| 97 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 98 | vcc5v0_host: vcc5v0-host-regulator { |
| 99 | compatible = "regulator-fixed"; |
| 100 | regulator-name = "vcc5v0_host"; |
| 101 | regulator-boot-on; |
| 102 | regulator-always-on; |
| 103 | regulator-min-microvolt = <5000000>; |
| 104 | regulator-max-microvolt = <5000000>; |
| 105 | enable-active-high; |
| 106 | gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 107 | pinctrl-names = "default"; |
| 108 | pinctrl-0 = <&vcc5v0_host_en>; |
| 109 | vin-supply = <&vcc5v0_sys>; |
| 110 | }; |
| 111 | |
Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 112 | vcc5v0_sys: vcc5v0-sys-regulator { |
| 113 | compatible = "regulator-fixed"; |
| 114 | regulator-name = "vcc5v0_sys"; |
| 115 | regulator-always-on; |
| 116 | regulator-boot-on; |
| 117 | regulator-min-microvolt = <5000000>; |
| 118 | regulator-max-microvolt = <5000000>; |
| 119 | }; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 120 | |
| 121 | vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator { |
| 122 | compatible = "regulator-fixed"; |
| 123 | regulator-name = "vcc_1v1_nldo_s3"; |
| 124 | regulator-always-on; |
| 125 | regulator-boot-on; |
| 126 | regulator-min-microvolt = <1100000>; |
| 127 | regulator-max-microvolt = <1100000>; |
| 128 | vin-supply = <&vcc5v0_sys>; |
| 129 | }; |
Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 130 | }; |
| 131 | |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 132 | &combphy0_ps { |
| 133 | status = "okay"; |
| 134 | }; |
| 135 | |
| 136 | &combphy1_ps { |
| 137 | status = "okay"; |
| 138 | }; |
| 139 | |
Jonas Karlman | b468b15 | 2024-01-26 22:14:53 +0000 | [diff] [blame] | 140 | &combphy2_psu { |
| 141 | status = "okay"; |
| 142 | }; |
| 143 | |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 144 | &cpu_b0 { |
| 145 | cpu-supply = <&vdd_cpu_big0_s0>; |
| 146 | }; |
| 147 | |
| 148 | &cpu_b1 { |
| 149 | cpu-supply = <&vdd_cpu_big0_s0>; |
| 150 | }; |
| 151 | |
| 152 | &cpu_b2 { |
| 153 | cpu-supply = <&vdd_cpu_big1_s0>; |
| 154 | }; |
| 155 | |
| 156 | &cpu_b3 { |
| 157 | cpu-supply = <&vdd_cpu_big1_s0>; |
| 158 | }; |
| 159 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 160 | &cpu_l0 { |
| 161 | cpu-supply = <&vdd_cpu_lit_s0>; |
| 162 | }; |
| 163 | |
| 164 | &cpu_l1 { |
| 165 | cpu-supply = <&vdd_cpu_lit_s0>; |
| 166 | }; |
| 167 | |
| 168 | &cpu_l2 { |
| 169 | cpu-supply = <&vdd_cpu_lit_s0>; |
| 170 | }; |
| 171 | |
| 172 | &cpu_l3 { |
| 173 | cpu-supply = <&vdd_cpu_lit_s0>; |
| 174 | }; |
| 175 | |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 176 | &i2c0 { |
| 177 | pinctrl-names = "default"; |
| 178 | pinctrl-0 = <&i2c0m2_xfer>; |
| 179 | status = "okay"; |
| 180 | |
| 181 | vdd_cpu_big0_s0: regulator@42 { |
| 182 | compatible = "rockchip,rk8602"; |
| 183 | reg = <0x42>; |
| 184 | fcs,suspend-voltage-selector = <1>; |
| 185 | regulator-name = "vdd_cpu_big0_s0"; |
| 186 | regulator-always-on; |
| 187 | regulator-boot-on; |
| 188 | regulator-min-microvolt = <550000>; |
| 189 | regulator-max-microvolt = <1050000>; |
| 190 | regulator-ramp-delay = <2300>; |
| 191 | vin-supply = <&vcc5v0_sys>; |
| 192 | |
| 193 | regulator-state-mem { |
| 194 | regulator-off-in-suspend; |
| 195 | }; |
| 196 | }; |
| 197 | |
| 198 | vdd_cpu_big1_s0: regulator@43 { |
| 199 | compatible = "rockchip,rk8603", "rockchip,rk8602"; |
| 200 | reg = <0x43>; |
| 201 | fcs,suspend-voltage-selector = <1>; |
| 202 | regulator-name = "vdd_cpu_big1_s0"; |
| 203 | regulator-always-on; |
| 204 | regulator-boot-on; |
| 205 | regulator-min-microvolt = <550000>; |
| 206 | regulator-max-microvolt = <1050000>; |
| 207 | regulator-ramp-delay = <2300>; |
| 208 | vin-supply = <&vcc5v0_sys>; |
| 209 | |
| 210 | regulator-state-mem { |
| 211 | regulator-off-in-suspend; |
| 212 | }; |
| 213 | }; |
| 214 | }; |
| 215 | |
| 216 | &i2c6 { |
| 217 | status = "okay"; |
| 218 | |
| 219 | hym8563: rtc@51 { |
| 220 | compatible = "haoyu,hym8563"; |
| 221 | reg = <0x51>; |
| 222 | #clock-cells = <0>; |
| 223 | clock-output-names = "hym8563"; |
| 224 | pinctrl-names = "default"; |
| 225 | pinctrl-0 = <&hym8563_int>; |
| 226 | interrupt-parent = <&gpio0>; |
| 227 | interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; |
| 228 | wakeup-source; |
| 229 | }; |
| 230 | }; |
| 231 | |
| 232 | &i2c7 { |
| 233 | status = "okay"; |
| 234 | |
| 235 | es8316: audio-codec@11 { |
| 236 | compatible = "everest,es8316"; |
| 237 | reg = <0x11>; |
| 238 | clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 239 | clock-names = "mclk"; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 240 | assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; |
| 241 | assigned-clock-rates = <12288000>; |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 242 | #sound-dai-cells = <0>; |
| 243 | |
| 244 | port { |
| 245 | es8316_p0_0: endpoint { |
| 246 | remote-endpoint = <&i2s0_8ch_p0_0>; |
| 247 | }; |
| 248 | }; |
| 249 | }; |
| 250 | }; |
| 251 | |
| 252 | &i2s0_8ch { |
| 253 | pinctrl-names = "default"; |
| 254 | pinctrl-0 = <&i2s0_lrck |
| 255 | &i2s0_mclk |
| 256 | &i2s0_sclk |
| 257 | &i2s0_sdi0 |
| 258 | &i2s0_sdo0>; |
| 259 | status = "okay"; |
| 260 | |
| 261 | i2s0_8ch_p0: port { |
| 262 | i2s0_8ch_p0_0: endpoint { |
| 263 | dai-format = "i2s"; |
| 264 | mclk-fs = <256>; |
| 265 | remote-endpoint = <&es8316_p0_0>; |
| 266 | }; |
| 267 | }; |
| 268 | }; |
| 269 | |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 270 | &pcie2x1l0 { |
| 271 | pinctrl-names = "default"; |
| 272 | pinctrl-0 = <&pcie2_0_rst>; |
| 273 | reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; |
| 274 | vpcie3v3-supply = <&vcc3v3_pcie2x1l0>; |
| 275 | status = "okay"; |
| 276 | }; |
| 277 | |
| 278 | &pcie2x1l2 { |
| 279 | pinctrl-names = "default"; |
| 280 | pinctrl-0 = <&pcie2_2_rst>; |
| 281 | reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 282 | vpcie3v3-supply = <&vcc3v3_pcie2x1l2>; |
| 283 | status = "okay"; |
| 284 | }; |
| 285 | |
| 286 | &pcie30phy { |
| 287 | status = "okay"; |
| 288 | }; |
| 289 | |
| 290 | &pcie3x4 { |
| 291 | pinctrl-names = "default"; |
| 292 | pinctrl-0 = <&pcie3_rst>; |
| 293 | reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; |
| 294 | vpcie3v3-supply = <&vcc3v3_pcie30>; |
| 295 | status = "okay"; |
| 296 | }; |
| 297 | |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 298 | &pinctrl { |
| 299 | hym8563 { |
| 300 | hym8563_int: hym8563-int { |
| 301 | rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 302 | }; |
| 303 | }; |
| 304 | |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 305 | leds { |
| 306 | led_rgb_b: led-rgb-b { |
| 307 | rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; |
| 308 | }; |
| 309 | }; |
| 310 | |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 311 | sound { |
| 312 | hp_detect: hp-detect { |
| 313 | rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 314 | }; |
| 315 | }; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 316 | |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 317 | pcie2 { |
| 318 | pcie2_0_rst: pcie2-0-rst { |
| 319 | rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 320 | }; |
| 321 | |
| 322 | pcie2_0_vcc3v3_en: pcie2-0-vcc-en { |
| 323 | rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 324 | }; |
| 325 | |
| 326 | pcie2_2_rst: pcie2-2-rst { |
| 327 | rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 328 | }; |
| 329 | }; |
| 330 | |
| 331 | pcie3 { |
| 332 | pcie3_rst: pcie3-rst { |
| 333 | rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 334 | }; |
| 335 | |
| 336 | pcie3_vcc3v3_en: pcie3-vcc3v3-en { |
| 337 | rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 338 | }; |
| 339 | }; |
| 340 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 341 | usb { |
| 342 | vcc5v0_host_en: vcc5v0-host-en { |
| 343 | rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 344 | }; |
| 345 | }; |
Eugen Hristev | 72d61d1 | 2023-05-29 10:34:23 +0300 | [diff] [blame] | 346 | }; |
| 347 | |
| 348 | &pwm1 { |
| 349 | status = "okay"; |
| 350 | }; |
| 351 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 352 | &saradc { |
| 353 | vref-supply = <&avcc_1v8_s0>; |
| 354 | status = "okay"; |
| 355 | }; |
| 356 | |
Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 357 | &sdhci { |
| 358 | bus-width = <8>; |
| 359 | no-sdio; |
| 360 | no-sd; |
| 361 | non-removable; |
Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 362 | mmc-hs400-1_8v; |
| 363 | mmc-hs400-enhanced-strobe; |
| 364 | status = "okay"; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 365 | }; |
| 366 | |
| 367 | &sdmmc { |
| 368 | max-frequency = <200000000>; |
| 369 | no-sdio; |
| 370 | no-mmc; |
| 371 | bus-width = <4>; |
| 372 | cap-mmc-highspeed; |
| 373 | cap-sd-highspeed; |
| 374 | cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; |
| 375 | disable-wp; |
| 376 | sd-uhs-sdr104; |
| 377 | vmmc-supply = <&vcc_3v3_s3>; |
| 378 | vqmmc-supply = <&vccio_sd_s0>; |
| 379 | status = "okay"; |
| 380 | }; |
| 381 | |
Jonas Karlman | f62397a | 2023-10-17 17:02:08 +0000 | [diff] [blame] | 382 | &sdio { |
| 383 | max-frequency = <200000000>; |
| 384 | no-sd; |
| 385 | no-mmc; |
| 386 | non-removable; |
| 387 | bus-width = <4>; |
| 388 | cap-sdio-irq; |
| 389 | disable-wp; |
| 390 | keep-power-in-suspend; |
| 391 | wakeup-source; |
| 392 | sd-uhs-sdr12; |
| 393 | sd-uhs-sdr25; |
| 394 | sd-uhs-sdr50; |
| 395 | sd-uhs-sdr104; |
| 396 | vmmc-supply = <&vcc3v3_pcie2x1l0>; |
| 397 | vqmmc-supply = <&vcc_1v8_s3>; |
| 398 | pinctrl-names = "default"; |
| 399 | pinctrl-0 = <&sdiom0_pins>; |
| 400 | status = "okay"; |
| 401 | }; |
| 402 | |
| 403 | &uart6 { |
| 404 | pinctrl-names = "default"; |
| 405 | pinctrl-0 = <&uart6m1_xfer &uart6m1_ctsn &uart6m1_rtsn>; |
| 406 | status = "okay"; |
| 407 | }; |
| 408 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 409 | &spi2 { |
| 410 | status = "okay"; |
| 411 | assigned-clocks = <&cru CLK_SPI2>; |
| 412 | assigned-clock-rates = <200000000>; |
| 413 | pinctrl-names = "default"; |
| 414 | pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; |
| 415 | num-cs = <1>; |
| 416 | |
| 417 | pmic@0 { |
| 418 | compatible = "rockchip,rk806"; |
| 419 | spi-max-frequency = <1000000>; |
| 420 | reg = <0x0>; |
| 421 | |
| 422 | interrupt-parent = <&gpio0>; |
| 423 | interrupts = <7 IRQ_TYPE_LEVEL_LOW>; |
| 424 | |
| 425 | pinctrl-names = "default"; |
| 426 | pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, |
| 427 | <&rk806_dvs2_null>, <&rk806_dvs3_null>; |
| 428 | |
Jonas Karlman | b468b15 | 2024-01-26 22:14:53 +0000 | [diff] [blame] | 429 | system-power-controller; |
| 430 | |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 431 | vcc1-supply = <&vcc5v0_sys>; |
| 432 | vcc2-supply = <&vcc5v0_sys>; |
| 433 | vcc3-supply = <&vcc5v0_sys>; |
| 434 | vcc4-supply = <&vcc5v0_sys>; |
| 435 | vcc5-supply = <&vcc5v0_sys>; |
| 436 | vcc6-supply = <&vcc5v0_sys>; |
| 437 | vcc7-supply = <&vcc5v0_sys>; |
| 438 | vcc8-supply = <&vcc5v0_sys>; |
| 439 | vcc9-supply = <&vcc5v0_sys>; |
| 440 | vcc10-supply = <&vcc5v0_sys>; |
| 441 | vcc11-supply = <&vcc_2v0_pldo_s3>; |
| 442 | vcc12-supply = <&vcc5v0_sys>; |
| 443 | vcc13-supply = <&vcc_1v1_nldo_s3>; |
| 444 | vcc14-supply = <&vcc_1v1_nldo_s3>; |
| 445 | vcca-supply = <&vcc5v0_sys>; |
| 446 | |
| 447 | gpio-controller; |
| 448 | #gpio-cells = <2>; |
| 449 | |
| 450 | rk806_dvs1_null: dvs1-null-pins { |
Jonas Karlman | b468b15 | 2024-01-26 22:14:53 +0000 | [diff] [blame] | 451 | pins = "gpio_pwrctrl1"; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 452 | function = "pin_fun0"; |
| 453 | }; |
| 454 | |
| 455 | rk806_dvs2_null: dvs2-null-pins { |
| 456 | pins = "gpio_pwrctrl2"; |
| 457 | function = "pin_fun0"; |
| 458 | }; |
| 459 | |
| 460 | rk806_dvs3_null: dvs3-null-pins { |
| 461 | pins = "gpio_pwrctrl3"; |
| 462 | function = "pin_fun0"; |
| 463 | }; |
| 464 | |
| 465 | regulators { |
| 466 | vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 { |
| 467 | regulator-boot-on; |
| 468 | regulator-min-microvolt = <550000>; |
| 469 | regulator-max-microvolt = <950000>; |
| 470 | regulator-ramp-delay = <12500>; |
| 471 | regulator-name = "vdd_gpu_s0"; |
| 472 | regulator-enable-ramp-delay = <400>; |
| 473 | |
| 474 | regulator-state-mem { |
| 475 | regulator-off-in-suspend; |
| 476 | }; |
| 477 | }; |
| 478 | |
| 479 | vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 { |
| 480 | regulator-always-on; |
| 481 | regulator-boot-on; |
| 482 | regulator-min-microvolt = <550000>; |
| 483 | regulator-max-microvolt = <950000>; |
| 484 | regulator-ramp-delay = <12500>; |
| 485 | regulator-name = "vdd_cpu_lit_s0"; |
| 486 | |
| 487 | regulator-state-mem { |
| 488 | regulator-off-in-suspend; |
| 489 | }; |
| 490 | }; |
| 491 | |
| 492 | vdd_log_s0: dcdc-reg3 { |
| 493 | regulator-always-on; |
| 494 | regulator-boot-on; |
| 495 | regulator-min-microvolt = <675000>; |
| 496 | regulator-max-microvolt = <750000>; |
| 497 | regulator-ramp-delay = <12500>; |
| 498 | regulator-name = "vdd_log_s0"; |
| 499 | |
| 500 | regulator-state-mem { |
| 501 | regulator-off-in-suspend; |
| 502 | regulator-suspend-microvolt = <750000>; |
| 503 | }; |
| 504 | }; |
| 505 | |
| 506 | vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 { |
| 507 | regulator-always-on; |
| 508 | regulator-boot-on; |
| 509 | regulator-min-microvolt = <550000>; |
| 510 | regulator-max-microvolt = <950000>; |
| 511 | regulator-ramp-delay = <12500>; |
| 512 | regulator-name = "vdd_vdenc_s0"; |
| 513 | |
| 514 | regulator-state-mem { |
| 515 | regulator-off-in-suspend; |
| 516 | }; |
| 517 | }; |
| 518 | |
| 519 | vdd_ddr_s0: dcdc-reg5 { |
| 520 | regulator-always-on; |
| 521 | regulator-boot-on; |
| 522 | regulator-min-microvolt = <675000>; |
| 523 | regulator-max-microvolt = <900000>; |
| 524 | regulator-ramp-delay = <12500>; |
| 525 | regulator-name = "vdd_ddr_s0"; |
| 526 | |
| 527 | regulator-state-mem { |
| 528 | regulator-off-in-suspend; |
| 529 | regulator-suspend-microvolt = <850000>; |
| 530 | }; |
| 531 | }; |
| 532 | |
| 533 | vdd2_ddr_s3: dcdc-reg6 { |
| 534 | regulator-always-on; |
| 535 | regulator-boot-on; |
| 536 | regulator-name = "vdd2_ddr_s3"; |
| 537 | |
| 538 | regulator-state-mem { |
| 539 | regulator-on-in-suspend; |
| 540 | }; |
| 541 | }; |
| 542 | |
| 543 | vcc_2v0_pldo_s3: dcdc-reg7 { |
| 544 | regulator-always-on; |
| 545 | regulator-boot-on; |
| 546 | regulator-min-microvolt = <2000000>; |
| 547 | regulator-max-microvolt = <2000000>; |
| 548 | regulator-ramp-delay = <12500>; |
| 549 | regulator-name = "vdd_2v0_pldo_s3"; |
| 550 | |
| 551 | regulator-state-mem { |
| 552 | regulator-on-in-suspend; |
| 553 | regulator-suspend-microvolt = <2000000>; |
| 554 | }; |
| 555 | }; |
| 556 | |
| 557 | vcc_3v3_s3: dcdc-reg8 { |
| 558 | regulator-always-on; |
| 559 | regulator-boot-on; |
| 560 | regulator-min-microvolt = <3300000>; |
| 561 | regulator-max-microvolt = <3300000>; |
| 562 | regulator-name = "vcc_3v3_s3"; |
| 563 | |
| 564 | regulator-state-mem { |
| 565 | regulator-on-in-suspend; |
| 566 | regulator-suspend-microvolt = <3300000>; |
| 567 | }; |
| 568 | }; |
| 569 | |
| 570 | vddq_ddr_s0: dcdc-reg9 { |
| 571 | regulator-always-on; |
| 572 | regulator-boot-on; |
| 573 | regulator-name = "vddq_ddr_s0"; |
| 574 | |
| 575 | regulator-state-mem { |
| 576 | regulator-off-in-suspend; |
| 577 | }; |
| 578 | }; |
| 579 | |
| 580 | vcc_1v8_s3: dcdc-reg10 { |
| 581 | regulator-always-on; |
| 582 | regulator-boot-on; |
| 583 | regulator-min-microvolt = <1800000>; |
| 584 | regulator-max-microvolt = <1800000>; |
| 585 | regulator-name = "vcc_1v8_s3"; |
| 586 | |
| 587 | regulator-state-mem { |
| 588 | regulator-on-in-suspend; |
| 589 | regulator-suspend-microvolt = <1800000>; |
| 590 | }; |
| 591 | }; |
| 592 | |
| 593 | avcc_1v8_s0: pldo-reg1 { |
| 594 | regulator-always-on; |
| 595 | regulator-boot-on; |
| 596 | regulator-min-microvolt = <1800000>; |
| 597 | regulator-max-microvolt = <1800000>; |
| 598 | regulator-name = "avcc_1v8_s0"; |
| 599 | |
| 600 | regulator-state-mem { |
| 601 | regulator-off-in-suspend; |
| 602 | }; |
| 603 | }; |
| 604 | |
| 605 | vcc_1v8_s0: pldo-reg2 { |
| 606 | regulator-always-on; |
| 607 | regulator-boot-on; |
| 608 | regulator-min-microvolt = <1800000>; |
| 609 | regulator-max-microvolt = <1800000>; |
| 610 | regulator-name = "vcc_1v8_s0"; |
| 611 | |
| 612 | regulator-state-mem { |
| 613 | regulator-off-in-suspend; |
| 614 | regulator-suspend-microvolt = <1800000>; |
| 615 | }; |
| 616 | }; |
| 617 | |
| 618 | avdd_1v2_s0: pldo-reg3 { |
| 619 | regulator-always-on; |
| 620 | regulator-boot-on; |
| 621 | regulator-min-microvolt = <1200000>; |
| 622 | regulator-max-microvolt = <1200000>; |
| 623 | regulator-name = "avdd_1v2_s0"; |
| 624 | |
| 625 | regulator-state-mem { |
| 626 | regulator-off-in-suspend; |
| 627 | }; |
| 628 | }; |
| 629 | |
| 630 | vcc_3v3_s0: pldo-reg4 { |
| 631 | regulator-always-on; |
| 632 | regulator-boot-on; |
| 633 | regulator-min-microvolt = <3300000>; |
| 634 | regulator-max-microvolt = <3300000>; |
| 635 | regulator-ramp-delay = <12500>; |
| 636 | regulator-name = "vcc_3v3_s0"; |
| 637 | |
| 638 | regulator-state-mem { |
| 639 | regulator-off-in-suspend; |
| 640 | }; |
| 641 | }; |
| 642 | |
| 643 | vccio_sd_s0: pldo-reg5 { |
| 644 | regulator-always-on; |
| 645 | regulator-boot-on; |
| 646 | regulator-min-microvolt = <1800000>; |
| 647 | regulator-max-microvolt = <3300000>; |
| 648 | regulator-ramp-delay = <12500>; |
| 649 | regulator-name = "vccio_sd_s0"; |
| 650 | |
| 651 | regulator-state-mem { |
| 652 | regulator-off-in-suspend; |
| 653 | }; |
| 654 | }; |
| 655 | |
| 656 | pldo6_s3: pldo-reg6 { |
| 657 | regulator-always-on; |
| 658 | regulator-boot-on; |
| 659 | regulator-min-microvolt = <1800000>; |
| 660 | regulator-max-microvolt = <1800000>; |
| 661 | regulator-name = "pldo6_s3"; |
| 662 | |
| 663 | regulator-state-mem { |
| 664 | regulator-on-in-suspend; |
| 665 | regulator-suspend-microvolt = <1800000>; |
| 666 | }; |
| 667 | }; |
| 668 | |
| 669 | vdd_0v75_s3: nldo-reg1 { |
| 670 | regulator-always-on; |
| 671 | regulator-boot-on; |
| 672 | regulator-min-microvolt = <750000>; |
| 673 | regulator-max-microvolt = <750000>; |
| 674 | regulator-name = "vdd_0v75_s3"; |
| 675 | |
| 676 | regulator-state-mem { |
| 677 | regulator-on-in-suspend; |
| 678 | regulator-suspend-microvolt = <750000>; |
| 679 | }; |
| 680 | }; |
| 681 | |
| 682 | vdd_ddr_pll_s0: nldo-reg2 { |
| 683 | regulator-always-on; |
| 684 | regulator-boot-on; |
| 685 | regulator-min-microvolt = <850000>; |
| 686 | regulator-max-microvolt = <850000>; |
| 687 | regulator-name = "vdd_ddr_pll_s0"; |
| 688 | |
| 689 | regulator-state-mem { |
| 690 | regulator-off-in-suspend; |
| 691 | regulator-suspend-microvolt = <850000>; |
| 692 | }; |
| 693 | }; |
| 694 | |
| 695 | avdd_0v75_s0: nldo-reg3 { |
| 696 | regulator-always-on; |
| 697 | regulator-boot-on; |
| 698 | regulator-min-microvolt = <750000>; |
| 699 | regulator-max-microvolt = <750000>; |
| 700 | regulator-name = "avdd_0v75_s0"; |
| 701 | |
| 702 | regulator-state-mem { |
| 703 | regulator-off-in-suspend; |
| 704 | }; |
| 705 | }; |
| 706 | |
| 707 | vdd_0v85_s0: nldo-reg4 { |
| 708 | regulator-always-on; |
| 709 | regulator-boot-on; |
| 710 | regulator-min-microvolt = <850000>; |
| 711 | regulator-max-microvolt = <850000>; |
| 712 | regulator-name = "vdd_0v85_s0"; |
| 713 | |
| 714 | regulator-state-mem { |
| 715 | regulator-off-in-suspend; |
| 716 | }; |
| 717 | }; |
| 718 | |
| 719 | vdd_0v75_s0: nldo-reg5 { |
| 720 | regulator-always-on; |
| 721 | regulator-boot-on; |
| 722 | regulator-min-microvolt = <750000>; |
| 723 | regulator-max-microvolt = <750000>; |
| 724 | regulator-name = "vdd_0v75_s0"; |
| 725 | |
| 726 | regulator-state-mem { |
| 727 | regulator-off-in-suspend; |
| 728 | }; |
| 729 | }; |
| 730 | }; |
| 731 | }; |
Eugen Hristev | 32f36cf | 2023-02-22 11:05:12 +0200 | [diff] [blame] | 732 | }; |
| 733 | |
| 734 | &uart2 { |
| 735 | pinctrl-0 = <&uart2m0_xfer>; |
| 736 | status = "okay"; |
| 737 | }; |
FUKAUMI Naoki | 6131517 | 2023-09-05 20:47:35 +0900 | [diff] [blame] | 738 | |
| 739 | &u2phy2 { |
| 740 | status = "okay"; |
| 741 | }; |
| 742 | |
| 743 | &u2phy2_host { |
| 744 | /* connected to USB hub, which is powered by vcc5v0_sys */ |
| 745 | phy-supply = <&vcc5v0_sys>; |
| 746 | status = "okay"; |
| 747 | }; |
| 748 | |
| 749 | &u2phy3 { |
| 750 | status = "okay"; |
| 751 | }; |
| 752 | |
| 753 | &u2phy3_host { |
| 754 | phy-supply = <&vcc5v0_host>; |
| 755 | status = "okay"; |
| 756 | }; |
| 757 | |
| 758 | &usb_host0_ehci { |
| 759 | status = "okay"; |
| 760 | }; |
| 761 | |
| 762 | &usb_host0_ohci { |
| 763 | status = "okay"; |
| 764 | }; |
| 765 | |
| 766 | &usb_host1_ehci { |
| 767 | status = "okay"; |
| 768 | }; |
| 769 | |
| 770 | &usb_host1_ohci { |
| 771 | status = "okay"; |
| 772 | }; |
Jonas Karlman | b468b15 | 2024-01-26 22:14:53 +0000 | [diff] [blame] | 773 | |
| 774 | &usb_host2_xhci { |
| 775 | status = "okay"; |
| 776 | }; |