2 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
45 #include "rk3288.dtsi"
46 #include <dt-bindings/input/input.h>
49 model = "Rockchip RK3288 Tinker Board";
50 compatible = "asus,rk3288-tinker", "rockchip,rk3288";
53 stdout-path = "serial2:115200n8";
57 reg = <0x0 0x0 0x0 0x80000000>;
58 device_type = "memory";
61 ext_gmac: external-gmac-clock {
62 compatible = "fixed-clock";
64 clock-frequency = <125000000>;
65 clock-output-names = "ext_gmac";
69 compatible = "gpio-keys";
74 pinctrl-names = "default";
75 pinctrl-0 = <&pwrbtn>;
78 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_POWER>;
80 label = "GPIO Key Power";
81 linux,input-type = <1>;
83 debounce-interval = <100>;
88 compatible = "gpio-leds";
91 gpios=<&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
92 linux,default-trigger="mmc0";
96 gpios=<&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
97 linux,default-trigger="heartbeat";
101 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
102 linux,default-trigger = "default-on";
107 compatible = "simple-audio-card";
108 simple-audio-card,format = "i2s";
109 simple-audio-card,name = "rockchip,tinker-codec";
110 simple-audio-card,mclk-fs = <512>;
112 simple-audio-card,codec {
116 simple-audio-card,cpu {
121 vcc_sys: vsys-regulator {
122 compatible = "regulator-fixed";
123 regulator-name = "vcc_sys";
124 regulator-min-microvolt = <5000000>;
125 regulator-max-microvolt = <5000000>;
130 vcc_sd: sdmmc-regulator {
131 compatible = "regulator-fixed";
132 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&sdmmc_pwr>;
135 regulator-name = "vcc_sd";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 startup-delay-us = <100000>;
139 vin-supply = <&vcc_io>;
144 cpu0-supply = <&vdd_cpu>;
148 assigned-clocks = <&cru SCLK_MAC>;
149 assigned-clock-parents = <&ext_gmac>;
150 clock_in_out = "input";
152 phy-supply = <&vcc33_lan>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&rgmii_pins>;
155 snps,reset-gpio = <&gpio4 7 0>;
156 snps,reset-active-low;
157 snps,reset-delays-us = <0 10000 1000000>;
164 mali-supply = <&vdd_gpu>;
169 ddc-i2c-bus = <&i2c5>;
174 clock-frequency = <400000>;
178 compatible = "rockchip,rk808";
180 interrupt-parent = <&gpio0>;
181 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
183 clock-output-names = "xin32k", "rk808-clkout2";
184 dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
185 <&gpio0 12 GPIO_ACTIVE_HIGH>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
188 rockchip,system-power-controller;
191 vcc1-supply = <&vcc_sys>;
192 vcc2-supply = <&vcc_sys>;
193 vcc3-supply = <&vcc_sys>;
194 vcc4-supply = <&vcc_sys>;
195 vcc6-supply = <&vcc_sys>;
196 vcc7-supply = <&vcc_sys>;
197 vcc8-supply = <&vcc_io>;
198 vcc9-supply = <&vcc_io>;
199 vcc10-supply = <&vcc_io>;
200 vcc11-supply = <&vcc_sys>;
201 vcc12-supply = <&vcc_io>;
202 vddio-supply = <&vcc_io>;
208 regulator-min-microvolt = <750000>;
209 regulator-max-microvolt = <1350000>;
210 regulator-name = "vdd_arm";
211 regulator-ramp-delay = <6000>;
212 regulator-state-mem {
213 regulator-off-in-suspend;
220 regulator-min-microvolt = <850000>;
221 regulator-max-microvolt = <1250000>;
222 regulator-name = "vdd_gpu";
223 regulator-ramp-delay = <6000>;
224 regulator-state-mem {
225 regulator-on-in-suspend;
226 regulator-suspend-microvolt = <1000000>;
233 regulator-name = "vcc_ddr";
234 regulator-state-mem {
235 regulator-on-in-suspend;
242 regulator-min-microvolt = <3300000>;
243 regulator-max-microvolt = <3300000>;
244 regulator-name = "vcc_io";
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <3300000>;
251 vcc18_ldo1: LDO_REG1 {
254 regulator-min-microvolt = <1800000>;
255 regulator-max-microvolt = <1800000>;
256 regulator-name = "vcc18_ldo1";
257 regulator-state-mem {
258 regulator-on-in-suspend;
259 regulator-suspend-microvolt = <1800000>;
263 vcc33_mipi: LDO_REG2 {
266 regulator-min-microvolt = <3300000>;
267 regulator-max-microvolt = <3300000>;
268 regulator-name = "vcc33_mipi";
269 regulator-state-mem {
270 regulator-off-in-suspend;
277 regulator-min-microvolt = <1000000>;
278 regulator-max-microvolt = <1000000>;
279 regulator-name = "vdd_10";
280 regulator-state-mem {
281 regulator-on-in-suspend;
282 regulator-suspend-microvolt = <1000000>;
286 vcc18_codec: LDO_REG4 {
289 regulator-min-microvolt = <1800000>;
290 regulator-max-microvolt = <1800000>;
291 regulator-name = "vcc18_codec";
292 regulator-state-mem {
293 regulator-on-in-suspend;
294 regulator-suspend-microvolt = <1800000>;
299 regulator-min-microvolt = <1800000>;
300 regulator-max-microvolt = <3300000>;
301 regulator-name = "vccio_sd";
302 regulator-state-mem {
303 regulator-on-in-suspend;
304 regulator-suspend-microvolt = <3300000>;
308 vdd10_lcd: LDO_REG6 {
311 regulator-min-microvolt = <1000000>;
312 regulator-max-microvolt = <1000000>;
313 regulator-name = "vdd10_lcd";
314 regulator-state-mem {
315 regulator-on-in-suspend;
316 regulator-suspend-microvolt = <1000000>;
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
325 regulator-name = "vcc_18";
326 regulator-state-mem {
327 regulator-on-in-suspend;
328 regulator-suspend-microvolt = <1800000>;
332 vcc18_lcd: LDO_REG8 {
335 regulator-min-microvolt = <1800000>;
336 regulator-max-microvolt = <1800000>;
337 regulator-name = "vcc18_lcd";
338 regulator-state-mem {
339 regulator-on-in-suspend;
340 regulator-suspend-microvolt = <1800000>;
344 vcc33_sd: SWITCH_REG1 {
347 regulator-name = "vcc33_sd";
348 regulator-state-mem {
349 regulator-on-in-suspend;
353 vcc33_lan: SWITCH_REG2 {
356 regulator-name = "vcc33_lan";
357 regulator-state-mem {
358 regulator-on-in-suspend;
374 #sound-dai-cells = <0>;
381 sdcard-supply = <&vccio_sd>;
385 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
386 drive-strength = <8>;
389 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
391 drive-strength = <8>;
396 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
402 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
407 eth_phy_pwr: eth-phy-pwr {
408 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
414 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO \
419 rockchip,pins = <RK_GPIO0 11 RK_FUNC_GPIO \
424 rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO \
430 sdmmc_bus4: sdmmc-bus4 {
431 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
432 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
433 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
434 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
437 sdmmc_clk: sdmmc-clk {
438 rockchip,pins = <6 20 RK_FUNC_1 \
439 &pcfg_pull_none_drv_8ma>;
442 sdmmc_cmd: sdmmc-cmd {
443 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
446 sdmmc_pwr: sdmmc-pwr {
447 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
452 host_vbus_drv: host-vbus-drv {
453 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
457 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;
467 vref-supply = <&vcc18_ldo1>;
475 card-detect-delay = <200>;
476 disable-wp; /* wp not hooked up */
477 pinctrl-names = "default";
478 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
480 vmmc-supply = <&vcc33_sd>;
481 vqmmc-supply = <&vccio_sd>;
485 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
486 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */