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 RK_PD6 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 RK_PD2 GPIO_ACTIVE_LOW>, /* WL_REG_ON */
78 <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>, /* WL_RST */
79 <&gpio2 RK_PB1 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 RK_PC6 GPIO_ACTIVE_LOW>; /* PHY_RST */
125 phy-reset-duration = <10>; /* millisecond */
129 phy0: ethernet-phy@0 {
139 mali-supply = <&vdd_gpu>;
148 clock-frequency = <400000>;
153 compatible = "rockchip,rk808";
155 interrupt-parent = <&gpio2>;
156 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
157 pinctrl-names = "default";
158 pinctrl-0 = <&pmic_int &global_pwroff>;
159 rockchip,system-power-controller;
162 clock-output-names = "xin32k", "rk808-clkout2";
164 vcc1-supply = <&vcc_sys>;
165 vcc2-supply = <&vcc_sys>;
166 vcc3-supply = <&vcc_sys>;
167 vcc4-supply = <&vcc_sys>;
168 vcc6-supply = <&vcc_sys>;
169 vcc7-supply = <&vcc_sys>;
170 vcc8-supply = <&vcc_18>;
171 vcc9-supply = <&vcc_io>;
172 vcc10-supply = <&vcc_io>;
173 vcc11-supply = <&vcc_sys>;
174 vcc12-supply = <&vcc_io>;
175 vddio-supply = <&vccio_pmu>;
181 regulator-min-microvolt = <750000>;
182 regulator-max-microvolt = <1350000>;
183 regulator-name = "vdd_arm";
184 regulator-state-mem {
185 regulator-off-in-suspend;
192 regulator-min-microvolt = <850000>;
193 regulator-max-microvolt = <1250000>;
194 regulator-name = "vdd_gpu";
195 regulator-state-mem {
196 regulator-on-in-suspend;
197 regulator-suspend-microvolt = <1000000>;
204 regulator-name = "vcc_ddr";
205 regulator-state-mem {
206 regulator-on-in-suspend;
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
215 regulator-name = "vcc_io";
216 regulator-state-mem {
217 regulator-on-in-suspend;
218 regulator-suspend-microvolt = <3300000>;
222 vccio_pmu: LDO_REG1 {
225 regulator-min-microvolt = <3300000>;
226 regulator-max-microvolt = <3300000>;
227 regulator-name = "vccio_pmu";
228 regulator-state-mem {
229 regulator-on-in-suspend;
230 regulator-suspend-microvolt = <3300000>;
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
239 regulator-name = "vcc_tp";
240 regulator-state-mem {
241 regulator-off-in-suspend;
248 regulator-min-microvolt = <1000000>;
249 regulator-max-microvolt = <1000000>;
250 regulator-name = "vdd_10";
251 regulator-state-mem {
252 regulator-on-in-suspend;
253 regulator-suspend-microvolt = <1000000>;
257 vcc18_lcd: LDO_REG4 {
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
262 regulator-name = "vcc18_lcd";
263 regulator-state-mem {
264 regulator-on-in-suspend;
265 regulator-suspend-microvolt = <1800000>;
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <3300000>;
274 regulator-name = "vccio_sd";
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 regulator-suspend-microvolt = <3300000>;
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <2500000>;
286 regulator-name = "vout5";
287 regulator-state-mem {
288 regulator-on-in-suspend;
289 regulator-suspend-microvolt = <1800000>;
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
298 regulator-name = "vcc_18";
299 regulator-state-mem {
300 regulator-on-in-suspend;
301 regulator-suspend-microvolt = <1800000>;
305 vcca_codec: LDO_REG8 {
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
310 regulator-name = "vcca_codec";
311 regulator-state-mem {
312 regulator-on-in-suspend;
313 regulator-suspend-microvolt = <1800000>;
317 vcc_wl: SWITCH_REG1 {
320 regulator-name = "vcc_wl";
321 regulator-state-mem {
322 regulator-on-in-suspend;
326 vcc_lcd: SWITCH_REG2 {
329 regulator-name = "vcc_lcd";
330 regulator-state-mem {
331 regulator-on-in-suspend;
342 compatible = "rt5616";
344 clocks = <&cru SCLK_I2S_OUT>;
345 clock-names = "mclk";
346 #sound-dai-cells = <0>;
351 #sound-dai-cells = <0>;
361 default-sample-phase = <90>;
362 keep-power-in-suspend;
363 mmc-pwrseq = <&sdio_pwrseq>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
377 card-detect-delay = <200>;
379 pinctrl-names = "default";
380 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
410 rockchip,pins = <2 30 RK_FUNC_GPIO &pcfg_pull_none>;
416 rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;
421 bt_wake_h: bt-wake-h {
422 rockchip,pins = <2 8 RK_FUNC_GPIO &pcfg_pull_default>;
427 sdmmc_pwr: sdmmc-pwr {
428 rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_none>;
433 global_pwroff: global-pwroff {
434 rockchip,pins = <2 7 RK_FUNC_1 &pcfg_pull_none>;