Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "dt-bindings/pwm/pwm.h" |
| 9 | #include "dt-bindings/input/input.h" |
| 10 | #include "rk3399.dtsi" |
| 11 | #include "rk3399-opp.dtsi" |
| 12 | |
| 13 | / { |
| 14 | model = "Orange Pi RK3399 Board"; |
| 15 | compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399"; |
| 16 | |
| 17 | chosen { |
| 18 | stdout-path = "serial2:1500000n8"; |
| 19 | }; |
| 20 | |
| 21 | clkin_gmac: external-gmac-clock { |
| 22 | compatible = "fixed-clock"; |
| 23 | clock-frequency = <125000000>; |
| 24 | clock-output-names = "clkin_gmac"; |
| 25 | #clock-cells = <0>; |
| 26 | }; |
| 27 | |
| 28 | adc-keys { |
| 29 | compatible = "adc-keys"; |
| 30 | io-channels = <&saradc 1>; |
| 31 | io-channel-names = "buttons"; |
| 32 | keyup-threshold-microvolt = <1800000>; |
| 33 | poll-interval = <100>; |
| 34 | |
| 35 | button-up { |
| 36 | label = "Volume Up"; |
| 37 | linux,code = <KEY_VOLUMEUP>; |
| 38 | press-threshold-microvolt = <100000>; |
| 39 | }; |
| 40 | |
| 41 | button-down { |
| 42 | label = "Volume Down"; |
| 43 | linux,code = <KEY_VOLUMEDOWN>; |
| 44 | press-threshold-microvolt = <300000>; |
| 45 | }; |
| 46 | |
| 47 | back { |
| 48 | label = "Back"; |
| 49 | linux,code = <KEY_BACK>; |
| 50 | press-threshold-microvolt = <985000>; |
| 51 | }; |
| 52 | |
| 53 | menu { |
| 54 | label = "Menu"; |
| 55 | linux,code = <KEY_MENU>; |
| 56 | press-threshold-microvolt = <1314000>; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | dc_12v: dc-12v { |
| 61 | compatible = "regulator-fixed"; |
| 62 | regulator-name = "dc_12v"; |
| 63 | regulator-always-on; |
| 64 | regulator-boot-on; |
| 65 | regulator-min-microvolt = <12000000>; |
| 66 | regulator-max-microvolt = <12000000>; |
| 67 | }; |
| 68 | |
| 69 | keys: gpio-keys { |
| 70 | compatible = "gpio-keys"; |
| 71 | autorepeat; |
| 72 | |
| 73 | power { |
| 74 | debounce-interval = <100>; |
| 75 | gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; |
| 76 | label = "GPIO Power"; |
| 77 | linux,code = <KEY_POWER>; |
| 78 | linux,input-type = <1>; |
| 79 | pinctrl-names = "default"; |
| 80 | pinctrl-0 = <&pwr_btn>; |
| 81 | wakeup-source; |
| 82 | }; |
| 83 | }; |
| 84 | |
| 85 | sdio_pwrseq: sdio-pwrseq { |
| 86 | compatible = "mmc-pwrseq-simple"; |
| 87 | clocks = <&rk808 1>; |
| 88 | clock-names = "ext_clock"; |
| 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&wifi_reg_on_h>; |
| 91 | reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; |
| 92 | }; |
| 93 | |
| 94 | /* switched by pmic_sleep */ |
| 95 | vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { |
| 96 | compatible = "regulator-fixed"; |
| 97 | regulator-name = "vcc1v8_s3"; |
| 98 | regulator-always-on; |
| 99 | regulator-boot-on; |
| 100 | regulator-min-microvolt = <1800000>; |
| 101 | regulator-max-microvolt = <1800000>; |
| 102 | vin-supply = <&vcc_1v8>; |
| 103 | }; |
| 104 | |
| 105 | vcc3v0_sd: vcc3v0-sd { |
| 106 | compatible = "regulator-fixed"; |
| 107 | enable-active-high; |
| 108 | gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; |
| 109 | pinctrl-names = "default"; |
| 110 | pinctrl-0 = <&sdmmc0_pwr_h>; |
| 111 | regulator-boot-on; |
| 112 | regulator-max-microvolt = <3000000>; |
| 113 | regulator-min-microvolt = <3000000>; |
| 114 | regulator-name = "vcc3v0_sd"; |
| 115 | vin-supply = <&vcc3v3_sys>; |
| 116 | }; |
| 117 | |
| 118 | vcc3v3_sys: vcc3v3-sys { |
| 119 | compatible = "regulator-fixed"; |
| 120 | regulator-name = "vcc3v3_sys"; |
| 121 | regulator-always-on; |
| 122 | regulator-boot-on; |
| 123 | regulator-min-microvolt = <3300000>; |
| 124 | regulator-max-microvolt = <3300000>; |
| 125 | vin-supply = <&vcc_sys>; |
| 126 | }; |
| 127 | |
| 128 | vcc5v0_host: vcc5v0-host-regulator { |
| 129 | compatible = "regulator-fixed"; |
| 130 | enable-active-high; |
| 131 | gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; |
| 132 | pinctrl-names = "default"; |
| 133 | pinctrl-0 = <&vcc5v0_host_en>; |
| 134 | regulator-name = "vcc5v0_host"; |
| 135 | regulator-always-on; |
| 136 | vin-supply = <&vcc_sys>; |
| 137 | }; |
| 138 | |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 139 | vbus_typec: vbus-typec-regulator { |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 140 | compatible = "regulator-fixed"; |
| 141 | enable-active-high; |
| 142 | gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; |
| 143 | pinctrl-names = "default"; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 144 | pinctrl-0 = <&vcc5v0_typec_en>; |
| 145 | regulator-name = "vbus_typec"; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 146 | vin-supply = <&vcc_sys>; |
| 147 | }; |
| 148 | |
| 149 | vcc_sys: vcc-sys { |
| 150 | compatible = "regulator-fixed"; |
| 151 | regulator-name = "vcc_sys"; |
| 152 | regulator-always-on; |
| 153 | regulator-boot-on; |
| 154 | regulator-min-microvolt = <5000000>; |
| 155 | regulator-max-microvolt = <5000000>; |
| 156 | vin-supply = <&dc_12v>; |
| 157 | }; |
| 158 | |
| 159 | vdd_log: vdd-log { |
| 160 | compatible = "pwm-regulator"; |
| 161 | pwms = <&pwm2 0 25000 1>; |
| 162 | regulator-name = "vdd_log"; |
| 163 | regulator-always-on; |
| 164 | regulator-boot-on; |
| 165 | regulator-min-microvolt = <800000>; |
| 166 | regulator-max-microvolt = <1400000>; |
| 167 | vin-supply = <&vcc_sys>; |
| 168 | }; |
| 169 | }; |
| 170 | |
| 171 | &cpu_l0 { |
| 172 | cpu-supply = <&vdd_cpu_l>; |
| 173 | }; |
| 174 | |
| 175 | &cpu_l1 { |
| 176 | cpu-supply = <&vdd_cpu_l>; |
| 177 | }; |
| 178 | |
| 179 | &cpu_l2 { |
| 180 | cpu-supply = <&vdd_cpu_l>; |
| 181 | }; |
| 182 | |
| 183 | &cpu_l3 { |
| 184 | cpu-supply = <&vdd_cpu_l>; |
| 185 | }; |
| 186 | |
| 187 | &cpu_b0 { |
| 188 | cpu-supply = <&vdd_cpu_b>; |
| 189 | }; |
| 190 | |
| 191 | &cpu_b1 { |
| 192 | cpu-supply = <&vdd_cpu_b>; |
| 193 | }; |
| 194 | |
| 195 | &emmc_phy { |
| 196 | status = "okay"; |
| 197 | }; |
| 198 | |
| 199 | &gmac { |
| 200 | assigned-clocks = <&cru SCLK_RMII_SRC>; |
| 201 | assigned-clock-parents = <&clkin_gmac>; |
| 202 | clock_in_out = "input"; |
| 203 | phy-supply = <&vcc3v3_s3>; |
| 204 | phy-mode = "rgmii"; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 205 | phy-handle = <&rtl8211e>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 206 | pinctrl-names = "default"; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 207 | pinctrl-0 = <&rgmii_pins>, <&phy_intb>, <&phy_rstb>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 208 | tx_delay = <0x28>; |
| 209 | rx_delay = <0x11>; |
| 210 | status = "okay"; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 211 | |
| 212 | mdio { |
| 213 | compatible = "snps,dwmac-mdio"; |
| 214 | #address-cells = <1>; |
| 215 | #size-cells = <0>; |
| 216 | |
| 217 | rtl8211e: phy@1 { |
| 218 | reg = <1>; |
| 219 | interrupt-parent = <&gpio3>; |
| 220 | interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>; |
| 221 | reset-assert-us = <10000>; |
| 222 | reset-deassert-us = <30000>; |
| 223 | reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; |
| 224 | }; |
| 225 | }; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | &gpu { |
| 229 | mali-supply = <&vdd_gpu>; |
| 230 | status = "okay"; |
| 231 | }; |
| 232 | |
| 233 | &hdmi { |
| 234 | ddc-i2c-bus = <&i2c3>; |
| 235 | status = "okay"; |
| 236 | }; |
| 237 | |
| 238 | &hdmi_sound { |
| 239 | status = "okay"; |
| 240 | }; |
| 241 | |
| 242 | &i2c0 { |
| 243 | clock-frequency = <400000>; |
| 244 | i2c-scl-rising-time-ns = <168>; |
| 245 | i2c-scl-falling-time-ns = <4>; |
| 246 | status = "okay"; |
| 247 | |
| 248 | rk808: pmic@1b { |
| 249 | compatible = "rockchip,rk808"; |
| 250 | reg = <0x1b>; |
| 251 | interrupt-parent = <&gpio1>; |
| 252 | interrupts = <21 IRQ_TYPE_LEVEL_LOW>; |
| 253 | #clock-cells = <1>; |
| 254 | clock-output-names = "rtc_clko_soc", "rtc_clko_wifi"; |
| 255 | pinctrl-names = "default"; |
| 256 | pinctrl-0 = <&pmic_int_l>; |
| 257 | rockchip,system-power-controller; |
| 258 | wakeup-source; |
| 259 | |
| 260 | vcc1-supply = <&vcc3v3_sys>; |
| 261 | vcc2-supply = <&vcc3v3_sys>; |
| 262 | vcc3-supply = <&vcc3v3_sys>; |
| 263 | vcc4-supply = <&vcc3v3_sys>; |
| 264 | vcc6-supply = <&vcc3v3_sys>; |
| 265 | vcc7-supply = <&vcc3v3_sys>; |
| 266 | vcc8-supply = <&vcc3v3_sys>; |
| 267 | vcc9-supply = <&vcc3v3_sys>; |
| 268 | vcc10-supply = <&vcc3v3_sys>; |
| 269 | vcc11-supply = <&vcc3v3_sys>; |
| 270 | vcc12-supply = <&vcc3v3_sys>; |
| 271 | vddio-supply = <&vcc_3v0>; |
| 272 | |
| 273 | regulators { |
| 274 | vdd_center: DCDC_REG1 { |
| 275 | regulator-name = "vdd_center"; |
| 276 | regulator-always-on; |
| 277 | regulator-boot-on; |
| 278 | regulator-min-microvolt = <700000>; |
| 279 | regulator-max-microvolt = <1500000>; |
| 280 | regulator-ramp-delay = <6001>; |
| 281 | regulator-state-mem { |
| 282 | regulator-off-in-suspend; |
| 283 | }; |
| 284 | }; |
| 285 | |
| 286 | vdd_cpu_l: DCDC_REG2 { |
| 287 | regulator-name = "vdd_cpu_l"; |
| 288 | regulator-always-on; |
| 289 | regulator-boot-on; |
| 290 | regulator-min-microvolt = <700000>; |
| 291 | regulator-max-microvolt = <1500000>; |
| 292 | regulator-ramp-delay = <6001>; |
| 293 | regulator-state-mem { |
| 294 | regulator-off-in-suspend; |
| 295 | }; |
| 296 | }; |
| 297 | |
| 298 | vcc_ddr: DCDC_REG3 { |
| 299 | regulator-name = "vcc_ddr"; |
| 300 | regulator-always-on; |
| 301 | regulator-boot-on; |
| 302 | regulator-state-mem { |
| 303 | regulator-on-in-suspend; |
| 304 | }; |
| 305 | }; |
| 306 | |
| 307 | vcc_1v8: DCDC_REG4 { |
| 308 | regulator-name = "vcc_1v8"; |
| 309 | regulator-always-on; |
| 310 | regulator-boot-on; |
| 311 | regulator-min-microvolt = <1800000>; |
| 312 | regulator-max-microvolt = <3300000>; |
| 313 | regulator-state-mem { |
| 314 | regulator-on-in-suspend; |
| 315 | regulator-suspend-microvolt = <1800000>; |
| 316 | }; |
| 317 | }; |
| 318 | |
| 319 | vcc1v8_dvp: LDO_REG1 { |
| 320 | regulator-name = "vcc1v8_dvp"; |
| 321 | regulator-always-on; |
| 322 | regulator-boot-on; |
| 323 | regulator-min-microvolt = <1800000>; |
| 324 | regulator-max-microvolt = <3400000>; |
| 325 | regulator-state-mem { |
| 326 | regulator-off-in-suspend; |
| 327 | }; |
| 328 | }; |
| 329 | |
| 330 | vcc3v0_tp: LDO_REG2 { |
| 331 | regulator-name = "vcc3v0_tp"; |
| 332 | regulator-always-on; |
| 333 | regulator-boot-on; |
| 334 | regulator-min-microvolt = <1800000>; |
| 335 | regulator-max-microvolt = <3400000>; |
| 336 | regulator-state-mem { |
| 337 | regulator-off-in-suspend; |
| 338 | }; |
| 339 | }; |
| 340 | |
| 341 | vcc1v8_pmupll: LDO_REG3 { |
| 342 | regulator-name = "vcc1v8_pmupll"; |
| 343 | regulator-always-on; |
| 344 | regulator-boot-on; |
| 345 | regulator-min-microvolt = <800000>; |
| 346 | regulator-max-microvolt = <2500000>; |
| 347 | regulator-state-mem { |
| 348 | regulator-on-in-suspend; |
| 349 | regulator-suspend-microvolt = <1800000>; |
| 350 | }; |
| 351 | }; |
| 352 | |
| 353 | vcc_sdio: LDO_REG4 { |
| 354 | regulator-name = "vcc_sdio"; |
| 355 | regulator-always-on; |
| 356 | regulator-boot-on; |
| 357 | regulator-min-microvolt = <1800000>; |
| 358 | regulator-max-microvolt = <3400000>; |
| 359 | regulator-state-mem { |
| 360 | regulator-on-in-suspend; |
| 361 | regulator-suspend-microvolt = <3000000>; |
| 362 | }; |
| 363 | }; |
| 364 | |
| 365 | vcca3v0_codec: LDO_REG5 { |
| 366 | regulator-name = "vcca3v0_codec"; |
| 367 | regulator-always-on; |
| 368 | regulator-boot-on; |
| 369 | regulator-min-microvolt = <1800000>; |
| 370 | regulator-max-microvolt = <3400000>; |
| 371 | regulator-state-mem { |
| 372 | regulator-off-in-suspend; |
| 373 | }; |
| 374 | }; |
| 375 | |
| 376 | vcc_1v5: LDO_REG6 { |
| 377 | regulator-name = "vcc_1v5"; |
| 378 | regulator-always-on; |
| 379 | regulator-boot-on; |
| 380 | regulator-min-microvolt = <800000>; |
| 381 | regulator-max-microvolt = <2500000>; |
| 382 | regulator-state-mem { |
| 383 | regulator-on-in-suspend; |
| 384 | regulator-suspend-microvolt = <1500000>; |
| 385 | }; |
| 386 | }; |
| 387 | |
| 388 | vcca1v8_codec: LDO_REG7 { |
| 389 | regulator-name = "vcca1v8_codec"; |
| 390 | regulator-always-on; |
| 391 | regulator-boot-on; |
| 392 | regulator-min-microvolt = <800000>; |
| 393 | regulator-max-microvolt = <2500000>; |
| 394 | regulator-state-mem { |
| 395 | regulator-off-in-suspend; |
| 396 | }; |
| 397 | }; |
| 398 | |
| 399 | vcc_3v0: LDO_REG8 { |
| 400 | regulator-name = "vcc_3v0"; |
| 401 | regulator-always-on; |
| 402 | regulator-boot-on; |
| 403 | regulator-min-microvolt = <1800000>; |
| 404 | regulator-max-microvolt = <3400000>; |
| 405 | regulator-state-mem { |
| 406 | regulator-on-in-suspend; |
| 407 | regulator-suspend-microvolt = <3000000>; |
| 408 | }; |
| 409 | }; |
| 410 | |
| 411 | vcc3v3_s3: SWITCH_REG1 { |
| 412 | regulator-name = "vcc3v3_s3"; |
| 413 | regulator-always-on; |
| 414 | regulator-boot-on; |
| 415 | regulator-state-mem { |
| 416 | regulator-off-in-suspend; |
| 417 | }; |
| 418 | }; |
| 419 | |
| 420 | vcc3v3_s0: SWITCH_REG2 { |
| 421 | regulator-name = "vcc3v3_s0"; |
| 422 | regulator-always-on; |
| 423 | regulator-boot-on; |
| 424 | regulator-state-mem { |
| 425 | regulator-off-in-suspend; |
| 426 | }; |
| 427 | }; |
| 428 | }; |
| 429 | }; |
| 430 | |
| 431 | vdd_cpu_b: regulator@40 { |
| 432 | compatible = "silergy,syr827"; |
| 433 | reg = <0x40>; |
| 434 | fcs,suspend-voltage-selector = <1>; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 435 | pinctrl-names = "default"; |
| 436 | pinctrl-0 = <&cpu_b_sleep>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 437 | regulator-name = "vdd_cpu_b"; |
| 438 | regulator-min-microvolt = <712500>; |
| 439 | regulator-max-microvolt = <1500000>; |
| 440 | regulator-ramp-delay = <1000>; |
| 441 | regulator-always-on; |
| 442 | regulator-boot-on; |
| 443 | vin-supply = <&vcc3v3_sys>; |
| 444 | |
| 445 | regulator-state-mem { |
| 446 | regulator-off-in-suspend; |
| 447 | }; |
| 448 | }; |
| 449 | |
| 450 | vdd_gpu: regulator@41 { |
| 451 | compatible = "silergy,syr828"; |
| 452 | reg = <0x41>; |
| 453 | fcs,suspend-voltage-selector = <1>; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 454 | pinctrl-names = "default"; |
| 455 | pinctrl-0 = <&gpu_sleep>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 456 | regulator-name = "vdd_gpu"; |
| 457 | regulator-min-microvolt = <712500>; |
| 458 | regulator-max-microvolt = <1500000>; |
| 459 | regulator-ramp-delay = <1000>; |
| 460 | regulator-always-on; |
| 461 | regulator-boot-on; |
| 462 | vin-supply = <&vcc3v3_sys>; |
| 463 | |
| 464 | regulator-state-mem { |
| 465 | regulator-off-in-suspend; |
| 466 | }; |
| 467 | }; |
| 468 | }; |
| 469 | |
| 470 | &i2c1 { |
| 471 | i2c-scl-rising-time-ns = <450>; |
| 472 | i2c-scl-falling-time-ns = <15>; |
| 473 | status = "okay"; |
| 474 | }; |
| 475 | |
| 476 | &i2c3 { |
| 477 | i2c-scl-rising-time-ns = <450>; |
| 478 | i2c-scl-falling-time-ns = <15>; |
| 479 | status = "okay"; |
| 480 | }; |
| 481 | |
| 482 | &i2c4 { |
| 483 | clock-frequency = <400000>; |
| 484 | i2c-scl-rising-time-ns = <450>; |
| 485 | i2c-scl-falling-time-ns = <15>; |
| 486 | status = "okay"; |
| 487 | |
| 488 | ak09911@c { |
| 489 | compatible = "asahi-kasei,ak09911"; |
| 490 | reg = <0x0c>; |
| 491 | vdd-supply = <&vcc3v3_s3>; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 492 | vid-supply = <&vcc3v3_s3>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 493 | }; |
| 494 | |
| 495 | mpu6500@68 { |
| 496 | compatible = "invensense,mpu6500"; |
| 497 | reg = <0x68>; |
| 498 | interrupt-parent = <&gpio1>; |
| 499 | interrupts = <RK_PC6 IRQ_TYPE_EDGE_RISING>; |
| 500 | pinctrl-names = "default"; |
| 501 | pinctrl-0 = <&gsensor_int_l>; |
| 502 | vddio-supply = <&vcc3v3_s3>; |
| 503 | }; |
| 504 | |
| 505 | lsm6ds3@6a { |
| 506 | compatible = "st,lsm6ds3"; |
| 507 | reg = <0x6a>; |
| 508 | interrupt-parent = <&gpio1>; |
| 509 | interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>; |
| 510 | pinctrl-names = "default"; |
| 511 | pinctrl-0 = <&gyr_int_l>; |
| 512 | vdd-supply = <&vcc3v3_s3>; |
| 513 | vddio-supply = <&vcc3v3_s3>; |
| 514 | }; |
| 515 | |
| 516 | cm32181@10 { |
| 517 | compatible = "capella,cm32181"; |
| 518 | reg = <0x10>; |
| 519 | interrupt-parent = <&gpio4>; |
| 520 | interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>; |
| 521 | pinctrl-names = "default"; |
| 522 | pinctrl-0 = <&light_int_l>; |
| 523 | vdd-supply = <&vcc3v3_s3>; |
| 524 | }; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 525 | |
| 526 | fusb302@22 { |
| 527 | compatible = "fcs,fusb302"; |
| 528 | reg = <0x22>; |
| 529 | interrupt-parent = <&gpio1>; |
| 530 | interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; |
| 531 | pinctrl-names = "default"; |
| 532 | pinctrl-0 = <&chg_cc_int_l>; |
| 533 | vbus-supply = <&vbus_typec>; |
| 534 | }; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 535 | }; |
| 536 | |
| 537 | &io_domains { |
| 538 | status = "okay"; |
| 539 | bt656-supply = <&vcc_3v0>; |
| 540 | audio-supply = <&vcca1v8_codec>; |
| 541 | sdmmc-supply = <&vcc_sdio>; |
| 542 | gpio1830-supply = <&vcc_3v0>; |
| 543 | }; |
| 544 | |
| 545 | &pmu_io_domains { |
| 546 | status = "okay"; |
| 547 | pmu1830-supply = <&vcc_3v0>; |
| 548 | }; |
| 549 | |
| 550 | &pinctrl { |
| 551 | buttons { |
| 552 | pwr_btn: pwr-btn { |
| 553 | rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; |
| 554 | }; |
| 555 | }; |
| 556 | |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 557 | phy { |
| 558 | phy_intb: phy-intb { |
| 559 | rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; |
| 560 | }; |
| 561 | |
| 562 | phy_rstb: phy-rstb { |
| 563 | rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; |
| 564 | }; |
| 565 | }; |
| 566 | |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 567 | pmic { |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 568 | cpu_b_sleep: cpu-b-sleep { |
| 569 | rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; |
| 570 | }; |
| 571 | |
| 572 | gpu_sleep: gpu-sleep { |
| 573 | rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; |
| 574 | }; |
| 575 | |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 576 | pmic_int_l: pmic-int-l { |
| 577 | rockchip,pins = |
| 578 | <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; |
| 579 | }; |
| 580 | }; |
| 581 | |
| 582 | sd { |
| 583 | sdmmc0_pwr_h: sdmmc0-pwr-h { |
| 584 | rockchip,pins = |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 585 | <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 586 | }; |
| 587 | }; |
| 588 | |
| 589 | usb2 { |
| 590 | vcc5v0_host_en: vcc5v0-host-en { |
| 591 | rockchip,pins = |
| 592 | <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 593 | }; |
| 594 | |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 595 | vcc5v0_typec_en: vcc5v0-typec-en { |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 596 | rockchip,pins = |
| 597 | <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 598 | }; |
| 599 | }; |
| 600 | |
| 601 | sdio-pwrseq { |
| 602 | wifi_reg_on_h: wifi-reg-on-h { |
| 603 | rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 604 | }; |
| 605 | }; |
| 606 | |
| 607 | wifi { |
| 608 | wifi_host_wake_l: wifi-host-wake-l { |
| 609 | rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 610 | }; |
| 611 | }; |
| 612 | |
| 613 | bluetooth { |
| 614 | bt_reg_on_h: bt-enable-h { |
| 615 | rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 616 | }; |
| 617 | |
| 618 | bt_host_wake_l: bt-host-wake-l { |
| 619 | rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 620 | }; |
| 621 | |
| 622 | bt_wake_l: bt-wake-l { |
| 623 | rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 624 | }; |
| 625 | }; |
| 626 | |
| 627 | mpu6500 { |
| 628 | gsensor_int_l: gsensor-int-l { |
| 629 | rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 630 | }; |
| 631 | }; |
| 632 | |
| 633 | lsm6ds3 { |
| 634 | gyr_int_l: gyr-int-l { |
| 635 | rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 636 | }; |
| 637 | }; |
| 638 | |
| 639 | cm32181 { |
| 640 | light_int_l: light-int-l { |
| 641 | rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 642 | }; |
| 643 | }; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 644 | |
| 645 | fusb302 { |
| 646 | chg_cc_int_l: chg-cc-int-l { |
| 647 | rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
| 648 | }; |
| 649 | }; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 650 | }; |
| 651 | |
| 652 | &pwm0 { |
| 653 | status = "okay"; |
| 654 | }; |
| 655 | |
| 656 | &pwm2 { |
| 657 | status = "okay"; |
| 658 | }; |
| 659 | |
| 660 | &saradc { |
| 661 | vref-supply = <&vcca1v8_s3>; |
| 662 | status = "okay"; |
| 663 | }; |
| 664 | |
| 665 | &sdhci { |
| 666 | bus-width = <8>; |
| 667 | mmc-hs400-1_8v; |
| 668 | mmc-hs400-enhanced-strobe; |
| 669 | non-removable; |
| 670 | status = "okay"; |
| 671 | }; |
| 672 | |
| 673 | &sdio0 { |
| 674 | bus-width = <4>; |
| 675 | cap-sd-highspeed; |
| 676 | cap-sdio-irq; |
| 677 | clock-frequency = <50000000>; |
| 678 | disable-wp; |
| 679 | keep-power-in-suspend; |
| 680 | max-frequency = <50000000>; |
| 681 | mmc-pwrseq = <&sdio_pwrseq>; |
| 682 | non-removable; |
| 683 | pinctrl-names = "default"; |
| 684 | pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; |
| 685 | sd-uhs-sdr104; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 686 | #address-cells = <1>; |
| 687 | #size-cells = <0>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 688 | status = "okay"; |
| 689 | |
| 690 | brcmf: wifi@1 { |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 691 | reg = <1>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 692 | compatible = "brcm,bcm4329-fmac"; |
| 693 | interrupt-parent = <&gpio0>; |
| 694 | interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>; |
| 695 | interrupt-names = "host-wake"; |
| 696 | pinctrl-names = "default"; |
| 697 | pinctrl-0 = <&wifi_host_wake_l>; |
| 698 | }; |
| 699 | }; |
| 700 | |
| 701 | &sdmmc { |
| 702 | bus-width = <4>; |
| 703 | cap-mmc-highspeed; |
| 704 | cap-sd-highspeed; |
| 705 | cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; |
| 706 | clock-frequency = <150000000>; |
| 707 | disable-wp; |
| 708 | max-frequency = <150000000>; |
| 709 | pinctrl-names = "default"; |
| 710 | pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; |
| 711 | vmmc-supply = <&vcc3v0_sd>; |
| 712 | vqmmc-supply = <&vcc_sdio>; |
| 713 | status = "okay"; |
| 714 | }; |
| 715 | |
| 716 | &tcphy0 { |
| 717 | status = "okay"; |
| 718 | }; |
| 719 | |
| 720 | &tcphy1 { |
| 721 | status = "okay"; |
| 722 | }; |
| 723 | |
| 724 | &tsadc { |
| 725 | rockchip,hw-tshut-mode = <1>; |
| 726 | rockchip,hw-tshut-polarity = <1>; |
| 727 | status = "okay"; |
| 728 | }; |
| 729 | |
| 730 | &u2phy0 { |
| 731 | status = "okay"; |
| 732 | |
| 733 | u2phy0_otg: otg-port { |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 734 | phy-supply = <&vbus_typec>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 735 | status = "okay"; |
| 736 | }; |
| 737 | |
| 738 | u2phy0_host: host-port { |
| 739 | phy-supply = <&vcc5v0_host>; |
| 740 | status = "okay"; |
| 741 | }; |
| 742 | }; |
| 743 | |
| 744 | &u2phy1 { |
| 745 | status = "okay"; |
| 746 | |
| 747 | u2phy1_otg: otg-port { |
| 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 &uart0_rts>; |
| 760 | status = "okay"; |
| 761 | |
| 762 | bluetooth { |
| 763 | compatible = "brcm,bcm43438-bt"; |
| 764 | clocks = <&rk808 1>; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 765 | clock-names = "lpo"; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 766 | device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; |
| 767 | host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 768 | shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; |
| 769 | pinctrl-names = "default"; |
| 770 | pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_reg_on_h>; |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 771 | vbat-supply = <&vcc3v3_sys>; |
| 772 | vddio-supply = <&vcc_1v8>; |
Jagan Teki | ed9c905 | 2019-03-11 13:50:04 +0530 | [diff] [blame] | 773 | }; |
| 774 | }; |
| 775 | |
| 776 | &uart2 { |
| 777 | status = "okay"; |
| 778 | }; |
| 779 | |
| 780 | &usb_host0_ehci { |
| 781 | status = "okay"; |
| 782 | }; |
| 783 | |
| 784 | &usb_host0_ohci { |
| 785 | status = "okay"; |
| 786 | }; |
| 787 | |
| 788 | &usb_host1_ehci { |
| 789 | status = "okay"; |
| 790 | }; |
| 791 | |
| 792 | &usb_host1_ohci { |
| 793 | status = "okay"; |
| 794 | }; |
| 795 | |
| 796 | &usbdrd3_0 { |
| 797 | status = "okay"; |
| 798 | }; |
| 799 | |
| 800 | &usbdrd_dwc3_0 { |
| 801 | status = "okay"; |
| 802 | dr_mode = "otg"; |
| 803 | }; |
| 804 | |
| 805 | &usbdrd3_1 { |
| 806 | status = "okay"; |
| 807 | }; |
| 808 | |
| 809 | &usbdrd_dwc3_1 { |
| 810 | status = "okay"; |
| 811 | dr_mode = "host"; |
| 812 | }; |
| 813 | |
| 814 | &vopb { |
| 815 | status = "okay"; |
| 816 | }; |
| 817 | |
| 818 | &vopb_mmu { |
| 819 | status = "okay"; |
| 820 | }; |
| 821 | |
| 822 | &vopl { |
| 823 | status = "okay"; |
| 824 | }; |
| 825 | |
| 826 | &vopl_mmu { |
| 827 | status = "okay"; |
| 828 | }; |