xref: /linux/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml (revision c771600c6af14749609b49565ffb4cac2959710d)
1f2f2bc3cSsatya priya# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2f2f2bc3cSsatya priya%YAML 1.2
3f2f2bc3cSsatya priya---
4f2f2bc3cSsatya priya$id: http://devicetree.org/schemas/mfd/qcom-pm8xxx.yaml#
5f2f2bc3cSsatya priya$schema: http://devicetree.org/meta-schemas/core.yaml#
6f2f2bc3cSsatya priya
7f2f2bc3cSsatya priyatitle: Qualcomm PM8xxx PMIC multi-function devices
8f2f2bc3cSsatya priya
9f2f2bc3cSsatya priyamaintainers:
1076659e20SSatya Priya  - Satya Priya <quic_c_skakit@quicinc.com>
11f2f2bc3cSsatya priya
12f2f2bc3cSsatya priyadescription: |
13f2f2bc3cSsatya priya  The PM8xxx family of Power Management ICs are used to provide regulated
14f2f2bc3cSsatya priya  voltages and other various functionality to Qualcomm SoCs.
15f2f2bc3cSsatya priya
16f2f2bc3cSsatya priyaproperties:
17f2f2bc3cSsatya priya  compatible:
186af338b0SNeil Armstrong    oneOf:
196af338b0SNeil Armstrong      - enum:
20f2f2bc3cSsatya priya          - qcom,pm8058
21f2f2bc3cSsatya priya          - qcom,pm8821
22aecebbc0SHerman van Hazendonk          - qcom,pm8901
23f2f2bc3cSsatya priya          - qcom,pm8921
246af338b0SNeil Armstrong      - items:
256af338b0SNeil Armstrong          - enum:
266af338b0SNeil Armstrong              - qcom,pm8018
276af338b0SNeil Armstrong          - const: qcom,pm8921
28f2f2bc3cSsatya priya
29f2f2bc3cSsatya priya  reg:
30f2f2bc3cSsatya priya    maxItems: 1
31f2f2bc3cSsatya priya
32f2f2bc3cSsatya priya  '#address-cells':
33f2f2bc3cSsatya priya    const: 1
34f2f2bc3cSsatya priya
35f2f2bc3cSsatya priya  '#size-cells':
36f2f2bc3cSsatya priya    const: 0
37f2f2bc3cSsatya priya
38f2f2bc3cSsatya priya  interrupts:
39f2f2bc3cSsatya priya    maxItems: 1
40f2f2bc3cSsatya priya
41f2f2bc3cSsatya priya  '#interrupt-cells':
42f2f2bc3cSsatya priya    const: 2
43f2f2bc3cSsatya priya
44f2f2bc3cSsatya priya  interrupt-controller: true
45f2f2bc3cSsatya priya
46f2f2bc3cSsatya priyapatternProperties:
4726329c97SDmitry Baryshkov  "gpio@[0-9a-f]+$":
4826329c97SDmitry Baryshkov    type: object
4926329c97SDmitry Baryshkov    $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
5026329c97SDmitry Baryshkov
5126329c97SDmitry Baryshkov  "keypad@[0-9a-f]+$":
5226329c97SDmitry Baryshkov    type: object
5326329c97SDmitry Baryshkov    $ref: /schemas/input/qcom,pm8921-keypad.yaml#
5426329c97SDmitry Baryshkov
556afd8bd5SKrzysztof Kozlowski  "led@[0-9a-f]+$":
566afd8bd5SKrzysztof Kozlowski    type: object
576afd8bd5SKrzysztof Kozlowski    $ref: /schemas/leds/qcom,pm8058-led.yaml#
586afd8bd5SKrzysztof Kozlowski
5926329c97SDmitry Baryshkov  "mpps@[0-9a-f]+$":
6026329c97SDmitry Baryshkov    type: object
6126329c97SDmitry Baryshkov    $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
6226329c97SDmitry Baryshkov
6326329c97SDmitry Baryshkov  "pwrkey@[0-9a-f]+$":
6426329c97SDmitry Baryshkov    type: object
6526329c97SDmitry Baryshkov    $ref: /schemas/input/qcom,pm8921-pwrkey.yaml#
6626329c97SDmitry Baryshkov
67f2f2bc3cSsatya priya  "rtc@[0-9a-f]+$":
68f2f2bc3cSsatya priya    type: object
6926329c97SDmitry Baryshkov    $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
7026329c97SDmitry Baryshkov
7126329c97SDmitry Baryshkov  "vibrator@[0-9a-f]+$":
7226329c97SDmitry Baryshkov    type: object
7326329c97SDmitry Baryshkov    $ref: /schemas/input/qcom,pm8xxx-vib.yaml#
7426329c97SDmitry Baryshkov
7526329c97SDmitry Baryshkov  "xoadc@[0-9a-f]+$":
7626329c97SDmitry Baryshkov    type: object
7726329c97SDmitry Baryshkov    $ref: /schemas/iio/adc/qcom,pm8018-adc.yaml#
78f2f2bc3cSsatya priya
79f2f2bc3cSsatya priyarequired:
80f2f2bc3cSsatya priya  - compatible
81f2f2bc3cSsatya priya  - '#address-cells'
82f2f2bc3cSsatya priya  - '#size-cells'
83f2f2bc3cSsatya priya  - interrupts
84f2f2bc3cSsatya priya  - '#interrupt-cells'
85f2f2bc3cSsatya priya  - interrupt-controller
86f2f2bc3cSsatya priya
87f2f2bc3cSsatya priyaadditionalProperties: false
886af338b0SNeil Armstrong
896af338b0SNeil Armstrongexamples:
906af338b0SNeil Armstrong  - |
916af338b0SNeil Armstrong    #include <dt-bindings/interrupt-controller/irq.h>
926af338b0SNeil Armstrong    ssbi {
936af338b0SNeil Armstrong      #address-cells = <1>;
946af338b0SNeil Armstrong      #size-cells = <0>;
956af338b0SNeil Armstrong      pmic@0 {
966af338b0SNeil Armstrong        compatible = "qcom,pm8921";
976af338b0SNeil Armstrong        reg = <0>;
986af338b0SNeil Armstrong        #address-cells = <1>;
996af338b0SNeil Armstrong        #size-cells = <0>;
1006af338b0SNeil Armstrong        interrupt-controller;
1016af338b0SNeil Armstrong        #interrupt-cells = <2>;
1026af338b0SNeil Armstrong
1036af338b0SNeil Armstrong        interrupt-parent = <&tlmm>;
1046af338b0SNeil Armstrong        interrupts = <32 IRQ_TYPE_EDGE_RISING>;
1056af338b0SNeil Armstrong      };
1066af338b0SNeil Armstrong    };
107f2f2bc3cSsatya priya...
108