Devicetree
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: sound: qcom,sm8250: document widgets
@ 2026-12-02  0:31 Qianhui Xu
  2026-12-02  8:50 ` Srinivas Kandagatla
  2026-12-02 10:28 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Qianhui Xu @ 2026-12-02  0:31 UTC (permalink / raw)
  To: srini, broonie, lgirdwood
  Cc: robh, krzk+dt, conor+dt, linux-sound, linux-arm-msm, devicetree,
	linux-kernel

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.
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@mail.ustc.edu.cn>
---
*** 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:
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-02 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  0:31 [PATCH] dt-bindings: sound: qcom,sm8250: document widgets Qianhui Xu
2026-12-02  8:50 ` Srinivas Kandagatla
2026-12-02 10:28 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox