[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220902185148.635292-2-ahalaney@redhat.com>
Date: Fri, 2 Sep 2022 13:51:46 -0500
From: Andrew Halaney <ahalaney@...hat.com>
To: agross@...nel.org, andersson@...nel.org,
konrad.dybcio@...ainline.org, lgirdwood@...il.com,
broonie@...nel.org, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org
Cc: linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, dianders@...omium.org,
johan@...nel.org, Andrew Halaney <ahalaney@...hat.com>
Subject: [PATCH 1/3] regulator: dt-bindings: qcom,rpmh: Use additionalProperties
Right now, running make dt_binding_check results in this snippet:
/mnt/extrassd/git/linux-next/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml: 'additionalProperties' is a required property
hint: A schema without a "$ref" to another schema must define all properties and use "additionalProperties"
from schema $id: http://devicetree.org/meta-schemas/base.yaml#
SCHEMA Documentation/devicetree/bindings/processed-schema.json
<snip..>
/mnt/extrassd/git/linux-next/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml: ignoring, error in schema:
Which results in the schema not being properly evaluated. Swap out
unevaluatedProperties which doesn't seem to be doing anything for
additionalProperties.
Signed-off-by: Andrew Halaney <ahalaney@...hat.com>
---
.../devicetree/bindings/regulator/qcom,rpmh-regulator.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
index 9a36bee750af..b3fd60b21610 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
@@ -106,6 +106,8 @@ patternProperties:
$ref: "regulator.yaml#"
description: smps/ldo regulator nodes(s).
+additionalProperties: false
+
required:
- compatible
- qcom,pmic-id
@@ -351,8 +353,6 @@ allOf:
"^vdd-l2[01]-supply$": true
"^vdd-s[1-8]-supply$": true
-unevaluatedProperties: false
-
examples:
- |
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
--
2.37.2
Powered by blists - more mailing lists