ti-abb-regulator.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Adaptive Body Bias(ABB) SoC internal LDO regulator for Texas Instruments SoCs
  2. Required Properties:
  3. - compatible: Should be one of:
  4. - "ti,abb-v1" for older SoCs like OMAP3
  5. - "ti,abb-v2" for newer SoCs like OMAP4, OMAP5
  6. - reg: Address and length of the register set for the device. It contains
  7. the information of registers in the same order as described by reg-names
  8. - reg-names: Should contain the reg names
  9. - "base-address" - contains base address of ABB module
  10. - "int-address" - contains address of interrupt register for ABB module
  11. (also see Optional properties)
  12. - #address-cell: should be 0
  13. - #size-cell: should be 0
  14. - clocks: should point to the clock node used by ABB module
  15. - ti,settling-time: Settling time in uSecs from SoC documentation for ABB module
  16. to settle down(target time for SR2_WTCNT_VALUE).
  17. - ti,clock-cycles: SoC specific data about count of system ti,clock-cycles used for
  18. computing settling time from SoC Documentation for ABB module(clock
  19. cycles for SR2_WTCNT_VALUE).
  20. - ti,tranxdone-status-mask: Mask to the int-register to write-to-clear mask
  21. indicating LDO tranxdone (operation complete).
  22. - ti,abb_info: An array of 6-tuples u32 items providing information about ABB
  23. configuration needed per operational voltage of the device.
  24. Each item consists of the following in the same order:
  25. volt: voltage in uV - Only used to index ABB information.
  26. ABB mode: one of the following:
  27. 0-bypass
  28. 1-Forward Body Bias(FBB)
  29. 3-Reverse Body Bias(RBB)
  30. efuse: (see Optional properties)
  31. RBB enable efuse Mask: (See Optional properties)
  32. FBB enable efuse Mask: (See Optional properties)
  33. Vset value efuse Mask: (See Optional properties)
  34. NOTE: If more than 1 entry is present, then regulator is setup to change
  35. voltage, allowing for various modes to be selected indexed off
  36. the regulator. Further, ABB LDOs are considered always-on by
  37. default.
  38. Optional Properties:
  39. - reg-names: In addition to the required properties, the following are optional
  40. - "efuse-address" - Contains efuse base address used to pick up ABB info.
  41. - "ldo-address" - Contains address of ABB LDO overide register address.
  42. "efuse-address" is required for this.
  43. - ti,ldovbb-vset-mask - Required if ldo-address is set, mask for LDO override
  44. register to provide override vset value.
  45. - ti,ldovbb-override-mask - Required if ldo-address is set, mask for LDO
  46. override register to enable override vset value.
  47. - ti,abb_opp_sel: Addendum to the description in required properties
  48. efuse: Mandatory if 'efuse-address' register is defined. Provides offset
  49. from efuse-address to pick up ABB characteristics. Set to 0 if
  50. 'efuse-address' is not defined.
  51. RBB enable efuse Mask: Optional if 'efuse-address' register is defined.
  52. 'ABB mode' is force set to RBB mode if value at "efuse-address"
  53. + efuse maps to RBB mask. Set to 0 to ignore this.
  54. FBB enable efuse Mask: Optional if 'efuse-address' register is defined.
  55. 'ABB mode' is force set to FBB mode if value at "efuse-address"
  56. + efuse maps to FBB mask (valid only if RBB mask does not match)
  57. Set to 0 to ignore this.
  58. Vset value efuse Mask: Mandatory if ldo-address is set. Picks up from
  59. efuse the value to set in 'ti,ldovbb-vset-mask' at ldo-address.
  60. Example #1: Simplest configuration (no efuse data, hard coded ABB table):
  61. abb_x: regulator-abb-x {
  62. compatible = "ti,abb-v1";
  63. regulator-name = "abb_x";
  64. #address-cell = <0>;
  65. #size-cells = <0>;
  66. reg = <0x483072f0 0x8>, <0x48306818 0x4>;
  67. reg-names = "base-address", "int-address";
  68. ti,tranxdone-status-mask = <0x4000000>;
  69. clocks = <&sysclk>;
  70. ti,settling-time = <30>;
  71. ti,clock-cycles = <8>;
  72. ti,abb_info = <
  73. /* uV ABB efuse rbb_m fbb_m vset_m */
  74. 1012500 0 0 0 0 0 /* Bypass */
  75. 1200000 3 0 0 0 0 /* RBB mandatory */
  76. 1320000 1 0 0 0 0 /* FBB mandatory */
  77. >;
  78. };
  79. Example #2: Efuse bits contain ABB mode setting (no LDO override capability)
  80. abb_y: regulator-abb-y {
  81. compatible = "ti,abb-v2";
  82. regulator-name = "abb_y";
  83. #address-cell = <0>;
  84. #size-cells = <0>;
  85. reg = <0x4a307bd0 0x8>, <0x4a306014 0x4>, <0x4A002268 0x8>;
  86. reg-names = "base-address", "int-address", "efuse-address";
  87. ti,tranxdone-status-mask = <0x4000000>;
  88. clocks = <&sysclk>;
  89. ti,settling-time = <50>;
  90. ti,clock-cycles = <16>;
  91. ti,abb_info = <
  92. /* uV ABB efuse rbb_m fbb_m vset_m */
  93. 975000 0 0 0 0 0 /* Bypass */
  94. 1012500 0 0 0x40000 0 0 /* RBB optional */
  95. 1200000 0 0x4 0 0x40000 0 /* FBB optional */
  96. 1320000 1 0 0 0 0 /* FBB mandatory */
  97. >;
  98. };
  99. Example #3: Efuse bits contain ABB mode setting and LDO override capability
  100. abb_z: regulator-abb-z {
  101. compatible = "ti,abb-v2";
  102. regulator-name = "abb_z";
  103. #address-cell = <0>;
  104. #size-cells = <0>;
  105. reg = <0x4ae07ce4 0x8>, <0x4ae06010 0x4>,
  106. <0x4a002194 0x8>, <0x4ae0C314 0x4>;
  107. reg-names = "base-address", "int-address",
  108. "efuse-address", "ldo-address";
  109. ti,tranxdone-status-mask = <0x8000000>;
  110. /* LDOVBBMM_MUX_CTRL */
  111. ti,ldovbb-override-mask = <0x400>;
  112. /* LDOVBBMM_VSET_OUT */
  113. ti,ldovbb-vset-mask = <0x1F>;
  114. clocks = <&sysclk>;
  115. ti,settling-time = <50>;
  116. ti,clock-cycles = <16>;
  117. ti,abb_info = <
  118. /* uV ABB efuse rbb_m fbb_m vset_m */
  119. 975000 0 0 0 0 0 /* Bypass */
  120. 1200000 0 0x4 0 0x40000 0x1f00 /* FBB optional, vset */
  121. >;
  122. };