drop the bootscript, new u-boots won't need it
[openwrt/openwrt.git] / target / linux / omap / patches-3.12 / 410-ARM-dts-am335x-evm-Add-audio-support-for-am335x-evm.patch
1 From 2bf66a74b322deebc7c8bba11cab58c18b745608 Mon Sep 17 00:00:00 2001
2 From: Darren Etheridge <detheridge@ti.com>
3 Date: Wed, 31 Jul 2013 12:38:26 -0500
4 Subject: [PATCH 221/752] ARM/dts: am335x-evm: Add audio support for
5 am335x-evm.dts
6
7 Adds sound, tlv320aic3x, mcasp1, and am335x_evm_audio_pin nodes.
8
9 Signed-off-by: Darren Etheridge <detheridge@ti.com>
10 Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
11 Signed-off-by: Jyri Sarha <jsarha@ti.com>
12 ---
13 arch/arm/boot/dts/am335x-evm.dts | 56 ++++++++++++++++++++++++++++++++++++++
14 1 file changed, 56 insertions(+)
15
16 --- a/arch/arm/boot/dts/am335x-evm.dts
17 +++ b/arch/arm/boot/dts/am335x-evm.dts
18 @@ -149,6 +149,16 @@
19 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
20 >;
21 };
22 +
23 + am335x_evm_audio_pins: am335x_evm_audio_pins {
24 + pinctrl-single,pins = <
25 + 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rx_dv.mcasp1_aclkx */
26 + 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_txd3.mcasp1_fsx */
27 + 0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
28 + 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */
29 + >;
30 + };
31 +
32 };
33
34 ocp {
35 @@ -244,6 +254,19 @@
36 compatible = "ti,tmp275";
37 reg = <0x48>;
38 };
39 +
40 + tlv320aic3x: tlv320aic3x@1b {
41 + compatible = "ti,tlv320aic3x";
42 + reg = <0x1b>;
43 + status = "okay";
44 +
45 + /* Regulators */
46 + AVDD-supply = <&vaux2_reg>;
47 + IOVDD-supply = <&vaux2_reg>;
48 + DRVDD-supply = <&vaux2_reg>;
49 + DVDD-supply = <&vbat>;
50 + };
51 +
52 };
53
54 elm: elm@48080000 {
55 @@ -340,6 +363,20 @@
56 };
57 };
58 };
59 +
60 + sound {
61 + compatible = "ti,da830-evm-audio";
62 + ti,model = "DA830 EVM";
63 + ti,audio-codec = <&tlv320aic3x>;
64 + ti,mcasp-controller = <&mcasp1>;
65 + ti,codec-clock-rate = <12000000>;
66 + ti,audio-routing =
67 + "Headphone Jack", "HPLOUT",
68 + "Headphone Jack", "HPROUT",
69 + "LINE1L", "Line In",
70 + "LINE1R", "Line In";
71 + };
72 +
73 };
74
75 vbat: fixedregulator@0 {
76 @@ -407,6 +444,25 @@
77
78 #include "tps65910.dtsi"
79
80 +&mcasp1 {
81 + pinctrl-names = "default";
82 + pinctrl-0 = <&am335x_evm_audio_pins>;
83 +
84 + status = "okay";
85 +
86 + op-mode = <0>; /* MCASP_IIS_MODE */
87 + tdm-slots = <2>;
88 + num-serializer = <16>;
89 + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
90 + 0 0 1 2
91 + 0 0 0 0
92 + 0 0 0 0
93 + 0 0 0 0
94 + >;
95 + tx-num-evt = <1>;
96 + rx-num-evt = <1>;
97 +};
98 +
99 &tps {
100 vcc1-supply = <&vbat>;
101 vcc2-supply = <&vbat>;