syscon-reboot.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Generic SYSCON mapped register reset driver
  7. maintainers:
  8. - Sebastian Reichel <sre@kernel.org>
  9. description: |+
  10. This is a generic reset driver using syscon to map the reset register.
  11. The reset is generally performed with a write to the reset register
  12. defined by the SYSCON register map base plus the offset with the value and
  13. mask defined in the reboot node. Default will be little endian mode, 32 bit
  14. access only. The SYSCON registers map is normally retrieved from the
  15. parental dt-node. So the SYSCON reboot node should be represented as a
  16. sub-node of a "syscon", "simple-mfd" node. Though the regmap property
  17. pointing to the system controller node is also supported.
  18. properties:
  19. compatible:
  20. const: syscon-reboot
  21. mask:
  22. $ref: /schemas/types.yaml#/definitions/uint32
  23. description: Update only the register bits defined by the mask (32 bit).
  24. offset:
  25. $ref: /schemas/types.yaml#/definitions/uint32
  26. description: Offset in the register map for the reboot register (in bytes).
  27. regmap:
  28. $ref: /schemas/types.yaml#/definitions/phandle
  29. deprecated: true
  30. description: |
  31. Phandle to the register map node. This property is deprecated in favor of
  32. the syscon-reboot node been a child of a system controller node.
  33. value:
  34. $ref: /schemas/types.yaml#/definitions/uint32
  35. description: The reset value written to the reboot register (32 bit access).
  36. priority:
  37. default: 192
  38. required:
  39. - compatible
  40. - offset
  41. additionalProperties: false
  42. allOf:
  43. - $ref: restart-handler.yaml#
  44. - if:
  45. not:
  46. required:
  47. - mask
  48. then:
  49. required:
  50. - value
  51. examples:
  52. - |
  53. reboot {
  54. compatible = "syscon-reboot";
  55. regmap = <&regmapnode>;
  56. offset = <0x0>;
  57. mask = <0x1>;
  58. };