diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-03-27 14:41:37 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-04-25 17:22:01 -0400 |
commit | 8c6a3852f639736ca7cb0f5e7b3fd0f314b0fc6a (patch) | |
tree | 27af6a1d781f2e73dd69459722f92c43d150ba13 /arch/arm/boot/dts/tegra-cardhu.dts | |
parent | 9ee6a5c4f4cd2b0a732502c5f11b3ee8f13fac76 (diff) |
ARM: dt: tegra cardhu: basic audio support
Add WM8903 codec nodes, and top-level sound complex node for basic
analog audio over headset jack and internal speakers.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/boot/dts/tegra-cardhu.dts')
-rw-r--r-- | arch/arm/boot/dts/tegra-cardhu.dts | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra-cardhu.dts b/arch/arm/boot/dts/tegra-cardhu.dts index 0a9f34a2c3aa..ab8d901b5ab6 100644 --- a/arch/arm/boot/dts/tegra-cardhu.dts +++ b/arch/arm/boot/dts/tegra-cardhu.dts | |||
@@ -51,6 +51,15 @@ | |||
51 | nvidia,pull = <2>; | 51 | nvidia,pull = <2>; |
52 | nvidia,tristate = <0>; | 52 | nvidia,tristate = <0>; |
53 | }; | 53 | }; |
54 | dap2_fs_pa2 { | ||
55 | nvidia,pins = "dap2_fs_pa2", | ||
56 | "dap2_sclk_pa3", | ||
57 | "dap2_din_pa4", | ||
58 | "dap2_dout_pa5"; | ||
59 | nvidia,function = "i2s1"; | ||
60 | nvidia,pull = <0>; | ||
61 | nvidia,tristate = <0>; | ||
62 | }; | ||
54 | }; | 63 | }; |
55 | }; | 64 | }; |
56 | 65 | ||
@@ -92,6 +101,20 @@ | |||
92 | 101 | ||
93 | i2c@7000d000 { | 102 | i2c@7000d000 { |
94 | clock-frequency = <100000>; | 103 | clock-frequency = <100000>; |
104 | |||
105 | wm8903: wm8903@1a { | ||
106 | compatible = "wlf,wm8903"; | ||
107 | reg = <0x1a>; | ||
108 | interrupt-parent = <&gpio>; | ||
109 | interrupts = <179 0x04>; /* gpio PW3 */ | ||
110 | |||
111 | gpio-controller; | ||
112 | #gpio-cells = <2>; | ||
113 | |||
114 | micdet-cfg = <0>; | ||
115 | micdet-delay = <100>; | ||
116 | gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>; | ||
117 | }; | ||
95 | }; | 118 | }; |
96 | 119 | ||
97 | sdhci@78000000 { | 120 | sdhci@78000000 { |
@@ -111,4 +134,44 @@ | |||
111 | sdhci@78000400 { | 134 | sdhci@78000400 { |
112 | support-8bit; | 135 | support-8bit; |
113 | }; | 136 | }; |
137 | |||
138 | ahub@70080000 { | ||
139 | i2s@70080300 { | ||
140 | status = "disable"; | ||
141 | }; | ||
142 | |||
143 | i2s@70080500 { | ||
144 | status = "disable"; | ||
145 | }; | ||
146 | |||
147 | i2s@70080600 { | ||
148 | status = "disable"; | ||
149 | }; | ||
150 | |||
151 | i2s@70080700 { | ||
152 | status = "disable"; | ||
153 | }; | ||
154 | }; | ||
155 | |||
156 | sound { | ||
157 | compatible = "nvidia,tegra-audio-wm8903-cardhu", | ||
158 | "nvidia,tegra-audio-wm8903"; | ||
159 | nvidia,model = "NVIDIA Tegra Cardhu"; | ||
160 | |||
161 | nvidia,audio-routing = | ||
162 | "Headphone Jack", "HPOUTR", | ||
163 | "Headphone Jack", "HPOUTL", | ||
164 | "Int Spk", "ROP", | ||
165 | "Int Spk", "RON", | ||
166 | "Int Spk", "LOP", | ||
167 | "Int Spk", "LON", | ||
168 | "Mic Jack", "MICBIAS", | ||
169 | "IN1L", "Mic Jack"; | ||
170 | |||
171 | nvidia,i2s-controller = <&tegra_i2s1>; | ||
172 | nvidia,audio-codec = <&wm8903>; | ||
173 | |||
174 | nvidia,spkr-en-gpios = <&wm8903 2 0>; | ||
175 | nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ | ||
176 | }; | ||
114 | }; | 177 | }; |