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>
11 #include "px30-evb-u-boot.dtsi"
14 model = "Rockchip PX30 EVB";
15 compatible = "rockchip,px30-evb", "rockchip,px30";
18 stdout-path = "serial2:115200n8";
22 compatible = "adc-keys";
23 io-channels = <&saradc 2>;
24 io-channel-names = "buttons";
25 keyup-threshold-microvolt = <1800000>;
26 poll-interval = <100>;
30 linux,code = <KEY_ESC>;
31 press-threshold-microvolt = <1310000>;
36 linux,code = <KEY_HOME>;
37 press-threshold-microvolt = <624000>;
42 linux,code = <KEY_MENU>;
43 press-threshold-microvolt = <987000>;
47 label = "volume down";
48 linux,code = <KEY_VOLUMEDOWN>;
49 press-threshold-microvolt = <300000>;
54 linux,code = <KEY_VOLUMEUP>;
55 press-threshold-microvolt = <17000>;
59 backlight: backlight {
60 compatible = "pwm-backlight";
61 pwms = <&pwm1 0 25000 0>;
62 power-supply = <&vcc3v3_lcd>;
65 emmc_pwrseq: emmc-pwrseq {
66 compatible = "mmc-pwrseq-emmc";
67 pinctrl-0 = <&emmc_reset>;
68 pinctrl-names = "default";
69 reset-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
72 sdio_pwrseq: sdio-pwrseq {
73 compatible = "mmc-pwrseq-simple";
74 pinctrl-names = "default";
75 pinctrl-0 = <&wifi_enable_h>;
78 * On the module itself this is one of these (depending
79 * on the actual card populated):
80 * - SDIO_RESET_L_WL_REG_ON
81 * - PDN (power down when low)
83 reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO3_A4 */
87 compatible = "regulator-fixed";
88 regulator-name = "vcc5v0_sys";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
97 cpu-supply = <&vdd_arm>;
101 cpu-supply = <&vdd_arm>;
105 cpu-supply = <&vdd_arm>;
109 cpu-supply = <&vdd_arm>;
123 mipi_out_panel: endpoint {
124 remote-endpoint = <&mipi_in_panel>;
130 compatible = "sitronix,st7703";
132 backlight = <&backlight>;
133 iovcc-supply = <&vcc_1v8>;
134 vci-supply = <&vcc3v3_lcd>;
137 #address-cells = <1>;
143 mipi_in_panel: endpoint {
144 remote-endpoint = <&mipi_out_panel>;
160 mmc-pwrseq = <&emmc_pwrseq>;
161 vmmc-supply = <&vcc_3v0>;
162 vqmmc-supply = <&vccio_flash>;
167 clock_in_out = "output";
168 phy-supply = <&vcc_rmii>;
169 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
170 snps,reset-active-low;
171 snps,reset-delays-us = <0 50000 50000>;
179 compatible = "rockchip,rk809";
181 interrupt-parent = <&gpio0>;
182 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&pmic_int>;
185 rockchip,system-power-controller;
188 clock-output-names = "xin32k";
190 vcc1-supply = <&vcc5v0_sys>;
191 vcc2-supply = <&vcc5v0_sys>;
192 vcc3-supply = <&vcc5v0_sys>;
193 vcc4-supply = <&vcc5v0_sys>;
194 vcc5-supply = <&vcc3v3_sys>;
195 vcc6-supply = <&vcc3v3_sys>;
196 vcc7-supply = <&vcc3v3_sys>;
197 vcc8-supply = <&vcc3v3_sys>;
198 vcc9-supply = <&vcc5v0_sys>;
202 regulator-name = "vdd_log";
203 regulator-min-microvolt = <950000>;
204 regulator-max-microvolt = <1350000>;
205 regulator-ramp-delay = <6001>;
209 regulator-state-mem {
210 regulator-on-in-suspend;
211 regulator-suspend-microvolt = <950000>;
216 regulator-name = "vdd_arm";
217 regulator-min-microvolt = <950000>;
218 regulator-max-microvolt = <1350000>;
219 regulator-ramp-delay = <6001>;
223 regulator-state-mem {
224 regulator-off-in-suspend;
225 regulator-suspend-microvolt = <950000>;
230 regulator-name = "vcc_ddr";
234 regulator-state-mem {
235 regulator-on-in-suspend;
239 vcc_3v0: vcc_rmii: DCDC_REG4 {
240 regulator-name = "vcc_3v0";
241 regulator-min-microvolt = <3000000>;
242 regulator-max-microvolt = <3000000>;
246 regulator-state-mem {
247 regulator-on-in-suspend;
248 regulator-suspend-microvolt = <3000000>;
252 vcc3v3_sys: DCDC_REG5 {
253 regulator-name = "vcc3v3_sys";
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
259 regulator-state-mem {
260 regulator-on-in-suspend;
261 regulator-suspend-microvolt = <3300000>;
266 regulator-name = "vcc_1v0";
267 regulator-min-microvolt = <1000000>;
268 regulator-max-microvolt = <1000000>;
272 regulator-state-mem {
273 regulator-on-in-suspend;
274 regulator-suspend-microvolt = <1000000>;
278 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
279 regulator-name = "vcc_1v8";
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1800000>;
285 regulator-state-mem {
286 regulator-on-in-suspend;
287 regulator-suspend-microvolt = <1800000>;
292 regulator-name = "vdd_1v0";
293 regulator-min-microvolt = <1000000>;
294 regulator-max-microvolt = <1000000>;
298 regulator-state-mem {
299 regulator-on-in-suspend;
300 regulator-suspend-microvolt = <1000000>;
304 vcc3v0_pmu: LDO_REG4 {
305 regulator-name = "vcc3v0_pmu";
306 regulator-min-microvolt = <3000000>;
307 regulator-max-microvolt = <3000000>;
311 regulator-state-mem {
312 regulator-on-in-suspend;
313 regulator-suspend-microvolt = <3000000>;
318 regulator-name = "vccio_sd";
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <3300000>;
324 regulator-state-mem {
325 regulator-on-in-suspend;
326 regulator-suspend-microvolt = <3300000>;
331 regulator-name = "vcc_sd";
332 regulator-min-microvolt = <3300000>;
333 regulator-max-microvolt = <3300000>;
336 regulator-state-mem {
337 regulator-on-in-suspend;
338 regulator-suspend-microvolt = <3300000>;
342 vcc2v8_dvp: LDO_REG7 {
343 regulator-name = "vcc2v8_dvp";
344 regulator-min-microvolt = <2800000>;
345 regulator-max-microvolt = <2800000>;
348 regulator-state-mem {
349 regulator-off-in-suspend;
350 regulator-suspend-microvolt = <2800000>;
354 vcc1v8_dvp: LDO_REG8 {
355 regulator-name = "vcc1v8_dvp";
356 regulator-min-microvolt = <1800000>;
357 regulator-max-microvolt = <1800000>;
360 regulator-state-mem {
361 regulator-on-in-suspend;
362 regulator-suspend-microvolt = <1800000>;
366 vcc1v5_dvp: LDO_REG9 {
367 regulator-name = "vcc1v5_dvp";
368 regulator-min-microvolt = <1500000>;
369 regulator-max-microvolt = <1500000>;
372 regulator-state-mem {
373 regulator-off-in-suspend;
374 regulator-suspend-microvolt = <1500000>;
378 vcc3v3_lcd: SWITCH_REG1 {
379 regulator-name = "vcc3v3_lcd";
383 vcc5v0_host: SWITCH_REG2 {
384 regulator-name = "vcc5v0_host";
399 vccio1-supply = <&vccio_sdio>;
400 vccio2-supply = <&vccio_sd>;
401 vccio3-supply = <&vcc_3v0>;
402 vccio4-supply = <&vcc3v0_pmu>;
403 vccio5-supply = <&vcc_3v0>;
404 vccio6-supply = <&vccio_flash>;
411 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
416 emmc_reset: emmc-reset {
417 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
424 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
427 soc_slppin_gpio: soc_slppin_gpio {
429 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
432 soc_slppin_slp: soc_slppin_slp {
434 <0 RK_PA4 1 &pcfg_pull_none>;
437 soc_slppin_rst: soc_slppin_rst {
439 <0 RK_PA4 2 &pcfg_pull_none>;
444 wifi_enable_h: wifi-enable-h {
446 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
454 pmuio1-supply = <&vcc3v0_pmu>;
455 pmuio2-supply = <&vcc3v0_pmu>;
463 vref-supply = <&vcc_1v8>;
471 card-detect-delay = <800>;
476 vmmc-supply = <&vcc_sd>;
477 vqmmc-supply = <&vccio_sd>;
483 keep-power-in-suspend;
485 mmc-pwrseq = <&sdio_pwrseq>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&uart1_xfer &uart1_cts>;