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>;
152 mmc-pwrseq = <&emmc_pwrseq>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
160 phy-supply = <&vcc_lan>;
162 clock_in_out = "output";
163 snps,reset-gpio = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
164 snps,reset-active-low;
165 snps,reset-delays-us = <0 10000 1000000>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&rmii_pins>;
177 compatible = "silergy,syr827";
179 fcs,suspend-voltage-selector = <1>;
180 regulator-name = "vdd_cpu";
181 regulator-enable-ramp-delay = <300>;
182 regulator-min-microvolt = <712500>;
183 regulator-max-microvolt = <1500000>;
184 regulator-ramp-delay = <8000>;
187 vin-supply = <&vcc_sys>;
190 hym8563: hym8563@51 {
191 compatible = "haoyu,hym8563";
194 clock-frequency = <32768>;
195 clock-output-names = "xin32k";
196 /* rtc_int is not connected */
203 audio-supply = <&vcc_io>;
204 gpio30-supply = <&vcc_io>;
205 gpio1830-supply = <&vcc_io>;
206 wifi-supply = <&vccio_wl>;
210 assigned-clocks = <&cru SCLK_SDIO0>;
211 assigned-clock-parents = <&cru PLL_CPLL>;
215 keep-power-in-suspend;
216 mmc-pwrseq = <&sdio_pwrseq>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
220 vmmc-supply = <&vcc_io>;
221 vqmmc-supply = <&vccio_wl>;
226 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
228 drive-strength = <8>;
231 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
233 drive-strength = <8>;
237 emmc_bus8: emmc-bus8 {
238 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up_drv_8ma>,
239 <1 RK_PC3 2 &pcfg_pull_up_drv_8ma>,
240 <1 RK_PC4 2 &pcfg_pull_up_drv_8ma>,
241 <1 RK_PC5 2 &pcfg_pull_up_drv_8ma>,
242 <1 RK_PC6 2 &pcfg_pull_up_drv_8ma>,
243 <1 RK_PC7 2 &pcfg_pull_up_drv_8ma>,
244 <1 RK_PD0 2 &pcfg_pull_up_drv_8ma>,
245 <1 RK_PD1 2 &pcfg_pull_up_drv_8ma>;
249 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none_drv_8ma>;
253 rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up_drv_8ma>;
256 emmc_reset: emmc-reset {
257 rockchip,pins = <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
263 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
269 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
274 stby_pwren: stby-pwren {
275 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
279 rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
284 wifi_reg_on: wifi-reg-on {
285 rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
289 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
294 host_vbus_drv: host-vbus-drv {
295 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
303 pmu-supply = <&vcc_io>;
304 vop-supply = <&vcc_io>;
308 vref-supply = <&vcc_18>;
313 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
314 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */