Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: Simplify port schema

The use of 'definitions' is not necessary and also problematic because the
dtschema tools don't process 'definitions' resulting in this spurious
warning:

Documentation/devicetree/bindings/sound/renesas,rsnd.example.dtb: sound@ec500000: port:endpoint: Unevaluated properties are not allowed ('phandle' was unexpected)
from schema $id: http://devicetree.org/schemas/sound/renesas,rsnd.yaml#

Fix this by moving the port schema to #/properties/port and referencing
that directly from the 'ports' schema.

Really, a binding should just always use 'ports' if multiple ports are
possible. There's no benefit to supporting both forms. However, it appears
there are already lots of users of this one with a single 'port' node.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231101140923.16344-2-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Rob Herring and committed by
Mark Brown
6d02f355 970f88ad

+12 -16
+12 -16
Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
··· 9 9 maintainers: 10 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 11 11 12 - definitions: 13 - port-def: 14 - $ref: audio-graph-port.yaml#/definitions/port-base 15 - unevaluatedProperties: false 16 - patternProperties: 17 - "^endpoint(@[0-9a-f]+)?": 18 - $ref: audio-graph-port.yaml#/definitions/endpoint-base 19 - properties: 20 - playback: 21 - $ref: /schemas/types.yaml#/definitions/phandle-array 22 - capture: 23 - $ref: /schemas/types.yaml#/definitions/phandle-array 24 - unevaluatedProperties: false 25 - 26 12 properties: 27 13 28 14 compatible: ··· 111 125 112 126 # ports is below 113 127 port: 114 - $ref: "#/definitions/port-def" 128 + $ref: audio-graph-port.yaml#/definitions/port-base 129 + unevaluatedProperties: false 130 + patternProperties: 131 + "^endpoint(@[0-9a-f]+)?": 132 + $ref: audio-graph-port.yaml#/definitions/endpoint-base 133 + properties: 134 + playback: 135 + $ref: /schemas/types.yaml#/definitions/phandle-array 136 + capture: 137 + $ref: /schemas/types.yaml#/definitions/phandle-array 138 + unevaluatedProperties: false 115 139 116 140 rcar_sound,dvc: 117 141 description: DVC subnode. ··· 265 269 unevaluatedProperties: false 266 270 patternProperties: 267 271 '^port(@[0-9a-f]+)?$': 268 - $ref: "#/definitions/port-def" 272 + $ref: "#/properties/port" 269 273 270 274 required: 271 275 - compatible