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";
83 debounce-interval = <100>;
87 vcc12v_dcin: vcc12v-dcin {
88 compatible = "regulator-fixed";
89 regulator-name = "vcc12v_dcin";
92 regulator-min-microvolt = <12000000>;
93 regulator-max-microvolt = <12000000>;
96 vcc5v0_sys: vcc5v0-sys {
97 compatible = "regulator-fixed";
98 regulator-name = "vcc5v0_sys";
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
103 vin-supply = <&vcc12v_dcin>;
107 compatible = "pwm-regulator";
108 pwms = <&pwm0 0 5000 1>;
109 regulator-name = "vdd_core";
110 regulator-min-microvolt = <827000>;
111 regulator-max-microvolt = <1340000>;
114 regulator-settling-time-up-us = <250>;
115 pwm-supply = <&vcc5v0_sys>;
119 compatible = "regulator-fixed";
120 regulator-name = "vdd_log";
123 regulator-min-microvolt = <1050000>;
124 regulator-max-microvolt = <1050000>;
125 vin-supply = <&vcc5v0_sys>;
129 compatible = "regulator-fixed";
130 regulator-name = "vdd_1v0";
133 regulator-min-microvolt = <1000000>;
134 regulator-max-microvolt = <1000000>;
135 vin-supply = <&vcc5v0_sys>;
138 vccio_sdio: vcc_1v8: vcc-1v8 {
139 compatible = "regulator-fixed";
140 regulator-name = "vcc_1v8";
143 regulator-min-microvolt = <1800000>;
144 regulator-max-microvolt = <1800000>;
145 vin-supply = <&vcc_io>;
149 compatible = "regulator-fixed";
150 regulator-name = "vcc_ddr";
153 regulator-min-microvolt = <1500000>;
154 regulator-max-microvolt = <1500000>;
155 vin-supply = <&vcc5v0_sys>;
159 compatible = "regulator-fixed";
160 regulator-name = "vcc_io";
163 regulator-min-microvolt = <3300000>;
164 regulator-max-microvolt = <3300000>;
165 vin-supply = <&vcc5v0_sys>;
168 vccio_flash: vccio-flash {
169 compatible = "regulator-fixed";
170 regulator-name = "vccio_flash";
173 regulator-min-microvolt = <3300000>;
174 regulator-max-microvolt = <3300000>;
175 vin-supply = <&vcc_io>;
178 vcc5v0_host: vcc5v0-host {
179 compatible = "regulator-fixed";
181 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&usb_drv>;
184 regulator-name = "vbus_host";
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>;