regmap.txt 907 B

1234567891011121314151617181920212223242526272829
  1. Devicetree binding for regmap
  2. Optional properties:
  3. little-endian,
  4. big-endian,
  5. native-endian: See common-properties.txt for a definition
  6. Note:
  7. Regmap defaults to little-endian register access on MMIO based
  8. devices, this is by far the most common setting. On CPU
  9. architectures that typically run big-endian operating systems
  10. (e.g. PowerPC), registers can be defined as big-endian and must
  11. be marked that way in the devicetree.
  12. On SoCs that can be operated in both big-endian and little-endian
  13. modes, with a single hardware switch controlling both the endianness
  14. of the CPU and a byteswap for MMIO registers (e.g. many Broadcom MIPS
  15. chips), "native-endian" is used to allow using the same device tree
  16. blob in both cases.
  17. Examples:
  18. Scenario 1 : a register set in big-endian mode.
  19. dev: dev@40031000 {
  20. compatible = "syscon";
  21. reg = <0x40031000 0x1000>;
  22. big-endian;
  23. ...
  24. };