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 reg = <0x0 0x80000000>;
54 device_type = "memory";
57 ext_gmac: external-gmac-clock {
58 compatible = "fixed-clock";
60 clock-frequency = <125000000>;
61 clock-output-names = "ext_gmac";
65 compatible = "gpio-keys";
70 pinctrl-names = "default";
71 pinctrl-0 = <&pwrbtn>;
74 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_POWER>;
76 label = "GPIO Key Power";
77 linux,input-type = <1>;
79 debounce-interval = <100>;
84 compatible = "gpio-leds";
87 gpios=<&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
88 linux,default-trigger="mmc0";
92 gpios=<&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
93 linux,default-trigger="heartbeat";
97 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
98 linux,default-trigger = "default-on";
103 compatible = "simple-audio-card";
104 simple-audio-card,format = "i2s";
105 simple-audio-card,name = "rockchip,tinker-codec";
106 simple-audio-card,mclk-fs = <512>;
108 simple-audio-card,codec {
112 simple-audio-card,cpu {
117 vcc_sys: vsys-regulator {
118 compatible = "regulator-fixed";
119 regulator-name = "vcc_sys";
120 regulator-min-microvolt = <5000000>;
121 regulator-max-microvolt = <5000000>;
126 vcc_sd: sdmmc-regulator {
127 compatible = "regulator-fixed";
128 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&sdmmc_pwr>;
131 regulator-name = "vcc_sd";
132 regulator-min-microvolt = <3300000>;
133 regulator-max-microvolt = <3300000>;
134 startup-delay-us = <100000>;
135 vin-supply = <&vcc_io>;
140 cpu0-supply = <&vdd_cpu>;
144 assigned-clocks = <&cru SCLK_MAC>;
145 assigned-clock-parents = <&ext_gmac>;
146 clock_in_out = "input";
148 phy-supply = <&vcc33_lan>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&rgmii_pins>;
151 snps,reset-gpio = <&gpio4 7 0>;
152 snps,reset-active-low;
153 snps,reset-delays-us = <0 10000 1000000>;
160 ddc-i2c-bus = <&i2c5>;
165 clock-frequency = <400000>;
169 compatible = "rockchip,rk808";
171 interrupt-parent = <&gpio0>;
172 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
174 clock-output-names = "xin32k", "rk808-clkout2";
175 dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
176 <&gpio0 12 GPIO_ACTIVE_HIGH>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
179 rockchip,system-power-controller;
182 vcc1-supply = <&vcc_sys>;
183 vcc2-supply = <&vcc_sys>;
184 vcc3-supply = <&vcc_sys>;
185 vcc4-supply = <&vcc_sys>;
186 vcc6-supply = <&vcc_sys>;
187 vcc7-supply = <&vcc_sys>;
188 vcc8-supply = <&vcc_io>;
189 vcc9-supply = <&vcc_io>;
190 vcc10-supply = <&vcc_io>;
191 vcc11-supply = <&vcc_sys>;
192 vcc12-supply = <&vcc_io>;
193 vddio-supply = <&vcc_io>;
199 regulator-min-microvolt = <750000>;
200 regulator-max-microvolt = <1350000>;
201 regulator-name = "vdd_arm";
202 regulator-ramp-delay = <6000>;
203 regulator-state-mem {
204 regulator-off-in-suspend;
211 regulator-min-microvolt = <850000>;
212 regulator-max-microvolt = <1250000>;
213 regulator-name = "vdd_gpu";
214 regulator-ramp-delay = <6000>;
215 regulator-state-mem {
216 regulator-on-in-suspend;
217 regulator-suspend-microvolt = <1000000>;
224 regulator-name = "vcc_ddr";
225 regulator-state-mem {
226 regulator-on-in-suspend;
233 regulator-min-microvolt = <3300000>;
234 regulator-max-microvolt = <3300000>;
235 regulator-name = "vcc_io";
236 regulator-state-mem {
237 regulator-on-in-suspend;
238 regulator-suspend-microvolt = <3300000>;
242 vcc18_ldo1: LDO_REG1 {
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
247 regulator-name = "vcc18_ldo1";
248 regulator-state-mem {
249 regulator-on-in-suspend;
250 regulator-suspend-microvolt = <1800000>;
254 vcc33_mipi: LDO_REG2 {
257 regulator-min-microvolt = <3300000>;
258 regulator-max-microvolt = <3300000>;
259 regulator-name = "vcc33_mipi";
260 regulator-state-mem {
261 regulator-off-in-suspend;
268 regulator-min-microvolt = <1000000>;
269 regulator-max-microvolt = <1000000>;
270 regulator-name = "vdd_10";
271 regulator-state-mem {
272 regulator-on-in-suspend;
273 regulator-suspend-microvolt = <1000000>;
277 vcc18_codec: LDO_REG4 {
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1800000>;
282 regulator-name = "vcc18_codec";
283 regulator-state-mem {
284 regulator-on-in-suspend;
285 regulator-suspend-microvolt = <1800000>;
290 regulator-min-microvolt = <1800000>;
291 regulator-max-microvolt = <3300000>;
292 regulator-name = "vccio_sd";
293 regulator-state-mem {
294 regulator-on-in-suspend;
295 regulator-suspend-microvolt = <3300000>;
299 vdd10_lcd: LDO_REG6 {
302 regulator-min-microvolt = <1000000>;
303 regulator-max-microvolt = <1000000>;
304 regulator-name = "vdd10_lcd";
305 regulator-state-mem {
306 regulator-on-in-suspend;
307 regulator-suspend-microvolt = <1000000>;
314 regulator-min-microvolt = <1800000>;
315 regulator-max-microvolt = <1800000>;
316 regulator-name = "vcc_18";
317 regulator-state-mem {
318 regulator-on-in-suspend;
319 regulator-suspend-microvolt = <1800000>;
323 vcc18_lcd: LDO_REG8 {
326 regulator-min-microvolt = <1800000>;
327 regulator-max-microvolt = <1800000>;
328 regulator-name = "vcc18_lcd";
329 regulator-state-mem {
330 regulator-on-in-suspend;
331 regulator-suspend-microvolt = <1800000>;
335 vcc33_sd: SWITCH_REG1 {
338 regulator-name = "vcc33_sd";
339 regulator-state-mem {
340 regulator-on-in-suspend;
344 vcc33_lan: SWITCH_REG2 {
347 regulator-name = "vcc33_lan";
348 regulator-state-mem {
349 regulator-on-in-suspend;
365 #sound-dai-cells = <0>;
372 sdcard-supply = <&vccio_sd>;
376 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
377 drive-strength = <8>;
380 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
382 drive-strength = <8>;
387 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
393 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
398 eth_phy_pwr: eth-phy-pwr {
399 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
405 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO \
410 rockchip,pins = <RK_GPIO0 11 RK_FUNC_GPIO \
415 rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO \
421 sdmmc_bus4: sdmmc-bus4 {
422 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
423 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
424 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
425 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
428 sdmmc_clk: sdmmc-clk {
429 rockchip,pins = <6 20 RK_FUNC_1 \
430 &pcfg_pull_none_drv_8ma>;
433 sdmmc_cmd: sdmmc-cmd {
434 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
437 sdmmc_pwr: sdmmc-pwr {
438 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
443 host_vbus_drv: host-vbus-drv {
444 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
448 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;
458 vref-supply = <&vcc18_ldo1>;
466 card-detect-delay = <200>;
467 disable-wp; /* wp not hooked up */
469 pinctrl-names = "default";
470 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
472 vmmc-supply = <&vcc33_sd>;
473 vqmmc-supply = <&vccio_sd>;
477 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
478 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */