1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
8 #include <dt-bindings/input/input.h>
12 model = "Rockchip RK3308 EVB";
13 compatible = "rockchip,rk3308-evb", "rockchip,rk3308";
16 stdout-path = "serial4:1500000n8";
20 compatible = "adc-keys";
21 io-channels = <&saradc 0>;
22 io-channel-names = "buttons";
23 poll-interval = <100>;
24 keyup-threshold-microvolt = <1800000>;
27 linux,code = <KEY_FN>;
29 press-threshold-microvolt = <18000>;
34 compatible = "adc-keys";
35 io-channels = <&saradc 1>;
36 io-channel-names = "buttons";
37 poll-interval = <100>;
38 keyup-threshold-microvolt = <1800000>;
41 linux,code = <KEY_MICMUTE>;
43 press-threshold-microvolt = <1130000>;
47 linux,code = <KEY_MODE>;
49 press-threshold-microvolt = <901000>;
53 linux,code = <KEY_PLAY>;
55 press-threshold-microvolt = <624000>;
59 linux,code = <KEY_VOLUMEDOWN>;
60 label = "volume down";
61 press-threshold-microvolt = <300000>;
65 linux,code = <KEY_VOLUMEUP>;
67 press-threshold-microvolt = <18000>;
72 compatible = "gpio-keys";
75 pinctrl-names = "default";
76 pinctrl-0 = <&pwr_key>;
79 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_POWER>;
81 label = "GPIO Key Power";
82 debounce-interval = <100>;
87 vcc12v_dcin: vcc12v-dcin {
88 compatible = "regulator-fixed";
89 regulator-name = "vcc12v_dcin";
90 regulator-min-microvolt = <12000000>;
91 regulator-max-microvolt = <12000000>;
96 vcc5v0_sys: vcc5v0-sys {
97 compatible = "regulator-fixed";
98 regulator-name = "vcc5v0_sys";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
103 vin-supply = <&vcc12v_dcin>;
106 vccio_sdio: vcc_1v8: vcc-1v8 {
107 compatible = "regulator-fixed";
108 regulator-name = "vcc_1v8";
109 regulator-min-microvolt = <1800000>;
110 regulator-max-microvolt = <1800000>;
113 vin-supply = <&vcc_io>;
117 compatible = "regulator-fixed";
118 regulator-name = "vcc_ddr";
119 regulator-min-microvolt = <1500000>;
120 regulator-max-microvolt = <1500000>;
123 vin-supply = <&vcc5v0_sys>;
127 compatible = "regulator-fixed";
128 regulator-name = "vcc_io";
129 regulator-min-microvolt = <3300000>;
130 regulator-max-microvolt = <3300000>;
133 vin-supply = <&vcc5v0_sys>;
136 vccio_flash: vccio-flash {
137 compatible = "regulator-fixed";
138 regulator-name = "vccio_flash";
139 regulator-min-microvolt = <3300000>;
140 regulator-max-microvolt = <3300000>;
143 vin-supply = <&vcc_io>;
146 vcc5v0_host: vcc5v0-host {
147 compatible = "regulator-fixed";
148 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&usb_drv>;
152 regulator-name = "vbus_host";
153 vin-supply = <&vcc5v0_sys>;
157 compatible = "pwm-regulator";
158 pwms = <&pwm0 0 5000 1>;
159 regulator-name = "vdd_core";
160 regulator-min-microvolt = <827000>;
161 regulator-max-microvolt = <1340000>;
164 regulator-settling-time-up-us = <250>;
165 pwm-supply = <&vcc5v0_sys>;
169 compatible = "regulator-fixed";
170 regulator-name = "vdd_log";
171 regulator-min-microvolt = <1050000>;
172 regulator-max-microvolt = <1050000>;
175 vin-supply = <&vcc5v0_sys>;
179 compatible = "regulator-fixed";
180 regulator-name = "vdd_1v0";
181 regulator-min-microvolt = <1000000>;
182 regulator-max-microvolt = <1000000>;
185 vin-supply = <&vcc5v0_sys>;
190 cpu-supply = <&vdd_core>;
195 vref-supply = <&vcc_1v8>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&rtc_32k>;
204 rockchip,pins = <0 RK_PA6 0 &pcfg_pull_up>;
210 rockchip,pins = <0 RK_PC5 0 &pcfg_pull_none>;
215 wifi_enable_h: wifi-enable-h {
216 rockchip,pins = <0 RK_PA2 0 &pcfg_pull_none>;
223 pinctrl-0 = <&pwm0_pin_pull_down>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&uart4_xfer>;