]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/arm/boot/dts/rk3066a-bqcurie2.dts
ARM: dts: rockchip: add arm,pl330-broken-no-flushp quirk for rk3036 SoCs
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / rk3066a-bqcurie2.dts
1 /*
2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44 /dts-v1/;
45 #include "rk3066a.dtsi"
46
47 / {
48 model = "bq Curie 2";
49 compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
50
51 memory {
52 device_type = "memory";
53 reg = <0x60000000 0x40000000>;
54 };
55
56 vdd_log: vdd-log {
57 compatible = "pwm-regulator";
58 pwms = <&pwm3 0 1000>;
59 regulator-name = "vdd_log";
60 regulator-min-microvolt = <1200000>;
61 regulator-max-microvolt = <1200000>;
62 regulator-always-on;
63 voltage-table = <1000000 100>,
64 <1200000 42>;
65 status = "okay";
66 };
67
68 vcc_sd0: fixed-regulator {
69 compatible = "regulator-fixed";
70 regulator-name = "sdmmc-supply";
71 regulator-min-microvolt = <3000000>;
72 regulator-max-microvolt = <3000000>;
73 gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
74 startup-delay-us = <100000>;
75 vin-supply = <&vcc_io>;
76 };
77
78 gpio-keys {
79 compatible = "gpio-keys";
80 #address-cells = <1>;
81 #size-cells = <0>;
82 autorepeat;
83
84 button@0 {
85 gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */
86 linux,code = <116>;
87 label = "GPIO Key Power";
88 linux,input-type = <1>;
89 gpio-key,wakeup = <1>;
90 debounce-interval = <100>;
91 };
92 button@1 {
93 gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */
94 linux,code = <104>;
95 label = "GPIO Key Vol-";
96 linux,input-type = <1>;
97 gpio-key,wakeup = <0>;
98 debounce-interval = <100>;
99 };
100 /* VOL+ comes somehow thru the ADC */
101 };
102 };
103
104 &cpu0 {
105 cpu0-supply = <&vdd_arm>;
106 };
107
108 &i2c1 {
109 status = "okay";
110 clock-frequency = <400000>;
111
112 tps: tps@2d {
113 reg = <0x2d>;
114
115 interrupt-parent = <&gpio6>;
116 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
117
118 vcc5-supply = <&vcc_io>;
119 vcc6-supply = <&vcc_io>;
120
121 regulators {
122 vcc_rtc: regulator@0 {
123 regulator-name = "vcc_rtc";
124 regulator-always-on;
125 };
126
127 vcc_io: regulator@1 {
128 regulator-name = "vcc_io";
129 regulator-always-on;
130 };
131
132 vdd_arm: regulator@2 {
133 regulator-name = "vdd_arm";
134 regulator-min-microvolt = <600000>;
135 regulator-max-microvolt = <1500000>;
136 regulator-boot-on;
137 regulator-always-on;
138 };
139
140 vcc_ddr: regulator@3 {
141 regulator-name = "vcc_ddr";
142 regulator-min-microvolt = <600000>;
143 regulator-max-microvolt = <1500000>;
144 regulator-boot-on;
145 regulator-always-on;
146 };
147
148 vcc18_cif: regulator@5 {
149 regulator-name = "vcc18_cif";
150 regulator-always-on;
151 };
152
153 vdd_11: regulator@6 {
154 regulator-name = "vdd_11";
155 regulator-always-on;
156 };
157
158 vcc_25: regulator@7 {
159 regulator-name = "vcc_25";
160 regulator-always-on;
161 };
162
163 vcc_18: regulator@8 {
164 regulator-name = "vcc_18";
165 regulator-always-on;
166 };
167
168 vcc25_hdmi: regulator@9 {
169 regulator-name = "vcc25_hdmi";
170 regulator-always-on;
171 };
172
173 vcca_33: regulator@10 {
174 regulator-name = "vcca_33";
175 regulator-always-on;
176 };
177
178 vcc_tp: regulator@11 {
179 regulator-name = "vcc_tp";
180 regulator-always-on;
181 };
182
183 vcc28_cif: regulator@12 {
184 regulator-name = "vcc28_cif";
185 regulator-always-on;
186 };
187 };
188 };
189 };
190
191 /* must be included after &tps gets defined */
192 #include "tps65910.dtsi"
193
194 &mmc0 { /* sdmmc */
195 num-slots = <1>;
196 status = "okay";
197 pinctrl-names = "default";
198 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
199 vmmc-supply = <&vcc_sd0>;
200 bus-width = <4>;
201 cap-mmc-highspeed;
202 cap-sd-highspeed;
203 disable-wp;
204 };
205
206 &mmc1 { /* wifi */
207 num-slots = <1>;
208 status = "okay";
209 non-removable;
210
211 pinctrl-names = "default";
212 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
213
214 bus-width = <4>;
215 disable-wp;
216 };
217
218 &pwm3 {
219 status = "okay";
220 };
221
222 &uart0 {
223 status = "okay";
224 };
225
226 &uart1 {
227 status = "okay";
228 };
229
230 &uart2 {
231 status = "okay";
232 };
233
234 &uart3 {
235 status = "okay";
236 };
237
238 &wdt {
239 status = "okay";
240 };