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 device_type = "memory";
51 reg = <0x60000000 0x20000000>;
55 compatible = "gpio-leds";
58 gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
59 label = "kylin:red:led";
60 pinctrl-names = "default";
61 pinctrl-0 = <&led_ctl>;
65 sdio_pwrseq: sdio-pwrseq {
66 compatible = "mmc-pwrseq-simple";
67 pinctrl-names = "default";
68 pinctrl-0 = <&bt_wake_h>;
71 * On the module itself this is one of these (depending
72 * on the actual card populated):
73 * - SDIO_RESET_L_WL_REG_ON
74 * - SDIO_RESET_L_WL_RST
75 * - SDIO_RESET_L_BT_EN
77 reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>, /* WL_REG_ON */
78 <&gpio0 27 GPIO_ACTIVE_LOW>, /* WL_RST */
79 <&gpio2 9 GPIO_ACTIVE_LOW>; /* BT_EN */
83 compatible = "simple-audio-card";
84 simple-audio-card,format = "i2s";
85 simple-audio-card,name = "rockchip,rt5616-codec";
86 simple-audio-card,mclk-fs = <512>;
87 simple-audio-card,widgets =
88 "Microphone", "Microphone Jack",
89 "Headphone", "Headphone Jack";
90 simple-audio-card,routing =
91 "MIC1", "Microphone Jack",
92 "MIC2", "Microphone Jack",
93 "Microphone Jack", "micbias1",
94 "Headphone Jack", "HPOL",
95 "Headphone Jack", "HPOR";
97 simple-audio-card,cpu {
101 simple-audio-card,codec {
102 sound-dai = <&rt5616>;
106 vcc_sys: vsys-regulator {
107 compatible = "regulator-fixed";
108 regulator-name = "vcc_sys";
109 regulator-min-microvolt = <5000000>;
110 regulator-max-microvolt = <5000000>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
124 phy-reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>; /* PHY_RST */
125 phy-reset-duration = <10>; /* millisecond */
129 phy0: ethernet-phy@0 {
147 clock-frequency = <400000>;
152 compatible = "rockchip,rk808";
154 interrupt-parent = <&gpio2>;
155 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&pmic_int &global_pwroff>;
158 rockchip,system-power-controller;
161 clock-output-names = "xin32k", "rk808-clkout2";
163 vcc1-supply = <&vcc_sys>;
164 vcc2-supply = <&vcc_sys>;
165 vcc3-supply = <&vcc_sys>;
166 vcc4-supply = <&vcc_sys>;
167 vcc6-supply = <&vcc_sys>;
168 vcc7-supply = <&vcc_sys>;
169 vcc8-supply = <&vcc_18>;
170 vcc9-supply = <&vcc_io>;
171 vcc10-supply = <&vcc_io>;
172 vcc11-supply = <&vcc_sys>;
173 vcc12-supply = <&vcc_io>;
174 vddio-supply = <&vccio_pmu>;
180 regulator-min-microvolt = <750000>;
181 regulator-max-microvolt = <1350000>;
182 regulator-name = "vdd_arm";
183 regulator-state-mem {
184 regulator-off-in-suspend;
191 regulator-min-microvolt = <850000>;
192 regulator-max-microvolt = <1250000>;
193 regulator-name = "vdd_gpu";
194 regulator-state-mem {
195 regulator-on-in-suspend;
196 regulator-suspend-microvolt = <1000000>;
203 regulator-name = "vcc_ddr";
204 regulator-state-mem {
205 regulator-on-in-suspend;
212 regulator-min-microvolt = <3300000>;
213 regulator-max-microvolt = <3300000>;
214 regulator-name = "vcc_io";
215 regulator-state-mem {
216 regulator-on-in-suspend;
217 regulator-suspend-microvolt = <3300000>;
221 vccio_pmu: LDO_REG1 {
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
226 regulator-name = "vccio_pmu";
227 regulator-state-mem {
228 regulator-on-in-suspend;
229 regulator-suspend-microvolt = <3300000>;
236 regulator-min-microvolt = <3300000>;
237 regulator-max-microvolt = <3300000>;
238 regulator-name = "vcc_tp";
239 regulator-state-mem {
240 regulator-off-in-suspend;
247 regulator-min-microvolt = <1000000>;
248 regulator-max-microvolt = <1000000>;
249 regulator-name = "vdd_10";
250 regulator-state-mem {
251 regulator-on-in-suspend;
252 regulator-suspend-microvolt = <1000000>;
256 vcc18_lcd: LDO_REG4 {
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <1800000>;
261 regulator-name = "vcc18_lcd";
262 regulator-state-mem {
263 regulator-on-in-suspend;
264 regulator-suspend-microvolt = <1800000>;
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <3300000>;
273 regulator-name = "vccio_sd";
274 regulator-state-mem {
275 regulator-on-in-suspend;
276 regulator-suspend-microvolt = <3300000>;
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <2500000>;
285 regulator-name = "vout5";
286 regulator-state-mem {
287 regulator-on-in-suspend;
288 regulator-suspend-microvolt = <1800000>;
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <1800000>;
297 regulator-name = "vcc_18";
298 regulator-state-mem {
299 regulator-on-in-suspend;
300 regulator-suspend-microvolt = <1800000>;
304 vcca_codec: LDO_REG8 {
307 regulator-min-microvolt = <1800000>;
308 regulator-max-microvolt = <1800000>;
309 regulator-name = "vcca_codec";
310 regulator-state-mem {
311 regulator-on-in-suspend;
312 regulator-suspend-microvolt = <1800000>;
316 vcc_wl: SWITCH_REG1 {
319 regulator-name = "vcc_wl";
320 regulator-state-mem {
321 regulator-on-in-suspend;
325 vcc_lcd: SWITCH_REG2 {
328 regulator-name = "vcc_lcd";
329 regulator-state-mem {
330 regulator-on-in-suspend;
341 compatible = "rt5616";
343 clocks = <&cru SCLK_I2S_OUT>;
344 clock-names = "mclk";
345 #sound-dai-cells = <0>;
350 #sound-dai-cells = <0>;
360 default-sample-phase = <90>;
361 keep-power-in-suspend;
362 mmc-pwrseq = <&sdio_pwrseq>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
377 card-detect-delay = <200>;
380 pinctrl-names = "default";
381 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
411 rockchip,pins = <2 30 RK_FUNC_GPIO &pcfg_pull_none>;
417 rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;
422 bt_wake_h: bt-wake-h {
423 rockchip,pins = <2 8 RK_FUNC_GPIO &pcfg_pull_default>;
428 sdmmc_pwr: sdmmc-pwr {
429 rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_none>;
434 global_pwroff: global-pwroff {
435 rockchip,pins = <2 7 RK_FUNC_1 &pcfg_pull_none>;