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