regmap.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Device-Tree binding for regmap
  2. The endianness mode of CPU & Device scenarios:
  3. Index Device Endianness properties
  4. ---------------------------------------------------
  5. 1 BE 'big-endian'
  6. 2 LE 'little-endian'
  7. For one device driver, which will run in different scenarios above
  8. on different SoCs using the devicetree, we need one way to simplify
  9. this.
  10. Required properties:
  11. - {big,little}-endian: these are boolean properties, if absent
  12. meaning that the CPU and the Device are in the same endianness mode,
  13. these properties are for register values and all the buffers only.
  14. Examples:
  15. Scenario 1 : CPU in LE mode & device in LE mode.
  16. dev: dev@40031000 {
  17. compatible = "name";
  18. reg = <0x40031000 0x1000>;
  19. ...
  20. };
  21. Scenario 2 : CPU in LE mode & device in BE mode.
  22. dev: dev@40031000 {
  23. compatible = "name";
  24. reg = <0x40031000 0x1000>;
  25. ...
  26. big-endian;
  27. };
  28. Scenario 3 : CPU in BE mode & device in BE mode.
  29. dev: dev@40031000 {
  30. compatible = "name";
  31. reg = <0x40031000 0x1000>;
  32. ...
  33. };
  34. Scenario 4 : CPU in BE mode & device in LE mode.
  35. dev: dev@40031000 {
  36. compatible = "name";
  37. reg = <0x40031000 0x1000>;
  38. ...
  39. little-endian;
  40. };