fix gpio interrupt-cells property on AM335x
[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 diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
17 index bc4a69d..664fa2a 100644
18 --- a/arch/arm/boot/dts/am335x-evm.dts
19 +++ b/arch/arm/boot/dts/am335x-evm.dts
20 @@ -149,6 +149,16 @@
21 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
22 >;
23 };
24 +
25 + am335x_evm_audio_pins: am335x_evm_audio_pins {
26 + pinctrl-single,pins = <
27 + 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rx_dv.mcasp1_aclkx */
28 + 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_txd3.mcasp1_fsx */
29 + 0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
30 + 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */
31 + >;
32 + };
33 +
34 };
35
36 ocp {
37 @@ -244,6 +254,19 @@
38 compatible = "ti,tmp275";
39 reg = <0x48>;
40 };
41 +
42 + tlv320aic3x: tlv320aic3x@1b {
43 + compatible = "ti,tlv320aic3x";
44 + reg = <0x1b>;
45 + status = "okay";
46 +
47 + /* Regulators */
48 + AVDD-supply = <&vaux2_reg>;
49 + IOVDD-supply = <&vaux2_reg>;
50 + DRVDD-supply = <&vaux2_reg>;
51 + DVDD-supply = <&vbat>;
52 + };
53 +
54 };
55
56 elm: elm@48080000 {
57 @@ -340,6 +363,20 @@
58 };
59 };
60 };
61 +
62 + sound {
63 + compatible = "ti,da830-evm-audio";
64 + ti,model = "DA830 EVM";
65 + ti,audio-codec = <&tlv320aic3x>;
66 + ti,mcasp-controller = <&mcasp1>;
67 + ti,codec-clock-rate = <12000000>;
68 + ti,audio-routing =
69 + "Headphone Jack", "HPLOUT",
70 + "Headphone Jack", "HPROUT",
71 + "LINE1L", "Line In",
72 + "LINE1R", "Line In";
73 + };
74 +
75 };
76
77 vbat: fixedregulator@0 {
78 @@ -407,6 +444,25 @@
79
80 #include "tps65910.dtsi"
81
82 +&mcasp1 {
83 + pinctrl-names = "default";
84 + pinctrl-0 = <&am335x_evm_audio_pins>;
85 +
86 + status = "okay";
87 +
88 + op-mode = <0>; /* MCASP_IIS_MODE */
89 + tdm-slots = <2>;
90 + num-serializer = <16>;
91 + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
92 + 0 0 1 2
93 + 0 0 0 0
94 + 0 0 0 0
95 + 0 0 0 0
96 + >;
97 + tx-num-evt = <1>;
98 + rx-num-evt = <1>;
99 +};
100 +
101 &tps {
102 vcc1-supply = <&vbat>;
103 vcc2-supply = <&vbat>;
104 --
105 1.7.10.4
106