maxim,max77838.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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,max77838.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim Integrated MAX77838 PMIC
  7. maintainers:
  8. - Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
  9. properties:
  10. $nodename:
  11. pattern: "pmic@[0-9a-f]{1,2}"
  12. compatible:
  13. enum:
  14. - maxim,max77838
  15. reg:
  16. maxItems: 1
  17. regulators:
  18. type: object
  19. $ref: regulator.yaml#
  20. description: |
  21. list of regulators provided by this controller, must be named
  22. after their hardware counterparts ldo[1-4] and buck
  23. properties:
  24. buck:
  25. type: object
  26. $ref: regulator.yaml#
  27. unevaluatedProperties: false
  28. patternProperties:
  29. "^ldo([1-4])$":
  30. type: object
  31. $ref: regulator.yaml#
  32. unevaluatedProperties: false
  33. additionalProperties: false
  34. required:
  35. - compatible
  36. - reg
  37. - regulators
  38. additionalProperties: false
  39. examples:
  40. - |
  41. i2c {
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. pmic@60 {
  45. compatible = "maxim,max77838";
  46. reg = <0x60>;
  47. regulators {
  48. ldo2 {
  49. regulator-min-microvolt = <1800000>;
  50. regulator-max-microvolt = <1800000>;
  51. };
  52. };
  53. };
  54. };
  55. ...