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

dt-bindings: reset: intel,rcu-gw: Fix intel,global-reset schema

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.

Fixes: b7ab0cb00d08 ("dt-bindings: reset: Add YAML schemas for the Intel Reset controller")
Cc: Dilip Kota <eswara.kota@linux.intel.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Rob Herring and committed by
Philipp Zabel
68131a0b bb6d3fb3

+5 -1
+5 -1
Documentation/devicetree/bindings/reset/intel,rcu-gw.yaml
··· 23 23 description: Global reset register offset and bit offset. 24 24 allOf: 25 25 - $ref: /schemas/types.yaml#/definitions/uint32-array 26 - - maxItems: 2 26 + items: 27 + - description: Register offset 28 + - description: Register bit offset 29 + minimum: 0 30 + maximum: 31 27 31 28 32 "#reset-cells": 29 33 minimum: 2