Skip to contentSkip to conversation

ARM: dts: sun8i-h3: orange-pi-2: Enable audio codec

PATCH New codekipper at gmail.com 2 participants 2 messages May 10, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun8i-h3: orange-pi-2: Enable audio codec

From: Marcus Cooper <[email protected]>

The Orange Pi 2 routes the LINEOUT pins through a SGM8900 PA which needs to be enabled. The onboard microphone is routed to MIC1, with MBIAS providing power.

---
 arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +9 -0
index 5b6d14555b7c..3d9cc20761a1 100644
@@ -104,6 +104,15 @@
 	};
 };
 
+&codec {
+	allwinner,pa-gpios = <&pio 0 16 GPIO_ACTIVE_HIGH>; /* PA16 */
+	allwinner,audio-routing =
+		"Speaker", "LINEOUT",
+		"MIC1", "Mic",
+		"Mic",  "MBIAS";
+	status = "okay";
+};
+
 &ehci1 {
 	status = "okay";
 };
Signature · 1 line
2.12.2
#1 lore raw

PATCH 1/1 ARM: dts: sun8i-h3: orange-pi-2: Enable audio codec

Quoted 7 lines · codekipper at gmail.com

From: Marcus Cooper <[email protected]>

The Orange Pi 2 routes the LINEOUT pins through a SGM8900 PA which needs to be enabled. The onboard microphone is routed to MIC1, with MBIAS providing power.

Applied, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170510/1a3dfe55/attachment.sig>