regulator: dt-bindings: Add missing (unevaluated|additional)Properties on child nodes
Subsystems (6)
Rob Herring
maintainerPATCH 1/1 regulator: 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).
--- .../bindings/regulator/dlg,da9121.yaml | 1 + .../bindings/regulator/maxim,max77802.yaml | 1 + .../bindings/regulator/maxim,max8997.yaml | 1 + .../bindings/regulator/mt6315-regulator.yaml | 1 + .../bindings/regulator/qcom,spmi-regulator.yaml | 1 + .../regulator/qcom-labibb-regulator.yaml | 16 ++++++++++++++++ .../regulator/richtek,rt4801-regulator.yaml | 1 + .../regulator/rohm,bd71815-regulator.yaml | 1 + 8 files changed, 23 insertions(+)
Documentation/devicetree/bindings/regulator/dlg,da9121.yaml +1 -0
@@ -83,6 +83,7 @@ properties: regulators: type: object + additionalProperties: false description: | List of regulators provided by the device
Documentation/devicetree/bindings/regulator/maxim,max77802.yaml +1 -0
@@ -79,6 +79,7 @@ patternProperties: patternProperties: regulator-state-(standby|mem|disk): type: object + additionalProperties: true properties: regulator-mode: false
Documentation/devicetree/bindings/regulator/maxim,max8997.yaml +1 -0
@@ -111,6 +111,7 @@ properties: regulators: type: object + additionalProperties: false description: List of child nodes that specify the regulators.
Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml +1 -0
@@ -29,6 +29,7 @@ properties: "^vbuck[1-4]$": type: object $ref: "regulator.yaml#" + unevaluatedProperties: false properties: regulator-compatible:
Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml +1 -0
@@ -35,6 +35,7 @@ patternProperties: description: List of regulators and its properties type: object $ref: regulator.yaml# + unevaluatedProperties: false properties: qcom,ocp-max-retries:
Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml +16 -0
@@ -20,6 +20,7 @@ properties: lab: type: object + additionalProperties: false properties: qcom,soft-start-us:
@@ -33,11 +34,19 @@ properties: description: Short-circuit and over-current interrupts for lab. + interrupt-names: + minItems: 1 + items: + - const: sc-err + - const: ocp + required: - interrupts + - interrupt-names ibb: type: object + additionalProperties: false properties: qcom,discharge-resistor-kohms:
@@ -52,8 +61,15 @@ properties: description: Short-circuit and over-current interrupts for ibb. + interrupt-names: + minItems: 1 + items: + - const: sc-err + - const: ocp + required: - interrupts + - interrupt-names required: - compatible
Documentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml +1 -0
@@ -42,6 +42,7 @@ patternProperties: "^DSV(P|N)$": type: object $ref: regulator.yaml# + unevaluatedProperties: false description: Properties for single display bias regulator.
Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml +1 -0
@@ -27,6 +27,7 @@ properties: description: properties for wled regulator $ref: regulator.yaml# + unevaluatedProperties: false properties: regulator-name:
Signature · 1 line
2.34.1
Quoted 150 lines · Rob Herring
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 <[email protected]>--- .../bindings/regulator/dlg,da9121.yaml | 1 + .../bindings/regulator/maxim,max77802.yaml | 1 + .../bindings/regulator/maxim,max8997.yaml | 1 + .../bindings/regulator/mt6315-regulator.yaml | 1 + .../bindings/regulator/qcom,spmi-regulator.yaml | 1 + .../regulator/qcom-labibb-regulator.yaml | 16 ++++++++++++++++ .../regulator/richtek,rt4801-regulator.yaml | 1 + .../regulator/rohm,bd71815-regulator.yaml | 1 + 8 files changed, 23 insertions(+)Documentation/devicetree/bindings/regulator/dlg,da9121.yaml +1
-0@@ -83,6 +83,7 @@ properties: regulators: type: object + additionalProperties: false description: | List of regulators provided by the deviceDocumentation/devicetree/bindings/regulator/maxim,max77802.yaml +1
-0@@ -79,6 +79,7 @@ patternProperties: patternProperties: regulator-state-(standby|mem|disk): type: object + additionalProperties: true properties: regulator-mode: falseDocumentation/devicetree/bindings/regulator/maxim,max8997.yaml +1
-0@@ -111,6 +111,7 @@ properties: regulators: type: object + additionalProperties: false description: List of child nodes that specify the regulators.Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml +1
-0@@ -29,6 +29,7 @@ properties: "^vbuck[1-4]$": type: object $ref: "regulator.yaml#" + unevaluatedProperties: false properties: regulator-compatible:Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml +1
-0@@ -35,6 +35,7 @@ patternProperties: description: List of regulators and its properties type: object $ref: regulator.yaml# + unevaluatedProperties: false properties: qcom,ocp-max-retries:Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml +16
-0@@ -20,6 +20,7 @@ properties: lab: type: object + additionalProperties: false properties: qcom,soft-start-us:@@ -33,11 +34,19 @@ properties: description: Short-circuit and over-current interrupts for lab. + interrupt-names: + minItems: 1 + items: + - const: sc-err + - const: ocp + required: - interrupts + - interrupt-names ibb: type: object + additionalProperties: false properties: qcom,discharge-resistor-kohms:@@ -52,8 +61,15 @@ properties: description: Short-circuit and over-current interrupts for ibb. + interrupt-names: + minItems: 1 + items: + - const: sc-err + - const: ocp + required: - interrupts + - interrupt-names required: - compatibleDocumentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml +1
-0@@ -42,6 +42,7 @@ patternProperties: "^DSV(P|N)$": type: object $ref: regulator.yaml# + unevaluatedProperties: false description: Properties for single display bias regulator.Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml +1
-1@@ -27,6 +27,7 @@ properties: description: properties for wled regulator $ref: regulator.yaml# + unevaluatedProperties: false properties: regulator-name: --
Quoted 1 line
2.34.1
For qcom,spmi-regulator.yaml:
Quoted 1 line
Mark Brown
maintainerQuoted 5 lines · Rob Herring
In order to ensure only documented properties are present, node schemas must have unevaluatedProperties or additionalProperties set to false (typically).
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: dt-bindings: Add missing (unevaluated|additional)Properties on child nodes
commit: de6fbef10c4b9c589f3b84bd926e56ba742263ea
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark