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

ASoC: dt-bindings: Add missing (unevaluated|additional)Properties on child nodes

In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).

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

authored by

Rob Herring and committed by
Mark Brown
9e10a1de a337c201

+39 -2
+2
Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml
··· 40 40 patternProperties: 41 41 "^dai-link-[0-9]+$": 42 42 type: object 43 + additionalProperties: false 43 44 description: |- 44 45 dai-link child nodes: 45 46 Container for dai-link level properties and the CODEC sub-nodes. ··· 64 63 patternProperties: 65 64 "^codec-[0-9]+$": 66 65 type: object 66 + additionalProperties: false 67 67 description: |- 68 68 Codecs: 69 69 dai-link representing backend links should have at least one subnode.
+2
Documentation/devicetree/bindings/sound/audio-graph-port.yaml
··· 28 28 patternProperties: 29 29 "^endpoint(@[0-9a-f]+)?": 30 30 $ref: /schemas/graph.yaml#/$defs/endpoint-base 31 + unevaluatedProperties: false 32 + 31 33 properties: 32 34 mclk-fs: 33 35 description: |
+4
Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml
··· 61 61 cpu: 62 62 description: Holds subnode which indicates cpu dai. 63 63 type: object 64 + additionalProperties: false 65 + 64 66 properties: 65 67 sound-dai: 66 68 maxItems: 1 ··· 70 68 codec: 71 69 description: Holds subnode which indicates codec dai. 72 70 type: object 71 + additionalProperties: false 72 + 73 73 properties: 74 74 sound-dai: 75 75 maxItems: 1
+2
Documentation/devicetree/bindings/sound/imx-audio-card.yaml
··· 58 58 cpu: 59 59 description: Holds subnode which indicates cpu dai. 60 60 type: object 61 + additionalProperties: false 61 62 properties: 62 63 sound-dai: 63 64 maxItems: 1 ··· 66 65 codec: 67 66 description: Holds subnode which indicates codec dai. 68 67 type: object 68 + additionalProperties: false 69 69 properties: 70 70 sound-dai: 71 71 minItems: 1
+4
Documentation/devicetree/bindings/sound/mt8192-mt6359-rt1015-rt5682.yaml
··· 30 30 31 31 headset-codec: 32 32 type: object 33 + additionalProperties: false 34 + 33 35 properties: 34 36 sound-dai: 35 37 $ref: /schemas/types.yaml#/definitions/phandle ··· 40 38 41 39 speaker-codecs: 42 40 type: object 41 + additionalProperties: false 42 + 43 43 properties: 44 44 sound-dai: 45 45 minItems: 1
+6
Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
··· 71 71 cpu: 72 72 description: Holds subnode which indicates cpu dai. 73 73 type: object 74 + additionalProperties: false 75 + 74 76 properties: 75 77 sound-dai: 76 78 maxItems: 1 ··· 80 78 platform: 81 79 description: Holds subnode which indicates platform dai. 82 80 type: object 81 + additionalProperties: false 82 + 83 83 properties: 84 84 sound-dai: 85 85 maxItems: 1 ··· 89 85 codec: 90 86 description: Holds subnode which indicates codec dai. 91 87 type: object 88 + additionalProperties: false 89 + 92 90 properties: 93 91 sound-dai: 94 92 minItems: 1
+12 -2
Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
··· 129 129 patternProperties: 130 130 "^dvc-[0-1]$": 131 131 type: object 132 + additionalProperties: false 133 + 132 134 properties: 133 135 dmas: 134 136 maxItems: 1 ··· 147 145 patternProperties: 148 146 "^mix-[0-1]$": 149 147 type: object 150 - # no properties 148 + additionalProperties: false 151 149 additionalProperties: false 152 150 153 151 rcar_sound,ctu: ··· 156 154 patternProperties: 157 155 "^ctu-[0-7]$": 158 156 type: object 159 - # no properties 157 + additionalProperties: false 160 158 additionalProperties: false 161 159 162 160 rcar_sound,src: ··· 165 163 patternProperties: 166 164 "^src-[0-9]$": 167 165 type: object 166 + additionalProperties: false 167 + 168 168 properties: 169 169 interrupts: 170 170 maxItems: 1 ··· 190 186 patternProperties: 191 187 "^ssiu-[0-9]+$": 192 188 type: object 189 + additionalProperties: false 190 + 193 191 properties: 194 192 dmas: 195 193 maxItems: 2 ··· 212 206 patternProperties: 213 207 "^ssi-[0-9]$": 214 208 type: object 209 + additionalProperties: false 210 + 215 211 properties: 216 212 interrupts: 217 213 maxItems: 1 ··· 251 243 patternProperties: 252 244 "^dai([0-9]+)?$": 253 245 type: object 246 + additionalProperties: false 247 + 254 248 properties: 255 249 playback: 256 250 $ref: /schemas/types.yaml#/definitions/phandle-array
+2
Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml
··· 23 23 24 24 cpu: 25 25 type: object 26 + additionalProperties: false 26 27 properties: 27 28 sound-dai: 28 29 minItems: 2 ··· 35 34 - sound-dai 36 35 37 36 codec: 37 + additionalProperties: false 38 38 type: object 39 39 properties: 40 40 sound-dai:
+2
Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml
··· 19 19 20 20 cpu: 21 21 type: object 22 + additionalProperties: false 22 23 properties: 23 24 sound-dai: 24 25 maxItems: 1 ··· 29 28 30 29 codec: 31 30 type: object 31 + additionalProperties: false 32 32 properties: 33 33 sound-dai: 34 34 maxItems: 1
+2
Documentation/devicetree/bindings/sound/samsung,snow.yaml
··· 19 19 20 20 codec: 21 21 type: object 22 + additionalProperties: false 22 23 properties: 23 24 sound-dai: 24 25 description: List of phandles to the CODEC and HDMI IP nodes. ··· 31 30 32 31 cpu: 33 32 type: object 33 + additionalProperties: false 34 34 properties: 35 35 sound-dai: 36 36 description: Phandle to the Samsung I2S controller.
+1
Documentation/devicetree/bindings/sound/st,stm32-sai.yaml
··· 60 60 patternProperties: 61 61 "^audio-controller@[0-9a-f]+$": 62 62 type: object 63 + additionalProperties: false 63 64 description: 64 65 Two subnodes corresponding to SAI sub-block instances A et B 65 66 can be defined. Subnode can be omitted for unsused sub-block.