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