On 1/14/2020 5:45 AM, Rob Herring wrote:
The intel,rcu-gw binding example has an error:
Documentation/devicetree/bindings/reset/intel,rcu-gw.example.dt.yaml:
ÂÂ reset-controller@e0000000: intel,global-reset: [[16, 30]] is too short
The error isn't really correct as the problem is in how the data is
encoded and the schema is not fixed up by the tooling correctly.
However, array properties should describe the elements in the array, so
lets do that which fixes the error in the process.
Sure, i will add the change describing the array properties and push as a fix patch.
Regards,
Dilip
Fixes: b7ab0cb00d08 ("dt-bindings: reset: Add YAML schemas for the Intel Reset controller")
Cc: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
Cc: Dilip Kota <eswara.kota@xxxxxxxxxxxxxxx>
Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
 Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
index 246dea8a2ec9..8ac437282659 100644
--- a/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
+++ b/Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
@@ -23,7 +23,11 @@ properties:
ÂÂÂÂÂ description: Global reset register offset and bit offset.
ÂÂÂÂÂ allOf:
ÂÂÂÂÂÂÂ - $ref: /schemas/types.yaml#/definitions/uint32-array
-ÂÂÂÂÂ - maxItems: 2
+ÂÂÂ items:
+ÂÂÂÂÂ - description: Register offset
+ÂÂÂÂÂ - description: Register bit offset
+ÂÂÂÂÂÂÂ minimum: 0
+ÂÂÂÂÂÂÂ maximum: 31
 Â "#reset-cells":
ÂÂÂÂÂ minimum: 2