|
39 | 39 | */ |
40 | 40 |
|
41 | 41 | /dts-v1/; |
| 42 | +#include <dt-bindings/clock/rockchip,rk808.h> |
42 | 43 | #include "rk3288.dtsi" |
43 | 44 |
|
44 | 45 | / { |
|
49 | 50 | reg = <0x0 0x0 0x0 0x80000000>; |
50 | 51 | }; |
51 | 52 |
|
| 53 | + wireless-bluetooth { |
| 54 | + compatible = "bluetooth-platdata"; |
| 55 | + uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>; |
| 56 | + pinctrl-names = "default","rts_gpio"; |
| 57 | + pinctrl-0 = <&uart0_rts>; |
| 58 | + pinctrl-1 = <&uart0_gpios>; |
| 59 | + BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; |
| 60 | + BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>; |
| 61 | + BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>; |
| 62 | + status = "okay"; |
| 63 | + }; |
| 64 | + |
| 65 | + wireless-wlan { |
| 66 | + compatible = "wlan-platdata"; |
| 67 | + rockchip,grf = <&grf>; |
| 68 | + wifi_chip_type = "ap6212"; |
| 69 | + sdio_vref = <1800>; |
| 70 | + WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>; |
| 71 | + status = "okay"; |
| 72 | + }; |
| 73 | + |
52 | 74 | ext_gmac: external-gmac-clock { |
53 | 75 | compatible = "fixed-clock"; |
54 | 76 | clock-frequency = <125000000>; |
55 | 77 | clock-output-names = "ext_gmac"; |
56 | 78 | #clock-cells = <0>; |
57 | 79 | }; |
58 | 80 |
|
| 81 | + sdio_pwrseq: sdio-pwrseq { |
| 82 | + compatible = "mmc-pwrseq-simple"; |
| 83 | + clocks = <&rk808 RK808_CLKOUT1>; |
| 84 | + clock-names = "ext_clock"; |
| 85 | + pinctrl-names = "default"; |
| 86 | + pinctrl-0 = <&chip_enable_h>, <&wifi_enable_h>; |
| 87 | + |
| 88 | + /* |
| 89 | + * On the module itself this is one of these (depending |
| 90 | + * on the actual card populated): |
| 91 | + * - SDIO_RESET_L_WL_REG_ON |
| 92 | + * - PDN (power down when low) |
| 93 | + */ |
| 94 | + reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>, |
| 95 | + <&gpio4 27 GPIO_ACTIVE_LOW>; |
| 96 | + }; |
| 97 | + |
59 | 98 | gpio-keys { |
60 | 99 | compatible = "gpio-keys"; |
61 | 100 | #address-cells = <1>; |
|
79 | 118 | compatible = "gpio-leds"; |
80 | 119 |
|
81 | 120 | pwr-led { |
82 | | - gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
| 121 | + gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; |
83 | 122 | linux,default-trigger = "default-on"; |
84 | 123 | }; |
85 | 124 |
|
86 | 125 | act-led { |
87 | | - gpios=<&gpio2 3 GPIO_ACTIVE_LOW>; |
| 126 | + gpios=<&gpio1 24 GPIO_ACTIVE_HIGH>; |
88 | 127 | linux,default-trigger="mmc0"; |
89 | 128 | }; |
| 129 | + |
| 130 | + led1-led { |
| 131 | + gpios=<&gpio1 25 GPIO_ACTIVE_HIGH>; |
| 132 | + linux,default-trigger="default-off"; |
| 133 | + }; |
90 | 134 | }; |
91 | 135 |
|
92 | 136 | sound { |
|
149 | 193 | status = "ok"; |
150 | 194 | }; |
151 | 195 |
|
| 196 | +&dsi0 { |
| 197 | + status = "disabled"; |
| 198 | + mipi_panel: mipi-panel { |
| 199 | + compatible ="asus,tc358762"; |
| 200 | + reg = <0>; |
| 201 | + status = "okay"; |
| 202 | + }; |
| 203 | +}; |
| 204 | + |
152 | 205 | &gpu { |
153 | 206 | mali-supply = <&vdd_gpu>; |
154 | 207 | status = "okay"; |
|
208 | 261 | regulator-always-on; |
209 | 262 | regulator-boot-on; |
210 | 263 | regulator-min-microvolt = <750000>; |
211 | | - regulator-max-microvolt = <1350000>; |
| 264 | + regulator-max-microvolt = <1450000>; |
212 | 265 | regulator-name = "vdd_arm"; |
213 | 266 | regulator-ramp-delay = <6000>; |
214 | 267 | regulator-state-mem { |
|
368 | 421 |
|
369 | 422 | &i2c2 { |
370 | 423 | status = "okay"; |
| 424 | + |
| 425 | + m24c08@50 { |
| 426 | + compatible = "at,24c08"; |
| 427 | + reg = <0x50>; |
| 428 | + }; |
| 429 | +}; |
| 430 | + |
| 431 | +&i2c1 { |
| 432 | + status = "okay"; |
| 433 | + |
| 434 | + pcm5122: pcm5122@4c { |
| 435 | + #sound-dai-cells = <0>; |
| 436 | + compatible = "ti,pcm5122"; |
| 437 | + reg = <0x4c>; |
| 438 | + status = "disabled"; |
| 439 | + }; |
| 440 | +}; |
| 441 | + |
| 442 | +&i2c3 { |
| 443 | + status = "okay"; |
| 444 | +}; |
| 445 | + |
| 446 | +&i2c4 { |
| 447 | + status = "okay"; |
| 448 | +}; |
| 449 | + |
| 450 | +&spi2 { |
| 451 | + status = "okay"; |
| 452 | + max-freq = <50000000>; |
| 453 | + |
| 454 | + spidev@0 { |
| 455 | + compatible = "rockchip,spi_tinker"; |
| 456 | + reg = <0>; |
| 457 | + spi-max-frequency = <50000000>; |
| 458 | + spi-cpha = <1>; |
| 459 | + }; |
| 460 | + |
| 461 | + spidev@1 { |
| 462 | + compatible = "rockchip,spi_tinker"; |
| 463 | + reg = <1>; |
| 464 | + spi-max-frequency = <50000000>; |
| 465 | + spi-cpha = <1>; |
| 466 | + }; |
371 | 467 | }; |
372 | 468 |
|
373 | 469 | &i2s { |
|
379 | 475 | status = "okay"; |
380 | 476 |
|
381 | 477 | sdcard-supply = <&vccio_sd>; |
| 478 | + wifi-supply = <&vcc_18>; |
382 | 479 | }; |
383 | 480 |
|
384 | | -&pwm0 { |
| 481 | +&sdio0 { |
385 | 482 | status = "okay"; |
| 483 | + clock-frequency = <50000000>; |
| 484 | + clock-freq-min-max = <200000 50000000>; |
| 485 | + bus-width = <4>; |
| 486 | + cap-sd-highspeed; |
| 487 | + cap-sdio-irq; |
| 488 | + disable-wp; |
| 489 | + keep-power-in-suspend; |
| 490 | + mmc-pwrseq = <&sdio_pwrseq>; |
| 491 | + non-removable; |
| 492 | + num-slots = <1>; |
| 493 | + pinctrl-names = "default"; |
| 494 | + pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; |
| 495 | + sd-uhs-sdr104; |
| 496 | + supports-sdio; |
386 | 497 | }; |
387 | 498 |
|
388 | | -&rga { |
| 499 | +&pwm0 { |
389 | 500 | status = "okay"; |
390 | 501 | }; |
391 | 502 |
|
|
398 | 509 | bus-width = <4>; |
399 | 510 | cap-mmc-highspeed; |
400 | 511 | cap-sd-highspeed; |
| 512 | + sd-uhs-sdr12; |
| 513 | + sd-uhs-sdr25; |
| 514 | + sd-uhs-sdr50; |
| 515 | + sd-uhs-sdr104; |
401 | 516 | card-detect-delay = <200>; |
402 | 517 | disable-wp; /* wp not hooked up */ |
403 | 518 | num-slots = <1>; |
|
416 | 531 | }; |
417 | 532 |
|
418 | 533 | &uart0 { |
| 534 | + pinctrl-names = "default"; |
| 535 | + pinctrl-0 = <&uart0_xfer>, <&uart0_cts>; |
419 | 536 | status = "okay"; |
420 | 537 | }; |
421 | 538 |
|
|
522 | 639 | }; |
523 | 640 | }; |
524 | 641 |
|
| 642 | + sdio-pwrseq { |
| 643 | + wifi_enable_h: wifi-enable-h { |
| 644 | + rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>; |
| 645 | + }; |
| 646 | + chip_enable_h: chip-enable-h { |
| 647 | + rockchip,pins = <4 27 RK_FUNC_GPIO &pcfg_pull_none>; |
| 648 | + }; |
| 649 | + }; |
| 650 | + |
525 | 651 | sdmmc { |
526 | 652 | /* |
527 | 653 | * Default drive strength isn't enough to achieve even |
|
556 | 682 | rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>; |
557 | 683 | }; |
558 | 684 | }; |
| 685 | + |
| 686 | + wireless-bluetooth { |
| 687 | + uart0_gpios: uart0-gpios { |
| 688 | + rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>; |
| 689 | + }; |
| 690 | + }; |
559 | 691 | }; |
0 commit comments