summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
diff options
context:
space:
mode:
authorMarcus Cooper <codekipper@gmail.com>2017-05-10 14:51:38 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-05-14 09:32:33 +0300
commite20f04935176ec16f62c3c9c8b219490661aa10c (patch)
tree980ab4503209d4b35244ee895aafe96d6bd52fce /arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
parent62628be26caae02b9320494c2fc5feb7daf7c1ee (diff)
downloadlinux-e20f04935176ec16f62c3c9c8b219490661aa10c.tar.xz
ARM: dts: sun8i-h3: orange-pi-2: Enable audio codec
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. Signed-off-by: Marcus Cooper <codekipper@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-h3-orangepi-2.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-h3-orangepi-2.dts9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
index d7d5330c566f..8ff71b1bb45b 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
@@ -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";
};