Skip to content

Commit 1495c1a

Browse files
andredsre
authored andcommitted
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 <[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 cfe7696 commit 1495c1a

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

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

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ description: |+
2121
2222
properties:
2323
compatible:
24-
const: syscon-reboot
24+
enum:
25+
- syscon-reboot
26+
- google,gs101-reboot
2527

2628
mask:
2729
$ref: /schemas/types.yaml#/definitions/uint32
@@ -49,12 +51,6 @@ properties:
4951
priority:
5052
default: 192
5153

52-
oneOf:
53-
- required:
54-
- offset
55-
- required:
56-
- reg
57-
5854
required:
5955
- compatible
6056

@@ -63,12 +59,29 @@ additionalProperties: false
6359
allOf:
6460
- $ref: restart-handler.yaml#
6561
- if:
66-
not:
67-
required:
68-
- mask
62+
properties:
63+
compatible:
64+
contains:
65+
const: google,gs101-reboot
6966
then:
70-
required:
71-
- value
67+
properties:
68+
mask: false
69+
offset: false
70+
reg: false
71+
value: false
72+
73+
else:
74+
if:
75+
not:
76+
required:
77+
- mask
78+
then:
79+
required:
80+
- value
81+
82+
oneOf:
83+
- required: [offset]
84+
- required: [reg]
7285

7386
examples:
7487
- |
@@ -78,3 +91,8 @@ examples:
7891
offset = <0x0>;
7992
mask = <0x1>;
8093
};
94+
95+
- |
96+
reboot {
97+
compatible = "google,gs101-reboot";
98+
};

0 commit comments

Comments
 (0)