samsung,s5m8767.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. Binding for Samsung S5M8767 regulator block
  2. ===========================================
  3. This is a part of device tree bindings for S5M family multi-function devices.
  4. More information can be found in bindings/mfd/sec-core.txt file.
  5. The S5M8767 device provide buck and LDO regulators.
  6. To register these with regulator framework instantiate under main device node
  7. a sub-node named "regulators" with more sub-nodes for each regulator using the
  8. common regulator binding documented in:
  9. - Documentation/devicetree/bindings/regulator/regulator.txt
  10. Required properties of the main device node (the parent!):
  11. - s5m8767,pmic-buck2-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
  12. units for buck2 when changing voltage using gpio dvs. Refer to [1] below
  13. for additional information.
  14. - s5m8767,pmic-buck3-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
  15. units for buck3 when changing voltage using gpio dvs. Refer to [1] below
  16. for additional information.
  17. - s5m8767,pmic-buck4-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
  18. units for buck4 when changing voltage using gpio dvs. Refer to [1] below
  19. for additional information.
  20. - s5m8767,pmic-buck-ds-gpios: GPIO specifiers for three host gpio's used
  21. for selecting GPIO DVS lines. It is one-to-one mapped to dvs gpio lines.
  22. [1] If none of the 's5m8767,pmic-buck[2/3/4]-uses-gpio-dvs' optional
  23. property is specified, the 's5m8767,pmic-buck[2/3/4]-dvs-voltage'
  24. property should specify atleast one voltage level (which would be a
  25. safe operating voltage).
  26. If either of the 's5m8767,pmic-buck[2/3/4]-uses-gpio-dvs' optional
  27. property is specified, then all the eight voltage values for the
  28. 's5m8767,pmic-buck[2/3/4]-dvs-voltage' should be specified.
  29. Optional properties of the main device node (the parent!):
  30. - s5m8767,pmic-buck2-uses-gpio-dvs: 'buck2' can be controlled by gpio dvs.
  31. - s5m8767,pmic-buck3-uses-gpio-dvs: 'buck3' can be controlled by gpio dvs.
  32. - s5m8767,pmic-buck4-uses-gpio-dvs: 'buck4' can be controlled by gpio dvs.
  33. Additional properties required if either of the optional properties are used:
  34. - s5m8767,pmic-buck234-default-dvs-idx: Default voltage setting selected from
  35. the possible 8 options selectable by the dvs gpios. The value of this
  36. property should be between 0 and 7. If not specified or if out of range, the
  37. default value of this property is set to 0.
  38. - s5m8767,pmic-buck-dvs-gpios: GPIO specifiers for three host gpio's used
  39. for dvs. The format of the gpio specifier depends in the gpio controller.
  40. Names of regulators supported by S5M8767 device:
  41. - LDOn
  42. - valid values for n are 1 to 28
  43. - Example: LDO1, LDO2, LDO28
  44. - BUCKn
  45. - valid values for n are 1 to 9.
  46. - Example: BUCK1, BUCK2, BUCK9
  47. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number
  48. as per the datasheet of device.
  49. Optional properties of the nodes under "regulators" sub-node:
  50. - op_mode: describes the different operating modes of the LDO's with
  51. power mode change in SOC. The different possible values are,
  52. 0 - always off mode
  53. 1 - on in normal mode
  54. 2 - low power mode
  55. 3 - suspend mode
  56. - s5m8767,pmic-ext-control-gpios: (optional) GPIO specifier for one
  57. GPIO controlling this regulator
  58. (enable/disable); This is valid only
  59. for buck9.
  60. Example:
  61. s5m8767_pmic@66 {
  62. compatible = "samsung,s5m8767-pmic";
  63. reg = <0x66>;
  64. s5m8767,pmic-buck2-uses-gpio-dvs;
  65. s5m8767,pmic-buck3-uses-gpio-dvs;
  66. s5m8767,pmic-buck4-uses-gpio-dvs;
  67. s5m8767,pmic-buck-default-dvs-idx = <0>;
  68. s5m8767,pmic-buck-dvs-gpios = <&gpx0 0 0>, /* DVS1 */
  69. <&gpx0 1 0>, /* DVS2 */
  70. <&gpx0 2 0>; /* DVS3 */
  71. s5m8767,pmic-buck-ds-gpios = <&gpx2 3 0>, /* SET1 */
  72. <&gpx2 4 0>, /* SET2 */
  73. <&gpx2 5 0>; /* SET3 */
  74. s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
  75. <1250000>, <1200000>,
  76. <1150000>, <1100000>,
  77. <1000000>, <950000>;
  78. s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
  79. <1100000>, <1100000>,
  80. <1000000>, <1000000>,
  81. <1000000>, <1000000>;
  82. s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
  83. <1200000>, <1200000>,
  84. <1200000>, <1200000>,
  85. <1200000>, <1200000>;
  86. regulators {
  87. ldo1_reg: LDO1 {
  88. regulator-name = "VDD_ABB_3.3V";
  89. regulator-min-microvolt = <3300000>;
  90. regulator-max-microvolt = <3300000>;
  91. op_mode = <1>; /* Normal Mode */
  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_1.2V";
  101. regulator-min-microvolt = <950000>;
  102. regulator-max-microvolt = <1350000>;
  103. regulator-always-on;
  104. regulator-boot-on;
  105. };
  106. vemmc_reg: BUCK9 {
  107. regulator-name = "VMEM_VDD_2.8V";
  108. regulator-min-microvolt = <2800000>;
  109. regulator-max-microvolt = <2800000>;
  110. op_mode = <3>; /* Standby Mode */
  111. s5m8767,pmic-ext-control-gpios = <&gpk0 2 0>;
  112. };
  113. };
  114. };