* [PATCH] dt-bindings: display: nxp, tda998x: Fix 'audio-ports' constraints
@ 2024-01-22 20:49 Rob Herring
2024-01-30 19:59 ` [PATCH] dt-bindings: display: nxp,tda998x: " Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2024-01-22 20:49 UTC (permalink / raw)
To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Daniel Vetter,
Krzysztof Kozlowski, Conor Dooley, Russell King
Cc: devicetree, linux-kernel, dri-devel
The constraints for 'audio-ports' don't match the description. There can
be 1 or 2 DAI entries and each entry is exactly 2 values. Also, the
values' sizes are 32-bits, not 8-bits. Move the size constraints to the
outer dimension (number of DAIs) and add constraints on inner array
values.
Signed-off-by: Rob Herring <robh@kernel.org>
---
.../devicetree/bindings/display/bridge/nxp,tda998x.yaml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml b/Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml
index 21d995f29a1e..b8e9cf6ce4e6 100644
--- a/Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml
+++ b/Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml
@@ -29,19 +29,22 @@ properties:
audio-ports:
description:
- Array of 8-bit values, 2 values per DAI (Documentation/sound/soc/dai.rst).
+ Array of 2 values per DAI (Documentation/sound/soc/dai.rst).
The implementation allows one or two DAIs.
If two DAIs are defined, they must be of different type.
$ref: /schemas/types.yaml#/definitions/uint32-matrix
+ minItems: 1
+ maxItems: 2
items:
- minItems: 1
items:
- description: |
The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S
(see include/dt-bindings/display/tda998x.h).
+ enum: [ 1, 2 ]
- description:
The second value defines the tda998x AP_ENA reg content when the
DAI in question is used.
+ maximum: 0xff
'#sound-dai-cells':
enum: [ 0, 1 ]
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: display: nxp,tda998x: Fix 'audio-ports' constraints
2024-01-22 20:49 [PATCH] dt-bindings: display: nxp, tda998x: Fix 'audio-ports' constraints Rob Herring
@ 2024-01-30 19:59 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2024-01-30 19:59 UTC (permalink / raw)
To: Rob Herring
Cc: Maxime Ripard, Neil Armstrong, Conor Dooley, Robert Foss,
Daniel Vetter, Krzysztof Kozlowski, Jonas Karlman,
Thomas Zimmermann, Russell King, Jernej Skrabec, linux-kernel,
devicetree, dri-devel, Andrzej Hajda, David Airlie,
Laurent Pinchart
On Mon, 22 Jan 2024 14:49:58 -0600, Rob Herring wrote:
> The constraints for 'audio-ports' don't match the description. There can
> be 1 or 2 DAI entries and each entry is exactly 2 values. Also, the
> values' sizes are 32-bits, not 8-bits. Move the size constraints to the
> outer dimension (number of DAIs) and add constraints on inner array
> values.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> .../devicetree/bindings/display/bridge/nxp,tda998x.yaml | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-30 20:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-22 20:49 [PATCH] dt-bindings: display: nxp, tda998x: Fix 'audio-ports' constraints Rob Herring
2024-01-30 19:59 ` [PATCH] dt-bindings: display: nxp,tda998x: " 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).