1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2014, 2015 Andy Yan <andy.yan@rock-chips.com>
7 #include <dt-bindings/input/input.h>
11 model = "PopMetal-RK3288";
12 compatible = "chipspark,popmetal-rk3288", "rockchip,rk3288";
15 device_type = "memory";
16 reg = <0x0 0x0 0x0 0x80000000>;
19 ext_gmac: external-gmac-clock {
20 compatible = "fixed-clock";
21 clock-frequency = <125000000>;
22 clock-output-names = "ext_gmac";
27 compatible = "gpio-keys";
30 pinctrl-names = "default";
31 pinctrl-0 = <&pwrbtn>;
34 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_POWER>;
36 label = "GPIO Key Power";
37 linux,input-type = <1>;
39 debounce-interval = <100>;
44 compatible = "gpio-ir-receiver";
45 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
46 pinctrl-names = "default";
47 pinctrl-0 = <&ir_int>;
50 vcc_flash: flash-regulator {
51 compatible = "regulator-fixed";
52 regulator-name = "vcc_flash";
53 regulator-min-microvolt = <1800000>;
54 regulator-max-microvolt = <1800000>;
55 vin-supply = <&vcc_io>;
58 vcc_sd: sdmmc-regulator {
59 compatible = "regulator-fixed";
60 gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&sdmmc_pwr>;
63 regulator-name = "vcc_sd";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66 startup-delay-us = <100000>;
67 vin-supply = <&vcc_io>;
70 vcc_sys: vsys-regulator {
71 compatible = "regulator-fixed";
72 regulator-name = "vcc_sys";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
80 * A PT5128 creates both dovdd_1v8 and vcc28_dvp, controlled
83 vcc18_dvp: vcc18-dvp-regulator {
84 compatible = "regulator-fixed";
85 regulator-name = "vcc18-dvp";
86 regulator-min-microvolt = <1800000>;
87 regulator-max-microvolt = <1800000>;
88 vin-supply = <&vcc28_dvp>;
91 vcc28_dvp: vcc28-dvp-regulator {
92 compatible = "regulator-fixed";
94 gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&dvp_pwr>;
97 regulator-name = "vcc28_dvp";
98 regulator-min-microvolt = <2800000>;
99 regulator-max-microvolt = <2800000>;
101 vin-supply = <&vcc_io>;
106 cpu-supply = <&vdd_cpu>;
110 cpu-supply = <&vdd_cpu>;
114 cpu-supply = <&vdd_cpu>;
118 cpu-supply = <&vdd_cpu>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
129 vmmc-supply = <&vcc_io>;
130 vqmmc-supply = <&vcc_flash>;
138 card-detect-delay = <200>;
139 disable-wp; /* wp not hooked up */
140 pinctrl-names = "default";
141 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
146 vmmc-supply = <&vcc_sd>;
147 vqmmc-supply = <&vccio_sd>;
152 phy-supply = <&vcc_lan>;
154 clock_in_out = "input";
155 snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
156 snps,reset-active-low;
157 snps,reset-delays-us = <0 10000 1000000>;
158 assigned-clocks = <&cru SCLK_MAC>;
159 assigned-clock-parents = <&ext_gmac>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&rgmii_pins>;
168 ddc-i2c-bus = <&i2c5>;
174 clock-frequency = <400000>;
177 compatible = "rockchip,rk808";
179 interrupt-parent = <&gpio0>;
180 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
181 pinctrl-names = "default";
182 pinctrl-0 = <&pmic_int &global_pwroff>;
183 rockchip,system-power-controller;
186 clock-output-names = "xin32k", "rk808-clkout2";
188 vcc1-supply = <&vcc_sys>;
189 vcc2-supply = <&vcc_sys>;
190 vcc3-supply = <&vcc_sys>;
191 vcc4-supply = <&vcc_sys>;
192 vcc6-supply = <&vcc_sys>;
193 vcc7-supply = <&vcc_sys>;
194 vcc8-supply = <&vcc_18>;
195 vcc9-supply = <&vcc_io>;
196 vcc10-supply = <&vcc_io>;
197 vcc11-supply = <&vcc_sys>;
198 vcc12-supply = <&vcc_io>;
199 vddio-supply = <&vcc_io>;
205 regulator-min-microvolt = <750000>;
206 regulator-max-microvolt = <1350000>;
207 regulator-name = "vdd_arm";
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-state-mem {
220 regulator-on-in-suspend;
221 regulator-suspend-microvolt = <1000000>;
228 regulator-name = "vcc_ddr";
229 regulator-state-mem {
230 regulator-on-in-suspend;
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
239 regulator-name = "vcc_io";
240 regulator-state-mem {
241 regulator-on-in-suspend;
242 regulator-suspend-microvolt = <3300000>;
249 regulator-min-microvolt = <3300000>;
250 regulator-max-microvolt = <3300000>;
251 regulator-name = "vcc_lan";
252 regulator-state-mem {
253 regulator-on-in-suspend;
254 regulator-suspend-microvolt = <3300000>;
261 regulator-min-microvolt = <1800000>;
262 regulator-max-microvolt = <3300000>;
263 regulator-name = "vccio_sd";
264 regulator-state-mem {
265 regulator-off-in-suspend;
272 regulator-min-microvolt = <1000000>;
273 regulator-max-microvolt = <1000000>;
274 regulator-name = "vdd_10";
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 regulator-suspend-microvolt = <1000000>;
281 vcc18_lcd: LDO_REG4 {
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <1800000>;
286 regulator-name = "vcc18_lcd";
287 regulator-state-mem {
288 regulator-on-in-suspend;
289 regulator-suspend-microvolt = <1800000>;
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <3300000>;
297 regulator-name = "ldo5";
300 vdd10_lcd: LDO_REG6 {
303 regulator-min-microvolt = <1000000>;
304 regulator-max-microvolt = <1000000>;
305 regulator-name = "vdd10_lcd";
306 regulator-state-mem {
307 regulator-on-in-suspend;
308 regulator-suspend-microvolt = <1000000>;
315 regulator-min-microvolt = <1800000>;
316 regulator-max-microvolt = <1800000>;
317 regulator-name = "vcc_18";
318 regulator-state-mem {
319 regulator-on-in-suspend;
320 regulator-suspend-microvolt = <1800000>;
327 regulator-min-microvolt = <3300000>;
328 regulator-max-microvolt = <3300000>;
329 regulator-name = "vcca_33";
330 regulator-state-mem {
331 regulator-on-in-suspend;
332 regulator-suspend-microvolt = <3300000>;
336 vccio_wl: SWITCH_REG1 {
339 regulator-name = "vccio_wl";
340 regulator-state-mem {
341 regulator-on-in-suspend;
345 vcc_lcd: SWITCH_REG2 {
348 regulator-name = "vcc_lcd";
349 regulator-state-mem {
350 regulator-on-in-suspend;
359 clock-frequency = <400000>;
362 compatible = "asahi-kasei,ak8975";
364 interrupt-parent = <&gpio8>;
365 interrupts = <RK_PA1 IRQ_TYPE_EDGE_RISING>;
366 pinctrl-names = "default";
367 pinctrl-0 = <&comp_int>;
368 vdd-supply = <&vcc_io>;
369 vid-supply = <&vcc_io>;
372 l3g4200d: l3g4200d@69 {
373 compatible = "st,l3g4200d-gyro";
374 st,drdy-int-pin = <2>;
376 vdd-supply = <&vcc_io>;
377 vddio-supply = <&vcc_io>;
380 mma8452: mma8452@1d {
381 compatible = "fsl,mma8452";
383 interrupt-parent = <&gpio8>;
384 interrupts = <RK_PA0 IRQ_TYPE_EDGE_RISING>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&gsensor_int>;
409 audio-supply = <&vcca_33>;
410 bb-supply = <&vcc_io>;
411 dvp-supply = <&vcc18_dvp>;
412 flash0-supply = <&vcc_flash>;
413 flash1-supply = <&vcc_lan>;
414 gpio30-supply = <&vcc_io>;
415 gpio1830-supply = <&vcc_io>;
416 lcdc-supply = <&vcc_io>;
417 sdcard-supply = <&vccio_sd>;
418 wifi-supply = <&vccio_wl>;
424 rockchip,pins = <8 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
430 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
436 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
442 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
447 gsensor_int: gsensor-int {
448 rockchip,pins = <8 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
454 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
459 sdmmc_pwr: sdmmc-pwr {
460 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
466 rockchip,hw-tshut-mode = <0>;
467 rockchip,hw-tshut-polarity = <0>;