Skip to content

Commit 4c654ec

Browse files
committed
dt-bindings: display: nxp,tda998x: Fix 'audio-ports' constraints
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. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 2d3b3ab commit 4c654ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Documentation/devicetree/bindings/display/bridge/nxp,tda998x.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,22 @@ properties:
2929

3030
audio-ports:
3131
description:
32-
Array of 8-bit values, 2 values per DAI (Documentation/sound/soc/dai.rst).
32+
Array of 2 values per DAI (Documentation/sound/soc/dai.rst).
3333
The implementation allows one or two DAIs.
3434
If two DAIs are defined, they must be of different type.
3535
$ref: /schemas/types.yaml#/definitions/uint32-matrix
36+
minItems: 1
37+
maxItems: 2
3638
items:
37-
minItems: 1
3839
items:
3940
- description: |
4041
The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S
4142
(see include/dt-bindings/display/tda998x.h).
43+
enum: [ 1, 2 ]
4244
- description:
4345
The second value defines the tda998x AP_ENA reg content when the
4446
DAI in question is used.
47+
maximum: 0xff
4548

4649
'#sound-dai-cells':
4750
enum: [ 0, 1 ]

0 commit comments

Comments
 (0)