spacemit,p1.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/spacemit,p1.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: SpacemiT P1 Power Management Integrated Circuit
  7. maintainers:
  8. - Troy Mitchell <troy.mitchell@linux.spacemit.com>
  9. description:
  10. P1 is an I2C-controlled PMIC produced by SpacemiT. It implements six
  11. constant-on-time buck converters and twelve low-dropout regulators.
  12. It also contains a load switch, watchdog timer, real-time clock, eight
  13. 12-bit ADC channels, and six GPIOs. Additional details are available
  14. in the "Power Stone/P1" section at the following link.
  15. https://developer.spacemit.com/documentation
  16. properties:
  17. compatible:
  18. const: spacemit,p1
  19. reg:
  20. maxItems: 1
  21. interrupts:
  22. maxItems: 1
  23. vin-supply:
  24. description: Input supply phandle.
  25. regulators:
  26. type: object
  27. patternProperties:
  28. "^(buck[1-6]|aldo[1-4]|dldo[1-7])$":
  29. type: object
  30. $ref: /schemas/regulator/regulator.yaml#
  31. unevaluatedProperties: false
  32. unevaluatedProperties: false
  33. required:
  34. - compatible
  35. - reg
  36. - interrupts
  37. unevaluatedProperties: false
  38. examples:
  39. - |
  40. i2c {
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. pmic@41 {
  44. compatible = "spacemit,p1";
  45. reg = <0x41>;
  46. interrupts = <64>;
  47. regulators {
  48. buck1 {
  49. regulator-name = "buck1";
  50. regulator-min-microvolt = <500000>;
  51. regulator-max-microvolt = <3450000>;
  52. regulator-ramp-delay = <5000>;
  53. regulator-always-on;
  54. };
  55. aldo1 {
  56. regulator-name = "aldo1";
  57. regulator-min-microvolt = <500000>;
  58. regulator-max-microvolt = <3400000>;
  59. regulator-boot-on;
  60. };
  61. dldo1 {
  62. regulator-name = "dldo1";
  63. regulator-min-microvolt = <500000>;
  64. regulator-max-microvolt = <3400000>;
  65. regulator-boot-on;
  66. };
  67. };
  68. };
  69. };