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.
43 #include "rk3036.dtsi"
46 model = "Rockchip RK3036 KylinBoard";
47 compatible = "rockchip,rk3036-kylin", "rockchip,rk3036";
50 compatible = "gpio-leds";
53 gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
54 label = "kylin:red:led";
55 pinctrl-names = "default";
56 pinctrl-0 = <&led_ctl>;
60 sdio_pwrseq: sdio-pwrseq {
61 compatible = "mmc-pwrseq-simple";
62 pinctrl-names = "default";
63 pinctrl-0 = <&bt_wake_h>;
66 * On the module itself this is one of these (depending
67 * on the actual card populated):
68 * - SDIO_RESET_L_WL_REG_ON
69 * - SDIO_RESET_L_WL_RST
70 * - SDIO_RESET_L_BT_EN
72 reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>, /* WL_REG_ON */
73 <&gpio0 27 GPIO_ACTIVE_LOW>, /* WL_RST */
74 <&gpio2 9 GPIO_ACTIVE_LOW>; /* BT_EN */
78 compatible = "simple-audio-card";
79 simple-audio-card,format = "i2s";
80 simple-audio-card,name = "rockchip,rt5616-codec";
81 simple-audio-card,mclk-fs = <512>;
82 simple-audio-card,widgets =
83 "Microphone", "Microphone Jack",
84 "Headphone", "Headphone Jack";
85 simple-audio-card,routing =
86 "MIC1", "Microphone Jack",
87 "MIC2", "Microphone Jack",
88 "Microphone Jack", "micbias1",
89 "Headphone Jack", "HPOL",
90 "Headphone Jack", "HPOR";
92 simple-audio-card,cpu {
96 simple-audio-card,codec {
97 sound-dai = <&rt5616>;
101 vcc_sys: vsys-regulator {
102 compatible = "regulator-fixed";
103 regulator-name = "vcc_sys";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
119 phy-reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>; /* PHY_RST */
120 phy-reset-duration = <10>; /* millisecond */
124 phy0: ethernet-phy@0 {
134 clock-frequency = <400000>;
139 compatible = "rockchip,rk808";
141 interrupt-parent = <&gpio2>;
142 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&pmic_int &global_pwroff>;
145 rockchip,system-power-controller;
148 clock-output-names = "xin32k", "rk808-clkout2";
150 vcc1-supply = <&vcc_sys>;
151 vcc2-supply = <&vcc_sys>;
152 vcc3-supply = <&vcc_sys>;
153 vcc4-supply = <&vcc_sys>;
154 vcc6-supply = <&vcc_sys>;
155 vcc7-supply = <&vcc_sys>;
156 vcc8-supply = <&vcc_18>;
157 vcc9-supply = <&vcc_io>;
158 vcc10-supply = <&vcc_io>;
159 vcc11-supply = <&vcc_sys>;
160 vcc12-supply = <&vcc_io>;
161 vddio-supply = <&vccio_pmu>;
167 regulator-min-microvolt = <750000>;
168 regulator-max-microvolt = <1350000>;
169 regulator-name = "vdd_arm";
170 regulator-state-mem {
171 regulator-off-in-suspend;
178 regulator-min-microvolt = <850000>;
179 regulator-max-microvolt = <1250000>;
180 regulator-name = "vdd_gpu";
181 regulator-state-mem {
182 regulator-on-in-suspend;
183 regulator-suspend-microvolt = <1000000>;
190 regulator-name = "vcc_ddr";
191 regulator-state-mem {
192 regulator-on-in-suspend;
199 regulator-min-microvolt = <3300000>;
200 regulator-max-microvolt = <3300000>;
201 regulator-name = "vcc_io";
202 regulator-state-mem {
203 regulator-on-in-suspend;
204 regulator-suspend-microvolt = <3300000>;
208 vccio_pmu: LDO_REG1 {
211 regulator-min-microvolt = <3300000>;
212 regulator-max-microvolt = <3300000>;
213 regulator-name = "vccio_pmu";
214 regulator-state-mem {
215 regulator-on-in-suspend;
216 regulator-suspend-microvolt = <3300000>;
223 regulator-min-microvolt = <3300000>;
224 regulator-max-microvolt = <3300000>;
225 regulator-name = "vcc_tp";
226 regulator-state-mem {
227 regulator-off-in-suspend;
234 regulator-min-microvolt = <1000000>;
235 regulator-max-microvolt = <1000000>;
236 regulator-name = "vdd_10";
237 regulator-state-mem {
238 regulator-on-in-suspend;
239 regulator-suspend-microvolt = <1000000>;
243 vcc18_lcd: LDO_REG4 {
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <1800000>;
248 regulator-name = "vcc18_lcd";
249 regulator-state-mem {
250 regulator-on-in-suspend;
251 regulator-suspend-microvolt = <1800000>;
258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <3300000>;
260 regulator-name = "vccio_sd";
261 regulator-state-mem {
262 regulator-on-in-suspend;
263 regulator-suspend-microvolt = <3300000>;
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <2500000>;
272 regulator-name = "vout5";
273 regulator-state-mem {
274 regulator-on-in-suspend;
275 regulator-suspend-microvolt = <1800000>;
282 regulator-min-microvolt = <1800000>;
283 regulator-max-microvolt = <1800000>;
284 regulator-name = "vcc_18";
285 regulator-state-mem {
286 regulator-on-in-suspend;
287 regulator-suspend-microvolt = <1800000>;
291 vcca_codec: LDO_REG8 {
294 regulator-min-microvolt = <1800000>;
295 regulator-max-microvolt = <1800000>;
296 regulator-name = "vcca_codec";
297 regulator-state-mem {
298 regulator-on-in-suspend;
299 regulator-suspend-microvolt = <1800000>;
303 vcc_wl: SWITCH_REG1 {
306 regulator-name = "vcc_wl";
307 regulator-state-mem {
308 regulator-on-in-suspend;
312 vcc_lcd: SWITCH_REG2 {
315 regulator-name = "vcc_lcd";
316 regulator-state-mem {
317 regulator-on-in-suspend;
328 compatible = "rt5616";
330 clocks = <&cru SCLK_I2S_OUT>;
331 clock-names = "mclk";
332 #sound-dai-cells = <0>;
337 #sound-dai-cells = <0>;
348 default-sample-phase = <90>;
349 keep-power-in-suspend;
350 mmc-pwrseq = <&sdio_pwrseq>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
365 card-detect-delay = <200>;
368 pinctrl-names = "default";
369 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
391 rockchip,pins = <2 30 RK_FUNC_GPIO &pcfg_pull_none>;
397 rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;
402 bt_wake_h: bt-wake-h {
403 rockchip,pins = <2 8 RK_FUNC_GPIO &pcfg_pull_default>;
408 sdmmc_pwr: sdmmc-pwr {
409 rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_none>;
414 global_pwroff: global-pwroff {
415 rockchip,pins = <2 7 RK_FUNC_1 &pcfg_pull_none>;