xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/qcom-pm8xxx.yaml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/qcom-pm8xxx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm PM8xxx PMIC multi-function devices
8
9maintainers:
10  - Satya Priya <quic_c_skakit@quicinc.com>
11
12description: |
13  The PM8xxx family of Power Management ICs are used to provide regulated
14  voltages and other various functionality to Qualcomm SoCs.
15
16properties:
17  compatible:
18    oneOf:
19      - enum:
20          - qcom,pm8058
21          - qcom,pm8821
22          - qcom,pm8921
23      - items:
24          - enum:
25              - qcom,pm8018
26          - const: qcom,pm8921
27
28  reg:
29    maxItems: 1
30
31  '#address-cells':
32    const: 1
33
34  '#size-cells':
35    const: 0
36
37  interrupts:
38    maxItems: 1
39
40  '#interrupt-cells':
41    const: 2
42
43  interrupt-controller: true
44
45patternProperties:
46  "led@[0-9a-f]+$":
47    type: object
48    $ref: /schemas/leds/qcom,pm8058-led.yaml#
49
50  "rtc@[0-9a-f]+$":
51    type: object
52    $ref: ../rtc/qcom-pm8xxx-rtc.yaml
53
54required:
55  - compatible
56  - '#address-cells'
57  - '#size-cells'
58  - interrupts
59  - '#interrupt-cells'
60  - interrupt-controller
61
62additionalProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/interrupt-controller/irq.h>
67    ssbi {
68      #address-cells = <1>;
69      #size-cells = <0>;
70      pmic@0 {
71        compatible = "qcom,pm8921";
72        reg = <0>;
73        #address-cells = <1>;
74        #size-cells = <0>;
75        interrupt-controller;
76        #interrupt-cells = <2>;
77
78        interrupt-parent = <&tlmm>;
79        interrupts = <32 IRQ_TYPE_EDGE_RISING>;
80      };
81    };
82...
83