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>;
136 mali-supply = <&vdd_log>;
144 compatible = "rockchip,rk809";
146 interrupt-parent = <&gpio0>;
147 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&pmic_int>;
150 rockchip,system-power-controller;
153 clock-output-names = "xin32k";
155 vcc1-supply = <&vcc5v0_sys>;
156 vcc2-supply = <&vcc5v0_sys>;
157 vcc3-supply = <&vcc5v0_sys>;
158 vcc4-supply = <&vcc5v0_sys>;
159 vcc5-supply = <&vcc3v3_sys>;
160 vcc6-supply = <&vcc3v3_sys>;
161 vcc7-supply = <&vcc3v3_sys>;
162 vcc8-supply = <&vcc3v3_sys>;
163 vcc9-supply = <&vcc5v0_sys>;
167 regulator-name = "vdd_log";
168 regulator-min-microvolt = <950000>;
169 regulator-max-microvolt = <1350000>;
170 regulator-ramp-delay = <6001>;
174 regulator-state-mem {
175 regulator-on-in-suspend;
176 regulator-suspend-microvolt = <950000>;
181 regulator-name = "vdd_arm";
182 regulator-min-microvolt = <950000>;
183 regulator-max-microvolt = <1350000>;
184 regulator-ramp-delay = <6001>;
188 regulator-state-mem {
189 regulator-off-in-suspend;
190 regulator-suspend-microvolt = <950000>;
195 regulator-name = "vcc_ddr";
199 regulator-state-mem {
200 regulator-on-in-suspend;
204 vcc_3v0: vcc_rmii: DCDC_REG4 {
205 regulator-name = "vcc_3v0";
206 regulator-min-microvolt = <3000000>;
207 regulator-max-microvolt = <3000000>;
211 regulator-state-mem {
212 regulator-on-in-suspend;
213 regulator-suspend-microvolt = <3000000>;
217 vcc3v3_sys: DCDC_REG5 {
218 regulator-name = "vcc3v3_sys";
219 regulator-min-microvolt = <3300000>;
220 regulator-max-microvolt = <3300000>;
224 regulator-state-mem {
225 regulator-on-in-suspend;
226 regulator-suspend-microvolt = <3300000>;
231 regulator-name = "vcc_1v0";
232 regulator-min-microvolt = <1000000>;
233 regulator-max-microvolt = <1000000>;
237 regulator-state-mem {
238 regulator-on-in-suspend;
239 regulator-suspend-microvolt = <1000000>;
243 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
244 regulator-name = "vcc_1v8";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <1800000>;
257 regulator-name = "vdd_1v0";
258 regulator-min-microvolt = <1000000>;
259 regulator-max-microvolt = <1000000>;
263 regulator-state-mem {
264 regulator-on-in-suspend;
265 regulator-suspend-microvolt = <1000000>;
269 vcc3v0_pmu: LDO_REG4 {
270 regulator-name = "vcc3v0_pmu";
271 regulator-min-microvolt = <3000000>;
272 regulator-max-microvolt = <3000000>;
276 regulator-state-mem {
277 regulator-on-in-suspend;
278 regulator-suspend-microvolt = <3000000>;
283 regulator-name = "vccio_sd";
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <3300000>;
289 regulator-state-mem {
290 regulator-on-in-suspend;
291 regulator-suspend-microvolt = <3300000>;
296 regulator-name = "vcc_sd";
297 regulator-min-microvolt = <3300000>;
298 regulator-max-microvolt = <3300000>;
301 regulator-state-mem {
302 regulator-on-in-suspend;
303 regulator-suspend-microvolt = <3300000>;
307 vcc2v8_dvp: LDO_REG7 {
308 regulator-name = "vcc2v8_dvp";
309 regulator-min-microvolt = <2800000>;
310 regulator-max-microvolt = <2800000>;
313 regulator-state-mem {
314 regulator-off-in-suspend;
315 regulator-suspend-microvolt = <2800000>;
319 vcc1v8_dvp: LDO_REG8 {
320 regulator-name = "vcc1v8_dvp";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
325 regulator-state-mem {
326 regulator-on-in-suspend;
327 regulator-suspend-microvolt = <1800000>;
331 vcc1v5_dvp: LDO_REG9 {
332 regulator-name = "vcc1v5_dvp";
333 regulator-min-microvolt = <1500000>;
334 regulator-max-microvolt = <1500000>;
337 regulator-state-mem {
338 regulator-off-in-suspend;
339 regulator-suspend-microvolt = <1500000>;
343 vcc3v3_lcd: SWITCH_REG1 {
344 regulator-name = "vcc3v3_lcd";
348 vcc5v0_host: SWITCH_REG2 {
349 regulator-name = "vcc5v0_host";
361 compatible = "asahi-kasei,ak8963";
363 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
364 vdd-supply = <&vcc3v0_pmu>;
365 mount-matrix = "1", /* x0 */
377 compatible = "goodix,gt1151";
379 interrupt-parent = <&gpio0>;
380 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
381 irq-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
382 reset-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
383 VDDIO-supply = <&vcc3v3_lcd>;
387 compatible = "fsl,mma7660";
389 interrupt-parent = <&gpio0>;
390 interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
401 vccio1-supply = <&vccio_sdio>;
402 vccio2-supply = <&vccio_sd>;
403 vccio3-supply = <&vcc_3v0>;
404 vccio4-supply = <&vcc3v0_pmu>;
405 vccio5-supply = <&vcc_3v0>;
406 vccio6-supply = <&vccio_flash>;
413 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
418 emmc_reset: emmc-reset {
419 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
426 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
429 soc_slppin_gpio: soc_slppin_gpio {
431 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
434 soc_slppin_slp: soc_slppin_slp {
436 <0 RK_PA4 1 &pcfg_pull_none>;
439 soc_slppin_rst: soc_slppin_rst {
441 <0 RK_PA4 2 &pcfg_pull_none>;
446 wifi_enable_h: wifi-enable-h {
448 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
456 pmuio1-supply = <&vcc3v0_pmu>;
457 pmuio2-supply = <&vcc3v0_pmu>;
465 vref-supply = <&vcc_1v8>;
473 card-detect-delay = <800>;
478 vmmc-supply = <&vcc_sd>;
479 vqmmc-supply = <&vccio_sd>;
486 keep-power-in-suspend;
488 mmc-pwrseq = <&sdio_pwrseq>;
494 rockchip,hw-tshut-mode = <1>;
495 rockchip,hw-tshut-polarity = <1>;
502 u2phy_host: host-port {
506 u2phy_otg: otg-port {
512 pinctrl-names = "default";
513 pinctrl-0 = <&uart1_xfer &uart1_cts>;