devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: dt-bindings: fsl_spdif: Document imx6sl/sx compatible fallback
@ 2024-10-24 18:04 Fabio Estevam
  2024-10-27 21:39 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2024-10-24 18:04 UTC (permalink / raw)
  To: broonie
  Cc: robh, krzk+dt, conor+dt, shengjiu.wang, linux-sound, devicetree,
	Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

i.MX6SL and i.MX6SX SPDIF blocks are compatible with i.MX35.

Document 'fsl,imx35-spdif' as a fallback compatible for these two
chip variants.

This fixes the following dt-schema warnings:

compatible: ['fsl,imx6sl-spdif', 'fsl,imx35-spdif'] is too long
compatible: ['fsl,imx6sx-spdif', 'fsl,imx35-spdif'] is too long

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 .../devicetree/bindings/sound/fsl,spdif.yaml  | 25 +++++++++++--------
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/fsl,spdif.yaml b/Documentation/devicetree/bindings/sound/fsl,spdif.yaml
index 204f361cea27..3bc18c3b084f 100644
--- a/Documentation/devicetree/bindings/sound/fsl,spdif.yaml
+++ b/Documentation/devicetree/bindings/sound/fsl,spdif.yaml
@@ -16,16 +16,21 @@ description: |
 
 properties:
   compatible:
-    enum:
-      - fsl,imx35-spdif
-      - fsl,vf610-spdif
-      - fsl,imx6sx-spdif
-      - fsl,imx8qm-spdif
-      - fsl,imx8qxp-spdif
-      - fsl,imx8mq-spdif
-      - fsl,imx8mm-spdif
-      - fsl,imx8mn-spdif
-      - fsl,imx8ulp-spdif
+    oneOf:
+      - const: fsl,imx35-spdif
+      - const: fsl,imx6sx-spdif
+      - const: fsl,imx8mm-spdif
+      - const: fsl,imx8mn-spdif
+      - const: fsl,imx8mq-spdif
+      - const: fsl,imx8qm-spdif
+      - const: fsl,imx8qxp-spdif
+      - const: fsl,imx8ulp-spdif
+      - const: fsl,vf610-spdif
+      - items:
+          - enum:
+              - fsl,imx6sl-spdif
+              - fsl,imx6sx-spdif
+          - const: fsl,imx35-spdif
 
   reg:
     maxItems: 1
-- 
2.34.1


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

* Re: [PATCH] ASoC: dt-bindings: fsl_spdif: Document imx6sl/sx compatible fallback
  2024-10-24 18:04 [PATCH] ASoC: dt-bindings: fsl_spdif: Document imx6sl/sx compatible fallback Fabio Estevam
@ 2024-10-27 21:39 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2024-10-27 21:39 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: broonie, krzk+dt, conor+dt, shengjiu.wang, linux-sound,
	devicetree, Fabio Estevam

On Thu, Oct 24, 2024 at 03:04:41PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> i.MX6SL and i.MX6SX SPDIF blocks are compatible with i.MX35.
> 
> Document 'fsl,imx35-spdif' as a fallback compatible for these two
> chip variants.
> 
> This fixes the following dt-schema warnings:
> 
> compatible: ['fsl,imx6sl-spdif', 'fsl,imx35-spdif'] is too long
> compatible: ['fsl,imx6sx-spdif', 'fsl,imx35-spdif'] is too long
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
>  .../devicetree/bindings/sound/fsl,spdif.yaml  | 25 +++++++++++--------
>  1 file changed, 15 insertions(+), 10 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/sound/fsl,spdif.yaml b/Documentation/devicetree/bindings/sound/fsl,spdif.yaml
> index 204f361cea27..3bc18c3b084f 100644
> --- a/Documentation/devicetree/bindings/sound/fsl,spdif.yaml
> +++ b/Documentation/devicetree/bindings/sound/fsl,spdif.yaml
> @@ -16,16 +16,21 @@ description: |
>  
>  properties:
>    compatible:
> -    enum:
> -      - fsl,imx35-spdif
> -      - fsl,vf610-spdif
> -      - fsl,imx6sx-spdif
> -      - fsl,imx8qm-spdif
> -      - fsl,imx8qxp-spdif
> -      - fsl,imx8mq-spdif
> -      - fsl,imx8mm-spdif
> -      - fsl,imx8mn-spdif
> -      - fsl,imx8ulp-spdif
> +    oneOf:
> +      - const: fsl,imx35-spdif
> +      - const: fsl,imx6sx-spdif
> +      - const: fsl,imx8mm-spdif
> +      - const: fsl,imx8mn-spdif
> +      - const: fsl,imx8mq-spdif
> +      - const: fsl,imx8qm-spdif
> +      - const: fsl,imx8qxp-spdif
> +      - const: fsl,imx8ulp-spdif
> +      - const: fsl,vf610-spdif

Keep all the above as 1 enum.

> +      - items:
> +          - enum:
> +              - fsl,imx6sl-spdif
> +              - fsl,imx6sx-spdif
> +          - const: fsl,imx35-spdif
>  
>    reg:
>      maxItems: 1
> -- 
> 2.34.1
> 

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

end of thread, other threads:[~2024-10-27 21:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24 18:04 [PATCH] ASoC: dt-bindings: fsl_spdif: Document imx6sl/sx compatible fallback Fabio Estevam
2024-10-27 21:39 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).