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 = "rk-vibrator-gpio";
73 vibrator-gpio = <&gpio7 21 GPIO_ACTIVE_LOW>;
80 cpu0-supply = <&vdd_cpu>;
85 mali-supply = <&vdd_gpu>;
89 clock-frequency = <400000>;
92 compatible = "silergy,syr827";
94 vin-supply = <&vcc_sys>;
95 regulator-compatible = "fan53555-reg";
96 pinctrl-0 = <&vsel1_gpio>;
97 vsel-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
98 regulator-name = "vdd_cpu";
99 regulator-min-microvolt = <712500>;
100 regulator-max-microvolt = <1500000>;
101 regulator-ramp-delay = <1000>;
102 fcs,suspend-voltage-selector = <1>;
105 regulator-initial-state = <3>;
106 regulator-state-mem {
107 regulator-off-in-suspend;
112 compatible = "rockchip,rk818";
116 clock-output-names = "xin32k", "wifibt_32kin";
117 interrupt-parent = <&gpio0>;
118 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pmic_int>;
121 rockchip,system-power-controller;
125 vcc1-supply = <&vcc_sys>;
126 vcc2-supply = <&vcc_sys>;
127 vcc3-supply = <&vcc_sys>;
128 vcc4-supply = <&vcc_sys>;
129 vcc6-supply = <&vcc_sys>;
130 vcc7-supply = <&vcc_sys>;
131 vcc8-supply = <&vcc_sys>;
132 vcc9-supply = <&vcc_io>;
135 vdd_logic: DCDC_REG1 {
136 regulator-name = "vdd_logic";
139 regulator-min-microvolt = <800000>;
140 regulator-max-microvolt = <1250000>;
141 regulator-ramp-delay = <6001>;
142 regulator-state-mem {
143 regulator-on-in-suspend;
144 regulator-suspend-microvolt = <1000000>;
149 regulator-name = "vdd_gpu";
152 regulator-min-microvolt = <800000>;
153 regulator-max-microvolt = <1250000>;
154 regulator-ramp-delay = <6001>;
155 regulator-state-mem {
156 regulator-on-in-suspend;
157 regulator-suspend-microvolt = <1000000>;
164 regulator-name = "vcc_ddr";
165 regulator-state-mem {
166 regulator-on-in-suspend;
173 regulator-min-microvolt = <3300000>;
174 regulator-max-microvolt = <3300000>;
175 regulator-name = "vcc_io";
176 regulator-state-mem {
177 regulator-off-in-suspend;
181 vcca_codec: LDO_REG1 {
184 regulator-min-microvolt = <3300000>;
185 regulator-max-microvolt = <3300000>;
186 regulator-name = "vcca_codec";
187 regulator-state-mem {
188 regulator-off-in-suspend;
195 regulator-min-microvolt = <3300000>;
196 regulator-max-microvolt = <3300000>;
197 regulator-name = "vcc_tp";
198 regulator-state-mem {
199 regulator-off-in-suspend;
206 regulator-min-microvolt = <1000000>;
207 regulator-max-microvolt = <1000000>;
208 regulator-name = "vdd_10";
209 regulator-state-mem {
210 regulator-on-in-suspend;
211 regulator-suspend-microvolt = <1000000>;
215 vcc18_lcd: LDO_REG4 {
218 regulator-min-microvolt = <1800000>;
219 regulator-max-microvolt = <1800000>;
220 regulator-name = "vcc18_lcd";
221 regulator-state-mem {
222 regulator-off-in-suspend;
229 regulator-min-microvolt = <3300000>;
230 regulator-max-microvolt = <3300000>;
231 regulator-name = "vcc_lcd";
232 regulator-state-mem {
233 regulator-on-in-suspend;
234 regulator-suspend-microvolt = <3300000>;
238 vdd10_lcd: LDO_REG6 {
241 regulator-min-microvolt = <1000000>;
242 regulator-max-microvolt = <1000000>;
243 regulator-name = "vdd10_lcd";
244 regulator-state-mem {
245 regulator-off-in-suspend;
252 regulator-min-microvolt = <1800000>;
253 regulator-max-microvolt = <1800000>;
254 regulator-name = "vcc_18";
255 regulator-state-mem {
256 regulator-on-in-suspend;
257 regulator-suspend-microvolt = <1800000>;
264 regulator-min-microvolt = <1800000>;
265 regulator-max-microvolt = <3300000>;
266 regulator-name = "vccio_wl";
267 regulator-state-mem {
268 regulator-on-in-suspend;
269 regulator-suspend-microvolt = <3300000>;
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <3300000>;
278 regulator-name = "vccio_sd";
279 regulator-state-mem {
280 regulator-on-in-suspend;
281 regulator-suspend-microvolt = <3300000>;
288 regulator-name = "vcc_sd";
289 regulator-state-mem {
290 regulator-on-in-suspend;
299 clock-frequency = <400000>;
302 compatible = "invensense,mpu6050";
304 pinctrl-names = "default";
305 pinctrl-0 = <&mpu6050_irq_gpio>;
307 irq-gpio = <&gpio8 0 IRQ_TYPE_EDGE_RISING>;
308 mpu-int_config = <0x10>;
309 mpu-level_shifter = <0>;
310 mpu-orientation = <0 1 0 1 0 0 0 0 1>;
314 support-hw-poweroff = <1>;
321 compatible = "simple-panel-dsi";
323 backlight = <&backlight>;
324 reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
325 power-supply = <&vcc_lcd>;
326 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
327 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
328 dsi,format = <MIPI_DSI_FMT_RGB888>;
333 delay,prepare = <120>;
335 panel-init-sequence = [
340 panel-exit-sequence = [
345 disp_timings: display-timings {
346 native-mode = <&timing0>;
349 clock-frequency = <230000000>;
353 hfront-porch = <180>;
361 pixelclk-active = <0>;
369 rockchip,dual-channel = <&dsi1>;
370 rockchip,lane-rate = <900>;
377 remote-endpoint = <&panel_in>;
390 remote-endpoint = <&dsi0_out>;
404 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
405 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
406 pinctrl-1 = <&otp_gpio>;
412 rockchip,pins = <1 24 RK_FUNC_GPIO &pcfg_pull_none>;
417 mpu6050_irq_gpio: mpu6050-irq-gpio {
418 rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_none>;
424 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
426 vsel1_gpio: vsel1-gpio {
427 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_down>;