blob: 8869c1e209fe9c1d2050eaadcbc83ed96e3556c0 [file] [log] [blame]
Benoit Cousson492beed2011-08-16 15:59:52 +02001/*
2 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8/dts-v1/;
9
10/include/ "omap4.dtsi"
11
12/ {
13 model = "TI OMAP4 SDP board";
14 compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4";
15
Benoit Cousson492beed2011-08-16 15:59:52 +020016 memory {
17 device_type = "memory";
18 reg = <0x80000000 0x40000000>; /* 1 GB */
19 };
Benoit Coussone7c64db2012-01-20 14:17:00 +010020
Rajendra Nayak624411c2012-07-30 18:42:20 +053021 vdd_eth: fixedregulator-vdd-eth {
Benoit Coussone7c64db2012-01-20 14:17:00 +010022 compatible = "regulator-fixed";
23 regulator-name = "VDD_ETH";
24 regulator-min-microvolt = <3300000>;
25 regulator-max-microvolt = <3300000>;
26 gpio = <&gpio2 16 0>; /* gpio line 48 */
27 enable-active-high;
28 regulator-boot-on;
29 };
Benoit Cousson83909c72012-05-08 18:37:26 +020030
Rajendra Nayak624411c2012-07-30 18:42:20 +053031 vbat: fixedregulator-vbat {
Peter Ujfalusi4814f2f2012-06-08 17:02:01 +030032 compatible = "regulator-fixed";
33 regulator-name = "VBAT";
34 regulator-min-microvolt = <3750000>;
35 regulator-max-microvolt = <3750000>;
36 regulator-boot-on;
37 };
38
Benoit Cousson83909c72012-05-08 18:37:26 +020039 leds {
40 compatible = "gpio-leds";
41 debug0 {
42 label = "omap4:green:debug0";
43 gpios = <&gpio2 29 0>; /* 61 */
44 };
45
46 debug1 {
47 label = "omap4:green:debug1";
48 gpios = <&gpio1 30 0>; /* 30 */
49 };
50
51 debug2 {
52 label = "omap4:green:debug2";
53 gpios = <&gpio1 7 0>; /* 7 */
54 };
55
56 debug3 {
57 label = "omap4:green:debug3";
58 gpios = <&gpio1 8 0>; /* 8 */
59 };
60
61 debug4 {
62 label = "omap4:green:debug4";
63 gpios = <&gpio2 18 0>; /* 50 */
64 };
65
66 user1 {
67 label = "omap4:blue:user";
68 gpios = <&gpio6 9 0>; /* 169 */
69 };
70
71 user2 {
72 label = "omap4:red:user";
73 gpios = <&gpio6 10 0>; /* 170 */
74 };
75
76 user3 {
77 label = "omap4:green:user";
78 gpios = <&gpio5 11 0>; /* 139 */
79 };
80 };
Peter Ujfalusib15bb2c2012-06-08 17:02:03 +030081
82 sound {
83 compatible = "ti,abe-twl6040";
84 ti,model = "SDP4430";
85
86 ti,jack-detection = <1>;
87 ti,mclk-freq = <38400000>;
88
89 ti,mcpdm = <&mcpdm>;
90 ti,dmic = <&dmic>;
91
92 ti,twl6040 = <&twl6040>;
93
94 /* Audio routing */
95 ti,audio-routing =
96 "Headset Stereophone", "HSOL",
97 "Headset Stereophone", "HSOR",
98 "Earphone Spk", "EP",
99 "Ext Spk", "HFL",
100 "Ext Spk", "HFR",
101 "Line Out", "AUXL",
102 "Line Out", "AUXR",
103 "Vibrator", "VIBRAL",
104 "Vibrator", "VIBRAR",
105 "HSMIC", "Headset Mic",
106 "Headset Mic", "Headset Mic Bias",
107 "MAINMIC", "Main Handset Mic",
108 "Main Handset Mic", "Main Mic Bias",
109 "SUBMIC", "Sub Handset Mic",
110 "Sub Handset Mic", "Main Mic Bias",
111 "AFML", "Line In",
112 "AFMR", "Line In",
113 "DMic", "Digital Mic",
114 "Digital Mic", "Digital Mic1 Bias";
115 };
Benoit Cousson492beed2011-08-16 15:59:52 +0200116};
Benoit Cousson33632ae2011-08-23 17:17:46 +0200117
118&i2c1 {
119 clock-frequency = <400000>;
120
121 twl: twl@48 {
122 reg = <0x48>;
123 /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
124 interrupts = <0 7 4>; /* IRQ_SYS_1N cascaded to gic */
125 interrupt-parent = <&gic>;
126 };
Peter Ujfalusiefd2af52012-06-08 17:02:02 +0300127
128 twl6040: twl@4b {
129 compatible = "ti,twl6040";
130 reg = <0x4b>;
131 /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
132 interrupts = <0 119 4>; /* IRQ_SYS_2N cascaded to gic */
133 interrupt-parent = <&gic>;
134 ti,audpwron-gpio = <&gpio4 31 0>; /* gpio line 127 */
135
136 vio-supply = <&v1v8>;
137 v2v1-supply = <&v2v1>;
138 enable-active-high;
139
140 /* regulators for vibra motor */
141 vddvibl-supply = <&vbat>;
142 vddvibr-supply = <&vbat>;
143
144 vibra {
145 /* Vibra driver, motor resistance parameters */
146 ti,vibldrv-res = <8>;
147 ti,vibrdrv-res = <3>;
148 ti,viblmotor-res = <10>;
149 ti,vibrmotor-res = <10>;
150 };
151 };
Benoit Cousson33632ae2011-08-23 17:17:46 +0200152};
153
154/include/ "twl6030.dtsi"
155
156&i2c2 {
157 clock-frequency = <400000>;
158};
159
160&i2c3 {
161 clock-frequency = <400000>;
162
163 /*
164 * Temperature Sensor
165 * http://www.ti.com/lit/ds/symlink/tmp105.pdf
166 */
167 tmp105@48 {
168 compatible = "ti,tmp105";
169 reg = <0x48>;
170 };
171
172 /*
173 * Ambient Light Sensor
174 * http://www.rohm.com/products/databook/sensor/pdf/bh1780gli-e.pdf
175 */
176 bh1780@29 {
177 compatible = "rohm,bh1780";
178 reg = <0x29>;
179 };
180};
181
182&i2c4 {
183 clock-frequency = <400000>;
184
185 /*
186 * 3-Axis Digital Compass
187 * http://www.sparkfun.com/datasheets/Sensors/Magneto/HMC5843.pdf
188 */
189 hmc5843@1e {
190 compatible = "honeywell,hmc5843";
191 reg = <0x1e>;
192 };
193};
Benoit Coussone7c64db2012-01-20 14:17:00 +0100194
195&mcspi1 {
196 eth@0 {
197 compatible = "ks8851";
198 spi-max-frequency = <24000000>;
199 reg = <0>;
200 interrupt-parent = <&gpio2>;
201 interrupts = <2>; /* gpio line 34 */
202 vdd-supply = <&vdd_eth>;
203 };
204};
Rajendra Nayak74981762011-10-04 17:10:27 +0530205
206&mmc1 {
207 vmmc-supply = <&vmmc>;
Arnd Bergmann7f217792012-05-13 00:14:24 -0400208 bus-width = <8>;
Rajendra Nayak74981762011-10-04 17:10:27 +0530209};
210
211&mmc2 {
212 vmmc-supply = <&vaux1>;
Arnd Bergmann7f217792012-05-13 00:14:24 -0400213 bus-width = <8>;
Rajendra Nayak74981762011-10-04 17:10:27 +0530214 ti,non-removable;
215};
216
217&mmc3 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700218 status = "disabled";
Rajendra Nayak74981762011-10-04 17:10:27 +0530219};
220
221&mmc4 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700222 status = "disabled";
Rajendra Nayak74981762011-10-04 17:10:27 +0530223};
224
225&mmc5 {
Arnd Bergmann7f217792012-05-13 00:14:24 -0400226 bus-width = <4>;
Rajendra Nayak74981762011-10-04 17:10:27 +0530227 ti,non-removable;
228};
Sourav Poddar61bc3542012-08-14 16:45:37 +0530229
230&keypad {
231 keypad,num-rows = <8>;
232 keypad,num-columns = <8>;
233 linux,keymap = <0x00000012 /* KEY_E */
234 0x00010013 /* KEY_R */
235 0x00020014 /* KEY_T */
236 0x00030066 /* KEY_HOME */
237 0x0004003f /* KEY_F5 */
238 0x000500f0 /* KEY_UNKNOWN */
239 0x00060017 /* KEY_I */
240 0x0007002a /* KEY_LEFTSHIFT */
241 0x01000020 /* KEY_D*/
242 0x01010021 /* KEY_F */
243 0x01020022 /* KEY_G */
244 0x010300e7 /* KEY_SEND */
245 0x01040040 /* KEY_F6 */
246 0x010500f0 /* KEY_UNKNOWN */
247 0x01060025 /* KEY_K */
248 0x0107001c /* KEY_ENTER */
249 0x0200002d /* KEY_X */
250 0x0201002e /* KEY_C */
251 0x0202002f /* KEY_V */
252 0x0203006b /* KEY_END */
253 0x02040041 /* KEY_F7 */
254 0x020500f0 /* KEY_UNKNOWN */
255 0x02060034 /* KEY_DOT */
256 0x0207003a /* KEY_CAPSLOCK */
257 0x0300002c /* KEY_Z */
258 0x0301004e /* KEY_KPLUS */
259 0x03020030 /* KEY_B */
260 0x0303003b /* KEY_F1 */
261 0x03040042 /* KEY_F8 */
262 0x030500f0 /* KEY_UNKNOWN */
263 0x03060018 /* KEY_O */
264 0x03070039 /* KEY_SPACE */
265 0x04000011 /* KEY_W */
266 0x04010015 /* KEY_Y */
267 0x04020016 /* KEY_U */
268 0x0403003c /* KEY_F2 */
269 0x04040073 /* KEY_VOLUMEUP */
270 0x040500f0 /* KEY_UNKNOWN */
271 0x04060026 /* KEY_L */
272 0x04070069 /* KEY_LEFT */
273 0x0500001f /* KEY_S */
274 0x05010023 /* KEY_H */
275 0x05020024 /* KEY_J */
276 0x0503003d /* KEY_F3 */
277 0x05040043 /* KEY_F9 */
278 0x05050072 /* KEY_VOLUMEDOWN */
279 0x05060032 /* KEY_M */
280 0x0507006a /* KEY_RIGHT */
281 0x06000010 /* KEY_Q */
282 0x0601001e /* KEY_A */
283 0x06020031 /* KEY_N */
284 0x0603009e /* KEY_BACK */
285 0x0604000e /* KEY_BACKSPACE */
286 0x060500f0 /* KEY_UNKNOWN */
287 0x06060019 /* KEY_P */
288 0x06070067 /* KEY_UP */
289 0x07000094 /* KEY_PROG1 */
290 0x07010095 /* KEY_PROG2 */
291 0x070200ca /* KEY_PROG3 */
292 0x070300cb /* KEY_PROG4 */
293 0x0704003e /* KEY_F4 */
294 0x070500f0 /* KEY_UNKNOWN */
295 0x07060160 /* KEY_OK */
296 0x0707006c>; /* KEY_DOWN */
297 linux,input-no-autorepeat;
298};