syscon-poweroff.txt 773 B

1234567891011121314151617181920212223
  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 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. - mask: the poweroff value written to the poweroff register (32 bit access)
  11. Default will be little endian mode, 32 bit access only.
  12. Examples:
  13. poweroff {
  14. compatible = "syscon-poweroff";
  15. regmap = <&regmapnode>;
  16. offset = <0x0>;
  17. mask = <0x7a>;
  18. };