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

regulator: dt-bindings: add missing unevaluatedProperties for each regulator

Each regulator node, which references common regulator.yaml schema,
should disallow additional or unevaluated properties. Otherwise
mistakes in properties will go unnoticed.

Reported-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Closes: https://git.codelinaro.org/linaro/qcomlt/kernel/-/commit/1c8aeef8a6e84520b77f0c270d99c8bf692c5933
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230726074940.121040-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
d2d54819 75d9bf03

+17 -1
+2
Documentation/devicetree/bindings/regulator/mps,mp5416.yaml
··· 29 29 patternProperties: 30 30 "^buck[1-4]$": 31 31 $ref: regulator.yaml# 32 + unevaluatedProperties: false 32 33 type: object 33 34 34 35 "^ldo[1-4]$": 35 36 $ref: regulator.yaml# 37 + unevaluatedProperties: false 36 38 type: object 37 39 38 40 additionalProperties: false
+2
Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml
··· 38 38 ldortc: 39 39 type: object 40 40 $ref: regulator.yaml# 41 + unevaluatedProperties: false 41 42 42 43 patternProperties: 43 44 "^ldo[1-4]$": 44 45 type: object 45 46 $ref: regulator.yaml# 47 + unevaluatedProperties: false 46 48 47 49 "^buck[1-4]$": 48 50 type: object
+4
Documentation/devicetree/bindings/regulator/pfuze100.yaml
··· 68 68 "^sw([1-4]|[1-4][a-c]|[1-4][a-c][a-c])$": 69 69 $ref: regulator.yaml# 70 70 type: object 71 + unevaluatedProperties: false 71 72 72 73 "^vgen[1-6]$": 73 74 $ref: regulator.yaml# 74 75 type: object 76 + unevaluatedProperties: false 75 77 76 78 "^vldo[1-4]$": 77 79 $ref: regulator.yaml# 78 80 type: object 81 + unevaluatedProperties: false 79 82 80 83 "^(vsnvs|vref|vrefddr|swbst|coin|v33|vccsd)$": 81 84 $ref: regulator.yaml# 82 85 type: object 86 + unevaluatedProperties: false 83 87 84 88 additionalProperties: false 85 89
+2
Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
··· 111 111 bob: 112 112 type: object 113 113 $ref: regulator.yaml# 114 + unevaluatedProperties: false 114 115 description: BOB regulator node. 115 116 dependencies: 116 117 regulator-allow-set-load: [ regulator-allowed-modes ] ··· 120 119 "^(smps|ldo|lvs|bob)[0-9]+$": 121 120 type: object 122 121 $ref: regulator.yaml# 122 + unevaluatedProperties: false 123 123 description: smps/ldo regulator nodes(s). 124 124 dependencies: 125 125 regulator-allow-set-load: [ regulator-allowed-modes ]
+1
Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml
··· 110 110 "^((s|l|lvs|5vs)[0-9]*)|(boost-bypass)|(bob)$": 111 111 description: List of regulators and its properties 112 112 $ref: regulator.yaml# 113 + unevaluatedProperties: false 113 114 114 115 additionalProperties: false 115 116
+1
Documentation/devicetree/bindings/regulator/richtek,rt4831-regulator.yaml
··· 29 29 "^DSV(LCM|P|N)$": 30 30 type: object 31 31 $ref: regulator.yaml# 32 + unevaluatedProperties: false 32 33 description: 33 34 Properties for single Display Bias Voltage regulator. 34 35
+1
Documentation/devicetree/bindings/regulator/richtek,rtmv20-regulator.yaml
··· 121 121 description: load switch current regulator description. 122 122 type: object 123 123 $ref: regulator.yaml# 124 + unevaluatedProperties: false 124 125 125 126 required: 126 127 - compatible
+1
Documentation/devicetree/bindings/regulator/richtek,rtq6752-regulator.yaml
··· 35 35 "^(p|n)avdd$": 36 36 type: object 37 37 $ref: regulator.yaml# 38 + unevaluatedProperties: false 38 39 description: | 39 40 regulator description for pavdd and navdd. 40 41
+1 -1
Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml
··· 25 25 patternProperties: 26 26 "^(reg11|reg18|usb33)$": 27 27 type: object 28 - 29 28 $ref: regulator.yaml# 29 + unevaluatedProperties: false 30 30 31 31 required: 32 32 - compatible
+2
Documentation/devicetree/bindings/regulator/wlf,arizona.yaml
··· 29 29 Initial data for the LDO1 regulator. 30 30 $ref: regulator.yaml# 31 31 type: object 32 + unevaluatedProperties: false 32 33 33 34 micvdd: 34 35 description: 35 36 Initial data for the MICVDD regulator. 36 37 $ref: regulator.yaml# 37 38 type: object 39 + unevaluatedProperties: false 38 40 39 41 additionalProperties: true