apple,spmi.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/spmi/apple,spmi.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Apple SPMI controller
  7. maintainers:
  8. - Sasha Finkelstein <fnkl.kernel@gmail.com>
  9. description: A SPMI controller present on most Apple SoCs
  10. allOf:
  11. - $ref: spmi.yaml#
  12. properties:
  13. compatible:
  14. oneOf:
  15. - items:
  16. - enum:
  17. - apple,t6020-spmi
  18. - apple,t8012-spmi
  19. - apple,t8015-spmi
  20. - const: apple,t8103-spmi
  21. - items:
  22. - enum:
  23. # Do not add additional SoC to this list.
  24. - apple,t8103-spmi
  25. - apple,t6000-spmi
  26. - apple,t8112-spmi
  27. - const: apple,spmi
  28. reg:
  29. maxItems: 1
  30. required:
  31. - compatible
  32. - reg
  33. unevaluatedProperties: false
  34. examples:
  35. - |
  36. #include <dt-bindings/spmi/spmi.h>
  37. spmi@920a1300 {
  38. compatible = "apple,t6000-spmi", "apple,spmi";
  39. reg = <0x920a1300 0x100>;
  40. #address-cells = <2>;
  41. #size-cells = <0>;
  42. pmic@f {
  43. reg = <0xf SPMI_USID>;
  44. /* PMIC-specific properties */
  45. };
  46. };