[PATCH v2 17/20] ARM: dts: omap3pandora: Describe sound card
From: H. Nikolaus Schaller
Date: Tue Nov 24 2026 - 02:28:15 EST
From: Stefan Leichter <sle85276@xxxxxx>
Describe the OpenPandora sound card and its connections to the external
PCM1773 playback DAC and TWL4030 capture codec in the device tree.
Provide the amplifier GPIO and power supply, the DAPM widgets and
routing, and the McBSP audio links needed by the DT-based sound card
driver.
Signed-off-by: Stefan Leichter <sle85276@xxxxxx>
Signed-off-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
---
Notes:
Changes against V1:
- Historical origin: 570cb6f3073f (Stefan Leichter, 2020-06-29).
- The original history also contains a Signed-off-by from Grond; this has not been carried forward without renewed confirmation.
- The sound-card routing, codec phandles and amplifier supply have been reviewed in the V2 series.
- Code and commit-message review assisted by ChatGPT.
.../dts/ti/omap/omap3-pandora-common.dtsi | 38 +++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi b/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
index 6e349f7ae6936..a5633d93547a3 100644
--- a/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
+++ b/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
@@ -69,6 +69,41 @@ dac: pcm1773-codec {
vcc-supply = <&vsim>;
enable-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; /* GPIO 118 */
status = "okay";
+ #sound-dai-cells = <0>;
+ };
+
+ sound: sound {
+ compatible = "openpandora,omap3pandora-sound";
+ status = "okay";
+
+ label = "OpenPandora";
+
+ amp-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
+ amp-supply = <&aux_5v>;
+
+ widgets =
+ "Line", "Line Out",
+ "Line", "Line In",
+ "Headphone", "Headphone Jack",
+ "Microphone", "Mic (internal)",
+ "Microphone", "Mic (external)";
+
+ routing =
+ "DAC1", "APLL Enable",
+ "DAC2", "APLL Enable",
+ "Headphone Amplifier", "VOUTL",
+ "Headphone Amplifier", "VOUTR",
+ "Line Out", "VOUTL",
+ "Line Out", "VOUTR",
+ "Headphone Jack", "Headphone Amplifier",
+ "AUXL", "Line In",
+ "AUXR", "Line In",
+ "MAINMIC", "Mic (internal)",
+ "Mic (internal)", "Mic Bias 1",
+ "SUBMIC", "Mic (external)",
+ "Mic (external)", "Mic Bias 2";
+
+ sound-dai = <&mcbsp2>, <&dac>;
};
gpio-leds {
@@ -736,6 +771,9 @@ &mcbsp1 {
/* audio DAC */
&mcbsp2 {
status = "okay";
+ #sound-dai-cells = <0>;
+ clocks = <&mcbsp2_fck>, <&mcbsp2_ick>;
+ clock-names = "fck", "ick";
};
/* bluetooth */
--
2.56.0