s2mps11.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. * Samsung S2MPS11, S2MPS13, S2MPS14 and S2MPU02 Voltage and Current Regulator
  2. The Samsung S2MPS11 is a multi-function device which includes voltage and
  3. current regulators, RTC, charger controller and other sub-blocks. It is
  4. interfaced to the host controller using an I2C interface. Each sub-block is
  5. addressed by the host system using different I2C slave addresses.
  6. Required properties:
  7. - compatible: Should be "samsung,s2mps11-pmic" or "samsung,s2mps13-pmic"
  8. or "samsung,s2mps14-pmic" or "samsung,s2mpu02-pmic".
  9. - reg: Specifies the I2C slave address of the pmic block. It should be 0x66.
  10. Optional properties:
  11. - interrupt-parent: Specifies the phandle of the interrupt controller to which
  12. the interrupts from s2mps11 are delivered to.
  13. - interrupts: Interrupt specifiers for interrupt sources.
  14. Optional nodes:
  15. - clocks: s2mps11, s2mps13 and s5m8767 provide three(AP/CP/BT) buffered 32.768
  16. KHz outputs, so to register these as clocks with common clock framework
  17. instantiate a sub-node named "clocks". It uses the common clock binding
  18. documented in :
  19. [Documentation/devicetree/bindings/clock/clock-bindings.txt]
  20. The s2mps14 provides two (AP/BT) buffered 32.768 KHz outputs.
  21. - #clock-cells: should be 1.
  22. - The following is the list of clocks generated by the controller. Each clock
  23. is assigned an identifier and client nodes use this identifier to specify
  24. the clock which they consume.
  25. Clock ID Devices
  26. ----------------------------------------------------------
  27. 32KhzAP 0 S2MPS11, S2MPS13, S2MPS14, S5M8767
  28. 32KhzCP 1 S2MPS11, S2MPS13, S5M8767
  29. 32KhzBT 2 S2MPS11, S2MPS13, S2MPS14, S5M8767
  30. - compatible: Should be one of: "samsung,s2mps11-clk", "samsung,s2mps13-clk",
  31. "samsung,s2mps14-clk", "samsung,s5m8767-clk"
  32. - regulators: The regulators of s2mps11 that have to be instantiated should be
  33. included in a sub-node named 'regulators'. Regulator nodes included in this
  34. sub-node should be of the format as listed below.
  35. regulator_name {
  36. [standard regulator constraints....];
  37. };
  38. regulator-ramp-delay for BUCKs = [6250/12500/25000(default)/50000] uV/us
  39. BUCK[2/3/4/6] supports disabling ramp delay on hardware, so explicitly
  40. regulator-ramp-delay = <0> can be used for them to disable ramp delay.
  41. In the absence of the regulator-ramp-delay property, the default ramp
  42. delay will be used.
  43. NOTE: Some BUCKs share the ramp rate setting i.e. same ramp value will be set
  44. for a particular group of BUCKs. So provide same regulator-ramp-delay<value>.
  45. Grouping of BUCKs sharing ramp rate setting is as follow : BUCK[1, 6],
  46. BUCK[3, 4], and BUCK[7, 8, 10]
  47. On S2MPS14 the LDO10, LDO11 and LDO12 can be configured to external control
  48. over GPIO. To turn this feature on this property must be added to the regulator
  49. sub-node:
  50. - samsung,ext-control-gpios: GPIO specifier for one GPIO
  51. controlling this regulator (enable/disable);
  52. Example:
  53. LDO12 {
  54. regulator-name = "V_EMMC_2.8V";
  55. regulator-min-microvolt = <2800000>;
  56. regulator-max-microvolt = <2800000>;
  57. samsung,ext-control-gpios = <&gpk0 2 0>;
  58. };
  59. The regulator constraints inside the regulator nodes use the standard regulator
  60. bindings which are documented elsewhere.
  61. The following are the names of the regulators that the s2mps11 pmic block
  62. supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number
  63. as per the datasheet of s2mps11.
  64. - LDOn
  65. - valid values for n are:
  66. - S2MPS11: 1 to 38
  67. - S2MPS13: 1 to 40
  68. - S2MPS14: 1 to 25
  69. - S2MPU02: 1 to 28
  70. - Example: LDO1, LDO2, LDO28
  71. - BUCKn
  72. - valid values for n are:
  73. - S2MPS11: 1 to 10
  74. - S2MPS13: 1 to 10
  75. - S2MPS14: 1 to 5
  76. - S2MPU02: 1 to 7
  77. - Example: BUCK1, BUCK2, BUCK9
  78. Example:
  79. s2mps11_pmic@66 {
  80. compatible = "samsung,s2mps11-pmic";
  81. reg = <0x66>;
  82. s2m_osc: clocks {
  83. compatible = "samsung,s2mps11-clk";
  84. #clock-cells = <1>;
  85. clock-output-names = "xx", "yy", "zz";
  86. };
  87. regulators {
  88. ldo1_reg: LDO1 {
  89. regulator-name = "VDD_ABB_3.3V";
  90. regulator-min-microvolt = <3300000>;
  91. regulator-max-microvolt = <3300000>;
  92. };
  93. ldo2_reg: LDO2 {
  94. regulator-name = "VDD_ALIVE_1.1V";
  95. regulator-min-microvolt = <1100000>;
  96. regulator-max-microvolt = <1100000>;
  97. regulator-always-on;
  98. };
  99. buck1_reg: BUCK1 {
  100. regulator-name = "vdd_mif";
  101. regulator-min-microvolt = <950000>;
  102. regulator-max-microvolt = <1350000>;
  103. regulator-always-on;
  104. regulator-boot-on;
  105. };
  106. buck2_reg: BUCK2 {
  107. regulator-name = "vdd_arm";
  108. regulator-min-microvolt = <950000>;
  109. regulator-max-microvolt = <1350000>;
  110. regulator-always-on;
  111. regulator-boot-on;
  112. regulator-ramp-delay = <50000>;
  113. };
  114. };
  115. };