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";
23 stdout-path = "serial5:115200n8";
27 compatible = "adc-keys";
28 io-channels = <&saradc 2>;
29 io-channel-names = "buttons";
30 keyup-threshold-microvolt = <1800000>;
31 poll-interval = <100>;
35 linux,code = <KEY_ESC>;
36 press-threshold-microvolt = <1310000>;
41 linux,code = <KEY_HOME>;
42 press-threshold-microvolt = <624000>;
47 linux,code = <KEY_MENU>;
48 press-threshold-microvolt = <987000>;
52 label = "volume down";
53 linux,code = <KEY_VOLUMEDOWN>;
54 press-threshold-microvolt = <300000>;
59 linux,code = <KEY_VOLUMEUP>;
60 press-threshold-microvolt = <17000>;
64 backlight: backlight {
65 compatible = "pwm-backlight";
66 pwms = <&pwm1 0 25000 0>;
67 power-supply = <&vcc3v3_lcd>;
70 emmc_pwrseq: emmc-pwrseq {
71 compatible = "mmc-pwrseq-emmc";
72 pinctrl-0 = <&emmc_reset>;
73 pinctrl-names = "default";
74 reset-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
77 sdio_pwrseq: sdio-pwrseq {
78 compatible = "mmc-pwrseq-simple";
79 pinctrl-names = "default";
80 pinctrl-0 = <&wifi_enable_h>;
83 * On the module itself this is one of these (depending
84 * on the actual card populated):
85 * - SDIO_RESET_L_WL_REG_ON
86 * - PDN (power down when low)
88 reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO3_A4 */
92 compatible = "regulator-fixed";
93 regulator-name = "vcc5v0_sys";
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
102 cpu-supply = <&vdd_arm>;
106 cpu-supply = <&vdd_arm>;
110 cpu-supply = <&vdd_arm>;
114 cpu-supply = <&vdd_arm>;
128 mipi_out_panel: endpoint {
129 remote-endpoint = <&mipi_in_panel>;
135 compatible = "xinpeng,xpp055c272";
137 backlight = <&backlight>;
138 iovcc-supply = <&vcc_1v8>;
139 vci-supply = <&vcc3v3_lcd>;
142 mipi_in_panel: endpoint {
143 remote-endpoint = <&mipi_out_panel>;
157 mmc-pwrseq = <&emmc_pwrseq>;
158 vmmc-supply = <&vcc_3v0>;
159 vqmmc-supply = <&vccio_flash>;
164 clock_in_out = "output";
165 phy-supply = <&vcc_rmii>;
166 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
167 snps,reset-active-low;
168 snps,reset-delays-us = <0 50000 50000>;
173 mali-supply = <&vdd_log>;
181 compatible = "rockchip,rk809";
183 interrupt-parent = <&gpio0>;
184 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pmic_int>;
187 rockchip,system-power-controller;
190 clock-output-names = "xin32k";
192 vcc1-supply = <&vcc5v0_sys>;
193 vcc2-supply = <&vcc5v0_sys>;
194 vcc3-supply = <&vcc5v0_sys>;
195 vcc4-supply = <&vcc5v0_sys>;
196 vcc5-supply = <&vcc3v3_sys>;
197 vcc6-supply = <&vcc3v3_sys>;
198 vcc7-supply = <&vcc3v3_sys>;
199 vcc8-supply = <&vcc3v3_sys>;
200 vcc9-supply = <&vcc5v0_sys>;
204 regulator-name = "vdd_log";
205 regulator-min-microvolt = <950000>;
206 regulator-max-microvolt = <1350000>;
207 regulator-ramp-delay = <6001>;
211 regulator-state-mem {
212 regulator-on-in-suspend;
213 regulator-suspend-microvolt = <950000>;
218 regulator-name = "vdd_arm";
219 regulator-min-microvolt = <950000>;
220 regulator-max-microvolt = <1350000>;
221 regulator-ramp-delay = <6001>;
225 regulator-state-mem {
226 regulator-off-in-suspend;
227 regulator-suspend-microvolt = <950000>;
232 regulator-name = "vcc_ddr";
236 regulator-state-mem {
237 regulator-on-in-suspend;
241 vcc_3v0: vcc_rmii: DCDC_REG4 {
242 regulator-name = "vcc_3v0";
243 regulator-min-microvolt = <3000000>;
244 regulator-max-microvolt = <3000000>;
248 regulator-state-mem {
249 regulator-on-in-suspend;
250 regulator-suspend-microvolt = <3000000>;
254 vcc3v3_sys: DCDC_REG5 {
255 regulator-name = "vcc3v3_sys";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
261 regulator-state-mem {
262 regulator-on-in-suspend;
263 regulator-suspend-microvolt = <3300000>;
268 regulator-name = "vcc_1v0";
269 regulator-min-microvolt = <1000000>;
270 regulator-max-microvolt = <1000000>;
274 regulator-state-mem {
275 regulator-on-in-suspend;
276 regulator-suspend-microvolt = <1000000>;
280 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
281 regulator-name = "vcc_1v8";
282 regulator-min-microvolt = <1800000>;
283 regulator-max-microvolt = <1800000>;
287 regulator-state-mem {
288 regulator-on-in-suspend;
289 regulator-suspend-microvolt = <1800000>;
294 regulator-name = "vdd_1v0";
295 regulator-min-microvolt = <1000000>;
296 regulator-max-microvolt = <1000000>;
300 regulator-state-mem {
301 regulator-on-in-suspend;
302 regulator-suspend-microvolt = <1000000>;
306 vcc3v0_pmu: LDO_REG4 {
307 regulator-name = "vcc3v0_pmu";
308 regulator-min-microvolt = <3000000>;
309 regulator-max-microvolt = <3000000>;
313 regulator-state-mem {
314 regulator-on-in-suspend;
315 regulator-suspend-microvolt = <3000000>;
320 regulator-name = "vccio_sd";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <3300000>;
326 regulator-state-mem {
327 regulator-on-in-suspend;
328 regulator-suspend-microvolt = <3300000>;
333 regulator-name = "vcc_sd";
334 regulator-min-microvolt = <3300000>;
335 regulator-max-microvolt = <3300000>;
338 regulator-state-mem {
339 regulator-on-in-suspend;
340 regulator-suspend-microvolt = <3300000>;
344 vcc2v8_dvp: LDO_REG7 {
345 regulator-name = "vcc2v8_dvp";
346 regulator-min-microvolt = <2800000>;
347 regulator-max-microvolt = <2800000>;
350 regulator-state-mem {
351 regulator-off-in-suspend;
352 regulator-suspend-microvolt = <2800000>;
356 vcc1v8_dvp: LDO_REG8 {
357 regulator-name = "vcc1v8_dvp";
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
362 regulator-state-mem {
363 regulator-on-in-suspend;
364 regulator-suspend-microvolt = <1800000>;
368 vcc1v5_dvp: LDO_REG9 {
369 regulator-name = "vcc1v5_dvp";
370 regulator-min-microvolt = <1500000>;
371 regulator-max-microvolt = <1500000>;
374 regulator-state-mem {
375 regulator-off-in-suspend;
376 regulator-suspend-microvolt = <1500000>;
380 vcc3v3_lcd: SWITCH_REG1 {
381 regulator-name = "vcc3v3_lcd";
385 vcc5v0_host: SWITCH_REG2 {
386 regulator-name = "vcc5v0_host";
398 compatible = "asahi-kasei,ak8963";
400 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
401 vdd-supply = <&vcc3v0_pmu>;
402 mount-matrix = "1", /* x0 */
414 compatible = "goodix,gt1151";
416 interrupt-parent = <&gpio0>;
417 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
418 irq-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
419 reset-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
420 VDDIO-supply = <&vcc3v3_lcd>;
424 compatible = "fsl,mma7660";
426 interrupt-parent = <&gpio0>;
427 interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
438 vccio1-supply = <&vccio_sdio>;
439 vccio2-supply = <&vccio_sd>;
440 vccio3-supply = <&vcc_3v0>;
441 vccio4-supply = <&vcc3v0_pmu>;
442 vccio5-supply = <&vcc_3v0>;
443 vccio6-supply = <&vccio_flash>;
450 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
455 emmc_reset: emmc-reset {
456 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
463 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
466 soc_slppin_gpio: soc_slppin_gpio {
468 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
471 soc_slppin_slp: soc_slppin_slp {
473 <0 RK_PA4 1 &pcfg_pull_none>;
476 soc_slppin_rst: soc_slppin_rst {
478 <0 RK_PA4 2 &pcfg_pull_none>;
483 wifi_enable_h: wifi-enable-h {
485 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
493 pmuio1-supply = <&vcc3v0_pmu>;
494 pmuio2-supply = <&vcc3v0_pmu>;
502 vref-supply = <&vcc_1v8>;
509 card-detect-delay = <800>;
514 vmmc-supply = <&vcc_sd>;
515 vqmmc-supply = <&vccio_sd>;
521 keep-power-in-suspend;
523 mmc-pwrseq = <&sdio_pwrseq>;
529 rockchip,hw-tshut-mode = <1>;
530 rockchip,hw-tshut-polarity = <1>;
537 u2phy_host: host-port {
541 u2phy_otg: otg-port {
547 pinctrl-names = "default";
548 pinctrl-0 = <&uart1_xfer &uart1_cts>;