max8893.yaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/regulator/max8893.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Regulator driver for MAX8893 PMIC from Maxim Integrated.
  7. maintainers:
  8. - Sergey Larin <cerg2010cerg2010@mail.ru>
  9. description: |
  10. The device has 5 LDO regulators and a single BUCK regulator.
  11. Programming is done through I2C bus.
  12. properties:
  13. compatible:
  14. const: maxim,max8893
  15. reg:
  16. maxItems: 1
  17. regulators:
  18. type: object
  19. patternProperties:
  20. "^(ldo[1-5]|buck)$":
  21. $ref: regulator.yaml#
  22. additionalProperties: false
  23. additionalProperties: false
  24. required:
  25. - compatible
  26. - reg
  27. - regulators
  28. examples:
  29. - |
  30. i2c {
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. pmic@3e {
  34. compatible = "maxim,max8893";
  35. reg = <0x3e>;
  36. regulators {
  37. /* Front camera - s5k6aafx, back - m5mo */
  38. /* Numbers used to indicate the sequence */
  39. front_1_back_1: buck {
  40. regulator-name = "cam_isp_core_1v2";
  41. regulator-min-microvolt = <1200000>;
  42. regulator-max-microvolt = <1200000>;
  43. };
  44. front_4_back_5: ldo1 {
  45. regulator-name = "vt_io_1v8,cam_isp_1v8";
  46. regulator-min-microvolt = <1800000>;
  47. regulator-max-microvolt = <1800000>;
  48. };
  49. front_3_back_4: ldo2 {
  50. regulator-name = "vt_core_1v5";
  51. regulator-min-microvolt = <1500000>;
  52. regulator-max-microvolt = <1500000>;
  53. };
  54. front_5_back_6: ldo3 {
  55. regulator-name = "vt_cam_1v8,vt_sensor_io_1v8";
  56. regulator-min-microvolt = <1800000>;
  57. regulator-max-microvolt = <1800000>;
  58. };
  59. ldo4 {
  60. /* not used */
  61. };
  62. back_7: ldo5 {
  63. regulator-name = "cam_sensor_io_1v8";
  64. regulator-min-microvolt = <1800000>;
  65. regulator-max-microvolt = <1800000>;
  66. };
  67. };
  68. };
  69. };
  70. ...