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.
42 #include "rk3288.dtsi"
45 compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288";
48 device_type = "memory";
49 reg = <0x0 0x80000000>;
52 ext_gmac: external-gmac-clock {
53 compatible = "fixed-clock";
54 clock-frequency = <125000000>;
55 clock-output-names = "ext_gmac";
60 compatible = "gpio-keys";
65 pinctrl-names = "default";
66 pinctrl-0 = <&pwrbtn>;
69 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
71 label = "GPIO Key Power";
72 linux,input-type = <1>;
73 gpio-key,wakeup = <1>;
74 debounce-interval = <100>;
79 compatible = "gpio-leds";
82 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
83 linux,default-trigger = "default-on";
87 gpios=<&gpio2 3 GPIO_ACTIVE_LOW>;
88 linux,default-trigger="mmc0";
93 compatible = "simple-audio-card";
94 simple-audio-card,format = "i2s";
95 simple-audio-card,name = "rockchip,miniarm-codec";
96 simple-audio-card,mclk-fs = <512>;
97 simple-audio-card,cpu {
100 simple-audio-card,codec {
105 vcc_sys: vsys-regulator {
106 compatible = "regulator-fixed";
107 regulator-name = "vcc_sys";
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
115 * NOTE: vcc_sd isn't hooked up on v1.0 boards where power comes from
116 * vcc_io directly. Those boards won't be able to power cycle SD cards
117 * but it shouldn't hurt to toggle this pin there anyway.
119 vcc_sd: sdmmc-regulator {
120 compatible = "regulator-fixed";
121 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&sdmmc_pwr>;
124 regulator-name = "vcc_sd";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 startup-delay-us = <100000>;
128 vin-supply = <&vcc_io>;
133 cpu0-supply = <&vdd_cpu>;
137 phy-supply = <&vcc33_lan>;
139 clock_in_out = "input";
140 snps,reset-gpio = <&gpio4 7 0>;
141 snps,reset-active-low;
142 snps,reset-delays-us = <0 10000 1000000>;
143 assigned-clocks = <&cru SCLK_MAC>;
144 assigned-clock-parents = <&ext_gmac>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&rgmii_pins>;
153 mali-supply = <&vdd_gpu>;
158 #address-cells = <1>;
160 #sound-dai-cells = <0>;
161 ddc-i2c-bus = <&i2c5>;
167 clock-frequency = <400000>;
170 compatible = "rockchip,rk808";
172 interrupt-parent = <&gpio0>;
173 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pmic_int &global_pwroff>;
176 rockchip,system-power-controller;
179 clock-output-names = "xin32k", "rk808-clkout2";
181 vcc1-supply = <&vcc_sys>;
182 vcc2-supply = <&vcc_sys>;
183 vcc3-supply = <&vcc_sys>;
184 vcc4-supply = <&vcc_sys>;
185 vcc6-supply = <&vcc_sys>;
186 vcc7-supply = <&vcc_sys>;
187 vcc8-supply = <&vcc_18>;
188 vcc9-supply = <&vcc_io>;
189 vcc10-supply = <&vcc_io>;
190 vcc11-supply = <&vcc_sys>;
191 vcc12-supply = <&vcc_io>;
192 vddio-supply = <&vcc18_ldo1>;
198 regulator-min-microvolt = <750000>;
199 regulator-max-microvolt = <1350000>;
200 regulator-name = "vdd_arm";
201 regulator-state-mem {
202 regulator-off-in-suspend;
209 regulator-min-microvolt = <850000>;
210 regulator-max-microvolt = <1250000>;
211 regulator-name = "vdd_gpu";
212 regulator-state-mem {
213 regulator-on-in-suspend;
214 regulator-suspend-microvolt = <1000000>;
221 regulator-name = "vcc_ddr";
222 regulator-state-mem {
223 regulator-on-in-suspend;
230 regulator-min-microvolt = <3300000>;
231 regulator-max-microvolt = <3300000>;
232 regulator-name = "vcc_io";
233 regulator-state-mem {
234 regulator-on-in-suspend;
235 regulator-suspend-microvolt = <3300000>;
239 vcc18_ldo1: LDO_REG1 {
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
244 regulator-name = "vcc18_ldo1";
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <1800000>;
251 vcc33_mipi: LDO_REG2 {
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
256 regulator-name = "vcc33_mipi";
257 regulator-state-mem {
258 regulator-off-in-suspend;
265 regulator-min-microvolt = <1000000>;
266 regulator-max-microvolt = <1000000>;
267 regulator-name = "vdd_10";
268 regulator-state-mem {
269 regulator-on-in-suspend;
270 regulator-suspend-microvolt = <1000000>;
274 vcc18_codec: LDO_REG4 {
277 regulator-min-microvolt = <1800000>;
278 regulator-max-microvolt = <1800000>;
279 regulator-name = "vcc18_codec";
280 regulator-state-mem {
281 regulator-on-in-suspend;
282 regulator-suspend-microvolt = <1800000>;
289 regulator-min-microvolt = <1800000>;
290 regulator-max-microvolt = <3300000>;
291 regulator-name = "vccio_sd";
292 regulator-state-mem {
293 regulator-on-in-suspend;
294 regulator-suspend-microvolt = <3300000>;
298 vdd10_lcd: LDO_REG6 {
301 regulator-min-microvolt = <1000000>;
302 regulator-max-microvolt = <1000000>;
303 regulator-name = "vdd10_lcd";
304 regulator-state-mem {
305 regulator-on-in-suspend;
306 regulator-suspend-microvolt = <1000000>;
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
315 regulator-name = "vcc_18";
316 regulator-state-mem {
317 regulator-on-in-suspend;
318 regulator-suspend-microvolt = <1800000>;
322 vcc18_lcd: LDO_REG8 {
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <1800000>;
327 regulator-name = "vcc18_lcd";
328 regulator-state-mem {
329 regulator-on-in-suspend;
330 regulator-suspend-microvolt = <1800000>;
334 vcc33_sd: SWITCH_REG1 {
337 regulator-name = "vcc33_sd";
338 regulator-state-mem {
339 regulator-on-in-suspend;
343 vcc33_lan: SWITCH_REG2 {
346 regulator-name = "vcc33_lan";
347 regulator-state-mem {
348 regulator-on-in-suspend;
358 headset: nau8825@1a {
359 compatible = "nuvoton,nau8825";
360 #sound-dai-cells = <0>;
362 interrupt-parent = <&gpio6>;
363 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
364 nuvoton,jkdet-enable = <1>;
365 nuvoton,jkdet-pull-enable = <1>;
366 nuvoton,jkdet-pull-up = <0>;
367 nuvoton,jkdet-polarity = <1>;
368 nuvoton,vref-impedance = <2>;
369 nuvoton,micbias-voltage = <6>;
370 nuvoton,sar-threshold-num = <4>;
371 nuvoton,sar-threshold = <0xa 0x14 0x26 0x73>;
372 nuvoton,sar-hysteresis = <0>;
373 nuvoton,sar-voltage = <6>;
374 nuvoton,sar-compare-time = <0>;
375 nuvoton,sar-sampling-time = <0>;
376 nuvoton,short-key-debounce = <3>;
377 nuvoton,jack-insert-debounce = <7>;
378 nuvoton,jack-eject-debounce = <7>;
379 clock-names = "mclk";
380 clocks = <&cru SCLK_I2S0_OUT>;
389 #sound-dai-cells = <0>;
398 vref-supply = <&vcc18_ldo1>;
406 card-detect-delay = <200>;
407 disable-wp; /* wp not hooked up */
409 pinctrl-names = "default";
410 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
413 vmmc-supply = <&vcc_sd>;
414 vqmmc-supply = <&vccio_sd>;
418 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
419 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
484 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
485 drive-strength = <8>;
488 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
490 drive-strength = <8>;
495 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
501 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
506 eth_phy_pwr: eth-phy-pwr {
507 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
513 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
519 * Default drive strength isn't enough to achieve even
520 * high-speed mode on EVB board so bump up to 8ma.
522 sdmmc_bus4: sdmmc-bus4 {
523 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
524 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
525 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
526 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
529 sdmmc_clk: sdmmc-clk {
530 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
533 sdmmc_cmd: sdmmc-cmd {
534 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
537 sdmmc_pwr: sdmmc-pwr {
538 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
543 host_vbus_drv: host-vbus-drv {
544 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
548 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;