2 * This file is dual-licensed: you can use it either under the terms
3 * of the GPL or the X11 license, at your option. Note that this dual
4 * licensing only applies to this file, and not this project as a
7 * a) This file is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This file is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
19 * b) Permission is hereby granted, free of charge, to any person
20 * obtaining a copy of this software and associated documentation
21 * files (the "Software"), to deal in the Software without
22 * restriction, including without limitation the rights to use,
23 * copy, modify, merge, publish, distribute, sublicense, and/or
24 * sell copies of the Software, and to permit persons to whom the
25 * Software is furnished to do so, subject to the following
28 * The above copyright notice and this permission notice shall be
29 * included in all copies or substantial portions of the Software.
31 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 * OTHER DEALINGS IN THE SOFTWARE.
41 #include "rk3288.dtsi"
45 device_type = "memory";
46 reg = <0x0 0x80000000>;
49 ext_gmac: external-gmac-clock {
50 compatible = "fixed-clock";
51 clock-frequency = <125000000>;
52 clock-output-names = "ext_gmac";
57 compatible = "gpio-keys";
60 pinctrl-names = "default";
61 pinctrl-0 = <&pwrbtn>;
64 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
65 label = "GPIO Key Power";
66 linux,input-type = <1>;
67 gpio-key,wakeup = <1>;
68 debounce-interval = <100>;
73 compatible = "gpio-leds";
76 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
77 linux,default-trigger = "default-on";
81 gpios=<&gpio2 3 GPIO_ACTIVE_LOW>;
82 linux,default-trigger="mmc0";
86 vcc_sys: vsys-regulator {
87 compatible = "regulator-fixed";
88 regulator-name = "vcc_sys";
89 regulator-min-microvolt = <5000000>;
90 regulator-max-microvolt = <5000000>;
96 * NOTE: vcc_sd isn't hooked up on v1.0 boards where power comes from
97 * vcc_io directly. Those boards won't be able to power cycle SD cards
98 * but it shouldn't hurt to toggle this pin there anyway.
100 vcc_sd: sdmmc-regulator {
101 compatible = "regulator-fixed";
102 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
103 pinctrl-names = "default";
104 pinctrl-0 = <&sdmmc_pwr>;
105 regulator-name = "vcc_sd";
106 regulator-min-microvolt = <3300000>;
107 regulator-max-microvolt = <3300000>;
108 startup-delay-us = <100000>;
109 vin-supply = <&vcc_io>;
112 vcc5v0_host: usb-host-regulator {
113 compatible = "regulator-fixed";
115 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&host_vbus_drv>;
118 regulator-name = "vcc5v0_host";
119 regulator-min-microvolt = <5000000>;
120 regulator-max-microvolt = <5000000>;
126 cpu0-supply = <&vdd_cpu>;
133 card-detect-delay = <200>;
134 disable-wp; /* wp not hooked up */
136 pinctrl-names = "default";
137 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
140 vmmc-supply = <&vcc_sd>;
141 vqmmc-supply = <&vccio_sd>;
145 mali-supply = <&vdd_gpu>;
150 phy-supply = <&vcc33_lan>;
152 clock_in_out = "input";
153 snps,reset-gpio = <&gpio4 7 0>;
154 snps,reset-active-low;
155 snps,reset-delays-us = <0 10000 1000000>;
156 assigned-clocks = <&cru SCLK_MAC>;
157 assigned-clock-parents = <&ext_gmac>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&rgmii_pins>;
166 ddc-i2c-bus = <&i2c5>;
172 clock-frequency = <400000>;
175 compatible = "rockchip,rk808";
177 interrupt-parent = <&gpio0>;
178 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pmic_int &global_pwroff>;
181 rockchip,system-power-controller;
184 clock-output-names = "xin32k", "rk808-clkout2";
186 vcc1-supply = <&vcc_sys>;
187 vcc2-supply = <&vcc_sys>;
188 vcc3-supply = <&vcc_sys>;
189 vcc4-supply = <&vcc_sys>;
190 vcc6-supply = <&vcc_sys>;
191 vcc7-supply = <&vcc_sys>;
192 vcc8-supply = <&vcc_18>;
193 vcc9-supply = <&vcc_io>;
194 vcc10-supply = <&vcc_io>;
195 vcc11-supply = <&vcc_sys>;
196 vcc12-supply = <&vcc_io>;
197 vddio-supply = <&vcc18_ldo1>;
203 regulator-min-microvolt = <750000>;
204 regulator-max-microvolt = <1350000>;
205 regulator-name = "vdd_arm";
206 regulator-state-mem {
207 regulator-off-in-suspend;
214 regulator-min-microvolt = <850000>;
215 regulator-max-microvolt = <1250000>;
216 regulator-name = "vdd_gpu";
217 regulator-state-mem {
218 regulator-on-in-suspend;
219 regulator-suspend-microvolt = <1000000>;
226 regulator-name = "vcc_ddr";
227 regulator-state-mem {
228 regulator-on-in-suspend;
235 regulator-min-microvolt = <3300000>;
236 regulator-max-microvolt = <3300000>;
237 regulator-name = "vcc_io";
238 regulator-state-mem {
239 regulator-on-in-suspend;
240 regulator-suspend-microvolt = <3300000>;
244 vcc18_ldo1: LDO_REG1 {
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
249 regulator-name = "vcc18_ldo1";
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <1800000>;
256 vcc33_mipi: LDO_REG2 {
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
261 regulator-name = "vcc33_mipi";
262 regulator-state-mem {
263 regulator-off-in-suspend;
270 regulator-min-microvolt = <1000000>;
271 regulator-max-microvolt = <1000000>;
272 regulator-name = "vdd_10";
273 regulator-state-mem {
274 regulator-on-in-suspend;
275 regulator-suspend-microvolt = <1000000>;
279 vcc18_codec: LDO_REG4 {
282 regulator-min-microvolt = <1800000>;
283 regulator-max-microvolt = <1800000>;
284 regulator-name = "vcc18_codec";
285 regulator-state-mem {
286 regulator-on-in-suspend;
287 regulator-suspend-microvolt = <1800000>;
294 regulator-min-microvolt = <1800000>;
295 regulator-max-microvolt = <3300000>;
296 regulator-name = "vccio_sd";
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 regulator-suspend-microvolt = <3300000>;
303 vdd10_lcd: LDO_REG6 {
306 regulator-min-microvolt = <1000000>;
307 regulator-max-microvolt = <1000000>;
308 regulator-name = "vdd10_lcd";
309 regulator-state-mem {
310 regulator-on-in-suspend;
311 regulator-suspend-microvolt = <1000000>;
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <1800000>;
320 regulator-name = "vcc_18";
321 regulator-state-mem {
322 regulator-on-in-suspend;
323 regulator-suspend-microvolt = <1800000>;
327 vcc18_lcd: LDO_REG8 {
330 regulator-min-microvolt = <1800000>;
331 regulator-max-microvolt = <1800000>;
332 regulator-name = "vcc18_lcd";
333 regulator-state-mem {
334 regulator-on-in-suspend;
335 regulator-suspend-microvolt = <1800000>;
339 vcc33_sd: SWITCH_REG1 {
342 regulator-name = "vcc33_sd";
343 regulator-state-mem {
344 regulator-on-in-suspend;
348 vcc33_lan: SWITCH_REG2 {
351 regulator-name = "vcc33_lan";
352 regulator-state-mem {
353 regulator-on-in-suspend;
362 headset: nau8825@1a {
363 compatible = "nuvoton,nau8825";
364 #sound-dai-cells = <0>;
366 interrupt-parent = <&gpio6>;
367 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
368 nuvoton,jkdet-enable = <1>;
369 nuvoton,jkdet-pull-enable = <1>;
370 nuvoton,jkdet-pull-up = <0>;
371 nuvoton,jkdet-polarity = <1>;
372 nuvoton,vref-impedance = <2>;
373 nuvoton,micbias-voltage = <6>;
374 nuvoton,sar-threshold-num = <4>;
375 nuvoton,sar-threshold = <0xa 0x14 0x26 0x73>;
376 nuvoton,sar-hysteresis = <0>;
377 nuvoton,sar-voltage = <6>;
378 nuvoton,sar-compare-time = <0>;
379 nuvoton,sar-sampling-time = <0>;
380 nuvoton,short-key-debounce = <3>;
381 nuvoton,jack-insert-debounce = <7>;
382 nuvoton,jack-eject-debounce = <7>;
383 clock-names = "mclk";
384 clocks = <&cru SCLK_I2S0_OUT>;
401 vref-supply = <&vcc18_ldo1>;
426 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
427 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
464 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
465 drive-strength = <8>;
468 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
470 drive-strength = <8>;
475 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
481 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
486 eth_phy_pwr: eth-phy-pwr {
487 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
493 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
499 * Default drive strength isn't enough to achieve even
500 * high-speed mode on EVB board so bump up to 8ma.
502 sdmmc_bus4: sdmmc-bus4 {
503 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
504 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
505 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
506 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
509 sdmmc_clk: sdmmc-clk {
510 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
513 sdmmc_cmd: sdmmc-cmd {
514 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
517 sdmmc_pwr: sdmmc-pwr {
518 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
523 host_vbus_drv: host-vbus-drv {
524 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
528 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;