]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
dt-bindings: reset: syscon-reboot: Add reg property
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Tue, 15 Oct 2024 22:59:43 +0000 (11:59 +1300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 16 Oct 2024 20:26:20 +0000 (22:26 +0200)
The syscon-reboot binding used 'offset' for historical reasons. Having a
reg property is appropriate when these nodes are children of a MMIO bus.
Add a reg property and modify the constraints so that one of 'reg' or
'offset' is expected.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20241015225948.3971924-2-chris.packham@alliedtelesis.co.nz
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml

index 75061124d9a8b7d9143a713bbf37d7b45ca52b6e..19d3093e6cd2f7e39d94c56636dc202a4427ffc3 100644 (file)
@@ -31,6 +31,10 @@ properties:
     $ref: /schemas/types.yaml#/definitions/uint32
     description: Offset in the register map for the reboot register (in bytes).
 
+  reg:
+    maxItems: 1
+    description: Base address and size for the reboot register.
+
   regmap:
     $ref: /schemas/types.yaml#/definitions/phandle
     deprecated: true
@@ -45,9 +49,14 @@ properties:
   priority:
     default: 192
 
+oneOf:
+  - required:
+      - offset
+  - required:
+      - reg
+
 required:
   - compatible
-  - offset
 
 additionalProperties: false