aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/Makefile1
-rw-r--r--arch/arm/boot/dts/rk3066a-marsboard.dts192
2 files changed, 193 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 38c89cafa1ab..45dc351a81fc 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -365,6 +365,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
365 qcom-msm8974-sony-xperia-honami.dtb 365 qcom-msm8974-sony-xperia-honami.dtb
366dtb-$(CONFIG_ARCH_ROCKCHIP) += \ 366dtb-$(CONFIG_ARCH_ROCKCHIP) += \
367 rk3066a-bqcurie2.dtb \ 367 rk3066a-bqcurie2.dtb \
368 rk3066a-marsboard.dtb \
368 rk3188-radxarock.dtb \ 369 rk3188-radxarock.dtb \
369 rk3288-evb-act8846.dtb \ 370 rk3288-evb-act8846.dtb \
370 rk3288-evb-rk808.dtb 371 rk3288-evb-rk808.dtb
diff --git a/arch/arm/boot/dts/rk3066a-marsboard.dts b/arch/arm/boot/dts/rk3066a-marsboard.dts
new file mode 100644
index 000000000000..57489ee54022
--- /dev/null
+++ b/arch/arm/boot/dts/rk3066a-marsboard.dts
@@ -0,0 +1,192 @@
1/*
2 * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
41 */
42
43/dts-v1/;
44#include "rk3066a.dtsi"
45
46/ {
47 model = "MarsBoard RK3066";
48 compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a";
49
50 memory {
51 reg = <0x60000000 0x40000000>;
52 };
53
54 vcc_sd0: sdmmc-regulator {
55 compatible = "regulator-fixed";
56 regulator-name = "sdmmc-supply";
57 regulator-min-microvolt = <3000000>;
58 regulator-max-microvolt = <3000000>;
59 gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
60 startup-delay-us = <100000>;
61 vin-supply = <&vcc_io>;
62 };
63};
64
65&i2c1 {
66 status = "okay";
67 clock-frequency = <400000>;
68
69 tps: tps@2d {
70 reg = <0x2d>;
71
72 interrupt-parent = <&gpio6>;
73 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
74
75 vcc5-supply = <&vcc_io>;
76 vcc6-supply = <&vcc_io>;
77
78 regulators {
79 vcc_rtc: regulator@0 {
80 regulator-name = "vcc_rtc";
81 regulator-always-on;
82 };
83
84 vcc_io: regulator@1 {
85 regulator-name = "vcc_io";
86 regulator-always-on;
87 };
88
89 vdd_arm: regulator@2 {
90 regulator-name = "vdd_arm";
91 regulator-min-microvolt = <600000>;
92 regulator-max-microvolt = <1500000>;
93 regulator-boot-on;
94 regulator-always-on;
95 };
96
97 vcc_ddr: regulator@3 {
98 regulator-name = "vcc_ddr";
99 regulator-min-microvolt = <600000>;
100 regulator-max-microvolt = <1500000>;
101 regulator-boot-on;
102 regulator-always-on;
103 };
104
105 vcc18_cif: regulator@5 {
106 regulator-name = "vcc18_cif";
107 regulator-always-on;
108 };
109
110 vdd_11: regulator@6 {
111 regulator-name = "vdd_11";
112 regulator-always-on;
113 };
114
115 vcc_25: regulator@7 {
116 regulator-name = "vcc_25";
117 regulator-always-on;
118 };
119
120 vcc_18: regulator@8 {
121 regulator-name = "vcc_18";
122 regulator-always-on;
123 };
124
125 vcc25_hdmi: regulator@9 {
126 regulator-name = "vcc25_hdmi";
127 regulator-always-on;
128 };
129
130 vcca_33: regulator@10 {
131 regulator-name = "vcca_33";
132 regulator-always-on;
133 };
134
135 vcc_rmii: regulator@11 {
136 regulator-name = "vcc_rmii";
137 };
138
139 vcc28_cif: regulator@12 {
140 regulator-name = "vcc28_cif";
141 regulator-always-on;
142 };
143 };
144 };
145};
146
147/* must be included after &tps gets defined */
148#include "tps65910.dtsi"
149
150&emac {
151 status = "okay";
152
153 phy = <&phy0>;
154 phy-supply = <&vcc_rmii>;
155
156 pinctrl-names = "default";
157 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
158
159 phy0: ethernet-phy@0 {
160 reg = <0>;
161 interrupt-parent = <&gpio1>;
162 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
163 };
164};
165
166&pinctrl {
167 lan8720a {
168 phy_int: phy-int {
169 rockchip,pins = <RK_GPIO1 26 RK_FUNC_GPIO &pcfg_pull_none>;
170 };
171 };
172};
173
174&uart0 {
175 status = "okay";
176};
177
178&uart1 {
179 status = "okay";
180};
181
182&uart2 {
183 status = "okay";
184};
185
186&uart3 {
187 status = "okay";
188};
189
190&wdt {
191 status = "okay";
192};