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 cpu0-supply = <&vdd_cpu>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
117 vmmc-supply = <&vcc_io>;
118 vqmmc-supply = <&vcc_flash>;
126 card-detect-delay = <200>;
127 disable-wp; /* wp not hooked up */
128 pinctrl-names = "default";
129 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
134 vmmc-supply = <&vcc_sd>;
135 vqmmc-supply = <&vccio_sd>;
140 phy-supply = <&vcc_lan>;
142 clock_in_out = "input";
143 snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
144 snps,reset-active-low;
145 snps,reset-delays-us = <0 10000 1000000>;
146 assigned-clocks = <&cru SCLK_MAC>;
147 assigned-clock-parents = <&ext_gmac>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&rgmii_pins>;
156 ddc-i2c-bus = <&i2c5>;
162 clock-frequency = <400000>;
165 compatible = "rockchip,rk808";
167 interrupt-parent = <&gpio0>;
168 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&pmic_int &global_pwroff>;
171 rockchip,system-power-controller;
174 clock-output-names = "xin32k", "rk808-clkout2";
176 vcc1-supply = <&vcc_sys>;
177 vcc2-supply = <&vcc_sys>;
178 vcc3-supply = <&vcc_sys>;
179 vcc4-supply = <&vcc_sys>;
180 vcc6-supply = <&vcc_sys>;
181 vcc7-supply = <&vcc_sys>;
182 vcc8-supply = <&vcc_18>;
183 vcc9-supply = <&vcc_io>;
184 vcc10-supply = <&vcc_io>;
185 vcc11-supply = <&vcc_sys>;
186 vcc12-supply = <&vcc_io>;
187 vddio-supply = <&vcc_io>;
193 regulator-min-microvolt = <750000>;
194 regulator-max-microvolt = <1350000>;
195 regulator-name = "vdd_arm";
196 regulator-state-mem {
197 regulator-off-in-suspend;
204 regulator-min-microvolt = <850000>;
205 regulator-max-microvolt = <1250000>;
206 regulator-name = "vdd_gpu";
207 regulator-state-mem {
208 regulator-on-in-suspend;
209 regulator-suspend-microvolt = <1000000>;
216 regulator-name = "vcc_ddr";
217 regulator-state-mem {
218 regulator-on-in-suspend;
225 regulator-min-microvolt = <3300000>;
226 regulator-max-microvolt = <3300000>;
227 regulator-name = "vcc_io";
228 regulator-state-mem {
229 regulator-on-in-suspend;
230 regulator-suspend-microvolt = <3300000>;
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
239 regulator-name = "vcc_lan";
240 regulator-state-mem {
241 regulator-on-in-suspend;
242 regulator-suspend-microvolt = <3300000>;
249 regulator-min-microvolt = <1800000>;
250 regulator-max-microvolt = <3300000>;
251 regulator-name = "vccio_sd";
252 regulator-state-mem {
253 regulator-off-in-suspend;
260 regulator-min-microvolt = <1000000>;
261 regulator-max-microvolt = <1000000>;
262 regulator-name = "vdd_10";
263 regulator-state-mem {
264 regulator-on-in-suspend;
265 regulator-suspend-microvolt = <1000000>;
269 vcc18_lcd: LDO_REG4 {
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
274 regulator-name = "vcc18_lcd";
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 regulator-suspend-microvolt = <1800000>;
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <3300000>;
285 regulator-name = "ldo5";
288 vdd10_lcd: LDO_REG6 {
291 regulator-min-microvolt = <1000000>;
292 regulator-max-microvolt = <1000000>;
293 regulator-name = "vdd10_lcd";
294 regulator-state-mem {
295 regulator-on-in-suspend;
296 regulator-suspend-microvolt = <1000000>;
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <1800000>;
305 regulator-name = "vcc_18";
306 regulator-state-mem {
307 regulator-on-in-suspend;
308 regulator-suspend-microvolt = <1800000>;
315 regulator-min-microvolt = <3300000>;
316 regulator-max-microvolt = <3300000>;
317 regulator-name = "vcca_33";
318 regulator-state-mem {
319 regulator-on-in-suspend;
320 regulator-suspend-microvolt = <3300000>;
324 vccio_wl: SWITCH_REG1 {
327 regulator-name = "vccio_wl";
328 regulator-state-mem {
329 regulator-on-in-suspend;
333 vcc_lcd: SWITCH_REG2 {
336 regulator-name = "vcc_lcd";
337 regulator-state-mem {
338 regulator-on-in-suspend;
347 clock-frequency = <400000>;
350 compatible = "asahi-kasei,ak8975";
352 interrupt-parent = <&gpio8>;
353 interrupts = <RK_PA1 IRQ_TYPE_EDGE_RISING>;
354 pinctrl-names = "default";
355 pinctrl-0 = <&comp_int>;
356 vdd-supply = <&vcc_io>;
357 vid-supply = <&vcc_io>;
360 l3g4200d: l3g4200d@69 {
361 compatible = "st,l3g4200d-gyro";
362 st,drdy-int-pin = <2>;
364 vdd-supply = <&vcc_io>;
365 vddio-supply = <&vcc_io>;
368 mma8452: mma8452@1d {
369 compatible = "fsl,mma8452";
371 interrupt-parent = <&gpio8>;
372 interrupts = <RK_PA0 IRQ_TYPE_EDGE_RISING>;
373 pinctrl-names = "default";
374 pinctrl-0 = <&gsensor_int>;
397 audio-supply = <&vcca_33>;
398 bb-supply = <&vcc_io>;
399 dvp-supply = <&vcc18_dvp>;
400 flash0-supply = <&vcc_flash>;
401 flash1-supply = <&vcc_lan>;
402 gpio30-supply = <&vcc_io>;
403 gpio1830-supply = <&vcc_io>;
404 lcdc-supply = <&vcc_io>;
405 sdcard-supply = <&vccio_sd>;
406 wifi-supply = <&vccio_wl>;
412 rockchip,pins = <8 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
418 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
424 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
430 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
435 gsensor_int: gsensor-int {
436 rockchip,pins = <8 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
442 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
447 sdmmc_pwr: sdmmc-pwr {
448 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
454 rockchip,hw-tshut-mode = <0>;
455 rockchip,hw-tshut-polarity = <0>;