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>;
63 sdio_pwrseq: sdio-pwrseq {
64 compatible = "mmc-pwrseq-simple";
65 pinctrl-names = "default";
66 pinctrl-0 = <&wifi_enable_h>;
69 * On the module itself this is one of these (depending
70 * on the actual card populated):
71 * - SDIO_RESET_L_WL_REG_ON
72 * - PDN (power down when low)
74 reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO3_A4 */
77 vcc_phy: vcc-phy-regulator {
78 compatible = "regulator-fixed";
79 regulator-name = "vcc_phy";
85 compatible = "regulator-fixed";
86 regulator-name = "vcc5v0_sys";
89 regulator-min-microvolt = <5000000>;
90 regulator-max-microvolt = <5000000>;
107 clock_in_out = "output";
108 phy-supply = <&vcc_phy>;
109 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
110 snps,reset-active-low;
111 snps,reset-delays-us = <0 50000 50000>;
131 <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
138 <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
141 soc_slppin_gpio: soc_slppin_gpio {
143 <0 RK_PA4 RK_FUNC_GPIO &pcfg_output_low>;
146 soc_slppin_slp: soc_slppin_slp {
148 <0 RK_PA4 1 &pcfg_pull_none>;
151 soc_slppin_rst: soc_slppin_rst {
153 <0 RK_PA4 2 &pcfg_pull_none>;
158 wifi_enable_h: wifi-enable-h {
160 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
181 card-detect-delay = <800>;
192 keep-power-in-suspend;
194 mmc-pwrseq = <&sdio_pwrseq>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&uart1_xfer &uart1_cts>;