ARM: dts: rockchip: add accelerometer bma250e dt node for rv1108 evb
[linux-2.6-microblaze.git] / arch / arm / boot / dts / rv1108-evb.dts
1 /*
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
5  * whole.
6  *
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.
11  *
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.
16  *
17  *  Or, alternatively,
18  *
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
26  *     conditions:
27  *
28  *     The above copyright notice and this permission notice shall be
29  *     included in all copies or substantial portions of the Software.
30  *
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.
39  */
40
41 /dts-v1/;
42
43 #include "rv1108.dtsi"
44
45 / {
46         model = "Rockchip RV1108 Evaluation board";
47         compatible = "rockchip,rv1108-evb", "rockchip,rv1108";
48
49         memory@60000000 {
50                 device_type = "memory";
51                 reg = <0x60000000 0x08000000>;
52         };
53
54         chosen {
55                 stdout-path = "serial2:1500000n8";
56         };
57
58         backlight: backlight {
59                 compatible = "pwm-backlight";
60                 brightness-levels = <
61                           0   1   2   3   4   5   6   7
62                           8   9  10  11  12  13  14  15
63                          16  17  18  19  20  21  22  23
64                          24  25  26  27  28  29  30  31
65                          32  33  34  35  36  37  38  39
66                          40  41  42  43  44  45  46  47
67                          48  49  50  51  52  53  54  55
68                          56  57  58  59  60  61  62  63
69                          64  65  66  67  68  69  70  71
70                          72  73  74  75  76  77  78  79
71                          80  81  82  83  84  85  86  87
72                          88  89  90  91  92  93  94  95
73                          96  97  98  99 100 101 102 103
74                         104 105 106 107 108 109 110 111
75                         112 113 114 115 116 117 118 119
76                         120 121 122 123 124 125 126 127
77                         128 129 130 131 132 133 134 135
78                         136 137 138 139 140 141 142 143
79                         144 145 146 147 148 149 150 151
80                         152 153 154 155 156 157 158 159
81                         160 161 162 163 164 165 166 167
82                         168 169 170 171 172 173 174 175
83                         176 177 178 179 180 181 182 183
84                         184 185 186 187 188 189 190 191
85                         192 193 194 195 196 197 198 199
86                         200 201 202 203 204 205 206 207
87                         208 209 210 211 212 213 214 215
88                         216 217 218 219 220 221 222 223
89                         224 225 226 227 228 229 230 231
90                         232 233 234 235 236 237 238 239
91                         240 241 242 243 244 245 246 247
92                         248 249 250 251 252 253 254 255>;
93                 default-brightness-level = <200>;
94                 pwms = <&pwm0 0 25000 0>;
95         };
96
97         vcc_sys: vsys-regulator {
98                 compatible = "regulator-fixed";
99                 regulator-name = "vsys";
100                 regulator-min-microvolt = <5000000>;
101                 regulator-max-microvolt = <5000000>;
102                 regulator-boot-on;
103         };
104 };
105
106 &i2c0 {
107         status = "okay";
108         i2c-scl-rising-time-ns = <275>;
109         i2c-scl-falling-time-ns = <16>;
110         clock-frequency = <400000>;
111
112         rk805: pmic@18 {
113                 compatible = "rockchip,rk805";
114                 reg = <0x18>;
115                 interrupt-parent = <&gpio0>;
116                 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
117                 rockchip,system-power-controller;
118
119                 vcc1-supply = <&vcc_sys>;
120                 vcc2-supply = <&vcc_sys>;
121                 vcc3-supply = <&vcc_sys>;
122                 vcc4-supply = <&vcc_sys>;
123                 vcc5-supply = <&vcc_sys>;
124                 vcc6-supply = <&vcc_sys>;
125
126                 regulators {
127                         vdd_core: DCDC_REG1 {
128                                 regulator-name= "vdd_core";
129                                 regulator-min-microvolt = <700000>;
130                                 regulator-max-microvolt = <1500000>;
131                                 regulator-always-on;
132                                 regulator-boot-on;
133                                 regulator-state-mem {
134                                         regulator-state-enabled;
135                                         regulator-state-uv = <900000>;
136                                 };
137                         };
138
139                         vdd_cam: DCDC_REG2 {
140                                 regulator-name= "vdd_cam";
141                                 regulator-min-microvolt = <700000>;
142                                 regulator-max-microvolt = <2000000>;
143                                 regulator-state-mem {
144                                         regulator-state-disabled;
145                                 };
146                         };
147
148                         vcc_ddr: DCDC_REG3 {
149                                 regulator-name= "vcc_ddr";
150                                 regulator-always-on;
151                                 regulator-boot-on;
152                                 regulator-state-mem {
153                                         regulator-state-enabled;
154                                 };
155                         };
156
157                         vcc_io: DCDC_REG4 {
158                                 regulator-name= "vcc_io";
159                                 regulator-min-microvolt = <3300000>;
160                                 regulator-max-microvolt = <3300000>;
161                                 regulator-always-on;
162                                 regulator-boot-on;
163                                 regulator-state-mem {
164                                         regulator-state-enabled;
165                                         regulator-state-uv = <3300000>;
166                                 };
167                         };
168
169                         vdd_10: LDO_REG1 {
170                                 regulator-name= "vdd_10";
171                                 regulator-min-microvolt = <1000000>;
172                                 regulator-max-microvolt = <1000000>;
173                                 regulator-always-on;
174                                 regulator-boot-on;
175                                 regulator-state-mem {
176                                         regulator-state-disabled;
177                                 };
178                         };
179
180                         vcc_18: LDO_REG2 {
181                                 regulator-name= "vcc_18";
182                                 regulator-min-microvolt = <1800000>;
183                                 regulator-max-microvolt = <1800000>;
184                                 regulator-always-on;
185                                 regulator-boot-on;
186                                 regulator-state-mem {
187                                         regulator-state-disabled;
188                                 };
189                         };
190
191                         vdd10_pmu: LDO_REG3 {
192                                 regulator-name= "vdd10_pmu";
193                                 regulator-min-microvolt = <1000000>;
194                                 regulator-max-microvolt = <1000000>;
195                                 regulator-always-on;
196                                 regulator-boot-on;
197                                 regulator-state-mem {
198                                         regulator-state-enabled;
199                                         regulator-state-uv = <1000000>;
200                                 };
201                         };
202                 };
203         };
204
205         bma250: accelerometer@19 {
206                 compatible = "bosch,bma250e";
207                 reg = <0x19>;
208                 interrupt-parent = <&gpio0>;
209                 interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>;
210         };
211 };
212
213 &pwm0 {
214         status = "okay";
215 };
216
217 &sdmmc {
218         status = "okay";
219 };
220
221 &uart0 {
222         status = "okay";
223 };
224
225 &uart1 {
226         status = "okay";
227 };
228
229 &uart2 {
230         status = "okay";
231 };