Re: [PATCH] dt-bindings: sound: qcom,sm8250: document widgets

From: Srinivas Kandagatla

Date: Wed Dec 02 2026 - 03:51:14 EST


On 12/2/26 12:31 AM, Qianhui Xu wrote:
> The Qualcomm sound card common parser (sound/soc/qcom/common.c:198)
> reads the "widgets" property via snd_soc_of_parse_audio_simple_widgets(),
> and qcom,apq8016-sbc-sndcard.yaml already documents the same property
> with the same wording. The qcom,sm8250 binding (which also covers
> sc7280/sm8450/sm8650/sm8750 sndcards) never gained it, so sound cards
> that declare widgets fail dtbs_check with "'widgets' does not match any
> of the regexes: '.*-dai-link$', '^pinctrl-[0-9]+$'".
>
> Document the property with the non-unique string array type, mirroring
> the qcom,apq8016-sbc-sndcard.yaml declaration. No DT or driver change.

Thanks for the patch,

I guess you should have also audited the device trees aswell, because
none of SoCs that are part of this binding actually use such property.


NAK from my side on this bindings change, Unless there is usecase that
needs this property.

pl note that common.c is file that get used on all Qualcomm SoC's.

thanks,
Srini


> The patch has no dependency on any other change, so it is sent alone.
>
> Found while auditing a qcom,sm8750-sndcard board.
>
> Signed-off-by: Qianhui Xu <xiaqinghuan@xxxxxxxxxxxxxxxx>
> ---
> *** AI-assistance disclosure ***
> This patch was prepared with the help of an LLM coding assistant. The
> author reviewed every line, checked every quoted claim against the tree,
> and ran the gates recorded in the send report; the design decisions and
> any errors are the author's.
>
> diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> index 1536fcd96..1745a8844 100644
> --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> @@ -73,6 +73,10 @@ properties:
> $ref: /schemas/types.yaml#/definitions/string
> description: User visible long sound card name
>
> + widgets:
> + description: User specified audio sound widgets.
> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
> +
> patternProperties:
> ".*-dai-link$":
> description: