qcom,spmi-pmic.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Qualcomm SPMI PMICs multi-function device bindings
  2. The Qualcomm SPMI series presently includes PM8941, PM8841 and PMA8084
  3. PMICs. These PMICs use a QPNP scheme through SPMI interface.
  4. QPNP is effectively a partitioning scheme for dividing the SPMI extended
  5. register space up into logical pieces, and set of fixed register
  6. locations/definitions within these regions, with some of these regions
  7. specifically used for interrupt handling.
  8. The QPNP PMICs are used with the Qualcomm Snapdragon series SoCs, and are
  9. interfaced to the chip via the SPMI (System Power Management Interface) bus.
  10. Support for multiple independent functions are implemented by splitting the
  11. 16-bit SPMI slave address space into 256 smaller fixed-size regions, 256 bytes
  12. each. A function can consume one or more of these fixed-size register regions.
  13. Required properties:
  14. - compatible: Should contain one of:
  15. "qcom,pm8941",
  16. "qcom,pm8841",
  17. "qcom,pma8084",
  18. "qcom,pm8019",
  19. "qcom,pm8226",
  20. "qcom,pm8110",
  21. "qcom,pma8084",
  22. "qcom,pmi8962",
  23. "qcom,pmd9635",
  24. "qcom,pm8994",
  25. "qcom,pmi8994",
  26. "qcom,pm8916",
  27. "qcom,pm8004",
  28. "qcom,pm8909",
  29. or generalized "qcom,spmi-pmic".
  30. - reg: Specifies the SPMI USID slave address for this device.
  31. For more information see:
  32. Documentation/devicetree/bindings/spmi/spmi.txt
  33. Required properties for peripheral child nodes:
  34. - compatible: Should contain "qcom,xxx", where "xxx" is a peripheral name.
  35. Optional properties for peripheral child nodes:
  36. - interrupts: Interrupts are specified as a 4-tuple. For more information
  37. see:
  38. Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt
  39. - interrupt-names: Corresponding interrupt name to the interrupts property
  40. Each child node of SPMI slave id represents a function of the PMIC. In the
  41. example below the rtc device node represents a peripheral of pm8941
  42. SID = 0. The regulator device node represents a peripheral of pm8941 SID = 1.
  43. Example:
  44. spmi {
  45. compatible = "qcom,spmi-pmic-arb";
  46. pm8941@0 {
  47. compatible = "qcom,pm8941", "qcom,spmi-pmic";
  48. reg = <0x0 SPMI_USID>;
  49. rtc {
  50. compatible = "qcom,rtc";
  51. interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
  52. interrupt-names = "alarm";
  53. };
  54. };
  55. pm8941@1 {
  56. compatible = "qcom,pm8941", "qcom,spmi-pmic";
  57. reg = <0x1 SPMI_USID>;
  58. regulator {
  59. compatible = "qcom,regulator";
  60. regulator-name = "8941_boost";
  61. };
  62. };
  63. };