Commit e7af7d13 authored by Chris Packham's avatar Chris Packham Committed by Sebastian Reichel
Browse files

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: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20241015225948.3971924-2-chris.packham@alliedtelesis.co.nz


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent b45cdceb
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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