Skip to content

Commit e7af7d1

Browse files
cpackham-atlnzsre
authored andcommitted
dt-bindings: reset: syscon-reboot: Add reg property
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent b45cdce commit e7af7d1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ properties:
3131
$ref: /schemas/types.yaml#/definitions/uint32
3232
description: Offset in the register map for the reboot register (in bytes).
3333

34+
reg:
35+
maxItems: 1
36+
description: Base address and size for the reboot register.
37+
3438
regmap:
3539
$ref: /schemas/types.yaml#/definitions/phandle
3640
deprecated: true
@@ -45,9 +49,14 @@ properties:
4549
priority:
4650
default: 192
4751

52+
oneOf:
53+
- required:
54+
- offset
55+
- required:
56+
- reg
57+
4858
required:
4959
- compatible
50-
- offset
5160

5261
additionalProperties: false
5362

0 commit comments

Comments
 (0)