Jagan Teki | f2b46ad | 2019-12-21 13:24:37 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include <dt-bindings/input/linux-event-codes.h> |
| 8 | #include <dt-bindings/pwm/pwm.h> |
| 9 | #include "rk3399.dtsi" |
| 10 | #include "rk3399-opp.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Firefly ROC-RK3399-PC Board"; |
| 14 | compatible = "firefly,roc-rk3399-pc", "rockchip,rk3399"; |
| 15 | |
| 16 | chosen { |
| 17 | stdout-path = "serial2:1500000n8"; |
| 18 | }; |
| 19 | |
| 20 | backlight: backlight { |
| 21 | compatible = "pwm-backlight"; |
| 22 | pwms = <&pwm0 0 25000 0>; |
| 23 | }; |
| 24 | |
| 25 | clkin_gmac: external-gmac-clock { |
| 26 | compatible = "fixed-clock"; |
| 27 | clock-frequency = <125000000>; |
| 28 | clock-output-names = "clkin_gmac"; |
| 29 | #clock-cells = <0>; |
| 30 | }; |
| 31 | |
| 32 | adc-keys { |
| 33 | compatible = "adc-keys"; |
| 34 | io-channels = <&saradc 1>; |
| 35 | io-channel-names = "buttons"; |
| 36 | keyup-threshold-microvolt = <1500000>; |
| 37 | poll-interval = <100>; |
| 38 | |
| 39 | recovery { |
| 40 | label = "Recovery"; |
| 41 | linux,code = <KEY_VENDOR>; |
| 42 | press-threshold-microvolt = <18000>; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | gpio-keys { |
| 47 | compatible = "gpio-keys"; |
| 48 | autorepeat; |
| 49 | pinctrl-names = "default"; |
| 50 | pinctrl-0 = <&pwr_key_l>; |
| 51 | |
| 52 | power { |
| 53 | debounce-interval = <100>; |
| 54 | gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; |
| 55 | label = "GPIO Key Power"; |
| 56 | linux,code = <KEY_POWER>; |
| 57 | wakeup-source; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | leds { |
| 62 | compatible = "gpio-leds"; |
| 63 | pinctrl-names = "default"; |
| 64 | pinctrl-0 = <&work_led_gpio>, <&diy_led_gpio>, <&yellow_led_gpio>; |
| 65 | |
| 66 | work-led { |
| 67 | label = "green:work"; |
| 68 | gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; |
| 69 | default-state = "on"; |
| 70 | linux,default-trigger = "heartbeat"; |
| 71 | }; |
| 72 | |
| 73 | diy-led { |
| 74 | label = "red:diy"; |
| 75 | gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; |
| 76 | default-state = "off"; |
| 77 | linux,default-trigger = "mmc1"; |
| 78 | }; |
| 79 | |
| 80 | yellow-led { |
| 81 | label = "yellow:yellow-led"; |
| 82 | gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; |
| 83 | default-state = "off"; |
| 84 | linux,default-trigger = "mmc0"; |
| 85 | }; |
| 86 | }; |
| 87 | |
| 88 | sdio_pwrseq: sdio-pwrseq { |
| 89 | compatible = "mmc-pwrseq-simple"; |
| 90 | clocks = <&rk808 1>; |
| 91 | clock-names = "ext_clock"; |
| 92 | pinctrl-names = "default"; |
| 93 | pinctrl-0 = <&wifi_enable_h>; |
| 94 | |
| 95 | /* |
| 96 | * On the module itself this is one of these (depending |
| 97 | * on the actual card populated): |
| 98 | * - SDIO_RESET_L_WL_REG_ON |
| 99 | * - PDN (power down when low) |
| 100 | */ |
| 101 | reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; |
| 102 | }; |
| 103 | |
| 104 | vcc_vbus_typec0: vcc-vbus-typec0 { |
| 105 | compatible = "regulator-fixed"; |
| 106 | regulator-name = "vcc_vbus_typec0"; |
| 107 | regulator-always-on; |
| 108 | regulator-boot-on; |
| 109 | regulator-min-microvolt = <5000000>; |
| 110 | regulator-max-microvolt = <5000000>; |
| 111 | }; |
| 112 | |
| 113 | /* |
| 114 | * should be placed inside mp8859, but not until mp8859 has |
| 115 | * its own dt-binding. |
| 116 | */ |
| 117 | dc_12v: mp8859-dcdc1 { |
| 118 | compatible = "regulator-fixed"; |
| 119 | regulator-name = "dc_12v"; |
| 120 | regulator-always-on; |
| 121 | regulator-boot-on; |
| 122 | regulator-min-microvolt = <12000000>; |
| 123 | regulator-max-microvolt = <12000000>; |
| 124 | vin-supply = <&vcc_vbus_typec0>; |
| 125 | }; |
| 126 | |
| 127 | /* switched by pmic_sleep */ |
| 128 | vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { |
| 129 | compatible = "regulator-fixed"; |
| 130 | regulator-name = "vcc1v8_s3"; |
| 131 | regulator-always-on; |
| 132 | regulator-boot-on; |
| 133 | regulator-min-microvolt = <1800000>; |
| 134 | regulator-max-microvolt = <1800000>; |
| 135 | vin-supply = <&vcc_1v8>; |
| 136 | }; |
| 137 | |
| 138 | vcc3v0_sd: vcc3v0-sd { |
| 139 | compatible = "regulator-fixed"; |
| 140 | enable-active-high; |
| 141 | gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; |
| 142 | pinctrl-names = "default"; |
| 143 | pinctrl-0 = <&vcc3v0_sd_en>; |
| 144 | regulator-name = "vcc3v0_sd"; |
| 145 | regulator-boot-on; |
| 146 | regulator-min-microvolt = <3000000>; |
| 147 | regulator-max-microvolt = <3000000>; |
| 148 | vin-supply = <&vcc3v3_sys>; |
| 149 | }; |
| 150 | |
| 151 | vcc3v3_sys: vcc3v3-sys { |
| 152 | compatible = "regulator-fixed"; |
| 153 | regulator-name = "vcc3v3_sys"; |
| 154 | regulator-always-on; |
| 155 | regulator-boot-on; |
| 156 | regulator-min-microvolt = <3300000>; |
| 157 | regulator-max-microvolt = <3300000>; |
| 158 | vin-supply = <&dc_12v>; |
| 159 | }; |
| 160 | |
| 161 | vcca_0v9: vcca-0v9 { |
| 162 | compatible = "regulator-fixed"; |
| 163 | regulator-name = "vcca_0v9"; |
| 164 | regulator-always-on; |
| 165 | regulator-boot-on; |
| 166 | regulator-min-microvolt = <900000>; |
| 167 | regulator-max-microvolt = <900000>; |
| 168 | vin-supply = <&vcc3v3_sys>; |
| 169 | }; |
| 170 | |
| 171 | /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */ |
| 172 | vcc5v0_host: vcc5v0-host-regulator { |
| 173 | compatible = "regulator-fixed"; |
| 174 | enable-active-high; |
| 175 | gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; |
| 176 | pinctrl-names = "default"; |
| 177 | pinctrl-0 = <&vcc5v0_host_en &hub_rst>; |
| 178 | regulator-name = "vcc5v0_host"; |
| 179 | regulator-always-on; |
| 180 | vin-supply = <&vcc_sys>; |
| 181 | }; |
| 182 | |
| 183 | vcc_vbus_typec1: vcc-vbus-typec1 { |
| 184 | compatible = "regulator-fixed"; |
| 185 | enable-active-high; |
| 186 | gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; |
| 187 | pinctrl-names = "default"; |
| 188 | pinctrl-0 = <&vcc_vbus_typec1_en>; |
| 189 | regulator-name = "vcc_vbus_typec1"; |
| 190 | regulator-always-on; |
| 191 | vin-supply = <&vcc_sys>; |
| 192 | }; |
| 193 | |
| 194 | vcc_sys: vcc-sys { |
| 195 | compatible = "regulator-fixed"; |
| 196 | enable-active-high; |
| 197 | gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>; |
| 198 | pinctrl-names = "default"; |
| 199 | pinctrl-0 = <&vcc_sys_en>; |
| 200 | regulator-name = "vcc_sys"; |
| 201 | regulator-always-on; |
| 202 | regulator-boot-on; |
| 203 | regulator-min-microvolt = <5000000>; |
| 204 | regulator-max-microvolt = <5000000>; |
| 205 | vin-supply = <&dc_12v>; |
| 206 | }; |
| 207 | |
| 208 | vdd_log: vdd-log { |
| 209 | compatible = "pwm-regulator"; |
| 210 | pwms = <&pwm2 0 25000 1>; |
| 211 | regulator-name = "vdd_log"; |
| 212 | regulator-always-on; |
| 213 | regulator-boot-on; |
| 214 | regulator-min-microvolt = <450000>; |
| 215 | regulator-max-microvolt = <1400000>; |
| 216 | pwm-supply = <&vcc3v3_sys>; |
| 217 | }; |
| 218 | }; |
| 219 | |
| 220 | &cpu_l0 { |
| 221 | cpu-supply = <&vdd_cpu_l>; |
| 222 | }; |
| 223 | |
| 224 | &cpu_l1 { |
| 225 | cpu-supply = <&vdd_cpu_l>; |
| 226 | }; |
| 227 | |
| 228 | &cpu_l2 { |
| 229 | cpu-supply = <&vdd_cpu_l>; |
| 230 | }; |
| 231 | |
| 232 | &cpu_l3 { |
| 233 | cpu-supply = <&vdd_cpu_l>; |
| 234 | }; |
| 235 | |
| 236 | &cpu_b0 { |
| 237 | cpu-supply = <&vdd_cpu_b>; |
| 238 | }; |
| 239 | |
| 240 | &cpu_b1 { |
| 241 | cpu-supply = <&vdd_cpu_b>; |
| 242 | }; |
| 243 | |
| 244 | &emmc_phy { |
| 245 | status = "okay"; |
| 246 | }; |
| 247 | |
| 248 | &gmac { |
| 249 | assigned-clocks = <&cru SCLK_RMII_SRC>; |
| 250 | assigned-clock-parents = <&clkin_gmac>; |
| 251 | clock_in_out = "input"; |
| 252 | phy-supply = <&vcc_lan>; |
| 253 | phy-mode = "rgmii"; |
| 254 | pinctrl-names = "default"; |
| 255 | pinctrl-0 = <&rgmii_pins>; |
| 256 | snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; |
| 257 | snps,reset-active-low; |
| 258 | snps,reset-delays-us = <0 10000 50000>; |
| 259 | tx_delay = <0x28>; |
| 260 | rx_delay = <0x11>; |
| 261 | status = "okay"; |
| 262 | }; |
| 263 | |
| 264 | &gpu { |
| 265 | mali-supply = <&vdd_gpu>; |
| 266 | status = "okay"; |
| 267 | }; |
| 268 | |
| 269 | &hdmi { |
| 270 | ddc-i2c-bus = <&i2c3>; |
| 271 | pinctrl-names = "default"; |
| 272 | pinctrl-0 = <&hdmi_cec>; |
| 273 | status = "okay"; |
| 274 | }; |
| 275 | |
| 276 | &hdmi_sound { |
| 277 | status = "okay"; |
| 278 | }; |
| 279 | |
| 280 | &i2c0 { |
| 281 | clock-frequency = <400000>; |
| 282 | i2c-scl-rising-time-ns = <168>; |
| 283 | i2c-scl-falling-time-ns = <4>; |
| 284 | status = "okay"; |
| 285 | |
| 286 | rk808: pmic@1b { |
| 287 | compatible = "rockchip,rk808"; |
| 288 | reg = <0x1b>; |
| 289 | interrupt-parent = <&gpio1>; |
| 290 | interrupts = <21 IRQ_TYPE_LEVEL_LOW>; |
| 291 | #clock-cells = <1>; |
| 292 | clock-output-names = "xin32k", "rk808-clkout2"; |
| 293 | pinctrl-names = "default"; |
| 294 | pinctrl-0 = <&pmic_int_l>; |
| 295 | rockchip,system-power-controller; |
| 296 | wakeup-source; |
| 297 | |
| 298 | vcc1-supply = <&vcc3v3_sys>; |
| 299 | vcc2-supply = <&vcc3v3_sys>; |
| 300 | vcc3-supply = <&vcc3v3_sys>; |
| 301 | vcc4-supply = <&vcc3v3_sys>; |
| 302 | vcc6-supply = <&vcc3v3_sys>; |
| 303 | vcc7-supply = <&vcc3v3_sys>; |
| 304 | vcc8-supply = <&vcc3v3_sys>; |
| 305 | vcc9-supply = <&vcc3v3_sys>; |
| 306 | vcc10-supply = <&vcc3v3_sys>; |
| 307 | vcc11-supply = <&vcc3v3_sys>; |
| 308 | vcc12-supply = <&vcc3v3_sys>; |
| 309 | vcc13-supply = <&vcc3v3_sys>; |
| 310 | vcc14-supply = <&vcc3v3_sys>; |
| 311 | vddio-supply = <&vcc_3v0>; |
| 312 | |
| 313 | regulators { |
| 314 | vdd_center: DCDC_REG1 { |
| 315 | regulator-name = "vdd_center"; |
| 316 | regulator-always-on; |
| 317 | regulator-boot-on; |
| 318 | regulator-min-microvolt = <750000>; |
| 319 | regulator-max-microvolt = <1350000>; |
| 320 | regulator-ramp-delay = <6001>; |
| 321 | regulator-state-mem { |
| 322 | regulator-off-in-suspend; |
| 323 | }; |
| 324 | }; |
| 325 | |
| 326 | vdd_cpu_l: DCDC_REG2 { |
| 327 | regulator-name = "vdd_cpu_l"; |
| 328 | regulator-always-on; |
| 329 | regulator-boot-on; |
| 330 | regulator-min-microvolt = <750000>; |
| 331 | regulator-max-microvolt = <1350000>; |
| 332 | regulator-ramp-delay = <6001>; |
| 333 | regulator-state-mem { |
| 334 | regulator-off-in-suspend; |
| 335 | }; |
| 336 | }; |
| 337 | |
| 338 | vcc_ddr: DCDC_REG3 { |
| 339 | regulator-name = "vcc_ddr"; |
| 340 | regulator-always-on; |
| 341 | regulator-boot-on; |
| 342 | regulator-state-mem { |
| 343 | regulator-on-in-suspend; |
| 344 | }; |
| 345 | }; |
| 346 | |
| 347 | vcc_1v8: DCDC_REG4 { |
| 348 | regulator-name = "vcc_1v8"; |
| 349 | regulator-always-on; |
| 350 | regulator-boot-on; |
| 351 | regulator-min-microvolt = <1800000>; |
| 352 | regulator-max-microvolt = <1800000>; |
| 353 | regulator-state-mem { |
| 354 | regulator-on-in-suspend; |
| 355 | regulator-suspend-microvolt = <1800000>; |
| 356 | }; |
| 357 | }; |
| 358 | |
| 359 | vcca1v8_codec: LDO_REG1 { |
| 360 | regulator-name = "vcca1v8_codec"; |
| 361 | regulator-always-on; |
| 362 | regulator-boot-on; |
| 363 | regulator-min-microvolt = <1800000>; |
| 364 | regulator-max-microvolt = <1800000>; |
| 365 | regulator-state-mem { |
| 366 | regulator-off-in-suspend; |
| 367 | }; |
| 368 | }; |
| 369 | |
| 370 | vcc1v8_hdmi: LDO_REG2 { |
| 371 | regulator-name = "vcc1v8_hdmi"; |
| 372 | regulator-always-on; |
| 373 | regulator-boot-on; |
| 374 | regulator-min-microvolt = <1800000>; |
| 375 | regulator-max-microvolt = <1800000>; |
| 376 | regulator-state-mem { |
| 377 | regulator-off-in-suspend; |
| 378 | }; |
| 379 | }; |
| 380 | |
| 381 | vcc1v8_pmu: LDO_REG3 { |
| 382 | regulator-name = "vcc1v8_pmu"; |
| 383 | regulator-always-on; |
| 384 | regulator-boot-on; |
| 385 | regulator-min-microvolt = <1800000>; |
| 386 | regulator-max-microvolt = <1800000>; |
| 387 | regulator-state-mem { |
| 388 | regulator-on-in-suspend; |
| 389 | regulator-suspend-microvolt = <1800000>; |
| 390 | }; |
| 391 | }; |
| 392 | |
| 393 | vcc_sdio: LDO_REG4 { |
| 394 | regulator-name = "vcc_sdio"; |
| 395 | regulator-always-on; |
| 396 | regulator-boot-on; |
| 397 | regulator-min-microvolt = <1800000>; |
| 398 | regulator-max-microvolt = <3000000>; |
| 399 | regulator-state-mem { |
| 400 | regulator-on-in-suspend; |
| 401 | regulator-suspend-microvolt = <3000000>; |
| 402 | }; |
| 403 | }; |
| 404 | |
| 405 | vcca3v0_codec: LDO_REG5 { |
| 406 | regulator-name = "vcca3v0_codec"; |
| 407 | regulator-always-on; |
| 408 | regulator-boot-on; |
| 409 | regulator-min-microvolt = <3000000>; |
| 410 | regulator-max-microvolt = <3000000>; |
| 411 | regulator-state-mem { |
| 412 | regulator-off-in-suspend; |
| 413 | }; |
| 414 | }; |
| 415 | |
| 416 | vcc_1v5: LDO_REG6 { |
| 417 | regulator-name = "vcc_1v5"; |
| 418 | regulator-always-on; |
| 419 | regulator-boot-on; |
| 420 | regulator-min-microvolt = <1500000>; |
| 421 | regulator-max-microvolt = <1500000>; |
| 422 | regulator-state-mem { |
| 423 | regulator-on-in-suspend; |
| 424 | regulator-suspend-microvolt = <1500000>; |
| 425 | }; |
| 426 | }; |
| 427 | |
| 428 | vcca0v9_hdmi: LDO_REG7 { |
| 429 | regulator-name = "vcca0v9_hdmi"; |
| 430 | regulator-always-on; |
| 431 | regulator-boot-on; |
| 432 | regulator-min-microvolt = <900000>; |
| 433 | regulator-max-microvolt = <900000>; |
| 434 | regulator-state-mem { |
| 435 | regulator-off-in-suspend; |
| 436 | }; |
| 437 | }; |
| 438 | |
| 439 | vcc_3v0: LDO_REG8 { |
| 440 | regulator-name = "vcc_3v0"; |
| 441 | regulator-always-on; |
| 442 | regulator-boot-on; |
| 443 | regulator-min-microvolt = <3000000>; |
| 444 | regulator-max-microvolt = <3000000>; |
| 445 | regulator-state-mem { |
| 446 | regulator-on-in-suspend; |
| 447 | regulator-suspend-microvolt = <3000000>; |
| 448 | }; |
| 449 | }; |
| 450 | |
| 451 | vcc3v3_s3: vcc_lan: SWITCH_REG1 { |
| 452 | regulator-name = "vcc3v3_s3"; |
| 453 | regulator-always-on; |
| 454 | regulator-boot-on; |
| 455 | regulator-state-mem { |
| 456 | regulator-off-in-suspend; |
| 457 | }; |
| 458 | }; |
| 459 | |
| 460 | vcc3v3_s0: SWITCH_REG2 { |
| 461 | regulator-name = "vcc3v3_s0"; |
| 462 | regulator-always-on; |
| 463 | regulator-boot-on; |
| 464 | regulator-state-mem { |
| 465 | regulator-off-in-suspend; |
| 466 | }; |
| 467 | }; |
| 468 | }; |
| 469 | }; |
| 470 | |
| 471 | vdd_cpu_b: regulator@40 { |
| 472 | compatible = "silergy,syr827"; |
| 473 | reg = <0x40>; |
| 474 | fcs,suspend-voltage-selector = <1>; |
| 475 | pinctrl-names = "default"; |
| 476 | pinctrl-0 = <&vsel1_gpio>; |
| 477 | regulator-name = "vdd_cpu_b"; |
| 478 | regulator-min-microvolt = <712500>; |
| 479 | regulator-max-microvolt = <1500000>; |
| 480 | regulator-ramp-delay = <1000>; |
| 481 | regulator-always-on; |
| 482 | regulator-boot-on; |
| 483 | vin-supply = <&vcc3v3_sys>; |
| 484 | |
| 485 | regulator-state-mem { |
| 486 | regulator-off-in-suspend; |
| 487 | }; |
| 488 | }; |
| 489 | |
| 490 | vdd_gpu: regulator@41 { |
| 491 | compatible = "silergy,syr828"; |
| 492 | reg = <0x41>; |
| 493 | fcs,suspend-voltage-selector = <1>; |
| 494 | pinctrl-names = "default"; |
| 495 | pinctrl-0 = <&vsel2_gpio>; |
| 496 | regulator-name = "vdd_gpu"; |
| 497 | regulator-min-microvolt = <712500>; |
| 498 | regulator-max-microvolt = <1500000>; |
| 499 | regulator-ramp-delay = <1000>; |
| 500 | vin-supply = <&vcc3v3_sys>; |
| 501 | |
| 502 | regulator-state-mem { |
| 503 | regulator-off-in-suspend; |
| 504 | }; |
| 505 | }; |
| 506 | }; |
| 507 | |
| 508 | &i2c1 { |
| 509 | i2c-scl-rising-time-ns = <300>; |
| 510 | i2c-scl-falling-time-ns = <15>; |
| 511 | status = "okay"; |
| 512 | }; |
| 513 | |
| 514 | &i2c3 { |
| 515 | i2c-scl-rising-time-ns = <450>; |
| 516 | i2c-scl-falling-time-ns = <15>; |
| 517 | status = "okay"; |
| 518 | }; |
| 519 | |
| 520 | &i2c4 { |
| 521 | i2c-scl-rising-time-ns = <600>; |
| 522 | i2c-scl-falling-time-ns = <20>; |
| 523 | status = "okay"; |
| 524 | |
| 525 | fusb1: usb-typec@22 { |
| 526 | compatible = "fcs,fusb302"; |
| 527 | reg = <0x22>; |
| 528 | interrupt-parent = <&gpio1>; |
| 529 | interrupts = <1 IRQ_TYPE_LEVEL_LOW>; |
| 530 | pinctrl-names = "default"; |
| 531 | pinctrl-0 = <&fusb1_int>; |
| 532 | vbus-supply = <&vcc_vbus_typec1>; |
| 533 | status = "okay"; |
| 534 | }; |
| 535 | }; |
| 536 | |
| 537 | &i2c7 { |
| 538 | i2c-scl-rising-time-ns = <600>; |
| 539 | i2c-scl-falling-time-ns = <20>; |
| 540 | status = "okay"; |
| 541 | |
| 542 | fusb0: usb-typec@22 { |
| 543 | compatible = "fcs,fusb302"; |
| 544 | reg = <0x22>; |
| 545 | interrupt-parent = <&gpio1>; |
| 546 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 547 | pinctrl-names = "default"; |
| 548 | pinctrl-0 = <&fusb0_int>; |
| 549 | vbus-supply = <&vcc_vbus_typec0>; |
| 550 | status = "okay"; |
| 551 | }; |
| 552 | }; |
| 553 | |
| 554 | &i2s0 { |
| 555 | rockchip,playback-channels = <8>; |
| 556 | rockchip,capture-channels = <8>; |
| 557 | status = "okay"; |
| 558 | }; |
| 559 | |
| 560 | &i2s1 { |
| 561 | rockchip,playback-channels = <2>; |
| 562 | rockchip,capture-channels = <2>; |
| 563 | status = "okay"; |
| 564 | }; |
| 565 | |
| 566 | &i2s2 { |
| 567 | status = "okay"; |
| 568 | }; |
| 569 | |
| 570 | &io_domains { |
| 571 | audio-supply = <&vcca1v8_codec>; |
| 572 | bt656-supply = <&vcc_3v0>; |
| 573 | gpio1830-supply = <&vcc_3v0>; |
| 574 | sdmmc-supply = <&vcc_sdio>; |
| 575 | status = "okay"; |
| 576 | }; |
| 577 | |
| 578 | &pmu_io_domains { |
| 579 | pmu1830-supply = <&vcc_3v0>; |
| 580 | status = "okay"; |
| 581 | }; |
| 582 | |
| 583 | &pinctrl { |
| 584 | buttons { |
| 585 | pwr_key_l: pwr-key-l { |
| 586 | rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; |
| 587 | }; |
| 588 | }; |
| 589 | |
| 590 | lcd-panel { |
| 591 | lcd_panel_reset: lcd-panel-reset { |
| 592 | rockchip,pins = <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; |
| 593 | }; |
| 594 | }; |
| 595 | |
| 596 | leds { |
| 597 | diy_led_gpio: diy_led-gpio { |
| 598 | rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 599 | }; |
| 600 | |
| 601 | work_led_gpio: work_led-gpio { |
| 602 | rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 603 | }; |
| 604 | |
| 605 | yellow_led_gpio: yellow_led-gpio { |
| 606 | rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 607 | }; |
| 608 | }; |
| 609 | |
| 610 | pmic { |
| 611 | vsel1_gpio: vsel1-gpio { |
| 612 | rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
| 613 | }; |
| 614 | |
| 615 | vsel2_gpio: vsel2-gpio { |
| 616 | rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; |
| 617 | }; |
| 618 | }; |
| 619 | |
| 620 | sdio-pwrseq { |
| 621 | wifi_enable_h: wifi-enable-h { |
| 622 | rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 623 | }; |
| 624 | }; |
| 625 | |
| 626 | sdmmc { |
| 627 | vcc3v0_sd_en: vcc3v0-sd-en { |
| 628 | rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 629 | }; |
| 630 | }; |
| 631 | |
| 632 | pmic { |
| 633 | pmic_int_l: pmic-int-l { |
| 634 | rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; |
| 635 | }; |
| 636 | }; |
| 637 | |
| 638 | usb2 { |
| 639 | vcc5v0_host_en: vcc5v0-host-en { |
| 640 | rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 641 | }; |
| 642 | |
| 643 | vcc_sys_en: vcc-sys-en { |
| 644 | rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 645 | }; |
| 646 | |
| 647 | hub_rst: hub-rst { |
| 648 | rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_output_high>; |
| 649 | }; |
| 650 | }; |
| 651 | |
| 652 | usb-typec { |
| 653 | vcc_vbus_typec1_en: vcc-vbus-typec1-en { |
| 654 | rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 655 | }; |
| 656 | }; |
| 657 | |
| 658 | fusb30x { |
| 659 | fusb0_int: fusb0-int { |
| 660 | rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
| 661 | }; |
| 662 | |
| 663 | fusb1_int: fusb1-int { |
| 664 | rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; |
| 665 | }; |
| 666 | }; |
| 667 | }; |
| 668 | |
| 669 | &pwm0 { |
| 670 | status = "okay"; |
| 671 | }; |
| 672 | |
| 673 | &pwm2 { |
| 674 | status = "okay"; |
| 675 | }; |
| 676 | |
| 677 | &saradc { |
| 678 | vref-supply = <&vcca1v8_s3>; |
| 679 | status = "okay"; |
| 680 | }; |
| 681 | |
| 682 | &sdmmc { |
| 683 | bus-width = <4>; |
| 684 | cap-sd-highspeed; |
| 685 | cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; |
| 686 | disable-wp; |
| 687 | max-frequency = <150000000>; |
| 688 | pinctrl-names = "default"; |
| 689 | pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; |
| 690 | sd-uhs-sdr104; |
| 691 | vmmc-supply = <&vcc3v0_sd>; |
| 692 | vqmmc-supply = <&vcc_sdio>; |
| 693 | status = "okay"; |
| 694 | }; |
| 695 | |
| 696 | &sdhci { |
| 697 | bus-width = <8>; |
| 698 | non-removable; |
| 699 | status = "okay"; |
| 700 | }; |
| 701 | |
| 702 | &spi1 { |
| 703 | status = "okay"; |
| 704 | |
| 705 | flash@0 { |
| 706 | compatible = "jedec,spi-nor"; |
| 707 | reg = <0>; |
| 708 | spi-max-frequency = <10000000>; |
| 709 | }; |
| 710 | }; |
| 711 | |
| 712 | &tcphy0 { |
| 713 | status = "okay"; |
| 714 | }; |
| 715 | |
| 716 | &tcphy1 { |
| 717 | status = "okay"; |
| 718 | }; |
| 719 | |
| 720 | &tsadc { |
| 721 | /* tshut mode 0:CRU 1:GPIO */ |
| 722 | rockchip,hw-tshut-mode = <1>; |
| 723 | /* tshut polarity 0:LOW 1:HIGH */ |
| 724 | rockchip,hw-tshut-polarity = <1>; |
| 725 | status = "okay"; |
| 726 | }; |
| 727 | |
| 728 | &u2phy0 { |
| 729 | status = "okay"; |
| 730 | |
| 731 | u2phy0_otg: otg-port { |
| 732 | phy-supply = <&vcc_vbus_typec0>; |
| 733 | status = "okay"; |
| 734 | }; |
| 735 | |
| 736 | u2phy0_host: host-port { |
| 737 | phy-supply = <&vcc5v0_host>; |
| 738 | status = "okay"; |
| 739 | }; |
| 740 | }; |
| 741 | |
| 742 | &u2phy1 { |
| 743 | status = "okay"; |
| 744 | |
| 745 | u2phy1_otg: otg-port { |
| 746 | phy-supply = <&vcc_vbus_typec1>; |
| 747 | status = "okay"; |
| 748 | }; |
| 749 | |
| 750 | u2phy1_host: host-port { |
| 751 | phy-supply = <&vcc5v0_host>; |
| 752 | status = "okay"; |
| 753 | }; |
| 754 | }; |
| 755 | |
| 756 | &uart0 { |
| 757 | pinctrl-names = "default"; |
| 758 | pinctrl-0 = <&uart0_xfer &uart0_cts>; |
| 759 | status = "okay"; |
| 760 | }; |
| 761 | |
| 762 | &uart2 { |
| 763 | status = "okay"; |
| 764 | }; |
| 765 | |
| 766 | &usb_host0_ehci { |
| 767 | status = "okay"; |
| 768 | }; |
| 769 | |
| 770 | &usb_host0_ohci { |
| 771 | status = "okay"; |
| 772 | }; |
| 773 | |
| 774 | &usb_host1_ehci { |
| 775 | status = "okay"; |
| 776 | }; |
| 777 | |
| 778 | &usb_host1_ohci { |
| 779 | status = "okay"; |
| 780 | }; |
| 781 | |
| 782 | &usbdrd3_0 { |
| 783 | status = "okay"; |
| 784 | }; |
| 785 | |
| 786 | &usbdrd_dwc3_0 { |
| 787 | status = "okay"; |
| 788 | }; |
| 789 | |
| 790 | &usbdrd3_1 { |
| 791 | status = "okay"; |
| 792 | }; |
| 793 | |
| 794 | &usbdrd_dwc3_1 { |
| 795 | status = "okay"; |
| 796 | dr_mode = "host"; |
| 797 | }; |
| 798 | |
| 799 | &vopb { |
| 800 | status = "okay"; |
| 801 | }; |
| 802 | |
| 803 | &vopb_mmu { |
| 804 | status = "okay"; |
| 805 | }; |
| 806 | |
| 807 | &vopl { |
| 808 | status = "okay"; |
| 809 | }; |
| 810 | |
| 811 | &vopl_mmu { |
| 812 | status = "okay"; |
| 813 | }; |