syscon.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. * System Controller Registers R/W driver
  2. System controller node represents a register region containing a set
  3. of miscellaneous registers. The registers are not cohesive enough to
  4. represent as any specific type of device. The typical use-case is for
  5. some other node's driver, or platform-specific code, to acquire a
  6. reference to the syscon node (e.g. by phandle, node path, or search
  7. using a specific compatible value), interrogate the node (or associated
  8. OS driver) to determine the location of the registers, and access the
  9. registers directly.
  10. Required properties:
  11. - compatible: Should contain "syscon".
  12. - reg: the register region can be accessed from syscon
  13. Optional property:
  14. - reg-io-width: the size (in bytes) of the IO accesses that should be
  15. performed on the device.
  16. - hwlocks: reference to a phandle of a hardware spinlock provider node.
  17. Examples:
  18. gpr: iomuxc-gpr@20e0000 {
  19. compatible = "fsl,imx6q-iomuxc-gpr", "syscon";
  20. reg = <0x020e0000 0x38>;
  21. hwlocks = <&hwlock1 1>;
  22. };
  23. hwlock1: hwspinlock@40500000 {
  24. ...
  25. reg = <0x40500000 0x1000>;
  26. #hwlock-cells = <1>;
  27. };