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>
8 #include <dt-bindings/clock/rockchip,rk808.h>
12 stdout-path = "serial2:115200n8";
16 reg = <0x0 0x0 0x0 0x80000000>;
17 device_type = "memory";
20 ext_gmac: external-gmac-clock {
21 compatible = "fixed-clock";
23 clock-frequency = <125000000>;
24 clock-output-names = "ext_gmac";
28 compatible = "gpio-keys";
33 pinctrl-names = "default";
34 pinctrl-0 = <&pwrbtn>;
37 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_POWER>;
39 label = "GPIO Key Power";
40 linux,input-type = <1>;
42 debounce-interval = <100>;
47 compatible = "gpio-leds";
50 gpios = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
51 linux,default-trigger = "mmc0";
55 gpios = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
56 linux,default-trigger = "heartbeat";
60 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "default-on";
65 sdio_pwrseq: sdio-pwrseq {
66 compatible = "mmc-pwrseq-simple";
67 clocks = <&rk808 RK808_CLKOUT1>;
68 clock-names = "ext_clock";
69 pinctrl-names = "default";
70 pinctrl-0 = <&wifi_enable>;
71 reset-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_LOW>,
72 <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>;
76 compatible = "simple-audio-card";
77 simple-audio-card,format = "i2s";
78 simple-audio-card,name = "rockchip,tinker-codec";
79 simple-audio-card,mclk-fs = <512>;
81 simple-audio-card,codec {
85 simple-audio-card,cpu {
90 vcc_sys: vsys-regulator {
91 compatible = "regulator-fixed";
92 regulator-name = "vcc_sys";
93 regulator-min-microvolt = <5000000>;
94 regulator-max-microvolt = <5000000>;
99 vcc_sd: sdmmc-regulator {
100 compatible = "regulator-fixed";
101 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&sdmmc_pwr>;
104 regulator-name = "vcc_sd";
105 regulator-min-microvolt = <3300000>;
106 regulator-max-microvolt = <3300000>;
107 startup-delay-us = <100000>;
108 vin-supply = <&vcc_io>;
113 cpu0-supply = <&vdd_cpu>;
117 assigned-clocks = <&cru SCLK_MAC>;
118 assigned-clock-parents = <&ext_gmac>;
119 clock_in_out = "input";
121 phy-supply = <&vcc33_lan>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&rgmii_pins>;
124 snps,reset-gpio = <&gpio4 7 0>;
125 snps,reset-active-low;
126 snps,reset-delays-us = <0 10000 1000000>;
133 mali-supply = <&vdd_gpu>;
138 ddc-i2c-bus = <&i2c5>;
143 clock-frequency = <400000>;
147 compatible = "rockchip,rk808";
149 interrupt-parent = <&gpio0>;
150 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
152 clock-output-names = "xin32k", "rk808-clkout2";
153 dvs-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
154 <&gpio0 12 GPIO_ACTIVE_HIGH>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pmic_int &global_pwroff &dvs_1 &dvs_2>;
157 rockchip,system-power-controller;
160 vcc1-supply = <&vcc_sys>;
161 vcc2-supply = <&vcc_sys>;
162 vcc3-supply = <&vcc_sys>;
163 vcc4-supply = <&vcc_sys>;
164 vcc6-supply = <&vcc_sys>;
165 vcc7-supply = <&vcc_sys>;
166 vcc8-supply = <&vcc_io>;
167 vcc9-supply = <&vcc_io>;
168 vcc10-supply = <&vcc_io>;
169 vcc11-supply = <&vcc_sys>;
170 vcc12-supply = <&vcc_io>;
171 vddio-supply = <&vcc_io>;
177 regulator-min-microvolt = <750000>;
178 regulator-max-microvolt = <1350000>;
179 regulator-name = "vdd_arm";
180 regulator-ramp-delay = <6000>;
181 regulator-state-mem {
182 regulator-off-in-suspend;
189 regulator-min-microvolt = <850000>;
190 regulator-max-microvolt = <1250000>;
191 regulator-name = "vdd_gpu";
192 regulator-ramp-delay = <6000>;
193 regulator-state-mem {
194 regulator-on-in-suspend;
195 regulator-suspend-microvolt = <1000000>;
202 regulator-name = "vcc_ddr";
203 regulator-state-mem {
204 regulator-on-in-suspend;
211 regulator-min-microvolt = <3300000>;
212 regulator-max-microvolt = <3300000>;
213 regulator-name = "vcc_io";
214 regulator-state-mem {
215 regulator-on-in-suspend;
216 regulator-suspend-microvolt = <3300000>;
220 vcc18_ldo1: LDO_REG1 {
223 regulator-min-microvolt = <1800000>;
224 regulator-max-microvolt = <1800000>;
225 regulator-name = "vcc18_ldo1";
226 regulator-state-mem {
227 regulator-on-in-suspend;
228 regulator-suspend-microvolt = <1800000>;
232 vcc33_mipi: LDO_REG2 {
235 regulator-min-microvolt = <3300000>;
236 regulator-max-microvolt = <3300000>;
237 regulator-name = "vcc33_mipi";
238 regulator-state-mem {
239 regulator-off-in-suspend;
246 regulator-min-microvolt = <1000000>;
247 regulator-max-microvolt = <1000000>;
248 regulator-name = "vdd_10";
249 regulator-state-mem {
250 regulator-on-in-suspend;
251 regulator-suspend-microvolt = <1000000>;
255 vcc18_codec: LDO_REG4 {
258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <1800000>;
260 regulator-name = "vcc18_codec";
261 regulator-state-mem {
262 regulator-on-in-suspend;
263 regulator-suspend-microvolt = <1800000>;
269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <3300000>;
271 regulator-name = "vccio_sd";
272 regulator-state-mem {
273 regulator-on-in-suspend;
274 regulator-suspend-microvolt = <3300000>;
278 vdd10_lcd: LDO_REG6 {
281 regulator-min-microvolt = <1000000>;
282 regulator-max-microvolt = <1000000>;
283 regulator-name = "vdd10_lcd";
284 regulator-state-mem {
285 regulator-on-in-suspend;
286 regulator-suspend-microvolt = <1000000>;
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
295 regulator-name = "vcc_18";
296 regulator-state-mem {
297 regulator-on-in-suspend;
298 regulator-suspend-microvolt = <1800000>;
302 vcc18_lcd: LDO_REG8 {
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <1800000>;
307 regulator-name = "vcc18_lcd";
308 regulator-state-mem {
309 regulator-on-in-suspend;
310 regulator-suspend-microvolt = <1800000>;
314 vcc33_sd: SWITCH_REG1 {
317 regulator-name = "vcc33_sd";
318 regulator-state-mem {
319 regulator-on-in-suspend;
323 vcc33_lan: SWITCH_REG2 {
326 regulator-name = "vcc33_lan";
327 regulator-state-mem {
328 regulator-on-in-suspend;
344 #sound-dai-cells = <0>;
351 sdcard-supply = <&vccio_sd>;
352 wifi-supply = <&vcc_18>;
356 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
357 drive-strength = <8>;
360 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
362 drive-strength = <8>;
367 rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
373 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
378 eth_phy_pwr: eth-phy-pwr {
379 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
385 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
389 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
393 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
398 sdmmc_bus4: sdmmc-bus4 {
399 rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_8ma>,
400 <6 RK_PC1 1 &pcfg_pull_up_drv_8ma>,
401 <6 RK_PC2 1 &pcfg_pull_up_drv_8ma>,
402 <6 RK_PC3 1 &pcfg_pull_up_drv_8ma>;
405 sdmmc_clk: sdmmc-clk {
406 rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>;
409 sdmmc_cmd: sdmmc-cmd {
410 rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>;
413 sdmmc_pwr: sdmmc-pwr {
414 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
419 host_vbus_drv: host-vbus-drv {
420 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
424 rockchip,pins = <7 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
429 wifi_enable: wifi-enable {
430 rockchip,pins = <4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
431 <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
441 vref-supply = <&vcc18_ldo1>;
450 disable-wp; /* wp not hooked up */
451 pinctrl-names = "default";
452 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
454 vmmc-supply = <&vcc33_sd>;
455 vqmmc-supply = <&vccio_sd>;
462 keep-power-in-suspend;
463 max-frequency = <50000000>;
464 mmc-pwrseq = <&sdio_pwrseq>;
466 pinctrl-names = "default";
467 pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>, <&sdio0_int>;
471 vmmc-supply = <&vcc_io>;
472 vqmmc-supply = <&vcc_18>;
477 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
478 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */