maxim,max8952.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/regulator/maxim,max8952.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX8952 voltage regulator
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. allOf:
  10. - $ref: regulator.yaml#
  11. properties:
  12. compatible:
  13. const: maxim,max8952
  14. max8952,default-mode:
  15. $ref: /schemas/types.yaml#/definitions/uint32
  16. enum: [0, 1, 2, 3]
  17. description: |
  18. index of default DVS voltage
  19. max8952,dvs-mode-microvolt:
  20. minItems: 4
  21. maxItems: 4
  22. items:
  23. minimum: 770000
  24. maximum: 1400000
  25. description: |
  26. Array of 4 integer values defining DVS voltages in microvolts. All values
  27. must be from range <770000, 1400000>.
  28. max8952,en-gpio:
  29. maxItems: 1
  30. description: |
  31. GPIO used to control enable status of regulator
  32. max8952,ramp-speed:
  33. $ref: /schemas/types.yaml#/definitions/uint32
  34. enum: [0, 1, 2, 3, 4, 5, 6, 7]
  35. default: 0
  36. description: |
  37. Voltage ramp speed, values map to:
  38. - 0: 32mV/us
  39. - 1: 16mV/us
  40. - 2: 8mV/us
  41. - 3: 4mV/us
  42. - 4: 2mV/us
  43. - 5: 1mV/us
  44. - 6: 0.5mV/us
  45. - 7: 0.25mV/us
  46. Defaults to 32mV/us if not specified.
  47. max8952,sync-freq:
  48. $ref: /schemas/types.yaml#/definitions/uint32
  49. enum: [0, 1, 2]
  50. default: 0
  51. description: |
  52. Sync frequency, values map to:
  53. - 0: 26 MHz
  54. - 1: 13 MHz
  55. - 2: 19.2 MHz
  56. Defaults to 26 MHz if not specified.
  57. max8952,vid-gpios:
  58. minItems: 2
  59. maxItems: 2
  60. description: |
  61. Array of two GPIO pins used for DVS voltage selection
  62. reg:
  63. maxItems: 1
  64. required:
  65. - compatible
  66. - max8952,dvs-mode-microvolt
  67. - reg
  68. unevaluatedProperties: false
  69. examples:
  70. - |
  71. #include <dt-bindings/gpio/gpio.h>
  72. i2c {
  73. #address-cells = <1>;
  74. #size-cells = <0>;
  75. pmic@60 {
  76. compatible = "maxim,max8952";
  77. reg = <0x60>;
  78. max8952,vid-gpios = <&gpx0 3 GPIO_ACTIVE_HIGH>,
  79. <&gpx0 4 GPIO_ACTIVE_HIGH>;
  80. max8952,default-mode = <0>;
  81. max8952,dvs-mode-microvolt = <1250000>, <1200000>,
  82. <1050000>, <950000>;
  83. max8952,sync-freq = <0>;
  84. max8952,ramp-speed = <0>;
  85. regulator-name = "VARM_1.2V_C210";
  86. regulator-min-microvolt = <770000>;
  87. regulator-max-microvolt = <1400000>;
  88. regulator-always-on;
  89. regulator-boot-on;
  90. };
  91. };