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 * The default coreboot on veyron devices ignores memory@0 nodes
52 * and would instead create another memory node.
55 device_type = "memory";
56 reg = <0x0 0x0 0x0 0x80000000>;
59 gpio_keys: gpio-keys {
60 compatible = "gpio-keys";
64 pinctrl-names = "default";
65 pinctrl-0 = <&pwr_key_l>;
68 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_POWER>;
70 debounce-interval = <100>;
76 compatible = "gpio-restart";
77 gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&ap_warm_reset_h>;
83 emmc_pwrseq: emmc-pwrseq {
84 compatible = "mmc-pwrseq-emmc";
85 pinctrl-0 = <&emmc_reset>;
86 pinctrl-names = "default";
87 reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
90 sdio_pwrseq: sdio-pwrseq {
91 compatible = "mmc-pwrseq-simple";
92 clocks = <&rk808 RK808_CLKOUT1>;
93 clock-names = "ext_clock";
94 pinctrl-names = "default";
95 pinctrl-0 = <&bt_enable_l>, <&wifi_enable_h>;
98 * On the module itself this is one of these (depending
99 * on the actual card populated):
100 * - SDIO_RESET_L_WL_REG_ON
101 * - PDN (power down when low)
103 reset-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>;
107 compatible = "regulator-fixed";
108 regulator-name = "vcc_5v";
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
115 vcc33_sys: vcc33-sys {
116 compatible = "regulator-fixed";
117 regulator-name = "vcc33_sys";
120 regulator-min-microvolt = <3300000>;
121 regulator-max-microvolt = <3300000>;
124 vcc50_hdmi: vcc50-hdmi {
125 compatible = "regulator-fixed";
126 regulator-name = "vcc50_hdmi";
129 vin-supply = <&vcc_5v>;
134 cpu0-supply = <&vdd_cpu>;
158 rockchip,default-sample-phase = <158>;
161 mmc-pwrseq = <&emmc_pwrseq>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
168 mali-supply = <&vdd_gpu>;
173 ddc-i2c-bus = <&i2c5>;
180 clock-frequency = <400000>;
181 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
182 i2c-scl-rising-time-ns = <100>; /* 45ns measured */
185 compatible = "rockchip,rk808";
187 clock-output-names = "xin32k", "wifibt_32kin";
188 interrupt-parent = <&gpio0>;
189 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&pmic_int_l>;
192 rockchip,system-power-controller;
196 vcc1-supply = <&vcc33_sys>;
197 vcc2-supply = <&vcc33_sys>;
198 vcc3-supply = <&vcc33_sys>;
199 vcc4-supply = <&vcc33_sys>;
200 vcc6-supply = <&vcc_5v>;
201 vcc7-supply = <&vcc33_sys>;
202 vcc8-supply = <&vcc33_sys>;
203 vcc12-supply = <&vcc_18>;
204 vddio-supply = <&vcc33_io>;
208 regulator-name = "vdd_arm";
211 regulator-min-microvolt = <750000>;
212 regulator-max-microvolt = <1450000>;
213 regulator-ramp-delay = <6001>;
214 regulator-state-mem {
215 regulator-off-in-suspend;
220 regulator-name = "vdd_gpu";
223 regulator-min-microvolt = <800000>;
224 regulator-max-microvolt = <1250000>;
225 regulator-ramp-delay = <6001>;
226 regulator-state-mem {
227 regulator-on-in-suspend;
228 regulator-suspend-microvolt = <1000000>;
232 vcc135_ddr: DCDC_REG3 {
233 regulator-name = "vcc135_ddr";
236 regulator-state-mem {
237 regulator-on-in-suspend;
242 * vcc_18 has several aliases. (vcc18_flashio and
243 * vcc18_wl). We'll add those aliases here just to
244 * make it easier to follow the schematic. The signals
245 * are actually hooked together and only separated for
246 * power measurement purposes).
248 vcc18_wl: vcc18_flashio: vcc_18: DCDC_REG4 {
249 regulator-name = "vcc_18";
252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <1800000>;
254 regulator-state-mem {
255 regulator-on-in-suspend;
256 regulator-suspend-microvolt = <1800000>;
261 * Note that both vcc33_io and vcc33_pmuio are always
262 * powered together. To simplify the logic in the dts
263 * we just refer to vcc33_io every time something is
264 * powered from vcc33_pmuio. In fact, on later boards
265 * (such as danger) they're the same net.
268 regulator-name = "vcc33_io";
271 regulator-min-microvolt = <3300000>;
272 regulator-max-microvolt = <3300000>;
273 regulator-state-mem {
274 regulator-on-in-suspend;
275 regulator-suspend-microvolt = <3300000>;
280 regulator-name = "vdd_10";
283 regulator-min-microvolt = <1000000>;
284 regulator-max-microvolt = <1000000>;
285 regulator-state-mem {
286 regulator-on-in-suspend;
287 regulator-suspend-microvolt = <1000000>;
291 vdd10_lcd_pwren_h: LDO_REG7 {
292 regulator-name = "vdd10_lcd_pwren_h";
295 regulator-min-microvolt = <2500000>;
296 regulator-max-microvolt = <2500000>;
297 regulator-state-mem {
298 regulator-off-in-suspend;
302 vcc33_lcd: SWITCH_REG1 {
303 regulator-name = "vcc33_lcd";
306 regulator-state-mem {
307 regulator-off-in-suspend;
317 clock-frequency = <400000>;
318 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
319 i2c-scl-rising-time-ns = <100>; /* 40ns measured */
322 compatible = "infineon,slb9645tt";
324 powered-while-suspended;
331 /* 100kHz since 4.7k resistors don't rise fast enough */
332 clock-frequency = <100000>;
333 i2c-scl-falling-time-ns = <50>; /* 10ns measured */
334 i2c-scl-rising-time-ns = <800>; /* 600ns measured */
340 clock-frequency = <400000>;
341 i2c-scl-falling-time-ns = <50>; /* 11ns measured */
342 i2c-scl-rising-time-ns = <300>; /* 225ns measured */
348 clock-frequency = <100000>;
349 i2c-scl-falling-time-ns = <300>;
350 i2c-scl-rising-time-ns = <1000>;
356 bb-supply = <&vcc33_io>;
357 dvp-supply = <&vcc_18>;
358 flash0-supply = <&vcc18_flashio>;
359 gpio1830-supply = <&vcc33_io>;
360 gpio30-supply = <&vcc33_io>;
361 lcdc-supply = <&vcc33_lcd>;
362 wifi-supply = <&vcc18_wl>;
375 keep-power-in-suspend;
376 mmc-pwrseq = <&sdio_pwrseq>;
378 pinctrl-names = "default";
379 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
384 vmmc-supply = <&vcc33_sys>;
385 vqmmc-supply = <&vcc18_wl>;
391 rx-sample-delay-ns = <12>;
394 compatible = "jedec,spi-nor";
395 spi-max-frequency = <50000000>;
403 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
404 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
410 /* We need to go faster than 24MHz, so adjust clock parents / rates */
411 assigned-clocks = <&cru SCLK_UART0>;
412 assigned-clock-rates = <48000000>;
414 /* Pins don't include flow control by default; add that in */
415 pinctrl-names = "default";
416 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
434 needs-reset-on-resume;
444 assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
445 assigned-clock-parents = <&usbphy0>;
462 pinctrl-names = "default", "sleep";
464 /* Common for sleep and wake, but no owners */
468 /* Common for sleep and wake, but no owners */
472 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
474 drive-strength = <8>;
477 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
479 drive-strength = <8>;
482 pcfg_output_high: pcfg-output-high {
486 pcfg_output_low: pcfg-output-low {
491 pwr_key_l: pwr-key-l {
492 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
497 emmc_reset: emmc-reset {
498 rockchip,pins = <2 9 RK_FUNC_GPIO &pcfg_pull_none>;
502 * We run eMMC at max speed; bump up drive strength.
503 * We also have external pulls, so disable the internal ones.
506 rockchip,pins = <3 18 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
510 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
513 emmc_bus8: emmc-bus8 {
514 rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
515 <3 1 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
516 <3 2 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
517 <3 3 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
518 <3 4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
519 <3 5 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
520 <3 6 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
521 <3 7 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
526 pmic_int_l: pmic-int-l {
527 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
532 ap_warm_reset_h: ap-warm-reset-h {
533 rockchip,pins = <RK_GPIO0 13 RK_FUNC_GPIO &pcfg_pull_none>;
538 rec_mode_l: rec-mode-l {
539 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
544 wifi_enable_h: wifienable-h {
545 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
548 /* NOTE: mislabelled on schematic; should be bt_enable_h */
549 bt_enable_l: bt-enable-l {
550 rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_none>;
554 * We run sdio0 at max speed; bump up drive strength.
555 * We also have external pulls, so disable the internal ones.
557 sdio0_bus4: sdio0-bus4 {
558 rockchip,pins = <4 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
559 <4 21 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
560 <4 22 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
561 <4 23 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
564 sdio0_cmd: sdio0-cmd {
565 rockchip,pins = <4 24 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
568 sdio0_clk: sdio0-clk {
569 rockchip,pins = <4 25 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
574 tpm_int_h: tpm-int-h {
575 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_none>;
581 rockchip,pins = <7 6 RK_FUNC_GPIO &pcfg_pull_none>;