1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Veyron (and derivatives) board device tree source
5 * Copyright 2015 Google, Inc
8 #include <dt-bindings/clock/rockchip,rk808.h>
9 #include <dt-bindings/input/input.h>
10 #include "rk3288.dtsi"
14 stdout-path = "serial2:115200n8";
18 * The default coreboot on veyron devices ignores memory@0 nodes
19 * and would instead create another memory node.
22 device_type = "memory";
23 reg = <0x0 0x0 0x0 0x80000000>;
26 bt_activity: bt-activity {
27 compatible = "gpio-keys";
28 pinctrl-names = "default";
29 pinctrl-0 = <&bt_host_wake>;
32 * HACK: until we have an LPM driver, we'll use an
33 * ugly GPIO key to allow Bluetooth to wake from S3.
34 * This is expected to only be used by BT modules that
35 * use UART for comms. For BT modules that talk over
36 * SDIO we should use a wakeup mechanism related to SDIO.
38 * Use KEY_RESERVED here since that will work as a wakeup but
39 * doesn't get reported to higher levels (so doesn't confuse
44 gpios = <&gpio4 RK_PD7 GPIO_ACTIVE_HIGH>;
45 linux,code = <KEY_RESERVED>;
51 power_button: power-button {
52 compatible = "gpio-keys";
53 pinctrl-names = "default";
54 pinctrl-0 = <&pwr_key_l>;
58 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_POWER>;
60 debounce-interval = <100>;
66 compatible = "gpio-restart";
67 gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&ap_warm_reset_h>;
73 emmc_pwrseq: emmc-pwrseq {
74 compatible = "mmc-pwrseq-emmc";
75 pinctrl-0 = <&emmc_reset>;
76 pinctrl-names = "default";
77 reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
80 sdio_pwrseq: sdio-pwrseq {
81 compatible = "mmc-pwrseq-simple";
82 clocks = <&rk808 RK808_CLKOUT1>;
83 clock-names = "ext_clock";
84 pinctrl-names = "default";
85 pinctrl-0 = <&bt_enable_l>, <&wifi_enable_h>;
88 * Depending on the actual card populated GPIO4 D4 and D5
89 * correspond to one of these signals on the module:
92 * - SDIO_RESET_L_WL_REG_ON
93 * - PDN (power down when low)
96 * - BT_I2S_WS_BT_RFDISABLE_L
99 reset-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>,
100 <&gpio4 RK_PD5 GPIO_ACTIVE_LOW>;
104 compatible = "regulator-fixed";
105 regulator-name = "vcc_5v";
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
112 vcc33_sys: vcc33-sys {
113 compatible = "regulator-fixed";
114 regulator-name = "vcc33_sys";
117 regulator-min-microvolt = <3300000>;
118 regulator-max-microvolt = <3300000>;
121 vcc50_hdmi: vcc50-hdmi {
122 compatible = "regulator-fixed";
123 regulator-name = "vcc50_hdmi";
126 vin-supply = <&vcc_5v>;
129 vdd_logic: vdd-logic {
130 compatible = "pwm-regulator";
131 regulator-name = "vdd_logic";
133 pwms = <&pwm1 0 1994 0>;
134 pwm-supply = <&vcc33_sys>;
136 pwm-dutycycle-range = <0x7b 0>;
137 pwm-dutycycle-unit = <0x94>;
141 regulator-min-microvolt = <950000>;
142 regulator-max-microvolt = <1350000>;
143 regulator-ramp-delay = <4000>;
148 cpu0-supply = <&vdd_cpu>;
152 temperature = <100000>;
155 /* rk3288-c used in Veyron Chrome-devices has slightly changed OPPs */
157 /delete-node/ opp-312000000;
160 opp-microvolt = <1250000>;
163 opp-microvolt = <1300000>;
166 opp-hz = /bits/ 64 <1704000000>;
167 opp-microvolt = <1350000>;
170 opp-hz = /bits/ 64 <1800000000>;
171 opp-microvolt = <1400000>;
180 rockchip,default-sample-phase = <158>;
183 mmc-pwrseq = <&emmc_pwrseq>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
190 mali-supply = <&vdd_gpu>;
195 temperature = <72500>;
199 temperature = <100000>;
203 pinctrl-names = "default", "unwedge";
204 pinctrl-0 = <&hdmi_ddc>;
205 pinctrl-1 = <&hdmi_ddc_unwedge>;
212 clock-frequency = <400000>;
213 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
214 i2c-scl-rising-time-ns = <100>; /* 45ns measured */
217 compatible = "rockchip,rk808";
219 clock-output-names = "xin32k", "wifibt_32kin";
220 interrupt-parent = <&gpio0>;
221 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
222 pinctrl-names = "default";
223 pinctrl-0 = <&pmic_int_l>;
224 rockchip,system-power-controller;
228 vcc1-supply = <&vcc33_sys>;
229 vcc2-supply = <&vcc33_sys>;
230 vcc3-supply = <&vcc33_sys>;
231 vcc4-supply = <&vcc33_sys>;
232 vcc6-supply = <&vcc_5v>;
233 vcc7-supply = <&vcc33_sys>;
234 vcc8-supply = <&vcc33_sys>;
235 vcc12-supply = <&vcc_18>;
236 vddio-supply = <&vcc33_io>;
240 regulator-name = "vdd_arm";
243 regulator-min-microvolt = <750000>;
244 regulator-max-microvolt = <1450000>;
245 regulator-ramp-delay = <6001>;
246 regulator-state-mem {
247 regulator-off-in-suspend;
252 regulator-name = "vdd_gpu";
255 regulator-min-microvolt = <800000>;
256 regulator-max-microvolt = <1250000>;
257 regulator-ramp-delay = <6001>;
258 regulator-state-mem {
259 regulator-off-in-suspend;
263 vcc135_ddr: DCDC_REG3 {
264 regulator-name = "vcc135_ddr";
267 regulator-state-mem {
268 regulator-on-in-suspend;
273 * vcc_18 has several aliases. (vcc18_flashio and
274 * vcc18_wl). We'll add those aliases here just to
275 * make it easier to follow the schematic. The signals
276 * are actually hooked together and only separated for
277 * power measurement purposes).
279 vcc18_wl: vcc18_flashio: vcc_18: DCDC_REG4 {
280 regulator-name = "vcc_18";
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <1800000>;
285 regulator-state-mem {
286 regulator-on-in-suspend;
287 regulator-suspend-microvolt = <1800000>;
292 * Note that both vcc33_io and vcc33_pmuio are always
293 * powered together. To simplify the logic in the dts
294 * we just refer to vcc33_io every time something is
295 * powered from vcc33_pmuio. In fact, on later boards
296 * (such as danger) they're the same net.
299 regulator-name = "vcc33_io";
302 regulator-min-microvolt = <3300000>;
303 regulator-max-microvolt = <3300000>;
304 regulator-state-mem {
305 regulator-on-in-suspend;
306 regulator-suspend-microvolt = <3300000>;
311 regulator-name = "vdd_10";
314 regulator-min-microvolt = <1000000>;
315 regulator-max-microvolt = <1000000>;
316 regulator-state-mem {
317 regulator-on-in-suspend;
318 regulator-suspend-microvolt = <1000000>;
322 vdd10_lcd_pwren_h: LDO_REG7 {
323 regulator-name = "vdd10_lcd_pwren_h";
326 regulator-min-microvolt = <2500000>;
327 regulator-max-microvolt = <2500000>;
328 regulator-state-mem {
329 regulator-off-in-suspend;
333 vcc33_lcd: SWITCH_REG1 {
334 regulator-name = "vcc33_lcd";
337 regulator-state-mem {
338 regulator-off-in-suspend;
348 clock-frequency = <400000>;
349 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
350 i2c-scl-rising-time-ns = <100>; /* 40ns measured */
353 compatible = "infineon,slb9645tt";
355 powered-while-suspended;
362 /* 100kHz since 4.7k resistors don't rise fast enough */
363 clock-frequency = <100000>;
364 i2c-scl-falling-time-ns = <50>; /* 10ns measured */
365 i2c-scl-rising-time-ns = <800>; /* 600ns measured */
371 clock-frequency = <400000>;
372 i2c-scl-falling-time-ns = <50>; /* 11ns measured */
373 i2c-scl-rising-time-ns = <300>; /* 225ns measured */
379 bb-supply = <&vcc33_io>;
380 dvp-supply = <&vcc_18>;
381 flash0-supply = <&vcc18_flashio>;
382 gpio1830-supply = <&vcc33_io>;
383 gpio30-supply = <&vcc33_io>;
384 lcdc-supply = <&vcc33_lcd>;
385 wifi-supply = <&vcc18_wl>;
398 keep-power-in-suspend;
399 mmc-pwrseq = <&sdio_pwrseq>;
401 pinctrl-names = "default";
402 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
407 vmmc-supply = <&vcc33_sys>;
408 vqmmc-supply = <&vcc18_wl>;
414 rx-sample-delay-ns = <12>;
417 compatible = "jedec,spi-nor";
418 spi-max-frequency = <50000000>;
426 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
427 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
428 rockchip,hw-tshut-temp = <125000>;
434 /* Pins don't include flow control by default; add that in */
435 pinctrl-names = "default";
436 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
454 needs-reset-on-resume;
459 snps,need-phy-for-wake;
465 assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
466 assigned-clock-parents = <&usbphy0>;
468 snps,need-phy-for-wake;
484 pinctrl-names = "default", "sleep";
486 /* Common for sleep and wake, but no owners */
495 /* Common for sleep and wake, but no owners */
504 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
506 drive-strength = <8>;
509 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
511 drive-strength = <8>;
514 pcfg_output_high: pcfg-output-high {
518 pcfg_output_low: pcfg-output-low {
523 pwr_key_l: pwr-key-l {
524 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
529 emmc_reset: emmc-reset {
530 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
534 * We run eMMC at max speed; bump up drive strength.
535 * We also have external pulls, so disable the internal ones.
538 rockchip,pins = <3 RK_PC2 2 &pcfg_pull_none_drv_8ma>;
542 rockchip,pins = <3 RK_PC0 2 &pcfg_pull_none_drv_8ma>;
545 emmc_bus8: emmc-bus8 {
546 rockchip,pins = <3 RK_PA0 2 &pcfg_pull_none_drv_8ma>,
547 <3 RK_PA1 2 &pcfg_pull_none_drv_8ma>,
548 <3 RK_PA2 2 &pcfg_pull_none_drv_8ma>,
549 <3 RK_PA3 2 &pcfg_pull_none_drv_8ma>,
550 <3 RK_PA4 2 &pcfg_pull_none_drv_8ma>,
551 <3 RK_PA5 2 &pcfg_pull_none_drv_8ma>,
552 <3 RK_PA6 2 &pcfg_pull_none_drv_8ma>,
553 <3 RK_PA7 2 &pcfg_pull_none_drv_8ma>;
558 pmic_int_l: pmic-int-l {
559 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
564 ap_warm_reset_h: ap-warm-reset-h {
565 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
570 rec_mode_l: rec-mode-l {
571 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
576 wifi_enable_h: wifienable-h {
577 rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
580 /* NOTE: mislabelled on schematic; should be bt_enable_h */
581 bt_enable_l: bt-enable-l {
582 rockchip,pins = <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
585 bt_host_wake: bt-host-wake {
586 rockchip,pins = <4 RK_PD7 RK_FUNC_GPIO &pcfg_pull_down>;
589 bt_host_wake_l: bt-host-wake-l {
590 rockchip,pins = <4 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>;
594 * We run sdio0 at max speed; bump up drive strength.
595 * We also have external pulls, so disable the internal ones.
597 sdio0_bus4: sdio0-bus4 {
598 rockchip,pins = <4 RK_PC4 1 &pcfg_pull_none_drv_8ma>,
599 <4 RK_PC5 1 &pcfg_pull_none_drv_8ma>,
600 <4 RK_PC6 1 &pcfg_pull_none_drv_8ma>,
601 <4 RK_PC7 1 &pcfg_pull_none_drv_8ma>;
604 sdio0_cmd: sdio0-cmd {
605 rockchip,pins = <4 RK_PD0 1 &pcfg_pull_none_drv_8ma>;
608 sdio0_clk: sdio0-clk {
609 rockchip,pins = <4 RK_PD1 1 &pcfg_pull_none_drv_8ma>;
613 * These pins are only present on very new veyron boards; on
614 * older boards bt_dev_wake is simply always high. Note that
615 * gpio4_D2 is a NC on old veyron boards, so it doesn't hurt
616 * to map this pin everywhere
618 bt_dev_wake_sleep: bt-dev-wake-sleep {
619 rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_output_low>;
622 bt_dev_wake_awake: bt-dev-wake-awake {
623 rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_output_high>;
628 tpm_int_h: tpm-int-h {
629 rockchip,pins = <7 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
635 rockchip,pins = <7 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;