Message ID | 20250226-syscon-reboot-reset-mode-v1-0-91c1b62166ae@linaro.org |
---|---|
Headers | show |
Series | support Linux reboot modes in syscon-reboot | expand |
On Wed, 26 Feb 2025 14:08:20 +0000, André Draszik wrote: > Add support for specifying different register/mask/value combinations > for different types of reset. > > In particular, update the binding to allow platforms to specify the > following reset modes: soft, warm, cold, hard. > > Linux can perform different types of reset using its reboot= kernel > command line argument, and some platforms also wish to reset > differently based on whether or not e.g. contents of RAM should be > retained across the reboot. > > The new properties match the existing properties, just prefixed with > one of the reset modes mentioned above. > > Signed-off-by: André Draszik <andre.draszik@linaro.org> > --- > .../bindings/power/reset/syscon-reboot.yaml | 74 ++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:113:11: [warning] wrong indentation: expected 12 but found 10 (indentation) ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:115:11: [warning] wrong indentation: expected 12 but found 10 (indentation) ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:123:11: [warning] wrong indentation: expected 12 but found 10 (indentation) ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:125:11: [warning] wrong indentation: expected 12 but found 10 (indentation) ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:133:11: [warning] wrong indentation: expected 12 but found 10 (indentation) ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:135:11: [warning] wrong indentation: expected 12 but found 10 (indentation) ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:143:11: [warning] wrong indentation: expected 12 but found 10 (indentation) ./Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml:145:11: [warning] wrong indentation: expected 12 but found 10 (indentation) dtschema/dtc warnings/errors: doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250226-syscon-reboot-reset-mode-v1-1-91c1b62166ae@linaro.org The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
This series teaches syscon-reboot some of Linux' different reboot modes. Linux supports a couple different reboot modes, but syscon-reboot doesn't distinguish between them and issues the same syscon register write irrespective of the reboot mode requested by the kernel. This is a problem when platforms want to do a cold reboot most of the time, which could e.g. wipe RAM etc, but also want to support rebooting while keeping RAM contents in certain cases. DTs can now specify the existing properties prefixed with one of the Linux reboot modes. All the changes to support this are optional and opt-in, platforms that don't, or don't specify a register/value/mask pair for a specific mode will behave just as before. Signed-off-by: André Draszik <andre.draszik@linaro.org> --- André Draszik (2): dt-bindings: reset: syscon-reboot: support reset modes power: reset: syscon-reboot: support different reset modes .../bindings/power/reset/syscon-reboot.yaml | 74 ++++++++++++++++++ drivers/power/reset/syscon-reboot.c | 88 +++++++++++++++++++--- 2 files changed, 151 insertions(+), 11 deletions(-) --- base-commit: 0226d0ce98a477937ed295fb7df4cc30b46fc304 change-id: 20250226-syscon-reboot-reset-mode-566588b847e1 Best regards,