spmi.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/spmi/spmi.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: System Power Management Interface (SPMI) Controller
  7. maintainers:
  8. - Stephen Boyd <sboyd@kernel.org>
  9. description: |
  10. The System Power Management (SPMI) controller is a 2-wire bus defined
  11. by the MIPI Alliance for power management control to be used on SoC designs.
  12. SPMI controllers are modelled in device tree using a generic set of
  13. bindings defined here, plus any bus controller specific properties, if
  14. needed.
  15. Each SPMI controller has zero or more child nodes (up to 16 ones), each
  16. one representing an unique slave at the bus.
  17. properties:
  18. $nodename:
  19. pattern: "^spmi@.*"
  20. "#address-cells":
  21. const: 2
  22. "#size-cells":
  23. const: 0
  24. patternProperties:
  25. "@[0-9a-f]$":
  26. description: up to 16 child PMIC nodes
  27. type: object
  28. properties:
  29. reg:
  30. items:
  31. - minItems: 1
  32. items:
  33. - minimum: 0
  34. maximum: 0xf
  35. - enum: [ 0 ]
  36. description:
  37. 0 means user ID address. 1 is reserved for group ID
  38. address.
  39. required:
  40. - reg
  41. required:
  42. - reg
  43. additionalProperties: true
  44. examples:
  45. - |
  46. #include <dt-bindings/spmi/spmi.h>
  47. spmi@0 {
  48. reg = <0 0>;
  49. #address-cells = <2>;
  50. #size-cells = <0>;
  51. child@0 {
  52. reg = <0 SPMI_USID>;
  53. };
  54. child@7 {
  55. reg = <7 SPMI_USID>;
  56. };
  57. };