1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de>
8 #include <dt-bindings/input/input.h>
11 model = "Rockchip R88";
12 compatible = "rockchip,r88", "rockchip,rk3368";
15 stdout-path = "serial2:115200n8";
19 device_type = "memory";
20 reg = <0x0 0x0 0x0 0x40000000>;
23 emmc_pwrseq: emmc-pwrseq {
24 compatible = "mmc-pwrseq-emmc";
25 pinctrl-0 = <&emmc_reset>;
26 pinctrl-names = "default";
27 reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
31 compatible = "gpio-keys";
32 pinctrl-names = "default";
33 pinctrl-0 = <&pwr_key>;
37 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_POWER>;
44 compatible = "gpio-leds";
47 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
48 label = "r88:green:led";
49 pinctrl-names = "default";
50 pinctrl-0 = <&led_ctl>;
55 compatible = "gpio-ir-receiver";
56 gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_LOW>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&ir_int>;
61 sdio_pwrseq: sdio-pwrseq {
62 compatible = "mmc-pwrseq-simple";
64 clock-names = "ext_clock";
65 pinctrl-names = "default";
66 pinctrl-0 = <&bt_rst>, <&wifi_reg_on>;
70 <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>,
73 <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>;
76 vcc_18: vcc18-regulator {
77 compatible = "regulator-fixed";
78 regulator-name = "vcc_18";
79 regulator-min-microvolt = <1800000>;
80 regulator-max-microvolt = <1800000>;
83 vin-supply = <&vcc_sys>;
86 /* supplies both host and otg */
87 vcc_host: vcc-host-regulator {
88 compatible = "regulator-fixed";
90 gpio = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&host_vbus_drv>;
93 regulator-name = "vcc_host";
96 vin-supply = <&vcc_sys>;
99 vcc_io: vcc-io-regulator {
100 compatible = "regulator-fixed";
101 regulator-name = "vcc_io";
102 regulator-min-microvolt = <3300000>;
103 regulator-max-microvolt = <3300000>;
106 vin-supply = <&vcc_sys>;
109 vcc_lan: vcc-lan-regulator {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc_lan";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
116 vin-supply = <&vcc_io>;
119 vcc_sys: vcc-sys-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "vcc_sys";
122 regulator-min-microvolt = <5000000>;
123 regulator-max-microvolt = <5000000>;
128 vccio_wl: vccio-wl-regulator {
129 compatible = "regulator-fixed";
130 regulator-name = "vccio_wl";
131 regulator-min-microvolt = <3300000>;
132 regulator-max-microvolt = <3300000>;
135 vin-supply = <&vcc_io>;
138 vdd_10: vdd-10-regulator {
139 compatible = "regulator-fixed";
140 regulator-name = "vdd_10";
141 regulator-min-microvolt = <1000000>;
142 regulator-max-microvolt = <1000000>;
145 vin-supply = <&vcc_sys>;
153 mmc-pwrseq = <&emmc_pwrseq>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
161 phy-supply = <&vcc_lan>;
163 clock_in_out = "output";
164 snps,reset-gpio = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
165 snps,reset-active-low;
166 snps,reset-delays-us = <0 10000 1000000>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&rmii_pins>;
178 compatible = "silergy,syr827";
180 fcs,suspend-voltage-selector = <1>;
181 regulator-name = "vdd_cpu";
182 regulator-enable-ramp-delay = <300>;
183 regulator-min-microvolt = <712500>;
184 regulator-max-microvolt = <1500000>;
185 regulator-ramp-delay = <8000>;
188 vin-supply = <&vcc_sys>;
191 hym8563: hym8563@51 {
192 compatible = "haoyu,hym8563";
195 clock-frequency = <32768>;
196 clock-output-names = "xin32k";
197 /* rtc_int is not connected */
204 audio-supply = <&vcc_io>;
205 gpio30-supply = <&vcc_io>;
206 gpio1830-supply = <&vcc_io>;
207 wifi-supply = <&vccio_wl>;
211 assigned-clocks = <&cru SCLK_SDIO0>;
212 assigned-clock-parents = <&cru PLL_CPLL>;
216 keep-power-in-suspend;
217 mmc-pwrseq = <&sdio_pwrseq>;
219 pinctrl-names = "default";
220 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
221 vmmc-supply = <&vcc_io>;
222 vqmmc-supply = <&vccio_wl>;
227 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
229 drive-strength = <8>;
232 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
234 drive-strength = <8>;
238 emmc_bus8: emmc-bus8 {
239 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
240 <1 19 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
241 <1 20 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
242 <1 21 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
243 <1 22 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
244 <1 23 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
245 <1 24 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
246 <1 25 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;
250 rockchip,pins = <2 4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
254 rockchip,pins = <1 26 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;
257 emmc_reset: emmc-reset {
258 rockchip,pins = <2 3 RK_FUNC_GPIO &pcfg_pull_none>;
264 rockchip,pins = <3 30 RK_FUNC_GPIO &pcfg_pull_up>;
270 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
275 stby_pwren: stby-pwren {
276 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
280 rockchip,pins = <3 29 RK_FUNC_GPIO &pcfg_pull_none>;
285 wifi_reg_on: wifi-reg-on {
286 rockchip,pins = <3 4 RK_FUNC_GPIO &pcfg_pull_none>;
290 rockchip,pins = <3 5 RK_FUNC_GPIO &pcfg_pull_none>;
295 host_vbus_drv: host-vbus-drv {
296 rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_none>;
304 pmu-supply = <&vcc_io>;
305 vop-supply = <&vcc_io>;
309 vref-supply = <&vcc_18>;
314 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
315 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */