Message ID | 20250328-syscon-reboot-reset-mode-v4-2-77ba57703ace@linaro.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | support Linux reboot modes in syscon-reboot on gs101 (Google Pixel) | expand |
On Fri, Mar 28, 2025 at 03:15:20PM +0000, André Draszik wrote: > Add the gs101-specific reset node, allow it on gs101, and disallow it > on !gs101. Similarly, disallow the generic 'syscon-reboot' on gs101, as > we want the specific one in that case. > > Signed-off-by: André Draszik <andre.draszik@linaro.org> > --- > .../devicetree/bindings/soc/samsung/exynos-pmu.yaml | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml > index 204da6fe458d2d4bfeee1471ebc5c38247477ae2..8c7362cf3eeab11f6bb13a27eb295d5ee6721b71 100644 > --- a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml > +++ b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml > @@ -97,6 +97,12 @@ properties: > $ref: /schemas/phy/samsung,dp-video-phy.yaml > unevaluatedProperties: false > > + gs101-reboot: syscon-reboot > + $ref: /schemas/power/reset/google,gs101-reboot.yaml# ... which leads us to the existing node. Just use oneOf: oneOf: - $ref: /schemas/power/reset/syscon-reboot.yaml# - $ref: /schemas/power/reset/google,gs101-reboot.yaml# or actually better: additionalProperties: true properties: compatible: enum: - syscon-reboot - google,gs101-reboot Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml index 204da6fe458d2d4bfeee1471ebc5c38247477ae2..8c7362cf3eeab11f6bb13a27eb295d5ee6721b71 100644 --- a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml +++ b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml @@ -97,6 +97,12 @@ properties: $ref: /schemas/phy/samsung,dp-video-phy.yaml unevaluatedProperties: false + gs101-reboot: + $ref: /schemas/power/reset/google,gs101-reboot.yaml# + type: object + description: + Node for gs101-specific reboot method + interrupt-controller: description: Some PMUs are capable of behaving as an interrupt controller (mostly @@ -136,6 +142,21 @@ required: additionalProperties: false allOf: + - if: + properties: + compatible: + contains: + const: google,gs101-pmu + then: + properties: + gs101-reboot: true + syscon-reboot: false + + else: + properties: + gs101-reboot: false + syscon-reboot: true + - if: properties: compatible:
Add the gs101-specific reset node, allow it on gs101, and disallow it on !gs101. Similarly, disallow the generic 'syscon-reboot' on gs101, as we want the specific one in that case. Signed-off-by: André Draszik <andre.draszik@linaro.org> --- .../devicetree/bindings/soc/samsung/exynos-pmu.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)