Re: [PATCH v2 06/20] dt-bindings: sound: Document OpenPandora sound card
From: H. Nikolaus Schaller
Date: Tue Nov 24 2026 - 09:52:33 EST
Hi Krzysztof,
> Am 24.11.2026 um 15:45 schrieb Krzysztof Kozlowski <krzk@xxxxxxxxxx>:
>
> On Tue, Nov 24, 2026 at 08:25:46AM +0100, H. Nikolaus Schaller wrote:
>> +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
>
> openpandora,omap3-pandora-sound
>
> (add hyphen) to match other style?
Yes, that is a good idea.
>
>> +
>> + 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
>> +
>
> allOf with $ref to sound-card-common.yaml and you can drop routing property.
Ok.
>
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + #include <dt-bindings/gpio/gpio.h>
>> +
>> + sound {
>> + compatible = "openpandora,omap3pandora-sound";
>> + status = "okay";
>
> Drop
Ok.
>
>> +
>> + label = "OpenPandora";
>> +
>> + amp-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
>> + amp-supply = <&aux_5v>;
>> +
>> + widgets =
>> + "Line", "Line Out",
>
> Join these two lines
Ok, increases readability.
>
>> + "Line", "Line In",
>> + "Headphone", "Headphone Jack",
>> + "Microphone", "Mic (internal)",
>> + "Microphone", "Mic (external)";
>> +
>> + routing =
>> + "DAC1", "APLL Enable",
>
> As well
>
>
> Best regards,
> Krzysztof
BR and thanks,
Nikolaus