]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: allwinner: orangepi-zero: Add default audio routing
authorJ. Neuschäfer <j.ne@posteo.net>
Thu, 11 Sep 2025 20:23:55 +0000 (22:23 +0200)
committerChen-Yu Tsai <wens@csie.org>
Sat, 13 Sep 2025 08:52:43 +0000 (16:52 +0800)
Line out playback and microphone capture work, after enabling the
corresponding ALSA controls. Tested with the Orange Pi Zero interface
board.

Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
Link: https://patch.msgid.link/20250911-opz-audio-v3-1-9dfd317a8163@posteo.net
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts

index 1b001f2ad0efd2e77218742efe6d8edfdd18a816..b23cec5b89ebf61701e1d917929589eb6e884afd 100644 (file)
        };
 };
 
+/*
+ * Audio input/output is exposed on the 13-pin header and can't be used for
+ * anything else. However, adapter boards may use different audio routing.
+ * - https://linux-sunxi.org/Xunlong_Orange_Pi_Zero#Expansion_Port
+ * - Allwinner H3 Datasheet, section 3.1. Pin Characteristics
+ */
+&codec {
+       allwinner,audio-routing =
+               "Line Out", "LINEOUT",
+               "MIC1", "Mic",
+               "Mic",  "MBIAS";
+       status = "disabled";
+};
+
 &cpu0 {
        cpu-supply = <&reg_vdd_cpux>;
 };