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:1500000n8";
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 sdio_pwrseq: sdio-pwrseq {
65 compatible = "mmc-pwrseq-simple";
66 pinctrl-names = "default";
67 pinctrl-0 = <&wifi_enable_h>;
70 * On the module itself this is one of these (depending
71 * on the actual card populated):
72 * - SDIO_RESET_L_WL_REG_ON
73 * - PDN (power down when low)
75 reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO3_A4 */
79 compatible = "regulator-fixed";
80 regulator-name = "vcc5v0_sys";
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
89 cpu-supply = <&vdd_arm>;
93 cpu-supply = <&vdd_arm>;
97 cpu-supply = <&vdd_arm>;
101 cpu-supply = <&vdd_arm>;
113 vmmc-supply = <&vcc_3v0>;
114 vqmmc-supply = <&vccio_flash>;
119 clock_in_out = "output";
120 phy-supply = <&vcc_rmii>;
121 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
122 snps,reset-active-low;
123 snps,reset-delays-us = <0 50000 50000>;
131 compatible = "rockchip,rk809";
133 interrupt-parent = <&gpio0>;
134 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pmic_int>;
137 rockchip,system-power-controller;
140 clock-output-names = "xin32k";
142 vcc1-supply = <&vcc5v0_sys>;
143 vcc2-supply = <&vcc5v0_sys>;
144 vcc3-supply = <&vcc5v0_sys>;
145 vcc4-supply = <&vcc5v0_sys>;
146 vcc5-supply = <&vcc3v3_sys>;
147 vcc6-supply = <&vcc3v3_sys>;
148 vcc7-supply = <&vcc3v3_sys>;
149 vcc8-supply = <&vcc3v3_sys>;
150 vcc9-supply = <&vcc5v0_sys>;
154 regulator-name = "vdd_log";
155 regulator-min-microvolt = <950000>;
156 regulator-max-microvolt = <1350000>;
157 regulator-ramp-delay = <6001>;
161 regulator-state-mem {
162 regulator-on-in-suspend;
163 regulator-suspend-microvolt = <950000>;
168 regulator-name = "vdd_arm";
169 regulator-min-microvolt = <950000>;
170 regulator-max-microvolt = <1350000>;
171 regulator-ramp-delay = <6001>;
175 regulator-state-mem {
176 regulator-off-in-suspend;
177 regulator-suspend-microvolt = <950000>;
182 regulator-name = "vcc_ddr";
186 regulator-state-mem {
187 regulator-on-in-suspend;
191 vcc_3v0: vcc_rmii: DCDC_REG4 {
192 regulator-name = "vcc_3v0";
193 regulator-min-microvolt = <3000000>;
194 regulator-max-microvolt = <3000000>;
198 regulator-state-mem {
199 regulator-on-in-suspend;
200 regulator-suspend-microvolt = <3000000>;
204 vcc3v3_sys: DCDC_REG5 {
205 regulator-name = "vcc3v3_sys";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
211 regulator-state-mem {
212 regulator-on-in-suspend;
213 regulator-suspend-microvolt = <3300000>;
218 regulator-name = "vcc_1v0";
219 regulator-min-microvolt = <1000000>;
220 regulator-max-microvolt = <1000000>;
224 regulator-state-mem {
225 regulator-on-in-suspend;
226 regulator-suspend-microvolt = <1000000>;
230 vcc_1v8: vccio_flash: vccio_sdio: LDO_REG2 {
231 regulator-name = "vcc_1v8";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
237 regulator-state-mem {
238 regulator-on-in-suspend;
239 regulator-suspend-microvolt = <1800000>;
244 regulator-name = "vdd_1v0";
245 regulator-min-microvolt = <1000000>;
246 regulator-max-microvolt = <1000000>;
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <1000000>;
256 vcc3v0_pmu: LDO_REG4 {
257 regulator-name = "vcc3v0_pmu";
258 regulator-min-microvolt = <3000000>;
259 regulator-max-microvolt = <3000000>;
263 regulator-state-mem {
264 regulator-on-in-suspend;
265 regulator-suspend-microvolt = <3000000>;
270 regulator-name = "vccio_sd";
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <3300000>;
276 regulator-state-mem {
277 regulator-on-in-suspend;
278 regulator-suspend-microvolt = <3300000>;
283 regulator-name = "vcc_sd";
284 regulator-min-microvolt = <3300000>;
285 regulator-max-microvolt = <3300000>;
288 regulator-state-mem {
289 regulator-on-in-suspend;
290 regulator-suspend-microvolt = <3300000>;
294 vcc2v8_dvp: LDO_REG7 {
295 regulator-name = "vcc2v8_dvp";
296 regulator-min-microvolt = <2800000>;
297 regulator-max-microvolt = <2800000>;
300 regulator-state-mem {
301 regulator-off-in-suspend;
302 regulator-suspend-microvolt = <2800000>;
306 vcc1v8_dvp: LDO_REG8 {
307 regulator-name = "vcc1v8_dvp";
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
312 regulator-state-mem {
313 regulator-on-in-suspend;
314 regulator-suspend-microvolt = <1800000>;
318 vcc1v5_dvp: LDO_REG9 {
319 regulator-name = "vcc1v5_dvp";
320 regulator-min-microvolt = <1500000>;
321 regulator-max-microvolt = <1500000>;
324 regulator-state-mem {
325 regulator-off-in-suspend;
326 regulator-suspend-microvolt = <1500000>;
330 vcc3v3_lcd: SWITCH_REG1 {
331 regulator-name = "vcc3v3_lcd";
335 vcc5v0_host: SWITCH_REG2 {
336 regulator-name = "vcc5v0_host";
351 vccio1-supply = <&vccio_sdio>;
352 vccio2-supply = <&vccio_sd>;
353 vccio3-supply = <&vcc_3v0>;
354 vccio4-supply = <&vcc3v0_pmu>;
355 vccio5-supply = <&vcc_3v0>;
356 vccio6-supply = <&vccio_flash>;
363 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
370 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
373 soc_slppin_gpio: soc_slppin_gpio {
375 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
378 soc_slppin_slp: soc_slppin_slp {
380 <0 RK_PA4 1 &pcfg_pull_none>;
383 soc_slppin_rst: soc_slppin_rst {
385 <0 RK_PA4 2 &pcfg_pull_none>;
390 wifi_enable_h: wifi-enable-h {
392 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
400 pmuio1-supply = <&vcc3v0_pmu>;
401 pmuio2-supply = <&vcc3v0_pmu>;
409 vref-supply = <&vcc_1v8>;
417 card-detect-delay = <800>;
422 vmmc-supply = <&vcc_sd>;
423 vqmmc-supply = <&vccio_sd>;
430 keep-power-in-suspend;
432 mmc-pwrseq = <&sdio_pwrseq>;
438 pinctrl-names = "default";
439 pinctrl-0 = <&uart1_xfer &uart1_cts>;