2 * Google Veyron (and derivatives) board device tree source
4 * Copyright 2015 Google, Inc
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include <dt-bindings/clock/rockchip,rk808.h>
46 #include <dt-bindings/input/input.h>
47 #include "rk3288.dtsi"
51 device_type = "memory";
52 reg = <0x0 0x80000000>;
55 gpio_keys: gpio-keys {
56 compatible = "gpio-keys";
60 pinctrl-names = "default";
61 pinctrl-0 = <&pwr_key_l>;
64 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_POWER>;
66 debounce-interval = <100>;
72 compatible = "gpio-restart";
73 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&ap_warm_reset_h>;
79 emmc_pwrseq: emmc-pwrseq {
80 compatible = "mmc-pwrseq-emmc";
81 pinctrl-0 = <&emmc_reset>;
82 pinctrl-names = "default";
83 reset-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
86 io_domains: io-domains {
87 compatible = "rockchip,rk3288-io-voltage-domain";
88 rockchip,grf = <&grf>;
90 bb-supply = <&vcc33_io>;
91 dvp-supply = <&vcc_18>;
92 flash0-supply = <&vcc18_flashio>;
93 gpio1830-supply = <&vcc33_io>;
94 gpio30-supply = <&vcc33_io>;
95 lcdc-supply = <&vcc33_lcd>;
96 wifi-supply = <&vcc18_wl>;
99 sdio_pwrseq: sdio-pwrseq {
100 compatible = "mmc-pwrseq-simple";
101 clocks = <&rk808 RK808_CLKOUT1>;
102 clock-names = "ext_clock";
103 pinctrl-names = "default";
104 pinctrl-0 = <&bt_enable_l>, <&wifi_enable_h>;
107 * On the module itself this is one of these (depending
108 * on the actual card populated):
109 * - SDIO_RESET_L_WL_REG_ON
110 * - PDN (power down when low)
112 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
116 compatible = "regulator-fixed";
117 regulator-name = "vcc_5v";
120 regulator-min-microvolt = <5000000>;
121 regulator-max-microvolt = <5000000>;
124 vcc33_sys: vcc33-sys {
125 compatible = "regulator-fixed";
126 regulator-name = "vcc33_sys";
129 regulator-min-microvolt = <3300000>;
130 regulator-max-microvolt = <3300000>;
133 vcc50_hdmi: vcc50-hdmi {
134 compatible = "regulator-fixed";
135 regulator-name = "vcc50_hdmi";
138 vin-supply = <&vcc_5v>;
143 cpu0-supply = <&vdd_cpu>;
153 mmc-pwrseq = <&emmc_pwrseq>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
167 clock-frequency = <400000>;
168 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
169 i2c-scl-rising-time-ns = <100>; /* 45ns measured */
172 compatible = "rockchip,rk808";
174 clock-output-names = "xin32k", "wifibt_32kin";
175 interrupt-parent = <&gpio0>;
176 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pmic_int_l>;
179 rockchip,system-power-controller;
183 vcc1-supply = <&vcc33_sys>;
184 vcc2-supply = <&vcc33_sys>;
185 vcc3-supply = <&vcc33_sys>;
186 vcc4-supply = <&vcc33_sys>;
187 vcc6-supply = <&vcc_5v>;
188 vcc7-supply = <&vcc33_sys>;
189 vcc8-supply = <&vcc33_sys>;
190 vcc12-supply = <&vcc_18>;
191 vddio-supply = <&vcc33_io>;
195 regulator-name = "vdd_arm";
198 regulator-min-microvolt = <750000>;
199 regulator-max-microvolt = <1450000>;
200 regulator-ramp-delay = <6001>;
201 regulator-state-mem {
202 regulator-off-in-suspend;
207 regulator-name = "vdd_gpu";
210 regulator-min-microvolt = <800000>;
211 regulator-max-microvolt = <1250000>;
212 regulator-ramp-delay = <6001>;
213 regulator-state-mem {
214 regulator-on-in-suspend;
215 regulator-suspend-microvolt = <1000000>;
219 vcc135_ddr: DCDC_REG3 {
220 regulator-name = "vcc135_ddr";
223 regulator-state-mem {
224 regulator-on-in-suspend;
229 * vcc_18 has several aliases. (vcc18_flashio and
230 * vcc18_wl). We'll add those aliases here just to
231 * make it easier to follow the schematic. The signals
232 * are actually hooked together and only separated for
233 * power measurement purposes).
235 vcc18_wl: vcc18_flashio: vcc_18: DCDC_REG4 {
236 regulator-name = "vcc_18";
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <1800000>;
241 regulator-state-mem {
242 regulator-on-in-suspend;
243 regulator-suspend-microvolt = <1800000>;
248 * Note that both vcc33_io and vcc33_pmuio are always
249 * powered together. To simplify the logic in the dts
250 * we just refer to vcc33_io every time something is
251 * powered from vcc33_pmuio. In fact, on later boards
252 * (such as danger) they're the same net.
255 regulator-name = "vcc33_io";
258 regulator-min-microvolt = <3300000>;
259 regulator-max-microvolt = <3300000>;
260 regulator-state-mem {
261 regulator-on-in-suspend;
262 regulator-suspend-microvolt = <3300000>;
267 regulator-name = "vdd_10";
270 regulator-min-microvolt = <1000000>;
271 regulator-max-microvolt = <1000000>;
272 regulator-state-mem {
273 regulator-on-in-suspend;
274 regulator-suspend-microvolt = <1000000>;
278 vdd10_lcd_pwren_h: LDO_REG7 {
279 regulator-name = "vdd10_lcd_pwren_h";
282 regulator-min-microvolt = <2500000>;
283 regulator-max-microvolt = <2500000>;
284 regulator-state-mem {
285 regulator-off-in-suspend;
289 vcc33_lcd: SWITCH_REG1 {
290 regulator-name = "vcc33_lcd";
293 regulator-state-mem {
294 regulator-off-in-suspend;
304 clock-frequency = <400000>;
305 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
306 i2c-scl-rising-time-ns = <100>; /* 40ns measured */
309 compatible = "infineon,slb9645tt";
311 powered-while-suspended;
318 /* 100kHz since 4.7k resistors don't rise fast enough */
319 clock-frequency = <100000>;
320 i2c-scl-falling-time-ns = <50>; /* 10ns measured */
321 i2c-scl-rising-time-ns = <800>; /* 600ns measured */
327 clock-frequency = <400000>;
328 i2c-scl-falling-time-ns = <50>; /* 11ns measured */
329 i2c-scl-rising-time-ns = <300>; /* 225ns measured */
335 clock-frequency = <100000>;
336 i2c-scl-falling-time-ns = <300>;
337 i2c-scl-rising-time-ns = <1000>;
351 keep-power-in-suspend;
352 mmc-pwrseq = <&sdio_pwrseq>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
357 vmmc-supply = <&vcc33_sys>;
358 vqmmc-supply = <&vcc18_wl>;
364 rx-sample-delay-ns = <12>;
370 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
371 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
377 /* We need to go faster than 24MHz, so adjust clock parents / rates */
378 assigned-clocks = <&cru SCLK_UART0>;
379 assigned-clock-rates = <48000000>;
381 /* Pins don't include flow control by default; add that in */
382 pinctrl-names = "default";
383 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
401 needs-reset-on-resume;
411 assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
412 assigned-clock-parents = <&cru SCLK_OTGPHY0>;
429 pinctrl-names = "default", "sleep";
431 /* Common for sleep and wake, but no owners */
435 /* Common for sleep and wake, but no owners */
439 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
441 drive-strength = <8>;
444 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
446 drive-strength = <8>;
449 pcfg_output_high: pcfg-output-high {
453 pcfg_output_low: pcfg-output-low {
458 pwr_key_l: pwr-key-l {
459 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
464 emmc_reset: emmc-reset {
465 rockchip,pins = <2 9 RK_FUNC_GPIO &pcfg_pull_none>;
469 * We run eMMC at max speed; bump up drive strength.
470 * We also have external pulls, so disable the internal ones.
473 rockchip,pins = <3 18 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
477 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
480 emmc_bus8: emmc-bus8 {
481 rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
482 <3 1 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
483 <3 2 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
484 <3 3 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
485 <3 4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
486 <3 5 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
487 <3 6 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
488 <3 7 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
493 pmic_int_l: pmic-int-l {
494 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
499 ap_warm_reset_h: ap-warm-reset-h {
500 rockchip,pins = <RK_GPIO0 13 RK_FUNC_GPIO &pcfg_pull_none>;
505 rec_mode_l: rec-mode-l {
506 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
511 wifi_enable_h: wifienable-h {
512 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
515 /* NOTE: mislabelled on schematic; should be bt_enable_h */
516 bt_enable_l: bt-enable-l {
517 rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_none>;
521 * We run sdio0 at max speed; bump up drive strength.
522 * We also have external pulls, so disable the internal ones.
524 sdio0_bus4: sdio0-bus4 {
525 rockchip,pins = <4 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
526 <4 21 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
527 <4 22 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
528 <4 23 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
531 sdio0_cmd: sdio0-cmd {
532 rockchip,pins = <4 24 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
535 sdio0_clk: sdio0-clk {
536 rockchip,pins = <4 25 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
541 tpm_int_h: tpm-int-h {
542 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_none>;
547 * On Marvell-based hardware this is a no-connect. Make sure we enable
548 * the pullup so that the line doesn't float. The pullup shouldn't
549 * hurt on Broadcom-based hardware since the other side is actively
550 * driving this signal. As proof: we've already got a pullup on RX.
553 uart0_cts: uart0-cts {
554 rockchip,pins = <4 18 RK_FUNC_1 &pcfg_pull_up>;
560 rockchip,pins = <7 6 RK_FUNC_GPIO &pcfg_pull_none>;