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      qcom,soft-start-us:
26        $ref: /schemas/types.yaml#/definitions/uint32
27        description: Regulator soft start time in microseconds.
28        enum: [200, 400, 600, 800]
29        default: 200
30
31      interrupts:
32        minItems: 1
33        maxItems: 2
34        description:
35          Short-circuit and over-current interrupts for lab.
36
37    required:
38      - interrupts
39
40  ibb:
41    type: object
42
43    properties:
44      qcom,discharge-resistor-kohms:
45        $ref: /schemas/types.yaml#/definitions/uint32
46        description: Discharge resistor value in KiloOhms.
47        enum: [300, 64, 32, 16]
48        default: 300
49
50      interrupts:
51        minItems: 1
52        maxItems: 2
53        description:
54          Short-circuit and over-current interrupts for ibb.
55
56    required:
57      - interrupts
58
59required:
60  - compatible
61
62additionalProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/interrupt-controller/irq.h>
67
68    labibb {
69      compatible = "qcom,pmi8998-lab-ibb";
70
71      lab {
72        interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,
73                     <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;
74        interrupt-names = "sc-err", "ocp";
75      };
76
77      ibb {
78        interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,
79                     <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_LOW>;
80        interrupt-names = "sc-err", "ocp";
81      };
82    };
83
84...
85