Linux Audio

Check our new training course

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