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 0x0 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 mali-supply = <&vdd_gpu>;
165 ddc-i2c-bus = <&i2c5>;
170 clock-frequency = <400000>;
174 compatible = "rockchip,rk808";
176 interrupt-parent = <&gpio0>;
177 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
179 clock-output-names = "xin32k", "rk808-clkout2";
180 dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
181 <&gpio0 12 GPIO_ACTIVE_HIGH>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
184 rockchip,system-power-controller;
187 vcc1-supply = <&vcc_sys>;
188 vcc2-supply = <&vcc_sys>;
189 vcc3-supply = <&vcc_sys>;
190 vcc4-supply = <&vcc_sys>;
191 vcc6-supply = <&vcc_sys>;
192 vcc7-supply = <&vcc_sys>;
193 vcc8-supply = <&vcc_io>;
194 vcc9-supply = <&vcc_io>;
195 vcc10-supply = <&vcc_io>;
196 vcc11-supply = <&vcc_sys>;
197 vcc12-supply = <&vcc_io>;
198 vddio-supply = <&vcc_io>;
204 regulator-min-microvolt = <750000>;
205 regulator-max-microvolt = <1350000>;
206 regulator-name = "vdd_arm";
207 regulator-ramp-delay = <6000>;
208 regulator-state-mem {
209 regulator-off-in-suspend;
216 regulator-min-microvolt = <850000>;
217 regulator-max-microvolt = <1250000>;
218 regulator-name = "vdd_gpu";
219 regulator-ramp-delay = <6000>;
220 regulator-state-mem {
221 regulator-on-in-suspend;
222 regulator-suspend-microvolt = <1000000>;
229 regulator-name = "vcc_ddr";
230 regulator-state-mem {
231 regulator-on-in-suspend;
238 regulator-min-microvolt = <3300000>;
239 regulator-max-microvolt = <3300000>;
240 regulator-name = "vcc_io";
241 regulator-state-mem {
242 regulator-on-in-suspend;
243 regulator-suspend-microvolt = <3300000>;
247 vcc18_ldo1: LDO_REG1 {
250 regulator-min-microvolt = <1800000>;
251 regulator-max-microvolt = <1800000>;
252 regulator-name = "vcc18_ldo1";
253 regulator-state-mem {
254 regulator-on-in-suspend;
255 regulator-suspend-microvolt = <1800000>;
259 vcc33_mipi: LDO_REG2 {
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
264 regulator-name = "vcc33_mipi";
265 regulator-state-mem {
266 regulator-off-in-suspend;
273 regulator-min-microvolt = <1000000>;
274 regulator-max-microvolt = <1000000>;
275 regulator-name = "vdd_10";
276 regulator-state-mem {
277 regulator-on-in-suspend;
278 regulator-suspend-microvolt = <1000000>;
282 vcc18_codec: LDO_REG4 {
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
287 regulator-name = "vcc18_codec";
288 regulator-state-mem {
289 regulator-on-in-suspend;
290 regulator-suspend-microvolt = <1800000>;
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <3300000>;
297 regulator-name = "vccio_sd";
298 regulator-state-mem {
299 regulator-on-in-suspend;
300 regulator-suspend-microvolt = <3300000>;
304 vdd10_lcd: LDO_REG6 {
307 regulator-min-microvolt = <1000000>;
308 regulator-max-microvolt = <1000000>;
309 regulator-name = "vdd10_lcd";
310 regulator-state-mem {
311 regulator-on-in-suspend;
312 regulator-suspend-microvolt = <1000000>;
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
321 regulator-name = "vcc_18";
322 regulator-state-mem {
323 regulator-on-in-suspend;
324 regulator-suspend-microvolt = <1800000>;
328 vcc18_lcd: LDO_REG8 {
331 regulator-min-microvolt = <1800000>;
332 regulator-max-microvolt = <1800000>;
333 regulator-name = "vcc18_lcd";
334 regulator-state-mem {
335 regulator-on-in-suspend;
336 regulator-suspend-microvolt = <1800000>;
340 vcc33_sd: SWITCH_REG1 {
343 regulator-name = "vcc33_sd";
344 regulator-state-mem {
345 regulator-on-in-suspend;
349 vcc33_lan: SWITCH_REG2 {
352 regulator-name = "vcc33_lan";
353 regulator-state-mem {
354 regulator-on-in-suspend;
370 #sound-dai-cells = <0>;
377 sdcard-supply = <&vccio_sd>;
381 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
382 drive-strength = <8>;
385 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
387 drive-strength = <8>;
392 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
398 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
403 eth_phy_pwr: eth-phy-pwr {
404 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
410 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO \
415 rockchip,pins = <RK_GPIO0 11 RK_FUNC_GPIO \
420 rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO \
426 sdmmc_bus4: sdmmc-bus4 {
427 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
428 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
429 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
430 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
433 sdmmc_clk: sdmmc-clk {
434 rockchip,pins = <6 20 RK_FUNC_1 \
435 &pcfg_pull_none_drv_8ma>;
438 sdmmc_cmd: sdmmc-cmd {
439 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
442 sdmmc_pwr: sdmmc-pwr {
443 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
448 host_vbus_drv: host-vbus-drv {
449 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
453 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;
463 vref-supply = <&vcc18_ldo1>;
471 card-detect-delay = <200>;
472 disable-wp; /* wp not hooked up */
473 pinctrl-names = "default";
474 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
476 vmmc-supply = <&vcc33_sd>;
477 vqmmc-supply = <&vccio_sd>;
481 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
482 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */