Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] dt-bindings: sound: openpandora sound-dai omits mcbsp4 and
  twl4030 DAIs
- [Low] dt-bindings: sound: openpandora sound-dai lacks per-entry items
  list
- [Low] dt-bindings: sound: openpandora example has status property and
  wrong order
--

commit a7d9248344c1d8736a83ed4cfd8b21aad87db0cb
Author: H. Nikolaus Schaller <[email protected]>

dt-bindings: sound: Document OpenPandora sound card

This commit adds a Device Tree binding schema for the OpenPandora OMAP3
audio subsystem connecting OMAP3 McBSP, the PCM1773 DAC, and the TWL4030
codec.

> 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

[ ... ]

> +  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.

[Severity: Low]
Should sound-dai define an items list with a per-entry description for
each phandle instead of using minItems/maxItems with a free-form
description?

[ ... ]

> +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)";

[Severity: Low]
DT binding examples normally omit status = "okay", and the property
order in the example node (widgets, routing, sound-dai) does not match
the order declared under properties: in the schema (sound-dai, routing,
widgets).

> +
> +        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>;
> +    };

[Severity: Medium]
Does constraining sound-dai to two phandles omit the second DAI link for
OMAP3 McBSP4 and the TWL4030 codec?

The OpenPandora audio complex (sound/soc/ti/omap3pandora.c) uses two DAI
links: McBSP2 connected to the PCM1773 DAC for playback, and McBSP4
connected to the TWL4030 codec for capture and APLL clocking.  The
schema description and the example routing table both include the
TWL4030 widgets (APLL Enable, AUXL, AUXR, MAINMIC, SUBMIC, Mic Bias 1,
Mic Bias 2), but sound-dai only allows two entries and lists only
<&mcbsp2> and <&dac>.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=6

Reply via email to