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>;
132 mipi_out_panel: endpoint {
133 remote-endpoint = <&mipi_in_panel>;
139 compatible = "xinpeng,xpp055c272";
141 backlight = <&backlight>;
142 iovcc-supply = <&vcc_1v8>;
143 vci-supply = <&vcc3v3_lcd>;
146 mipi_in_panel: endpoint {
147 remote-endpoint = <&mipi_out_panel>;
161 mmc-pwrseq = <&emmc_pwrseq>;
162 vmmc-supply = <&vcc_3v0>;
163 vqmmc-supply = <&vccio_flash>;
168 clock_in_out = "output";
169 phy-supply = <&vcc_rmii>;
170 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
171 snps,reset-active-low;
172 snps,reset-delays-us = <0 50000 50000>;
177 mali-supply = <&vdd_log>;
185 compatible = "rockchip,rk809";
187 interrupt-parent = <&gpio0>;
188 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&pmic_int>;
191 rockchip,system-power-controller;
194 clock-output-names = "xin32k";
196 vcc1-supply = <&vcc5v0_sys>;
197 vcc2-supply = <&vcc5v0_sys>;
198 vcc3-supply = <&vcc5v0_sys>;
199 vcc4-supply = <&vcc5v0_sys>;
200 vcc5-supply = <&vcc3v3_sys>;
201 vcc6-supply = <&vcc3v3_sys>;
202 vcc7-supply = <&vcc3v3_sys>;
203 vcc8-supply = <&vcc3v3_sys>;
204 vcc9-supply = <&vcc5v0_sys>;
208 regulator-name = "vdd_log";
209 regulator-min-microvolt = <950000>;
210 regulator-max-microvolt = <1350000>;
211 regulator-ramp-delay = <6001>;
215 regulator-state-mem {
216 regulator-on-in-suspend;
217 regulator-suspend-microvolt = <950000>;
222 regulator-name = "vdd_arm";
223 regulator-min-microvolt = <950000>;
224 regulator-max-microvolt = <1350000>;
225 regulator-ramp-delay = <6001>;
229 regulator-state-mem {
230 regulator-off-in-suspend;
231 regulator-suspend-microvolt = <950000>;
236 regulator-name = "vcc_ddr";
240 regulator-state-mem {
241 regulator-on-in-suspend;
245 vcc_3v0: vcc_rmii: DCDC_REG4 {
246 regulator-name = "vcc_3v0";
247 regulator-min-microvolt = <3000000>;
248 regulator-max-microvolt = <3000000>;
252 regulator-state-mem {
253 regulator-on-in-suspend;
254 regulator-suspend-microvolt = <3000000>;
258 vcc3v3_sys: DCDC_REG5 {
259 regulator-name = "vcc3v3_sys";
260 regulator-min-microvolt = <3300000>;
261 regulator-max-microvolt = <3300000>;
265 regulator-state-mem {
266 regulator-on-in-suspend;
267 regulator-suspend-microvolt = <3300000>;
272 regulator-name = "vcc_1v0";
273 regulator-min-microvolt = <1000000>;
274 regulator-max-microvolt = <1000000>;
278 regulator-state-mem {
279 regulator-on-in-suspend;
280 regulator-suspend-microvolt = <1000000>;
284 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
285 regulator-name = "vcc_1v8";
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <1800000>;
291 regulator-state-mem {
292 regulator-on-in-suspend;
293 regulator-suspend-microvolt = <1800000>;
298 regulator-name = "vdd_1v0";
299 regulator-min-microvolt = <1000000>;
300 regulator-max-microvolt = <1000000>;
304 regulator-state-mem {
305 regulator-on-in-suspend;
306 regulator-suspend-microvolt = <1000000>;
310 vcc3v0_pmu: LDO_REG4 {
311 regulator-name = "vcc3v0_pmu";
312 regulator-min-microvolt = <3000000>;
313 regulator-max-microvolt = <3000000>;
317 regulator-state-mem {
318 regulator-on-in-suspend;
319 regulator-suspend-microvolt = <3000000>;
324 regulator-name = "vccio_sd";
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <3300000>;
330 regulator-state-mem {
331 regulator-on-in-suspend;
332 regulator-suspend-microvolt = <3300000>;
337 regulator-name = "vcc_sd";
338 regulator-min-microvolt = <3300000>;
339 regulator-max-microvolt = <3300000>;
342 regulator-state-mem {
343 regulator-on-in-suspend;
344 regulator-suspend-microvolt = <3300000>;
348 vcc2v8_dvp: LDO_REG7 {
349 regulator-name = "vcc2v8_dvp";
350 regulator-min-microvolt = <2800000>;
351 regulator-max-microvolt = <2800000>;
354 regulator-state-mem {
355 regulator-off-in-suspend;
356 regulator-suspend-microvolt = <2800000>;
360 vcc1v8_dvp: LDO_REG8 {
361 regulator-name = "vcc1v8_dvp";
362 regulator-min-microvolt = <1800000>;
363 regulator-max-microvolt = <1800000>;
366 regulator-state-mem {
367 regulator-on-in-suspend;
368 regulator-suspend-microvolt = <1800000>;
372 vcc1v5_dvp: LDO_REG9 {
373 regulator-name = "vcc1v5_dvp";
374 regulator-min-microvolt = <1500000>;
375 regulator-max-microvolt = <1500000>;
378 regulator-state-mem {
379 regulator-off-in-suspend;
380 regulator-suspend-microvolt = <1500000>;
384 vcc3v3_lcd: SWITCH_REG1 {
385 regulator-name = "vcc3v3_lcd";
389 vcc5v0_host: SWITCH_REG2 {
390 regulator-name = "vcc5v0_host";
402 compatible = "asahi-kasei,ak8963";
404 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
405 vdd-supply = <&vcc3v0_pmu>;
406 mount-matrix = "1", /* x0 */
418 compatible = "goodix,gt1151";
420 interrupt-parent = <&gpio0>;
421 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
422 irq-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
423 reset-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
424 VDDIO-supply = <&vcc3v3_lcd>;
428 compatible = "fsl,mma7660";
430 interrupt-parent = <&gpio0>;
431 interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
438 clock-frequency = <100000>;
440 /* These are relatively safe rise/fall times; TODO: measure */
441 i2c-scl-falling-time-ns = <50>;
442 i2c-scl-rising-time-ns = <300>;
445 compatible = "ovti,ov5695";
447 avdd-supply = <&vcc2v8_dvp>;
448 clocks = <&cru SCLK_CIF_OUT>;
449 clock-names = "xvclk";
450 dvdd-supply = <&vcc1v5_dvp>;
451 dovdd-supply = <&vcc1v8_dvp>;
452 pinctrl-names = "default";
453 pinctrl-0 = <&cif_clkout_m0 &mipi_pdn>;
454 reset-gpios = <&gpio2 RK_PB6 GPIO_ACTIVE_LOW>;
458 remote-endpoint = <&mipi_in_ucam>;
472 vccio1-supply = <&vccio_sdio>;
473 vccio2-supply = <&vccio_sd>;
474 vccio3-supply = <&vcc_3v0>;
475 vccio4-supply = <&vcc3v0_pmu>;
476 vccio5-supply = <&vcc_3v0>;
477 vccio6-supply = <&vccio_flash>;
485 mipi_in_ucam: endpoint@0 {
488 remote-endpoint = <&ucam_out>;
502 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
507 emmc_reset: emmc-reset {
508 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
515 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
518 soc_slppin_gpio: soc_slppin_gpio {
520 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
523 soc_slppin_slp: soc_slppin_slp {
525 <0 RK_PA4 1 &pcfg_pull_none>;
528 soc_slppin_rst: soc_slppin_rst {
530 <0 RK_PA4 2 &pcfg_pull_none>;
535 wifi_enable_h: wifi-enable-h {
537 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
542 cif_clkout_m0: cif-clkout-m0 {
544 <2 RK_PB3 1 &pcfg_pull_none_12ma>;
550 rockchip,pins = <2 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
558 pmuio1-supply = <&vcc3v0_pmu>;
559 pmuio2-supply = <&vcc3v0_pmu>;
567 vref-supply = <&vcc_1v8>;
574 card-detect-delay = <800>;
579 vmmc-supply = <&vcc_sd>;
580 vqmmc-supply = <&vccio_sd>;
586 keep-power-in-suspend;
588 mmc-pwrseq = <&sdio_pwrseq>;
594 rockchip,hw-tshut-mode = <1>;
595 rockchip,hw-tshut-polarity = <1>;
602 u2phy_host: host-port {
606 u2phy_otg: otg-port {
612 pinctrl-names = "default";
613 pinctrl-0 = <&uart1_xfer &uart1_cts>;