Re: [PATCH v2 06/20] dt-bindings: sound: Document OpenPandora sound card
From: Andreas Kemnade
Date: Tue Nov 24 2026 - 16:43:29 EST
On Tue, 24 Nov 2026 08:25:46 +0100
"H. Nikolaus Schaller" <hns@xxxxxxxxxxxxx> wrote:
> The OpenPandora audio subsystem describes the routing links between the
> OMAP3 McBSP interface, the external PCM1773 DAC, and the TWL4030 audio
> codec, alongside amplifiers and power supplies.
>
I think at least in some commit message should be commented why such
an interface is needed and the generic sound cards are not sufficient,
also as a starting point to recheck that later if these reasons are still
valid.
Regards,
Andreas
> Signed-off-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
> ---
>
> Notes:
> Changes against V1:
> - Address Krzysztof Kozlowski's V1 request to run the documented
> DT schema checks and fix the errors reported by Rob Herring's
> automated DT validation.
> - Update the binding example and schema during DT consistency review.
> - Binding and commit-message review assisted by ChatGPT.
>
> .../sound/openpandora,omap3pandora-sound.yaml | 95 +++++++++++++++++++
> 1 file changed, 95 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/openpandora,omap3pandora-sound.yaml
>
> diff --git a/Documentation/devicetree/bindings/sound/openpandora,omap3pandora-sound.yaml b/Documentation/devicetree/bindings/sound/openpandora,omap3pandora-sound.yaml
> new file mode 100644
> index 0000000000000..6c4d69ffc1c50
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/openpandora,omap3pandora-sound.yaml
> @@ -0,0 +1,95 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/openpandora,omap3pandora-sound.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: OpenPandora OMAP3 Audio Complex
> +
> +maintainers:
> + - H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
> +
> +description:
> + The OpenPandora audio subsystem describes the routing links between the
> + OMAP3 McBSP interface, the external PCM1773 DAC, and the TWL4030 audio codec,
> + alongside amplifiers and power supplies.
> +
> +properties:
> + compatible:
> + const: openpandora,omap3pandora-sound
> +
> + label:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: User-visible name for this sound card.
> +
> + amp-gpios:
> + maxItems: 1
> + description: GPIO pin controlling the amplifier power state.
> +
> + amp-supply:
> + description: Regulator supplying power to the amplifier.
> +
> + sound-dai:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + minItems: 2
> + maxItems: 2
> + description:
> + Phandles to the audio CPU DAI (OMAP3 McBSP) and the codec DAI.
> +
> + routing:
> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
> + description:
> + A list of the connections between audio components.
> + Each entry is a pair of strings, the first being the connection's sink,
> + the second being the connection's source.
> +
> + widgets:
> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
> + description:
> + User-specified audio sound widgets.
> + Each entry is a pair of strings, the first being the widget type
> + (e.g., "Speaker", "Headphone", "Microphone", "Line") and the second being its name.
> +
> +required:
> + - compatible
> + - sound-dai
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + 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>;
> + };