1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/pinctrl/rockchip.h>
13 model = "Rockchip PX30 EVB";
14 compatible = "rockchip,px30-evb", "rockchip,px30";
17 stdout-path = "serial5:115200n8";
21 compatible = "adc-keys";
22 io-channels = <&saradc 2>;
23 io-channel-names = "buttons";
24 keyup-threshold-microvolt = <1800000>;
25 poll-interval = <100>;
29 linux,code = <KEY_ESC>;
30 press-threshold-microvolt = <1310000>;
35 linux,code = <KEY_HOME>;
36 press-threshold-microvolt = <624000>;
41 linux,code = <KEY_MENU>;
42 press-threshold-microvolt = <987000>;
46 label = "volume down";
47 linux,code = <KEY_VOLUMEDOWN>;
48 press-threshold-microvolt = <300000>;
53 linux,code = <KEY_VOLUMEUP>;
54 press-threshold-microvolt = <17000>;
58 backlight: backlight {
59 compatible = "pwm-backlight";
60 pwms = <&pwm1 0 25000 0>;
61 power-supply = <&vcc3v3_lcd>;
64 emmc_pwrseq: emmc-pwrseq {
65 compatible = "mmc-pwrseq-emmc";
66 pinctrl-0 = <&emmc_reset>;
67 pinctrl-names = "default";
68 reset-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
71 sdio_pwrseq: sdio-pwrseq {
72 compatible = "mmc-pwrseq-simple";
73 pinctrl-names = "default";
74 pinctrl-0 = <&wifi_enable_h>;
77 * On the module itself this is one of these (depending
78 * on the actual card populated):
79 * - SDIO_RESET_L_WL_REG_ON
80 * - PDN (power down when low)
82 reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO3_A4 */
86 compatible = "regulator-fixed";
87 regulator-name = "vcc5v0_sys";
90 regulator-min-microvolt = <5000000>;
91 regulator-max-microvolt = <5000000>;
96 cpu-supply = <&vdd_arm>;
100 cpu-supply = <&vdd_arm>;
104 cpu-supply = <&vdd_arm>;
108 cpu-supply = <&vdd_arm>;
120 mmc-pwrseq = <&emmc_pwrseq>;
121 vmmc-supply = <&vcc_3v0>;
122 vqmmc-supply = <&vccio_flash>;
127 clock_in_out = "output";
128 phy-supply = <&vcc_rmii>;
129 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
130 snps,reset-active-low;
131 snps,reset-delays-us = <0 50000 50000>;
139 compatible = "rockchip,rk809";
141 interrupt-parent = <&gpio0>;
142 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&pmic_int>;
145 rockchip,system-power-controller;
148 clock-output-names = "xin32k";
150 vcc1-supply = <&vcc5v0_sys>;
151 vcc2-supply = <&vcc5v0_sys>;
152 vcc3-supply = <&vcc5v0_sys>;
153 vcc4-supply = <&vcc5v0_sys>;
154 vcc5-supply = <&vcc3v3_sys>;
155 vcc6-supply = <&vcc3v3_sys>;
156 vcc7-supply = <&vcc3v3_sys>;
157 vcc8-supply = <&vcc3v3_sys>;
158 vcc9-supply = <&vcc5v0_sys>;
162 regulator-name = "vdd_log";
163 regulator-min-microvolt = <950000>;
164 regulator-max-microvolt = <1350000>;
165 regulator-ramp-delay = <6001>;
169 regulator-state-mem {
170 regulator-on-in-suspend;
171 regulator-suspend-microvolt = <950000>;
176 regulator-name = "vdd_arm";
177 regulator-min-microvolt = <950000>;
178 regulator-max-microvolt = <1350000>;
179 regulator-ramp-delay = <6001>;
183 regulator-state-mem {
184 regulator-off-in-suspend;
185 regulator-suspend-microvolt = <950000>;
190 regulator-name = "vcc_ddr";
194 regulator-state-mem {
195 regulator-on-in-suspend;
199 vcc_3v0: vcc_rmii: DCDC_REG4 {
200 regulator-name = "vcc_3v0";
201 regulator-min-microvolt = <3000000>;
202 regulator-max-microvolt = <3000000>;
206 regulator-state-mem {
207 regulator-on-in-suspend;
208 regulator-suspend-microvolt = <3000000>;
212 vcc3v3_sys: DCDC_REG5 {
213 regulator-name = "vcc3v3_sys";
214 regulator-min-microvolt = <3300000>;
215 regulator-max-microvolt = <3300000>;
219 regulator-state-mem {
220 regulator-on-in-suspend;
221 regulator-suspend-microvolt = <3300000>;
226 regulator-name = "vcc_1v0";
227 regulator-min-microvolt = <1000000>;
228 regulator-max-microvolt = <1000000>;
232 regulator-state-mem {
233 regulator-on-in-suspend;
234 regulator-suspend-microvolt = <1000000>;
238 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
239 regulator-name = "vcc_1v8";
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <1800000>;
252 regulator-name = "vdd_1v0";
253 regulator-min-microvolt = <1000000>;
254 regulator-max-microvolt = <1000000>;
258 regulator-state-mem {
259 regulator-on-in-suspend;
260 regulator-suspend-microvolt = <1000000>;
264 vcc3v0_pmu: LDO_REG4 {
265 regulator-name = "vcc3v0_pmu";
266 regulator-min-microvolt = <3000000>;
267 regulator-max-microvolt = <3000000>;
271 regulator-state-mem {
272 regulator-on-in-suspend;
273 regulator-suspend-microvolt = <3000000>;
278 regulator-name = "vccio_sd";
279 regulator-min-microvolt = <1800000>;
280 regulator-max-microvolt = <3300000>;
284 regulator-state-mem {
285 regulator-on-in-suspend;
286 regulator-suspend-microvolt = <3300000>;
291 regulator-name = "vcc_sd";
292 regulator-min-microvolt = <3300000>;
293 regulator-max-microvolt = <3300000>;
296 regulator-state-mem {
297 regulator-on-in-suspend;
298 regulator-suspend-microvolt = <3300000>;
302 vcc2v8_dvp: LDO_REG7 {
303 regulator-name = "vcc2v8_dvp";
304 regulator-min-microvolt = <2800000>;
305 regulator-max-microvolt = <2800000>;
308 regulator-state-mem {
309 regulator-off-in-suspend;
310 regulator-suspend-microvolt = <2800000>;
314 vcc1v8_dvp: LDO_REG8 {
315 regulator-name = "vcc1v8_dvp";
316 regulator-min-microvolt = <1800000>;
317 regulator-max-microvolt = <1800000>;
320 regulator-state-mem {
321 regulator-on-in-suspend;
322 regulator-suspend-microvolt = <1800000>;
326 vcc1v5_dvp: LDO_REG9 {
327 regulator-name = "vcc1v5_dvp";
328 regulator-min-microvolt = <1500000>;
329 regulator-max-microvolt = <1500000>;
332 regulator-state-mem {
333 regulator-off-in-suspend;
334 regulator-suspend-microvolt = <1500000>;
338 vcc3v3_lcd: SWITCH_REG1 {
339 regulator-name = "vcc3v3_lcd";
343 vcc5v0_host: SWITCH_REG2 {
344 regulator-name = "vcc5v0_host";
356 compatible = "asahi-kasei,ak8963";
358 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
359 vdd-supply = <&vcc3v0_pmu>;
360 mount-matrix = "1", /* x0 */
372 compatible = "goodix,gt1151";
374 interrupt-parent = <&gpio0>;
375 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
376 irq-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
377 reset-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
378 VDDIO-supply = <&vcc3v3_lcd>;
382 compatible = "fsl,mma7660";
384 interrupt-parent = <&gpio0>;
385 interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
396 vccio1-supply = <&vccio_sdio>;
397 vccio2-supply = <&vccio_sd>;
398 vccio3-supply = <&vcc_3v0>;
399 vccio4-supply = <&vcc3v0_pmu>;
400 vccio5-supply = <&vcc_3v0>;
401 vccio6-supply = <&vccio_flash>;
408 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
413 emmc_reset: emmc-reset {
414 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
421 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
424 soc_slppin_gpio: soc_slppin_gpio {
426 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
429 soc_slppin_slp: soc_slppin_slp {
431 <0 RK_PA4 1 &pcfg_pull_none>;
434 soc_slppin_rst: soc_slppin_rst {
436 <0 RK_PA4 2 &pcfg_pull_none>;
441 wifi_enable_h: wifi-enable-h {
443 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
451 pmuio1-supply = <&vcc3v0_pmu>;
452 pmuio2-supply = <&vcc3v0_pmu>;
460 vref-supply = <&vcc_1v8>;
468 card-detect-delay = <800>;
473 vmmc-supply = <&vcc_sd>;
474 vqmmc-supply = <&vccio_sd>;
481 keep-power-in-suspend;
483 mmc-pwrseq = <&sdio_pwrseq>;
491 u2phy_host: host-port {
495 u2phy_otg: otg-port {
501 pinctrl-names = "default";
502 pinctrl-0 = <&uart1_xfer &uart1_cts>;