ti-sysc.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Texas Instruments sysc interconnect target module wrapper binding
  2. Texas Instruments SoCs can have a generic interconnect target module
  3. hardware for devices connected to various interconnects such as L3
  4. interconnect (Arteris NoC) and L4 interconnect (Sonics s3220). The sysc
  5. is mostly used for interaction between module and PRCM. It participates
  6. in the OCP Disconnect Protocol but other than that is mostly independent
  7. of the interconnect.
  8. Each interconnect target module can have one or more devices connected to
  9. it. There is a set of control registers for managing interconnect target
  10. module clocks, idle modes and interconnect level resets for the module.
  11. These control registers are sprinkled into the unused register address
  12. space of the first child device IP block managed by the interconnect
  13. target module and typically are named REVISION, SYSCONFIG and SYSSTATUS.
  14. Required standard properties:
  15. - compatible shall be one of the following generic types:
  16. "ti,sysc"
  17. "ti,sysc-omap2"
  18. "ti,sysc-omap4"
  19. "ti,sysc-omap4-simple"
  20. or one of the following derivative types for hardware
  21. needing special workarounds:
  22. "ti,sysc-omap2-timer"
  23. "ti,sysc-omap4-timer"
  24. "ti,sysc-omap3430-sr"
  25. "ti,sysc-omap3630-sr"
  26. "ti,sysc-omap4-sr"
  27. "ti,sysc-omap3-sham"
  28. "ti,sysc-omap-aes"
  29. "ti,sysc-mcasp"
  30. "ti,sysc-dra7-mcasp"
  31. "ti,sysc-usb-host-fs"
  32. "ti,sysc-dra7-mcan"
  33. - reg shall have register areas implemented for the interconnect
  34. target module in question such as revision, sysc and syss
  35. - reg-names shall contain the register names implemented for the
  36. interconnect target module in question such as
  37. "rev, "sysc", and "syss"
  38. - ranges shall contain the interconnect target module IO range
  39. available for one or more child device IP blocks managed
  40. by the interconnect target module, the ranges may include
  41. multiple ranges such as device L4 range for control and
  42. parent L3 range for DMA access
  43. Optional properties:
  44. - ti,sysc-mask shall contain mask of supported register bits for the
  45. SYSCONFIG register as documented in the Technical Reference
  46. Manual (TRM) for the interconnect target module
  47. - ti,sysc-midle list of master idle modes supported by the interconnect
  48. target module as documented in the TRM for SYSCONFIG
  49. register MIDLEMODE bits
  50. - ti,sysc-sidle list of slave idle modes supported by the interconnect
  51. target module as documented in the TRM for SYSCONFIG
  52. register SIDLEMODE bits
  53. - ti,sysc-delay-us delay needed after OCP softreset before accssing
  54. SYSCONFIG register again
  55. - ti,syss-mask optional mask of reset done status bits as described in the
  56. TRM for SYSSTATUS registers, typically 1 with some devices
  57. having separate reset done bits for children like OHCI and
  58. EHCI
  59. - clocks clock specifier for each name in the clock-names as
  60. specified in the binding documentation for ti-clkctrl,
  61. typically available for all interconnect targets on TI SoCs
  62. based on omap4 except if it's read-only register in hwauto
  63. mode as for example omap4 L4_CFG_CLKCTRL
  64. - clock-names should contain at least "fck", and optionally also "ick"
  65. depending on the SoC and the interconnect target module,
  66. some interconnect target modules also need additional
  67. optional clocks that can be specified as listed in TRM
  68. for the related CLKCTRL register bits 8 to 15 such as
  69. "dbclk" or "clk32k" depending on their role
  70. - ti,hwmods optional TI interconnect module name to use legacy
  71. hwmod platform data
  72. - ti,no-reset-on-init interconnect target module should not be reset at init
  73. - ti,no-idle-on-init interconnect target module should not be idled at init
  74. Example: Single instance of MUSB controller on omap4 using interconnect ranges
  75. using offsets from l4_cfg second segment (0x4a000000 + 0x80000 = 0x4a0ab000):
  76. target-module@2b000 { /* 0x4a0ab000, ap 84 12.0 */
  77. compatible = "ti,sysc-omap2";
  78. ti,hwmods = "usb_otg_hs";
  79. reg = <0x2b400 0x4>,
  80. <0x2b404 0x4>,
  81. <0x2b408 0x4>;
  82. reg-names = "rev", "sysc", "syss";
  83. clocks = <&l3_init_clkctrl OMAP4_USB_OTG_HS_CLKCTRL 0>;
  84. clock-names = "fck";
  85. ti,sysc-mask = <(SYSC_OMAP2_ENAWAKEUP |
  86. SYSC_OMAP2_SOFTRESET |
  87. SYSC_OMAP2_AUTOIDLE)>;
  88. ti,sysc-midle = <SYSC_IDLE_FORCE>,
  89. <SYSC_IDLE_NO>,
  90. <SYSC_IDLE_SMART>;
  91. ti,sysc-sidle = <SYSC_IDLE_FORCE>,
  92. <SYSC_IDLE_NO>,
  93. <SYSC_IDLE_SMART>,
  94. <SYSC_IDLE_SMART_WKUP>;
  95. ti,syss-mask = <1>;
  96. #address-cells = <1>;
  97. #size-cells = <1>;
  98. ranges = <0 0x2b000 0x1000>;
  99. usb_otg_hs: otg@0 {
  100. compatible = "ti,omap4-musb";
  101. reg = <0x0 0x7ff>;
  102. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
  103. <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
  104. usb-phy = <&usb2_phy>;
  105. ...
  106. };
  107. };
  108. Note that other SoCs, such as am335x can have multipe child devices. On am335x
  109. there are two MUSB instances, two USB PHY instances, and a single CPPI41 DMA
  110. instance as children of a single interconnet target module.