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>;
122 mipi_out_panel: endpoint {
123 remote-endpoint = <&mipi_in_panel>;
129 compatible = "xinpeng,xpp055c272";
131 backlight = <&backlight>;
132 iovcc-supply = <&vcc_1v8>;
133 vci-supply = <&vcc3v3_lcd>;
136 mipi_in_panel: endpoint {
137 remote-endpoint = <&mipi_out_panel>;
152 mmc-pwrseq = <&emmc_pwrseq>;
153 vmmc-supply = <&vcc_3v0>;
154 vqmmc-supply = <&vccio_flash>;
159 clock_in_out = "output";
160 phy-supply = <&vcc_rmii>;
161 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
162 snps,reset-active-low;
163 snps,reset-delays-us = <0 50000 50000>;
168 mali-supply = <&vdd_log>;
176 compatible = "rockchip,rk809";
178 interrupt-parent = <&gpio0>;
179 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&pmic_int>;
182 rockchip,system-power-controller;
185 clock-output-names = "xin32k";
187 vcc1-supply = <&vcc5v0_sys>;
188 vcc2-supply = <&vcc5v0_sys>;
189 vcc3-supply = <&vcc5v0_sys>;
190 vcc4-supply = <&vcc5v0_sys>;
191 vcc5-supply = <&vcc3v3_sys>;
192 vcc6-supply = <&vcc3v3_sys>;
193 vcc7-supply = <&vcc3v3_sys>;
194 vcc8-supply = <&vcc3v3_sys>;
195 vcc9-supply = <&vcc5v0_sys>;
199 regulator-name = "vdd_log";
200 regulator-min-microvolt = <950000>;
201 regulator-max-microvolt = <1350000>;
202 regulator-ramp-delay = <6001>;
206 regulator-state-mem {
207 regulator-on-in-suspend;
208 regulator-suspend-microvolt = <950000>;
213 regulator-name = "vdd_arm";
214 regulator-min-microvolt = <950000>;
215 regulator-max-microvolt = <1350000>;
216 regulator-ramp-delay = <6001>;
220 regulator-state-mem {
221 regulator-off-in-suspend;
222 regulator-suspend-microvolt = <950000>;
227 regulator-name = "vcc_ddr";
231 regulator-state-mem {
232 regulator-on-in-suspend;
236 vcc_3v0: vcc_rmii: DCDC_REG4 {
237 regulator-name = "vcc_3v0";
238 regulator-min-microvolt = <3000000>;
239 regulator-max-microvolt = <3000000>;
243 regulator-state-mem {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <3000000>;
249 vcc3v3_sys: DCDC_REG5 {
250 regulator-name = "vcc3v3_sys";
251 regulator-min-microvolt = <3300000>;
252 regulator-max-microvolt = <3300000>;
256 regulator-state-mem {
257 regulator-on-in-suspend;
258 regulator-suspend-microvolt = <3300000>;
263 regulator-name = "vcc_1v0";
264 regulator-min-microvolt = <1000000>;
265 regulator-max-microvolt = <1000000>;
269 regulator-state-mem {
270 regulator-on-in-suspend;
271 regulator-suspend-microvolt = <1000000>;
275 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
276 regulator-name = "vcc_1v8";
277 regulator-min-microvolt = <1800000>;
278 regulator-max-microvolt = <1800000>;
282 regulator-state-mem {
283 regulator-on-in-suspend;
284 regulator-suspend-microvolt = <1800000>;
289 regulator-name = "vdd_1v0";
290 regulator-min-microvolt = <1000000>;
291 regulator-max-microvolt = <1000000>;
295 regulator-state-mem {
296 regulator-on-in-suspend;
297 regulator-suspend-microvolt = <1000000>;
301 vcc3v0_pmu: LDO_REG4 {
302 regulator-name = "vcc3v0_pmu";
303 regulator-min-microvolt = <3000000>;
304 regulator-max-microvolt = <3000000>;
308 regulator-state-mem {
309 regulator-on-in-suspend;
310 regulator-suspend-microvolt = <3000000>;
315 regulator-name = "vccio_sd";
316 regulator-min-microvolt = <1800000>;
317 regulator-max-microvolt = <3300000>;
321 regulator-state-mem {
322 regulator-on-in-suspend;
323 regulator-suspend-microvolt = <3300000>;
328 regulator-name = "vcc_sd";
329 regulator-min-microvolt = <3300000>;
330 regulator-max-microvolt = <3300000>;
333 regulator-state-mem {
334 regulator-on-in-suspend;
335 regulator-suspend-microvolt = <3300000>;
339 vcc2v8_dvp: LDO_REG7 {
340 regulator-name = "vcc2v8_dvp";
341 regulator-min-microvolt = <2800000>;
342 regulator-max-microvolt = <2800000>;
345 regulator-state-mem {
346 regulator-off-in-suspend;
347 regulator-suspend-microvolt = <2800000>;
351 vcc1v8_dvp: LDO_REG8 {
352 regulator-name = "vcc1v8_dvp";
353 regulator-min-microvolt = <1800000>;
354 regulator-max-microvolt = <1800000>;
357 regulator-state-mem {
358 regulator-on-in-suspend;
359 regulator-suspend-microvolt = <1800000>;
363 vcc1v5_dvp: LDO_REG9 {
364 regulator-name = "vcc1v5_dvp";
365 regulator-min-microvolt = <1500000>;
366 regulator-max-microvolt = <1500000>;
369 regulator-state-mem {
370 regulator-off-in-suspend;
371 regulator-suspend-microvolt = <1500000>;
375 vcc3v3_lcd: SWITCH_REG1 {
376 regulator-name = "vcc3v3_lcd";
380 vcc5v0_host: SWITCH_REG2 {
381 regulator-name = "vcc5v0_host";
393 compatible = "asahi-kasei,ak8963";
395 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
396 vdd-supply = <&vcc3v0_pmu>;
397 mount-matrix = "1", /* x0 */
409 compatible = "goodix,gt1151";
411 interrupt-parent = <&gpio0>;
412 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
413 irq-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
414 reset-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
415 VDDIO-supply = <&vcc3v3_lcd>;
419 compatible = "fsl,mma7660";
421 interrupt-parent = <&gpio0>;
422 interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
433 vccio1-supply = <&vccio_sdio>;
434 vccio2-supply = <&vccio_sd>;
435 vccio3-supply = <&vcc_3v0>;
436 vccio4-supply = <&vcc3v0_pmu>;
437 vccio5-supply = <&vcc_3v0>;
438 vccio6-supply = <&vccio_flash>;
445 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
450 emmc_reset: emmc-reset {
451 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
458 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
461 soc_slppin_gpio: soc_slppin_gpio {
463 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
466 soc_slppin_slp: soc_slppin_slp {
468 <0 RK_PA4 1 &pcfg_pull_none>;
471 soc_slppin_rst: soc_slppin_rst {
473 <0 RK_PA4 2 &pcfg_pull_none>;
478 wifi_enable_h: wifi-enable-h {
480 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
488 pmuio1-supply = <&vcc3v0_pmu>;
489 pmuio2-supply = <&vcc3v0_pmu>;
497 vref-supply = <&vcc_1v8>;
505 card-detect-delay = <800>;
510 vmmc-supply = <&vcc_sd>;
511 vqmmc-supply = <&vccio_sd>;
518 keep-power-in-suspend;
520 mmc-pwrseq = <&sdio_pwrseq>;
526 rockchip,hw-tshut-mode = <1>;
527 rockchip,hw-tshut-polarity = <1>;
534 u2phy_host: host-port {
538 u2phy_otg: otg-port {
544 pinctrl-names = "default";
545 pinctrl-0 = <&uart1_xfer &uart1_cts>;