xref: /openbmc/u-boot/arch/arm/dts/da850-evm.dts (revision 881e8478)
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>
13
14/ {
15	compatible = "ti,da850-evm", "ti,da850";
16	model = "DA850/AM1808/OMAP-L138 EVM";
17
18	chosen {
19		stdout-path = &serial2;
20	};
21
22	aliases {
23		serial0 = &serial0;
24		serial1 = &serial1;
25		serial2 = &serial2;
26		ethernet0 = &eth0;
27		spi0 = &spi1;
28	};
29
30	vbat: fixedregulator0 {
31		compatible = "regulator-fixed";
32		regulator-name = "vbat";
33		regulator-min-microvolt = <5000000>;
34		regulator-max-microvolt = <5000000>;
35		regulator-boot-on;
36	};
37
38	sound {
39		compatible = "simple-audio-card";
40		simple-audio-card,name = "DA850/OMAP-L138 EVM";
41		simple-audio-card,widgets =
42			"Line", "Line In",
43			"Line", "Line Out";
44		simple-audio-card,routing =
45			"LINE1L", "Line In",
46			"LINE1R", "Line In",
47			"Line Out", "LLOUT",
48			"Line Out", "RLOUT";
49		simple-audio-card,format = "dsp_b";
50		simple-audio-card,bitclock-master = <&link0_codec>;
51		simple-audio-card,frame-master = <&link0_codec>;
52		simple-audio-card,bitclock-inversion;
53
54		simple-audio-card,cpu {
55			sound-dai = <&mcasp0>;
56			system-clock-frequency = <24576000>;
57		};
58
59		link0_codec: simple-audio-card,codec {
60			sound-dai = <&tlv320aic3106>;
61			system-clock-frequency = <24576000>;
62		};
63	};
64};
65
66&pmx_core {
67	status = "okay";
68
69	mcasp0_pins: pinmux_mcasp0_pins {
70		pinctrl-single,bits = <
71			/*
72			 * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR,
73			 * AFSR, AMUTE
74			 */
75			0x00 0x11111111 0xffffffff
76			/* AXR11, AXR12 */
77			0x04 0x00011000 0x000ff000
78		>;
79	};
80	nand_pins: nand_pins {
81		pinctrl-single,bits = <
82			/* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */
83			0x1c 0x10110110  0xf0ff0ff0
84			/*
85			 * EMA_D[0], EMA_D[1], EMA_D[2],
86			 * EMA_D[3], EMA_D[4], EMA_D[5],
87			 * EMA_D[6], EMA_D[7]
88			 */
89			0x24 0x11111111  0xffffffff
90			/* EMA_A[1], EMA_A[2] */
91			0x30 0x01100000  0x0ff00000
92		>;
93	};
94};
95
96&serial0 {
97	status = "okay";
98};
99
100&serial1 {
101	status = "okay";
102};
103
104&serial2 {
105	status = "okay";
106};
107
108&rtc0 {
109	status = "okay";
110};
111
112&i2c0 {
113	status = "okay";
114	clock-frequency = <100000>;
115	pinctrl-names = "default";
116	pinctrl-0 = <&i2c0_pins>;
117
118	tps: tps@48 {
119		reg = <0x48>;
120	};
121	tlv320aic3106: tlv320aic3106@18 {
122		#sound-dai-cells = <0>;
123		compatible = "ti,tlv320aic3106";
124		reg = <0x18>;
125		status = "okay";
126
127		/* Regulators */
128		IOVDD-supply = <&vdcdc2_reg>;
129		/* Derived from VBAT: Baseboard 3.3V / 1.8V */
130		AVDD-supply = <&vbat>;
131		DRVDD-supply = <&vbat>;
132		DVDD-supply = <&vbat>;
133	};
134	tca6416: gpio@20 {
135		compatible = "ti,tca6416";
136		reg = <0x20>;
137		gpio-controller;
138		#gpio-cells = <2>;
139	};
140};
141
142&wdt {
143	status = "okay";
144};
145
146&mmc0 {
147	max-frequency = <50000000>;
148	bus-width = <4>;
149	status = "okay";
150	pinctrl-names = "default";
151	pinctrl-0 = <&mmc0_pins>;
152	cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
153	wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
154};
155
156&spi1 {
157	status = "okay";
158	pinctrl-names = "default";
159	pinctrl-0 = <&spi1_pins &spi1_cs0_pin>;
160	flash: m25p80@0 {
161		#address-cells = <1>;
162		#size-cells = <1>;
163		compatible = "m25p64";
164		spi-max-frequency = <30000000>;
165		m25p,fast-read;
166		reg = <0>;
167		partition@0 {
168			label = "U-Boot-SPL";
169			reg = <0x00000000 0x00010000>;
170			read-only;
171		};
172		partition@1 {
173			label = "U-Boot";
174			reg = <0x00010000 0x00080000>;
175			read-only;
176		};
177		partition@2 {
178			label = "U-Boot-Env";
179			reg = <0x00090000 0x00010000>;
180			read-only;
181		};
182		partition@3 {
183			label = "Kernel";
184			reg = <0x000a0000 0x00280000>;
185		};
186		partition@4 {
187			label = "Filesystem";
188			reg = <0x00320000 0x00400000>;
189		};
190		partition@5 {
191			label = "MAC-Address";
192			reg = <0x007f0000 0x00010000>;
193			read-only;
194		};
195	};
196};
197
198&mdio {
199	status = "okay";
200	pinctrl-names = "default";
201	pinctrl-0 = <&mdio_pins>;
202	bus_freq = <2200000>;
203};
204
205&eth0 {
206	status = "okay";
207	pinctrl-names = "default";
208	pinctrl-0 = <&mii_pins>;
209};
210
211&gpio {
212	status = "okay";
213};
214
215/include/ "tps6507x.dtsi"
216
217&tps {
218	vdcdc1_2-supply = <&vbat>;
219	vdcdc3-supply = <&vbat>;
220	vldo1_2-supply = <&vbat>;
221
222	regulators {
223		vdcdc1_reg: regulator@0 {
224			regulator-name = "VDCDC1_3.3V";
225			regulator-min-microvolt = <3150000>;
226			regulator-max-microvolt = <3450000>;
227			regulator-always-on;
228			regulator-boot-on;
229		};
230
231		vdcdc2_reg: regulator@1 {
232			regulator-name = "VDCDC2_3.3V";
233			regulator-min-microvolt = <1710000>;
234			regulator-max-microvolt = <3450000>;
235			regulator-always-on;
236			regulator-boot-on;
237			ti,defdcdc_default = <1>;
238		};
239
240		vdcdc3_reg: regulator@2 {
241			regulator-name = "VDCDC3_1.2V";
242			regulator-min-microvolt = <950000>;
243			regulator-max-microvolt = <1350000>;
244			regulator-always-on;
245			regulator-boot-on;
246			ti,defdcdc_default = <1>;
247		};
248
249		ldo1_reg: regulator@3 {
250			regulator-name = "LDO1_1.8V";
251			regulator-min-microvolt = <1710000>;
252			regulator-max-microvolt = <1890000>;
253			regulator-always-on;
254			regulator-boot-on;
255		};
256
257		ldo2_reg: regulator@4 {
258			regulator-name = "LDO2_1.2V";
259			regulator-min-microvolt = <1140000>;
260			regulator-max-microvolt = <1320000>;
261			regulator-always-on;
262			regulator-boot-on;
263		};
264	};
265};
266
267&mcasp0 {
268	#sound-dai-cells = <0>;
269	status = "okay";
270	pinctrl-names = "default";
271	pinctrl-0 = <&mcasp0_pins>;
272
273	op-mode = <0>;          /* MCASP_IIS_MODE */
274	tdm-slots = <2>;
275	/* 4 serializer */
276	serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
277		0 0 0 0
278		0 0 0 0
279		0 0 0 1
280		2 0 0 0
281	>;
282	tx-num-evt = <32>;
283	rx-num-evt = <32>;
284};
285
286&edma0 {
287	ti,edma-reserved-slot-ranges = <32 50>;
288};
289
290&edma1 {
291	ti,edma-reserved-slot-ranges = <32 90>;
292};
293
294&aemif {
295	pinctrl-names = "default";
296	pinctrl-0 = <&nand_pins>;
297	status = "ok";
298	cs3 {
299		#address-cells = <2>;
300		#size-cells = <1>;
301		clock-ranges;
302		ranges;
303
304		ti,cs-chipselect = <3>;
305
306		nand@2000000,0 {
307			compatible = "ti,davinci-nand";
308			#address-cells = <1>;
309			#size-cells = <1>;
310			reg = <0 0x02000000 0x02000000
311			       1 0x00000000 0x00008000>;
312
313			ti,davinci-chipselect = <1>;
314			ti,davinci-mask-ale = <0>;
315			ti,davinci-mask-cle = <0>;
316			ti,davinci-mask-chipsel = <0>;
317			ti,davinci-ecc-mode = "hw";
318			ti,davinci-ecc-bits = <4>;
319			ti,davinci-nand-use-bbt;
320		};
321	};
322};
323
324&usb_phy {
325	status = "okay";
326};
327
328&usb0 {
329	status = "okay";
330};
331
332&usb1 {
333	status = "okay";
334};
335
336&vpif {
337	pinctrl-names = "default";
338	pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>;
339	status = "okay";
340};
341