1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/qcom-labibb-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm's LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) Regulator
8
9maintainers:
10  - Sumit Semwal <sumit.semwal@linaro.org>
11
12description:
13  LAB can be used as a positive boost power supply and IBB can be used as a
14  negative boost power supply for display panels. Currently implemented for
15  pmi8998.
16
17properties:
18  compatible:
19    const: qcom,pmi8998-lab-ibb
20
21  lab:
22    type: object
23
24    properties:
25
26      interrupts:
27        maxItems: 1
28        description:
29          Short-circuit interrupt for lab.
30
31    required:
32      - interrupts
33
34  ibb:
35    type: object
36
37    properties:
38
39      interrupts:
40        maxItems: 1
41        description:
42          Short-circuit interrupt for lab.
43
44    required:
45      - interrupts
46
47required:
48  - compatible
49
50additionalProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/interrupt-controller/irq.h>
55
56    labibb {
57      compatible = "qcom,pmi8998-lab-ibb";
58
59      lab {
60        interrupts = <0x3 0x0 IRQ_TYPE_EDGE_RISING>;
61        interrupt-names = "sc-err";
62      };
63
64      ibb {
65        interrupts = <0x3 0x2 IRQ_TYPE_EDGE_RISING>;
66        interrupt-names = "sc-err";
67      };
68    };
69
70...
71