1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
7 #include <dt-bindings/input/input.h>
11 stdout-path = "serial2:115200n8";
15 reg = <0x0 0x0 0x0 0x80000000>;
16 device_type = "memory";
19 ext_gmac: external-gmac-clock {
20 compatible = "fixed-clock";
22 clock-frequency = <125000000>;
23 clock-output-names = "ext_gmac";
27 compatible = "gpio-keys";
32 pinctrl-names = "default";
33 pinctrl-0 = <&pwrbtn>;
36 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_POWER>;
38 label = "GPIO Key Power";
39 linux,input-type = <1>;
41 debounce-interval = <100>;
46 compatible = "gpio-leds";
49 gpios=<&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger="mmc0";
54 gpios=<&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
55 linux,default-trigger="heartbeat";
59 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "default-on";
65 compatible = "simple-audio-card";
66 simple-audio-card,format = "i2s";
67 simple-audio-card,name = "rockchip,tinker-codec";
68 simple-audio-card,mclk-fs = <512>;
70 simple-audio-card,codec {
74 simple-audio-card,cpu {
79 vcc_sys: vsys-regulator {
80 compatible = "regulator-fixed";
81 regulator-name = "vcc_sys";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
88 vcc_sd: sdmmc-regulator {
89 compatible = "regulator-fixed";
90 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&sdmmc_pwr>;
93 regulator-name = "vcc_sd";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96 startup-delay-us = <100000>;
97 vin-supply = <&vcc_io>;
102 cpu0-supply = <&vdd_cpu>;
106 assigned-clocks = <&cru SCLK_MAC>;
107 assigned-clock-parents = <&ext_gmac>;
108 clock_in_out = "input";
110 phy-supply = <&vcc33_lan>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&rgmii_pins>;
113 snps,reset-gpio = <&gpio4 7 0>;
114 snps,reset-active-low;
115 snps,reset-delays-us = <0 10000 1000000>;
122 mali-supply = <&vdd_gpu>;
127 ddc-i2c-bus = <&i2c5>;
132 clock-frequency = <400000>;
136 compatible = "rockchip,rk808";
138 interrupt-parent = <&gpio0>;
139 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
141 clock-output-names = "xin32k", "rk808-clkout2";
142 dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
143 <&gpio0 12 GPIO_ACTIVE_HIGH>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
146 rockchip,system-power-controller;
149 vcc1-supply = <&vcc_sys>;
150 vcc2-supply = <&vcc_sys>;
151 vcc3-supply = <&vcc_sys>;
152 vcc4-supply = <&vcc_sys>;
153 vcc6-supply = <&vcc_sys>;
154 vcc7-supply = <&vcc_sys>;
155 vcc8-supply = <&vcc_io>;
156 vcc9-supply = <&vcc_io>;
157 vcc10-supply = <&vcc_io>;
158 vcc11-supply = <&vcc_sys>;
159 vcc12-supply = <&vcc_io>;
160 vddio-supply = <&vcc_io>;
166 regulator-min-microvolt = <750000>;
167 regulator-max-microvolt = <1350000>;
168 regulator-name = "vdd_arm";
169 regulator-ramp-delay = <6000>;
170 regulator-state-mem {
171 regulator-off-in-suspend;
178 regulator-min-microvolt = <850000>;
179 regulator-max-microvolt = <1250000>;
180 regulator-name = "vdd_gpu";
181 regulator-ramp-delay = <6000>;
182 regulator-state-mem {
183 regulator-on-in-suspend;
184 regulator-suspend-microvolt = <1000000>;
191 regulator-name = "vcc_ddr";
192 regulator-state-mem {
193 regulator-on-in-suspend;
200 regulator-min-microvolt = <3300000>;
201 regulator-max-microvolt = <3300000>;
202 regulator-name = "vcc_io";
203 regulator-state-mem {
204 regulator-on-in-suspend;
205 regulator-suspend-microvolt = <3300000>;
209 vcc18_ldo1: LDO_REG1 {
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <1800000>;
214 regulator-name = "vcc18_ldo1";
215 regulator-state-mem {
216 regulator-on-in-suspend;
217 regulator-suspend-microvolt = <1800000>;
221 vcc33_mipi: LDO_REG2 {
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
226 regulator-name = "vcc33_mipi";
227 regulator-state-mem {
228 regulator-off-in-suspend;
235 regulator-min-microvolt = <1000000>;
236 regulator-max-microvolt = <1000000>;
237 regulator-name = "vdd_10";
238 regulator-state-mem {
239 regulator-on-in-suspend;
240 regulator-suspend-microvolt = <1000000>;
244 vcc18_codec: LDO_REG4 {
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
249 regulator-name = "vcc18_codec";
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <1800000>;
257 regulator-min-microvolt = <1800000>;
258 regulator-max-microvolt = <3300000>;
259 regulator-name = "vccio_sd";
260 regulator-state-mem {
261 regulator-on-in-suspend;
262 regulator-suspend-microvolt = <3300000>;
266 vdd10_lcd: LDO_REG6 {
269 regulator-min-microvolt = <1000000>;
270 regulator-max-microvolt = <1000000>;
271 regulator-name = "vdd10_lcd";
272 regulator-state-mem {
273 regulator-on-in-suspend;
274 regulator-suspend-microvolt = <1000000>;
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <1800000>;
283 regulator-name = "vcc_18";
284 regulator-state-mem {
285 regulator-on-in-suspend;
286 regulator-suspend-microvolt = <1800000>;
290 vcc18_lcd: LDO_REG8 {
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
295 regulator-name = "vcc18_lcd";
296 regulator-state-mem {
297 regulator-on-in-suspend;
298 regulator-suspend-microvolt = <1800000>;
302 vcc33_sd: SWITCH_REG1 {
305 regulator-name = "vcc33_sd";
306 regulator-state-mem {
307 regulator-on-in-suspend;
311 vcc33_lan: SWITCH_REG2 {
314 regulator-name = "vcc33_lan";
315 regulator-state-mem {
316 regulator-on-in-suspend;
332 #sound-dai-cells = <0>;
339 sdcard-supply = <&vccio_sd>;
343 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
344 drive-strength = <8>;
347 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
349 drive-strength = <8>;
354 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
360 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
365 eth_phy_pwr: eth-phy-pwr {
366 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
372 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO \
377 rockchip,pins = <RK_GPIO0 11 RK_FUNC_GPIO \
382 rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO \
388 sdmmc_bus4: sdmmc-bus4 {
389 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
390 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
391 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
392 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
395 sdmmc_clk: sdmmc-clk {
396 rockchip,pins = <6 20 RK_FUNC_1 \
397 &pcfg_pull_none_drv_8ma>;
400 sdmmc_cmd: sdmmc-cmd {
401 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
404 sdmmc_pwr: sdmmc-pwr {
405 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
410 host_vbus_drv: host-vbus-drv {
411 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
415 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;
425 vref-supply = <&vcc18_ldo1>;
433 card-detect-delay = <200>;
434 disable-wp; /* wp not hooked up */
435 pinctrl-names = "default";
436 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
438 vmmc-supply = <&vcc33_sd>;
439 vqmmc-supply = <&vccio_sd>;
443 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
444 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */