mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
dt-bindings: reset: syscon-reboot: add google,gs101-reboot
GS101 supports a couple different reset types via certain registers in the SYSCON register map. Add a compatible for it. When in effect, all register values and offsets are implied, hence they shall not be specified in that case. Signed-off-by: André Draszik <andre.draszik@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250401-syscon-reboot-reset-mode-v5-1-5b9357442363@linaro.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
committed by
Sebastian Reichel
parent
cfe769670e
commit
1495c1aa44
@@ -21,7 +21,9 @@ description: |+
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: syscon-reboot
|
||||
enum:
|
||||
- syscon-reboot
|
||||
- google,gs101-reboot
|
||||
|
||||
mask:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
@@ -49,12 +51,6 @@ properties:
|
||||
priority:
|
||||
default: 192
|
||||
|
||||
oneOf:
|
||||
- required:
|
||||
- offset
|
||||
- required:
|
||||
- reg
|
||||
|
||||
required:
|
||||
- compatible
|
||||
|
||||
@@ -63,12 +59,29 @@ additionalProperties: false
|
||||
allOf:
|
||||
- $ref: restart-handler.yaml#
|
||||
- if:
|
||||
not:
|
||||
required:
|
||||
- mask
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: google,gs101-reboot
|
||||
then:
|
||||
required:
|
||||
- value
|
||||
properties:
|
||||
mask: false
|
||||
offset: false
|
||||
reg: false
|
||||
value: false
|
||||
|
||||
else:
|
||||
if:
|
||||
not:
|
||||
required:
|
||||
- mask
|
||||
then:
|
||||
required:
|
||||
- value
|
||||
|
||||
oneOf:
|
||||
- required: [offset]
|
||||
- required: [reg]
|
||||
|
||||
examples:
|
||||
- |
|
||||
@@ -78,3 +91,8 @@ examples:
|
||||
offset = <0x0>;
|
||||
mask = <0x1>;
|
||||
};
|
||||
|
||||
- |
|
||||
reboot {
|
||||
compatible = "google,gs101-reboot";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user