2 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "rk3288-evb.dtsi"
45 #include "rk3288-android.dtsi"
48 compatible = "rockchip,rk3288-evb-rk818", "rockchip,rk3288";
50 sdio_pwrseq: sdio-pwrseq {
51 compatible = "mmc-pwrseq-simple";
53 clock-names = "ext_clock";
56 * On the module itself this is one of these (depending
57 * on the actual card populated):
58 * - SDIO_RESET_L_WL_REG_ON
59 * - PDN (power down when low)
61 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
66 clock-names = "ext_clock";
69 /delete-node/ sdmmc-regulator;
72 compatible = "regulator-fixed";
74 gpio = <&gpio7 3 GPIO_ACTIVE_HIGH>;
75 pinctrl-names = "default";
76 pinctrl-0 = <&lcd_en>;
77 regulator-name = "vcc_lcd";
78 vin-supply = <&vcc_io>;
83 cpu0-supply = <&vdd_cpu>;
87 power-supply = <&vcc_lcd>;
92 mali-supply = <&vdd_gpu>;
100 clock-frequency = <400000>;
103 compatible = "silergy,syr827";
105 vin-supply = <&vcc_sys>;
106 regulator-compatible = "fan53555-reg";
107 pinctrl-0 = <&vsel1_gpio>;
108 vsel-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
109 regulator-name = "vdd_cpu";
110 regulator-min-microvolt = <712500>;
111 regulator-max-microvolt = <1500000>;
112 regulator-ramp-delay = <1000>;
113 fcs,suspend-voltage-selector = <1>;
116 regulator-initial-state = <3>;
117 regulator-state-mem {
118 regulator-off-in-suspend;
123 compatible = "rockchip,rk818";
127 clock-output-names = "xin32k", "wifibt_32kin";
128 interrupt-parent = <&gpio0>;
129 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&pmic_int>;
132 rockchip,system-power-controller;
136 vcc1-supply = <&vcc_sys>;
137 vcc2-supply = <&vcc_sys>;
138 vcc3-supply = <&vcc_sys>;
139 vcc4-supply = <&vcc_sys>;
140 vcc6-supply = <&vcc_sys>;
141 vcc7-supply = <&vcc_sys>;
142 vcc8-supply = <&vcc_sys>;
143 vcc9-supply = <&vcc_io>;
146 vdd_logic: DCDC_REG1 {
147 regulator-name = "vdd_logic";
150 regulator-min-microvolt = <800000>;
151 regulator-max-microvolt = <1250000>;
152 regulator-ramp-delay = <6001>;
153 regulator-state-mem {
154 regulator-on-in-suspend;
155 regulator-suspend-microvolt = <1000000>;
160 regulator-name = "vdd_gpu";
163 regulator-min-microvolt = <800000>;
164 regulator-max-microvolt = <1250000>;
165 regulator-ramp-delay = <6001>;
166 regulator-state-mem {
167 regulator-on-in-suspend;
168 regulator-suspend-microvolt = <1000000>;
175 regulator-name = "vcc_ddr";
176 regulator-state-mem {
177 regulator-on-in-suspend;
184 regulator-min-microvolt = <3300000>;
185 regulator-max-microvolt = <3300000>;
186 regulator-name = "vcc_io";
187 regulator-state-mem {
188 regulator-off-in-suspend;
192 vcca_codec: LDO_REG1 {
195 regulator-min-microvolt = <3300000>;
196 regulator-max-microvolt = <3300000>;
197 regulator-name = "vcca_codec";
198 regulator-state-mem {
199 regulator-off-in-suspend;
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
208 regulator-name = "vcc_tp";
209 regulator-state-mem {
210 regulator-off-in-suspend;
217 regulator-min-microvolt = <1000000>;
218 regulator-max-microvolt = <1000000>;
219 regulator-name = "vdd_10";
220 regulator-state-mem {
221 regulator-on-in-suspend;
222 regulator-suspend-microvolt = <1000000>;
226 vcc18_lcd: LDO_REG4 {
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
231 regulator-name = "vcc18_lcd";
232 regulator-state-mem {
233 regulator-off-in-suspend;
237 vccio_pmu: LDO_REG5 {
240 regulator-min-microvolt = <3300000>;
241 regulator-max-microvolt = <3300000>;
242 regulator-name = "vccio_pmu";
243 regulator-state-mem {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <3300000>;
249 vdd10_lcd: LDO_REG6 {
252 regulator-min-microvolt = <1000000>;
253 regulator-max-microvolt = <1000000>;
254 regulator-name = "vdd10_lcd";
255 regulator-state-mem {
256 regulator-off-in-suspend;
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <1800000>;
265 regulator-name = "vcc_18";
266 regulator-state-mem {
267 regulator-on-in-suspend;
268 regulator-suspend-microvolt = <1800000>;
275 regulator-min-microvolt = <1800000>;
276 regulator-max-microvolt = <3300000>;
277 regulator-name = "vccio_wl";
278 regulator-state-mem {
279 regulator-on-in-suspend;
280 regulator-suspend-microvolt = <3300000>;
287 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <3300000>;
289 regulator-name = "vccio_sd";
290 regulator-state-mem {
291 regulator-on-in-suspend;
292 regulator-suspend-microvolt = <3300000>;
299 regulator-name = "vcc_sd";
300 regulator-state-mem {
301 regulator-on-in-suspend;
310 clock-frequency = <400000>;
313 compatible = "invensense,mpu6050";
315 pinctrl-names = "default";
316 pinctrl-0 = <&mpu6050_irq_gpio>;
318 irq-gpio = <&gpio8 0 IRQ_TYPE_EDGE_RISING>;
319 mpu-int_config = <0x10>;
320 mpu-level_shifter = <0>;
321 mpu-orientation = <0 1 0 1 0 0 0 0 1>;
325 support-hw-poweroff = <1>;
331 power-supply = <&vcc_lcd>;
337 dsi_panel: dsi_panel {
338 compatible = "simple-panel-dsi";
340 backlight = <&backlight>;
341 enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
342 power-supply = <&vcc_lcd>;
343 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST)>;
344 dsi,format = <MIPI_DSI_FMT_RGB888>;
346 delay,prepare = <120>;
349 disp_timings: display-timings {
350 native-mode = <&timing0>;
353 clock-frequency = <150000000>;
365 pixelclk-active = <0>;
376 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
377 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
378 pinctrl-1 = <&otp_gpio>;
384 rockchip,pins = <7 3 RK_FUNC_GPIO &pcfg_pull_none>;
389 mpu6050_irq_gpio: mpu6050-irq-gpio {
390 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_none>;
396 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
398 vsel1_gpio: vsel1-gpio {
399 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_down>;