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 = "serial2: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 = "sitronix,st7703";
131 backlight = <&backlight>;
132 iovcc-supply = <&vcc_1v8>;
133 vci-supply = <&vcc3v3_lcd>;
136 #address-cells = <1>;
142 mipi_in_panel: endpoint {
143 remote-endpoint = <&mipi_out_panel>;
159 mmc-pwrseq = <&emmc_pwrseq>;
160 vmmc-supply = <&vcc_3v0>;
161 vqmmc-supply = <&vccio_flash>;
166 clock_in_out = "output";
167 phy-supply = <&vcc_rmii>;
168 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
169 snps,reset-active-low;
170 snps,reset-delays-us = <0 50000 50000>;
178 compatible = "rockchip,rk809";
180 interrupt-parent = <&gpio0>;
181 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pmic_int>;
184 rockchip,system-power-controller;
187 clock-output-names = "xin32k";
189 vcc1-supply = <&vcc5v0_sys>;
190 vcc2-supply = <&vcc5v0_sys>;
191 vcc3-supply = <&vcc5v0_sys>;
192 vcc4-supply = <&vcc5v0_sys>;
193 vcc5-supply = <&vcc3v3_sys>;
194 vcc6-supply = <&vcc3v3_sys>;
195 vcc7-supply = <&vcc3v3_sys>;
196 vcc8-supply = <&vcc3v3_sys>;
197 vcc9-supply = <&vcc5v0_sys>;
201 regulator-name = "vdd_log";
202 regulator-min-microvolt = <950000>;
203 regulator-max-microvolt = <1350000>;
204 regulator-ramp-delay = <6001>;
208 regulator-state-mem {
209 regulator-on-in-suspend;
210 regulator-suspend-microvolt = <950000>;
215 regulator-name = "vdd_arm";
216 regulator-min-microvolt = <950000>;
217 regulator-max-microvolt = <1350000>;
218 regulator-ramp-delay = <6001>;
222 regulator-state-mem {
223 regulator-off-in-suspend;
224 regulator-suspend-microvolt = <950000>;
229 regulator-name = "vcc_ddr";
233 regulator-state-mem {
234 regulator-on-in-suspend;
238 vcc_3v0: vcc_rmii: DCDC_REG4 {
239 regulator-name = "vcc_3v0";
240 regulator-min-microvolt = <3000000>;
241 regulator-max-microvolt = <3000000>;
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <3000000>;
251 vcc3v3_sys: DCDC_REG5 {
252 regulator-name = "vcc3v3_sys";
253 regulator-min-microvolt = <3300000>;
254 regulator-max-microvolt = <3300000>;
258 regulator-state-mem {
259 regulator-on-in-suspend;
260 regulator-suspend-microvolt = <3300000>;
265 regulator-name = "vcc_1v0";
266 regulator-min-microvolt = <1000000>;
267 regulator-max-microvolt = <1000000>;
271 regulator-state-mem {
272 regulator-on-in-suspend;
273 regulator-suspend-microvolt = <1000000>;
277 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
278 regulator-name = "vcc_1v8";
279 regulator-min-microvolt = <1800000>;
280 regulator-max-microvolt = <1800000>;
284 regulator-state-mem {
285 regulator-on-in-suspend;
286 regulator-suspend-microvolt = <1800000>;
291 regulator-name = "vdd_1v0";
292 regulator-min-microvolt = <1000000>;
293 regulator-max-microvolt = <1000000>;
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 regulator-suspend-microvolt = <1000000>;
303 vcc3v0_pmu: LDO_REG4 {
304 regulator-name = "vcc3v0_pmu";
305 regulator-min-microvolt = <3000000>;
306 regulator-max-microvolt = <3000000>;
310 regulator-state-mem {
311 regulator-on-in-suspend;
312 regulator-suspend-microvolt = <3000000>;
317 regulator-name = "vccio_sd";
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <3300000>;
323 regulator-state-mem {
324 regulator-on-in-suspend;
325 regulator-suspend-microvolt = <3300000>;
330 regulator-name = "vcc_sd";
331 regulator-min-microvolt = <3300000>;
332 regulator-max-microvolt = <3300000>;
335 regulator-state-mem {
336 regulator-on-in-suspend;
337 regulator-suspend-microvolt = <3300000>;
341 vcc2v8_dvp: LDO_REG7 {
342 regulator-name = "vcc2v8_dvp";
343 regulator-min-microvolt = <2800000>;
344 regulator-max-microvolt = <2800000>;
347 regulator-state-mem {
348 regulator-off-in-suspend;
349 regulator-suspend-microvolt = <2800000>;
353 vcc1v8_dvp: LDO_REG8 {
354 regulator-name = "vcc1v8_dvp";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <1800000>;
359 regulator-state-mem {
360 regulator-on-in-suspend;
361 regulator-suspend-microvolt = <1800000>;
365 vcc1v5_dvp: LDO_REG9 {
366 regulator-name = "vcc1v5_dvp";
367 regulator-min-microvolt = <1500000>;
368 regulator-max-microvolt = <1500000>;
371 regulator-state-mem {
372 regulator-off-in-suspend;
373 regulator-suspend-microvolt = <1500000>;
377 vcc3v3_lcd: SWITCH_REG1 {
378 regulator-name = "vcc3v3_lcd";
382 vcc5v0_host: SWITCH_REG2 {
383 regulator-name = "vcc5v0_host";
398 vccio1-supply = <&vccio_sdio>;
399 vccio2-supply = <&vccio_sd>;
400 vccio3-supply = <&vcc_3v0>;
401 vccio4-supply = <&vcc3v0_pmu>;
402 vccio5-supply = <&vcc_3v0>;
403 vccio6-supply = <&vccio_flash>;
410 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
415 emmc_reset: emmc-reset {
416 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
423 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
426 soc_slppin_gpio: soc_slppin_gpio {
428 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
431 soc_slppin_slp: soc_slppin_slp {
433 <0 RK_PA4 1 &pcfg_pull_none>;
436 soc_slppin_rst: soc_slppin_rst {
438 <0 RK_PA4 2 &pcfg_pull_none>;
443 wifi_enable_h: wifi-enable-h {
445 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
453 pmuio1-supply = <&vcc3v0_pmu>;
454 pmuio2-supply = <&vcc3v0_pmu>;
462 vref-supply = <&vcc_1v8>;
470 card-detect-delay = <800>;
475 vmmc-supply = <&vcc_sd>;
476 vqmmc-supply = <&vccio_sd>;
482 keep-power-in-suspend;
484 mmc-pwrseq = <&sdio_pwrseq>;
490 pinctrl-names = "default";
491 pinctrl-0 = <&uart1_xfer &uart1_cts>;