aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2018-03-12 00:23:56 -0400
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-03-12 04:43:31 -0400
commit65263e970ab53dc992a0de7917549c76e4bc7f88 (patch)
tree71524be1c96d22693681f4bf9e7143b40f13eeb1
parent42e681f3b30fb359a7b11db9b0f03e6a2babae4b (diff)
ARM: dts: sun8i: a33: Enable A33 internal audio codec on A33-OLinuXino
The A33-OLinuXino routes the SoC's headphone output to a headphone jack, and the microphone input to a microphone jack. Power to the microphone is provided by MBIAS. This patch enables the various parts of the codec, and adds widgets and routes for simple-card. HBIAS is connected to the microphone jack as well, but in a manner that is confusing and likely does not provide power. This part is left out of this patch. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
-rw-r--r--arch/arm/boot/dts/sun8i-a33-olinuxino.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a33-olinuxino.dts b/arch/arm/boot/dts/sun8i-a33-olinuxino.dts
index 29573b513f7d..c58a10d72aa8 100644
--- a/arch/arm/boot/dts/sun8i-a33-olinuxino.dts
+++ b/arch/arm/boot/dts/sun8i-a33-olinuxino.dts
@@ -69,6 +69,14 @@
69 }; 69 };
70}; 70};
71 71
72&codec {
73 status = "okay";
74};
75
76&dai {
77 status = "okay";
78};
79
72&ehci0 { 80&ehci0 {
73 status = "okay"; 81 status = "okay";
74}; 82};
@@ -183,6 +191,21 @@
183 vcc-lcd-supply = <&reg_dc1sw>; 191 vcc-lcd-supply = <&reg_dc1sw>;
184}; 192};
185 193
194&sound {
195 /* Board level jack widgets */
196 simple-audio-card,widgets = "Microphone", "Microphone Jack",
197 "Headphone", "Headphone Jack";
198 /* Board level routing. First 2 routes copied from SoC level */
199 simple-audio-card,routing =
200 "Left DAC", "AIF1 Slot 0 Left",
201 "Right DAC", "AIF1 Slot 0 Right",
202 "HP", "HPCOM",
203 "Headphone Jack", "HP",
204 "MIC1", "Microphone Jack",
205 "Microphone Jack", "MBIAS";
206 status = "okay";
207};
208
186&uart0 { 209&uart0 {
187 pinctrl-names = "default"; 210 pinctrl-names = "default";
188 pinctrl-0 = <&uart0_pins_b>; 211 pinctrl-0 = <&uart0_pins_b>;