Commit | Line | Data |
---|---|---|
95866096 HS |
1 | /* |
2 | * Copyright (c) 2013 MundoReader S.L. | |
3 | * Author: Heiko Stuebner <heiko@sntech.de> | |
4 | * | |
38fed860 HS |
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. | |
95866096 | 9 | * |
38fed860 HS |
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. | |
95866096 HS |
42 | */ |
43 | ||
44 | /dts-v1/; | |
45 | #include "rk3066a.dtsi" | |
46 | ||
47 | / { | |
48 | model = "bq Curie 2"; | |
ac4eba8e | 49 | compatible = "mundoreader,bq-curie2", "rockchip,rk3066a"; |
95866096 HS |
50 | |
51 | memory { | |
6158e6d0 | 52 | device_type = "memory"; |
95866096 HS |
53 | reg = <0x60000000 0x40000000>; |
54 | }; | |
55 | ||
ac79e0ef AY |
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 | ||
c3030d30 HS |
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>; | |
a953a6c7 | 75 | vin-supply = <&vcc_io>; |
c3030d30 | 76 | }; |
95866096 | 77 | |
c3030d30 HS |
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>; | |
4f66f247 | 89 | wakeup-source; |
c3030d30 HS |
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>; | |
c3030d30 | 97 | debounce-interval = <100>; |
95866096 | 98 | }; |
c3030d30 | 99 | /* VOL+ comes somehow thru the ADC */ |
95866096 HS |
100 | }; |
101 | }; | |
fcbbf965 | 102 | |
3adb1327 HS |
103 | &cpu0 { |
104 | cpu0-supply = <&vdd_arm>; | |
105 | }; | |
106 | ||
a953a6c7 HS |
107 | &i2c1 { |
108 | status = "okay"; | |
109 | clock-frequency = <400000>; | |
110 | ||
111 | tps: tps@2d { | |
112 | reg = <0x2d>; | |
113 | ||
114 | interrupt-parent = <&gpio6>; | |
115 | interrupts = <6 IRQ_TYPE_LEVEL_LOW>; | |
116 | ||
117 | vcc5-supply = <&vcc_io>; | |
118 | vcc6-supply = <&vcc_io>; | |
119 | ||
120 | regulators { | |
121 | vcc_rtc: regulator@0 { | |
122 | regulator-name = "vcc_rtc"; | |
123 | regulator-always-on; | |
124 | }; | |
125 | ||
126 | vcc_io: regulator@1 { | |
127 | regulator-name = "vcc_io"; | |
128 | regulator-always-on; | |
129 | }; | |
130 | ||
131 | vdd_arm: regulator@2 { | |
132 | regulator-name = "vdd_arm"; | |
133 | regulator-min-microvolt = <600000>; | |
134 | regulator-max-microvolt = <1500000>; | |
135 | regulator-boot-on; | |
136 | regulator-always-on; | |
137 | }; | |
138 | ||
139 | vcc_ddr: regulator@3 { | |
140 | regulator-name = "vcc_ddr"; | |
141 | regulator-min-microvolt = <600000>; | |
142 | regulator-max-microvolt = <1500000>; | |
143 | regulator-boot-on; | |
144 | regulator-always-on; | |
145 | }; | |
146 | ||
147 | vcc18_cif: regulator@5 { | |
148 | regulator-name = "vcc18_cif"; | |
149 | regulator-always-on; | |
150 | }; | |
151 | ||
152 | vdd_11: regulator@6 { | |
153 | regulator-name = "vdd_11"; | |
154 | regulator-always-on; | |
155 | }; | |
156 | ||
157 | vcc_25: regulator@7 { | |
158 | regulator-name = "vcc_25"; | |
159 | regulator-always-on; | |
160 | }; | |
161 | ||
162 | vcc_18: regulator@8 { | |
163 | regulator-name = "vcc_18"; | |
164 | regulator-always-on; | |
165 | }; | |
166 | ||
167 | vcc25_hdmi: regulator@9 { | |
168 | regulator-name = "vcc25_hdmi"; | |
169 | regulator-always-on; | |
170 | }; | |
171 | ||
172 | vcca_33: regulator@10 { | |
173 | regulator-name = "vcca_33"; | |
174 | regulator-always-on; | |
175 | }; | |
176 | ||
177 | vcc_tp: regulator@11 { | |
178 | regulator-name = "vcc_tp"; | |
179 | regulator-always-on; | |
180 | }; | |
181 | ||
182 | vcc28_cif: regulator@12 { | |
183 | regulator-name = "vcc28_cif"; | |
184 | regulator-always-on; | |
185 | }; | |
186 | }; | |
187 | }; | |
188 | }; | |
189 | ||
190 | /* must be included after &tps gets defined */ | |
191 | #include "tps65910.dtsi" | |
192 | ||
fcbbf965 HS |
193 | &mmc0 { /* sdmmc */ |
194 | num-slots = <1>; | |
195 | status = "okay"; | |
1302d32c HS |
196 | pinctrl-names = "default"; |
197 | pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>; | |
fcbbf965 | 198 | vmmc-supply = <&vcc_sd0>; |
356649ab | 199 | bus-width = <4>; |
1d727ec9 SL |
200 | cap-mmc-highspeed; |
201 | cap-sd-highspeed; | |
356649ab | 202 | disable-wp; |
fcbbf965 HS |
203 | }; |
204 | ||
205 | &mmc1 { /* wifi */ | |
206 | num-slots = <1>; | |
207 | status = "okay"; | |
208 | non-removable; | |
209 | ||
210 | pinctrl-names = "default"; | |
211 | pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>; | |
212 | ||
356649ab JC |
213 | bus-width = <4>; |
214 | disable-wp; | |
fcbbf965 HS |
215 | }; |
216 | ||
ac79e0ef AY |
217 | &pwm3 { |
218 | status = "okay"; | |
219 | }; | |
220 | ||
fcbbf965 HS |
221 | &uart0 { |
222 | status = "okay"; | |
223 | }; | |
224 | ||
225 | &uart1 { | |
226 | status = "okay"; | |
227 | }; | |
228 | ||
229 | &uart2 { | |
230 | status = "okay"; | |
231 | }; | |
232 | ||
233 | &uart3 { | |
234 | status = "okay"; | |
235 | }; | |
eb2b9d47 HS |
236 | |
237 | &wdt { | |
238 | status = "okay"; | |
239 | }; |