1 /*
2 * Device Tree for DA850 EVM board
3 *
4 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, version 2.
9 */
10 /dts-v1/;
11 #include "da850.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
14 / {
15 compatible = "ti,da850-evm", "ti,da850";
16 model = "DA850/AM1808/OMAP-L138 EVM";
18 chosen {
19 stdout-path = &serial2;
20 };
22 aliases {
23 serial0 = &serial0;
24 serial1 = &serial1;
25 serial2 = &serial2;
26 ethernet0 = ð0;
27 spi0 = &spi1;
28 };
30 backlight: backlight-pwm {
31 pinctrl-names = "default";
32 pinctrl-0 = <&ecap2_pins>;
33 power-supply = <&backlight_lcd>;
34 compatible = "pwm-backlight";
35 /*
36 * The PWM here corresponds to production hardware. The
37 * schematic needs to be 1015171 (15 March 2010), Rev A
38 * or newer.
39 */
40 pwms = <&ecap2 0 50000 0>;
41 brightness-levels = <0 10 20 30 40 50 60 70 80 90 99>;
42 default-brightness-level = <7>;
43 };
45 panel {
46 compatible = "ti,tilcdc,panel";
47 pinctrl-names = "default";
48 pinctrl-0 = <&lcd_pins>;
49 /*
50 * The vpif and the LCD are mutually exclusive.
51 * To enable VPIF, change the status below to 'disabled' then
52 * then change the status of the vpif below to 'okay'
53 */
54 status = "okay";
55 enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; /* lcd_panel_pwr */
57 panel-info {
58 ac-bias = <255>;
59 ac-bias-intrpt = <0>;
60 dma-burst-sz = <16>;
61 bpp = <16>;
62 fdd = <0x80>;
63 sync-edge = <0>;
64 sync-ctrl = <1>;
65 raster-order = <0>;
66 fifo-th = <0>;
67 };
69 display-timings {
70 native-mode = <&timing0>;
71 timing0: 480x272 {
72 clock-frequency = <9000000>;
73 hactive = <480>;
74 vactive = <272>;
75 hfront-porch = <3>;
76 hback-porch = <2>;
77 hsync-len = <42>;
78 vback-porch = <3>;
79 vfront-porch = <4>;
80 vsync-len = <11>;
81 hsync-active = <0>;
82 vsync-active = <0>;
83 de-active = <1>;
84 pixelclk-active = <1>;
85 };
86 };
87 };
89 vbat: fixedregulator0 {
90 compatible = "regulator-fixed";
91 regulator-name = "vbat";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
94 regulator-boot-on;
95 };
97 backlight_lcd: backlight-regulator {
98 compatible = "regulator-fixed";
99 regulator-name = "lcd_backlight_pwr";
100 regulator-min-microvolt = <3300000>;
101 regulator-max-microvolt = <3300000>;
102 gpio = <&gpio 47 GPIO_ACTIVE_HIGH>; /* lcd_backlight_pwr */
103 enable-active-high;
104 };
106 sound {
107 compatible = "simple-audio-card";
108 simple-audio-card,name = "DA850/OMAP-L138 EVM";
109 simple-audio-card,widgets =
110 "Line", "Line In",
111 "Line", "Line Out";
112 simple-audio-card,routing =
113 "LINE1L", "Line In",
114 "LINE1R", "Line In",
115 "Line Out", "LLOUT",
116 "Line Out", "RLOUT";
117 simple-audio-card,format = "dsp_b";
118 simple-audio-card,bitclock-master = <&link0_codec>;
119 simple-audio-card,frame-master = <&link0_codec>;
120 simple-audio-card,bitclock-inversion;
122 simple-audio-card,cpu {
123 sound-dai = <&mcasp0>;
124 system-clock-frequency = <24576000>;
125 };
127 link0_codec: simple-audio-card,codec {
128 sound-dai = <&tlv320aic3106>;
129 system-clock-frequency = <24576000>;
130 };
131 };
132 };
134 &ecap2 {
135 status = "okay";
136 };
138 &ref_clk {
139 clock-frequency = <24000000>;
140 };
142 &pmx_core {
143 status = "okay";
145 mcasp0_pins: pinmux_mcasp0_pins {
146 pinctrl-single,bits = <
147 /*
148 * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR,
149 * AFSR, AMUTE
150 */
151 0x00 0x11111111 0xffffffff
152 /* AXR11, AXR12 */
153 0x04 0x00011000 0x000ff000
154 >;
155 };
156 nand_pins: nand_pins {
157 pinctrl-single,bits = <
158 /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */
159 0x1c 0x10110110 0xf0ff0ff0
160 /*
161 * EMA_D[0], EMA_D[1], EMA_D[2],
162 * EMA_D[3], EMA_D[4], EMA_D[5],
163 * EMA_D[6], EMA_D[7]
164 */
165 0x24 0x11111111 0xffffffff
166 /* EMA_A[1], EMA_A[2] */
167 0x30 0x01100000 0x0ff00000
168 >;
169 };
170 };
172 &sata {
173 status = "okay";
174 };
176 &serial0 {
177 status = "okay";
178 };
180 &serial1 {
181 status = "okay";
182 };
184 &serial2 {
185 status = "okay";
186 };
188 &rtc0 {
189 status = "okay";
190 };
192 &lcdc {
193 status = "okay";
194 };
196 &i2c0 {
197 status = "okay";
198 clock-frequency = <100000>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&i2c0_pins>;
202 tps: tps@48 {
203 reg = <0x48>;
204 };
205 tlv320aic3106: tlv320aic3106@18 {
206 #sound-dai-cells = <0>;
207 compatible = "ti,tlv320aic3106";
208 reg = <0x18>;
209 status = "okay";
211 /* Regulators */
212 IOVDD-supply = <&vdcdc2_reg>;
213 /* Derived from VBAT: Baseboard 3.3V / 1.8V */
214 AVDD-supply = <&vbat>;
215 DRVDD-supply = <&vbat>;
216 DVDD-supply = <&vbat>;
217 };
218 tca6416: gpio@20 {
219 compatible = "ti,tca6416";
220 reg = <0x20>;
221 gpio-controller;
222 #gpio-cells = <2>;
223 };
224 };
226 &wdt {
227 status = "okay";
228 };
230 &mmc0 {
231 max-frequency = <50000000>;
232 bus-width = <4>;
233 status = "okay";
234 pinctrl-names = "default";
235 pinctrl-0 = <&mmc0_pins>;
236 cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
237 wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
238 };
240 &spi1 {
241 status = "okay";
242 pinctrl-names = "default";
243 pinctrl-0 = <&spi1_pins &spi1_cs0_pin>;
244 flash: m25p80@0 {
245 #address-cells = <1>;
246 #size-cells = <1>;
247 compatible = "m25p64";
248 spi-max-frequency = <30000000>;
249 m25p,fast-read;
250 reg = <0>;
251 partition@0 {
252 label = "U-Boot-SPL";
253 reg = <0x00000000 0x00010000>;
254 read-only;
255 };
256 partition@1 {
257 label = "U-Boot";
258 reg = <0x00010000 0x00080000>;
259 read-only;
260 };
261 partition@2 {
262 label = "U-Boot-Env";
263 reg = <0x00090000 0x00010000>;
264 read-only;
265 };
266 partition@3 {
267 label = "Kernel";
268 reg = <0x000a0000 0x00280000>;
269 };
270 partition@4 {
271 label = "Filesystem";
272 reg = <0x00320000 0x00400000>;
273 };
274 partition@5 {
275 label = "MAC-Address";
276 reg = <0x007f0000 0x00010000>;
277 read-only;
278 };
279 };
280 };
282 &mdio {
283 status = "okay";
284 pinctrl-names = "default";
285 pinctrl-0 = <&mdio_pins>;
286 bus_freq = <2200000>;
287 };
289 ð0 {
290 status = "okay";
291 pinctrl-names = "default";
292 pinctrl-0 = <&mii_pins>;
293 };
295 &gpio {
296 status = "okay";
297 };
299 /include/ "tps6507x.dtsi"
301 &tps {
302 vdcdc1_2-supply = <&vbat>;
303 vdcdc3-supply = <&vbat>;
304 vldo1_2-supply = <&vbat>;
306 regulators {
307 vdcdc1_reg: regulator@0 {
308 regulator-name = "VDCDC1_3.3V";
309 regulator-min-microvolt = <3150000>;
310 regulator-max-microvolt = <3450000>;
311 regulator-always-on;
312 regulator-boot-on;
313 };
315 vdcdc2_reg: regulator@1 {
316 regulator-name = "VDCDC2_3.3V";
317 regulator-min-microvolt = <1710000>;
318 regulator-max-microvolt = <3450000>;
319 regulator-always-on;
320 regulator-boot-on;
321 ti,defdcdc_default = <1>;
322 };
324 vdcdc3_reg: regulator@2 {
325 regulator-name = "VDCDC3_1.2V";
326 regulator-min-microvolt = <950000>;
327 regulator-max-microvolt = <1350000>;
328 regulator-always-on;
329 regulator-boot-on;
330 ti,defdcdc_default = <1>;
331 };
333 ldo1_reg: regulator@3 {
334 regulator-name = "LDO1_1.8V";
335 regulator-min-microvolt = <1710000>;
336 regulator-max-microvolt = <1890000>;
337 regulator-always-on;
338 regulator-boot-on;
339 };
341 ldo2_reg: regulator@4 {
342 regulator-name = "LDO2_1.2V";
343 regulator-min-microvolt = <1140000>;
344 regulator-max-microvolt = <1320000>;
345 regulator-always-on;
346 regulator-boot-on;
347 };
348 };
349 };
351 &mcasp0 {
352 #sound-dai-cells = <0>;
353 status = "okay";
354 pinctrl-names = "default";
355 pinctrl-0 = <&mcasp0_pins>;
357 op-mode = <0>; /* MCASP_IIS_MODE */
358 tdm-slots = <2>;
359 /* 4 serializer */
360 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
361 0 0 0 0
362 0 0 0 0
363 0 0 0 1
364 2 0 0 0
365 >;
366 tx-num-evt = <32>;
367 rx-num-evt = <32>;
368 };
370 &edma0 {
371 ti,edma-reserved-slot-ranges = <32 50>;
372 };
374 &edma1 {
375 ti,edma-reserved-slot-ranges = <32 90>;
376 };
378 &aemif {
379 pinctrl-names = "default";
380 pinctrl-0 = <&nand_pins>;
381 status = "ok";
382 cs3 {
383 #address-cells = <2>;
384 #size-cells = <1>;
385 clock-ranges;
386 ranges;
388 ti,cs-chipselect = <3>;
390 nand@2000000,0 {
391 compatible = "ti,davinci-nand";
392 #address-cells = <1>;
393 #size-cells = <1>;
394 reg = <0 0x02000000 0x02000000
395 1 0x00000000 0x00008000>;
397 ti,davinci-chipselect = <1>;
398 ti,davinci-mask-ale = <0>;
399 ti,davinci-mask-cle = <0>;
400 ti,davinci-mask-chipsel = <0>;
401 ti,davinci-ecc-mode = "hw";
402 ti,davinci-ecc-bits = <4>;
403 ti,davinci-nand-use-bbt;
404 };
405 };
406 };
408 &usb_phy {
409 status = "okay";
410 };
412 &usb0 {
413 status = "okay";
414 };
416 &usb1 {
417 status = "okay";
418 };
420 &vpif {
421 pinctrl-names = "default";
422 pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>;
423 /*
424 * The vpif and the LCD are mutually exclusive.
425 * To enable VPIF, disable the ti,tilcdc,panel then
426 * change the status below to 'okay'
427 */
428 status = "disabled";
429 };