ARM: dts: sun8i-h3: orange-pi-2: Enable audio codec
authorMarcus Cooper <codekipper@gmail.com>
Wed, 10 May 2017 11:51:38 +0000 (11:51 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:32:33 +0000 (08:32 +0200)
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>
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts

index d7d5330..8ff71b1 100644 (file)
        };
 };
 
+&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";
 };