History

regulator: Add labibb regulator binding

Adding the devicetree binding for labibb regulator. [sumits: cleanup as per review comments and update to yaml]

Nisha Kumari committed 6 years ago

Commit 88c14de1 parent 498ab2f1 file · +70 −0Browse files

Unified · Split

Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml+70−0
@@ -0,0 +1,70 @@
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+
7+title: Qualcomm's LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) Regulator
8+
9+maintainers:
10+ - Sumit Semwal <sumit.semwal@linaro.org>
11+
12+description:
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+
17+properties:
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+
47+required:
48+ - compatible
49+
50+unevaluatedProperties: false
51+
52+examples:
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+...