vexpress-sysreg.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ARM Versatile Express system registers
  2. --------------------------------------
  3. This is a system control registers block, providing multiple low level
  4. platform functions like board detection and identification, software
  5. interrupt generation, MMC and NOR Flash control etc.
  6. Required node properties:
  7. - compatible value : = "arm,vexpress,sysreg";
  8. - reg : physical base address and the size of the registers window
  9. - gpio-controller : specifies that the node is a GPIO controller
  10. - #gpio-cells : size of the GPIO specifier, should be 2:
  11. - first cell is the pseudo-GPIO line number:
  12. 0 - MMC CARDIN
  13. 1 - MMC WPROT
  14. 2 - NOR FLASH WPn
  15. - second cell can take standard GPIO flags (currently ignored).
  16. Example:
  17. v2m_sysreg: sysreg@10000000 {
  18. compatible = "arm,vexpress-sysreg";
  19. reg = <0x10000000 0x1000>;
  20. gpio-controller;
  21. #gpio-cells = <2>;
  22. };
  23. This block also can also act a bridge to the platform's configuration
  24. bus via "system control" interface, addressing devices with site number,
  25. position in the board stack, config controller, function and device
  26. numbers - see motherboard's TRM for more details.
  27. The node describing a config device must refer to the sysreg node via
  28. "arm,vexpress,config-bridge" phandle (can be also defined in the node's
  29. parent) and relies on the board topology properties - see main vexpress
  30. node documentation for more details. It must must also define the
  31. following property:
  32. - arm,vexpress-sysreg,func : must contain two cells:
  33. - first cell defines function number (eg. 1 for clock generator,
  34. 2 for voltage regulators etc.)
  35. - device number (eg. osc 0, osc 1 etc.)
  36. Example:
  37. mcc {
  38. arm,vexpress,config-bridge = <&v2m_sysreg>;
  39. osc@0 {
  40. compatible = "arm,vexpress-osc";
  41. arm,vexpress-sysreg,func = <1 0>;
  42. };
  43. };