1 // SPDX-License-Identifier: GPL-2.0
3 * Google Veyron (and derivatives) board device tree source
5 * Copyright 2014 Google, Inc
8 #include <dt-bindings/clock/rockchip,rk808.h>
9 #include <dt-bindings/input/input.h>
10 #include "rk3288.dtsi"
14 reg = <0x0 0x80000000>;
23 pinctrl-names = "default";
24 pinctrl-0 = <&fw_wp_ap>;
25 write-protect-gpio = <&gpio7 6 GPIO_ACTIVE_LOW>;
29 backlight: backlight {
30 compatible = "pwm-backlight";
34 16 17 18 19 20 21 22 23
35 24 25 26 27 28 29 30 31
36 32 33 34 35 36 37 38 39
37 40 41 42 43 44 45 46 47
38 48 49 50 51 52 53 54 55
39 56 57 58 59 60 61 62 63
40 64 65 66 67 68 69 70 71
41 72 73 74 75 76 77 78 79
42 80 81 82 83 84 85 86 87
43 88 89 90 91 92 93 94 95
44 96 97 98 99 100 101 102 103
45 104 105 106 107 108 109 110 111
46 112 113 114 115 116 117 118 119
47 120 121 122 123 124 125 126 127
48 128 129 130 131 132 133 134 135
49 136 137 138 139 140 141 142 143
50 144 145 146 147 148 149 150 151
51 152 153 154 155 156 157 158 159
52 160 161 162 163 164 165 166 167
53 168 169 170 171 172 173 174 175
54 176 177 178 179 180 181 182 183
55 184 185 186 187 188 189 190 191
56 192 193 194 195 196 197 198 199
57 200 201 202 203 204 205 206 207
58 208 209 210 211 212 213 214 215
59 216 217 218 219 220 221 222 223
60 224 225 226 227 228 229 230 231
61 232 233 234 235 236 237 238 239
62 240 241 242 243 244 245 246 247
63 248 249 250 251 252 253 254 255>;
64 default-brightness-level = <128>;
65 enable-gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
67 pinctrl-names = "default";
69 pwms = <&pwm0 0 1000000 0>;
73 compatible ="cnm,n116bgeea2","simple-panel";
75 power-supply = <&vcc33_lcd>;
76 backlight = <&backlight>;
79 gpio_keys: gpio-keys {
80 compatible = "gpio-keys";
82 pinctrl-names = "default";
83 pinctrl-0 = <&pwr_key_h>;
86 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
87 linux,code = <KEY_POWER>;
88 debounce-interval = <100>;
94 compatible = "gpio-restart";
95 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&ap_warm_reset_h>;
98 priority = /bits/ 8 <200>;
101 emmc_pwrseq: emmc-pwrseq {
102 compatible = "mmc-pwrseq-emmc";
103 pinctrl-0 = <&emmc_reset>;
104 pinctrl-names = "default";
105 reset-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
109 compatible = "rockchip,rockchip-audio-max98090";
110 rockchip,model = "ROCKCHIP-I2S";
111 rockchip,i2s-controller = <&i2s>;
112 rockchip,audio-codec = <&max98090>;
113 rockchip,hp-det-gpios = <&gpio6 5 GPIO_ACTIVE_HIGH>;
114 rockchip,mic-det-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
115 rockchip,headset-codec = <&headsetcodec>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&mic_det>, <&hp_det>;
120 vdd_logic: pwm-regulator {
121 compatible = "pwm-regulator";
122 pwms = <&pwm1 0 2000 0>;
124 voltage-table = <1350000 0>,
134 regulator-min-microvolt = <950000>;
135 regulator-max-microvolt = <1350000>;
136 regulator-name = "vdd_logic";
137 regulator-ramp-delay = <4000>;
140 vcc33_sys: vcc33-sys {
141 compatible = "regulator-fixed";
142 regulator-name = "vcc33_sys";
145 regulator-min-microvolt = <3300000>;
146 regulator-max-microvolt = <3300000>;
147 vin-supply = <&vccsys>;
151 compatible = "regulator-fixed";
152 regulator-name = "vcc_5v";
155 regulator-min-microvolt = <5000000>;
156 regulator-max-microvolt = <5000000>;
159 vcc50_hdmi: vcc50-hdmi {
160 compatible = "regulator-fixed";
161 regulator-name = "vcc50_hdmi";
164 vin-supply = <&vcc_5v>;
167 bt_regulator: bt-regulator {
169 * On the module itself this is one of these (depending
170 * on the actual card pouplated):
171 * - BT_I2S_WS_BT_RFDISABLE_L
175 compatible = "regulator-fixed";
177 gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&bt_enable_l>;
180 regulator-name = "bt_regulator";
183 wifi_regulator: wifi-regulator {
185 * On the module itself this is one of these (depending
186 * on the actual card populated):
187 * - SDIO_RESET_L_WL_REG_ON
188 * - PDN (power down when low)
191 compatible = "regulator-fixed";
193 gpio = <&gpio4 28 GPIO_ACTIVE_HIGH>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&wifi_enable_h>;
196 regulator-name = "wifi_regulator";
198 /* Faux input supply. See bt_regulator description. */
199 vin-supply = <&bt_regulator>;
204 cpu0-supply = <&vdd_cpu>;
216 mmc-pwrseq = <&emmc_pwrseq>;
220 pinctrl-names = "default";
221 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8 &emmc_pwr>;
234 card-external-vcc-supply = <&wifi_regulator>;
235 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>, <&cru SCLK_SDIO0_DRV>,
236 <&cru SCLK_SDIO0_SAMPLE>, <&rk808 RK808_CLKOUT1>;
237 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample", "card_ext_clock";
238 keep-power-in-suspend;
241 pinctrl-names = "default";
242 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
244 vmmc-supply = <&vcc33_sys>;
245 vqmmc-supply = <&vcc18_wl>;
256 card-detect-delay = <200>;
257 cd-gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
260 vmmc-supply = <&vcc33_sd>;
261 vqmmc-supply = <&vccio_sd>;
267 spi_flash: spiflash@0 {
268 compatible = "spidev", "jedec,spi-nor";
269 spi-max-frequency = <20000000>; /* Reduce for Dediprog em100 pro */
277 clock-frequency = <400000>;
278 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
279 i2c-scl-rising-time-ns = <100>; /* 45ns measured */
282 compatible = "rockchip,rk808";
283 clock-output-names = "xin32k", "wifibt_32kin";
284 interrupt-parent = <&gpio0>;
285 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&pmic_int_l>;
289 rockchip,system-power-controller;
293 vcc1-supply = <&vcc33_sys>;
294 vcc2-supply = <&vcc33_sys>;
295 vcc3-supply = <&vcc33_sys>;
296 vcc4-supply = <&vcc33_sys>;
297 vcc6-supply = <&vcc_5v>;
298 vcc7-supply = <&vcc33_sys>;
299 vcc8-supply = <&vcc33_sys>;
300 vcc9-supply = <&vcc_5v>;
301 vcc10-supply = <&vcc33_sys>;
302 vcc11-supply = <&vcc_5v>;
303 vcc12-supply = <&vcc_18>;
305 vddio-supply = <&vcc33_io>;
311 regulator-min-microvolt = <750000>;
312 regulator-max-microvolt = <1450000>;
313 regulator-name = "vdd_arm";
314 regulator-ramp-delay = <6001>;
315 regulator-suspend-mem-disabled;
321 regulator-min-microvolt = <800000>;
322 regulator-max-microvolt = <1250000>;
323 regulator-name = "vdd_gpu";
324 regulator-ramp-delay = <6001>;
325 regulator-suspend-mem-disabled;
328 vcc135_ddr: DCDC_REG3 {
331 regulator-name = "vcc135_ddr";
332 regulator-suspend-mem-enabled;
336 * vcc_18 has several aliases. (vcc18_flashio and
337 * vcc18_wl). We'll add those aliases here just to
338 * make it easier to follow the schematic. The signals
339 * are actually hooked together and only separated for
340 * power measurement purposes).
342 vcc18_wl: vcc18_flashio: vcc_18: DCDC_REG4 {
345 regulator-min-microvolt = <1800000>;
346 regulator-max-microvolt = <1800000>;
347 regulator-name = "vcc_18";
348 regulator-suspend-mem-microvolt = <1800000>;
352 * Note that both vcc33_io and vcc33_pmuio are always
353 * powered together. To simplify the logic in the dts
354 * we just refer to vcc33_io every time something is
355 * powered from vcc33_pmuio. In fact, on later boards
356 * (such as danger) they're the same net.
361 regulator-min-microvolt = <3300000>;
362 regulator-max-microvolt = <3300000>;
363 regulator-name = "vcc33_io";
364 regulator-suspend-mem-microvolt = <3300000>;
370 regulator-min-microvolt = <1000000>;
371 regulator-max-microvolt = <1000000>;
372 regulator-name = "vdd_10";
373 regulator-suspend-mem-microvolt = <1000000>;
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <3300000>;
379 regulator-name = "vccio_sd";
380 regulator-suspend-mem-disabled;
384 regulator-min-microvolt = <3300000>;
385 regulator-max-microvolt = <3300000>;
386 regulator-name = "vcc33_sd";
387 regulator-suspend-mem-disabled;
390 vcc18_codec: LDO_REG6 {
393 regulator-min-microvolt = <1800000>;
394 regulator-max-microvolt = <1800000>;
395 regulator-name = "vcc18_codec";
396 regulator-suspend-mem-disabled;
399 vdd10_lcd_pwren_h: LDO_REG7 {
402 regulator-min-microvolt = <2500000>;
403 regulator-max-microvolt = <2500000>;
404 regulator-name = "vdd10_lcd_pwren_h";
405 regulator-suspend-mem-disabled;
408 vcc33_lcd: SWITCH_REG1 {
411 regulator-name = "vcc33_lcd";
412 regulator-suspend-mem-disabled;
421 clock-frequency = <400000>;
422 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
423 i2c-scl-rising-time-ns = <100>; /* 40ns measured */
426 compatible = "infineon,slb9645tt";
428 powered-while-suspended;
435 /* 100kHz since 4.7k resistors don't rise fast enough */
436 clock-frequency = <100000>;
437 i2c-scl-falling-time-ns = <50>; /* 10ns measured */
438 i2c-scl-rising-time-ns = <800>; /* 600ns measured */
440 max98090: max98090@10 {
441 compatible = "maxim,max98090";
443 #sound-dai-cells = <0>;
444 interrupt-parent = <&gpio6>;
445 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
446 pinctrl-names = "default";
447 pinctrl-0 = <&int_codec>;
454 clock-frequency = <400000>;
455 i2c-scl-falling-time-ns = <50>;
456 i2c-scl-rising-time-ns = <300>;
462 clock-frequency = <400000>;
463 i2c-scl-falling-time-ns = <50>; /* 11ns measured */
464 i2c-scl-rising-time-ns = <300>; /* 225ns measured */
466 headsetcodec: ts3a227e@3b {
467 compatible = "ti,ts3a227e";
469 interrupt-parent = <&gpio0>;
470 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&ts3a227e_int_l>;
473 ti,micbias = <7>; /* MICBIAS = 2.8V */
480 clock-frequency = <100000>;
481 i2c-scl-falling-time-ns = <300>;
482 i2c-scl-rising-time-ns = <1000>;
487 clock-names = "i2s_hclk", "i2s_clk", "i2s_clk_out";
488 clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>, <&cru SCLK_I2S0_OUT>;
492 audio-supply = <&vcc18_codec>;
493 bb-supply = <&vcc33_io>;
494 dvp-supply = <&vcc_18>;
495 flash0-supply = <&vcc18_flashio>;
496 gpio1830-supply = <&vcc33_io>;
497 gpio30-supply = <&vcc33_io>;
498 lcdc-supply = <&vcc33_lcd>;
499 sdcard-supply = <&vccio_sd>;
500 wifi-supply = <&vcc18_wl>;
519 /* Pins don't include flow control by default; add that in */
520 pinctrl-names = "default";
521 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
522 /* We need to go faster than 24MHz, so adjust clock parents / rates */
523 assigned-clocks = <&cru SCLK_UART0>;
524 assigned-clock-rates = <48000000>;
554 rockchip,panel = <&panel>;
566 tsadc-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
567 tsadc-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
572 pinctrl-names = "default", "sleep";
574 /* Common for sleep and wake, but no owners */
583 /* Common for sleep and wake, but no owners */
592 /* Add this for sdmmc pins to SD card */
593 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
594 drive-strength = <8>;
597 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
599 drive-strength = <8>;
602 pcfg_output_high: pcfg-output-high {
606 pcfg_output_low: pcfg-output-low {
612 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
617 pwr_key_h: pwr-key-h {
618 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_none>;
624 rockchip,pins = <6 5 RK_FUNC_GPIO &pcfg_pull_up>;
626 int_codec: int-codec {
627 rockchip,pins = <6 7 RK_FUNC_GPIO &pcfg_pull_up>;
630 rockchip,pins = <6 11 RK_FUNC_GPIO &pcfg_pull_up>;
635 emmc_reset: emmc-reset {
636 rockchip,pins = <2 9 RK_FUNC_GPIO &pcfg_pull_none>;
640 * We run eMMC at max speed; bump up drive strength.
641 * We also have external pulls, so disable the internal ones.
644 rockchip,pins = <3 18 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
648 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
651 emmc_bus8: emmc-bus8 {
652 rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
653 <3 1 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
654 <3 2 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
655 <3 3 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
656 <3 4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
657 <3 5 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
658 <3 6 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
659 <3 7 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
664 ts3a227e_int_l: ts3a227e-int-l {
665 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_up>;
670 pmic_int_l: pmic-int-l {
672 * Causes jerry to hang when probing bus 0
673 * rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
679 ap_warm_reset_h: ap-warm-reset-h {
680 rockchip,pins = <RK_GPIO0 13 RK_FUNC_GPIO &pcfg_pull_none>;
685 wifi_enable_h: wifienable-h {
686 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
689 /* NOTE: mislabelled on schematic; should be bt_enable_h */
690 bt_enable_l: bt-enable-l {
691 rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_none>;
695 * We run sdio0 at max speed; bump up drive strength.
696 * We also have external pulls, so disable the internal ones.
698 sdio0_bus4: sdio0-bus4 {
699 rockchip,pins = <4 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
700 <4 21 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
701 <4 22 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
702 <4 23 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
705 sdio0_cmd: sdio0-cmd {
706 rockchip,pins = <4 24 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
709 sdio0_clk: sdio0-clk {
710 rockchip,pins = <4 25 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
714 * These pins are only present on very new veyron boards; on
715 * older boards bt_dev_wake is simply always high. Note that
716 * gpio4_26 is a NC on old veyron boards, so it doesn't hurt
717 * to map this pin everywhere
719 bt_dev_wake_sleep: bt-dev-wake-sleep {
720 rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_output_low>;
723 bt_dev_wake_awake: bt-dev-wake-awake {
724 rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_output_high>;
730 * We run sdmmc at max speed; bump up drive strength.
731 * We also have external pulls, so disable the internal ones.
733 sdmmc_bus4: sdmmc-bus4 {
734 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
735 <6 17 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
736 <6 18 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
737 <6 19 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
740 sdmmc_clk: sdmmc-clk {
741 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
744 sdmmc_cmd: sdmmc-cmd {
745 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
749 * Builtin CD line is hooked to ground to prevent JTAG at boot
750 * (and also to get the voltage rail correct). Make we
751 * configure gpio6_C6 as GPIO so dw_mmc builtin CD doesn't
752 * think there's a card inserted
754 sdmmc_cd_disabled: sdmmc-cd-disabled {
755 rockchip,pins = <6 22 RK_FUNC_GPIO &pcfg_pull_none>;
758 /* This is where we actually hook up CD */
759 sdmmc_cd_gpio: sdmmc-cd-gpio {
760 rockchip,pins = <7 5 RK_FUNC_GPIO &pcfg_pull_none>;
765 tpm_int_h: tpm-int-h {
766 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_none>;
772 rockchip,pins = <7 6 RK_FUNC_GPIO &pcfg_pull_none>;
783 needs-reset-on-resume;
793 assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
794 assigned-clock-parents = <&cru SCLK_OTGPHY0>;