1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
9 #include <dt-bindings/input/input.h>
12 model = "Rockchip RK3288 Tinker Board";
13 compatible = "asus,rk3288-tinker", "rockchip,rk3288";
16 stdout-path = "serial2:115200n8";
20 reg = <0x0 0x0 0x0 0x80000000>;
21 device_type = "memory";
24 ext_gmac: external-gmac-clock {
25 compatible = "fixed-clock";
27 clock-frequency = <125000000>;
28 clock-output-names = "ext_gmac";
32 compatible = "gpio-keys";
37 pinctrl-names = "default";
38 pinctrl-0 = <&pwrbtn>;
41 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_POWER>;
43 label = "GPIO Key Power";
44 linux,input-type = <1>;
46 debounce-interval = <100>;
51 compatible = "gpio-leds";
54 gpios=<&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
55 linux,default-trigger="mmc0";
59 gpios=<&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger="heartbeat";
64 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
65 linux,default-trigger = "default-on";
70 compatible = "simple-audio-card";
71 simple-audio-card,format = "i2s";
72 simple-audio-card,name = "rockchip,tinker-codec";
73 simple-audio-card,mclk-fs = <512>;
75 simple-audio-card,codec {
79 simple-audio-card,cpu {
84 vcc_sys: vsys-regulator {
85 compatible = "regulator-fixed";
86 regulator-name = "vcc_sys";
87 regulator-min-microvolt = <5000000>;
88 regulator-max-microvolt = <5000000>;
93 vcc_sd: sdmmc-regulator {
94 compatible = "regulator-fixed";
95 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&sdmmc_pwr>;
98 regulator-name = "vcc_sd";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
101 startup-delay-us = <100000>;
102 vin-supply = <&vcc_io>;
107 cpu0-supply = <&vdd_cpu>;
111 assigned-clocks = <&cru SCLK_MAC>;
112 assigned-clock-parents = <&ext_gmac>;
113 clock_in_out = "input";
115 phy-supply = <&vcc33_lan>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&rgmii_pins>;
118 snps,reset-gpio = <&gpio4 7 0>;
119 snps,reset-active-low;
120 snps,reset-delays-us = <0 10000 1000000>;
127 mali-supply = <&vdd_gpu>;
132 ddc-i2c-bus = <&i2c5>;
137 clock-frequency = <400000>;
141 compatible = "rockchip,rk808";
143 interrupt-parent = <&gpio0>;
144 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
146 clock-output-names = "xin32k", "rk808-clkout2";
147 dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
148 <&gpio0 12 GPIO_ACTIVE_HIGH>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
151 rockchip,system-power-controller;
154 vcc1-supply = <&vcc_sys>;
155 vcc2-supply = <&vcc_sys>;
156 vcc3-supply = <&vcc_sys>;
157 vcc4-supply = <&vcc_sys>;
158 vcc6-supply = <&vcc_sys>;
159 vcc7-supply = <&vcc_sys>;
160 vcc8-supply = <&vcc_io>;
161 vcc9-supply = <&vcc_io>;
162 vcc10-supply = <&vcc_io>;
163 vcc11-supply = <&vcc_sys>;
164 vcc12-supply = <&vcc_io>;
165 vddio-supply = <&vcc_io>;
171 regulator-min-microvolt = <750000>;
172 regulator-max-microvolt = <1350000>;
173 regulator-name = "vdd_arm";
174 regulator-ramp-delay = <6000>;
175 regulator-state-mem {
176 regulator-off-in-suspend;
183 regulator-min-microvolt = <850000>;
184 regulator-max-microvolt = <1250000>;
185 regulator-name = "vdd_gpu";
186 regulator-ramp-delay = <6000>;
187 regulator-state-mem {
188 regulator-on-in-suspend;
189 regulator-suspend-microvolt = <1000000>;
196 regulator-name = "vcc_ddr";
197 regulator-state-mem {
198 regulator-on-in-suspend;
205 regulator-min-microvolt = <3300000>;
206 regulator-max-microvolt = <3300000>;
207 regulator-name = "vcc_io";
208 regulator-state-mem {
209 regulator-on-in-suspend;
210 regulator-suspend-microvolt = <3300000>;
214 vcc18_ldo1: LDO_REG1 {
217 regulator-min-microvolt = <1800000>;
218 regulator-max-microvolt = <1800000>;
219 regulator-name = "vcc18_ldo1";
220 regulator-state-mem {
221 regulator-on-in-suspend;
222 regulator-suspend-microvolt = <1800000>;
226 vcc33_mipi: LDO_REG2 {
229 regulator-min-microvolt = <3300000>;
230 regulator-max-microvolt = <3300000>;
231 regulator-name = "vcc33_mipi";
232 regulator-state-mem {
233 regulator-off-in-suspend;
240 regulator-min-microvolt = <1000000>;
241 regulator-max-microvolt = <1000000>;
242 regulator-name = "vdd_10";
243 regulator-state-mem {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <1000000>;
249 vcc18_codec: LDO_REG4 {
252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <1800000>;
254 regulator-name = "vcc18_codec";
255 regulator-state-mem {
256 regulator-on-in-suspend;
257 regulator-suspend-microvolt = <1800000>;
262 regulator-min-microvolt = <1800000>;
263 regulator-max-microvolt = <3300000>;
264 regulator-name = "vccio_sd";
265 regulator-state-mem {
266 regulator-on-in-suspend;
267 regulator-suspend-microvolt = <3300000>;
271 vdd10_lcd: LDO_REG6 {
274 regulator-min-microvolt = <1000000>;
275 regulator-max-microvolt = <1000000>;
276 regulator-name = "vdd10_lcd";
277 regulator-state-mem {
278 regulator-on-in-suspend;
279 regulator-suspend-microvolt = <1000000>;
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <1800000>;
288 regulator-name = "vcc_18";
289 regulator-state-mem {
290 regulator-on-in-suspend;
291 regulator-suspend-microvolt = <1800000>;
295 vcc18_lcd: LDO_REG8 {
298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <1800000>;
300 regulator-name = "vcc18_lcd";
301 regulator-state-mem {
302 regulator-on-in-suspend;
303 regulator-suspend-microvolt = <1800000>;
307 vcc33_sd: SWITCH_REG1 {
310 regulator-name = "vcc33_sd";
311 regulator-state-mem {
312 regulator-on-in-suspend;
316 vcc33_lan: SWITCH_REG2 {
319 regulator-name = "vcc33_lan";
320 regulator-state-mem {
321 regulator-on-in-suspend;
337 #sound-dai-cells = <0>;
344 sdcard-supply = <&vccio_sd>;
348 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
349 drive-strength = <8>;
352 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
354 drive-strength = <8>;
359 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
365 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
370 eth_phy_pwr: eth-phy-pwr {
371 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
377 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO \
382 rockchip,pins = <RK_GPIO0 11 RK_FUNC_GPIO \
387 rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO \
393 sdmmc_bus4: sdmmc-bus4 {
394 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
395 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
396 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
397 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
400 sdmmc_clk: sdmmc-clk {
401 rockchip,pins = <6 20 RK_FUNC_1 \
402 &pcfg_pull_none_drv_8ma>;
405 sdmmc_cmd: sdmmc-cmd {
406 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
409 sdmmc_pwr: sdmmc-pwr {
410 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
415 host_vbus_drv: host-vbus-drv {
416 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
420 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;
430 vref-supply = <&vcc18_ldo1>;
438 card-detect-delay = <200>;
439 disable-wp; /* wp not hooked up */
440 pinctrl-names = "default";
441 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
443 vmmc-supply = <&vcc33_sd>;
444 vqmmc-supply = <&vccio_sd>;
448 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
449 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */