syscon-poweroff.txt 1001 B

123456789101112131415161718192021222324252627282930
  1. Generic SYSCON mapped register poweroff driver
  2. This is a generic poweroff driver using syscon to map the poweroff register.
  3. The poweroff is generally performed with a write to the poweroff register
  4. defined by the register map pointed by syscon reference plus the offset
  5. with the value and mask defined in the poweroff node.
  6. Required properties:
  7. - compatible: should contain "syscon-poweroff"
  8. - regmap: this is phandle to the register map node
  9. - offset: offset in the register map for the poweroff register (in bytes)
  10. - value: the poweroff value written to the poweroff register (32 bit access)
  11. Optional properties:
  12. - mask: update only the register bits defined by the mask (32 bit)
  13. Legacy usage:
  14. If a node doesn't contain a value property but contains a mask property, the
  15. mask property is used as the value.
  16. Default will be little endian mode, 32 bit access only.
  17. Examples:
  18. poweroff {
  19. compatible = "syscon-poweroff";
  20. regmap = <&regmapnode>;
  21. offset = <0x0>;
  22. mask = <0x7a>;
  23. };