xref: /freebsd-src/sys/contrib/device-tree/Bindings/regulator/qcom-labibb-regulator.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/qcom-labibb-regulator.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Qualcomm's LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) Regulator
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Sumit Semwal <sumit.semwal@linaro.org>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription:
13c66ec88fSEmmanuel Vadot  LAB can be used as a positive boost power supply and IBB can be used as a
14c66ec88fSEmmanuel Vadot  negative boost power supply for display panels. Currently implemented for
15c66ec88fSEmmanuel Vadot  pmi8998.
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadotproperties:
18c66ec88fSEmmanuel Vadot  compatible:
19c66ec88fSEmmanuel Vadot    const: qcom,pmi8998-lab-ibb
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot  lab:
22c66ec88fSEmmanuel Vadot    type: object
23*cb7aa33aSEmmanuel Vadot    $ref: regulator.yaml#
24*cb7aa33aSEmmanuel Vadot    unevaluatedProperties: false
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot    properties:
275def4c47SEmmanuel Vadot      qcom,soft-start-us:
285def4c47SEmmanuel Vadot        description: Regulator soft start time in microseconds.
295def4c47SEmmanuel Vadot        enum: [200, 400, 600, 800]
305def4c47SEmmanuel Vadot        default: 200
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot      interrupts:
335def4c47SEmmanuel Vadot        minItems: 1
345def4c47SEmmanuel Vadot        maxItems: 2
35c66ec88fSEmmanuel Vadot        description:
365def4c47SEmmanuel Vadot          Short-circuit and over-current interrupts for lab.
37c66ec88fSEmmanuel Vadot
387ef62cebSEmmanuel Vadot      interrupt-names:
397ef62cebSEmmanuel Vadot        minItems: 1
407ef62cebSEmmanuel Vadot        items:
417ef62cebSEmmanuel Vadot          - const: sc-err
427ef62cebSEmmanuel Vadot          - const: ocp
437ef62cebSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot    required:
45c66ec88fSEmmanuel Vadot      - interrupts
467ef62cebSEmmanuel Vadot      - interrupt-names
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadot  ibb:
49c66ec88fSEmmanuel Vadot    type: object
50*cb7aa33aSEmmanuel Vadot    $ref: regulator.yaml#
51*cb7aa33aSEmmanuel Vadot    unevaluatedProperties: false
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot    properties:
545def4c47SEmmanuel Vadot      qcom,discharge-resistor-kohms:
555def4c47SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
565def4c47SEmmanuel Vadot        description: Discharge resistor value in KiloOhms.
575def4c47SEmmanuel Vadot        enum: [300, 64, 32, 16]
585def4c47SEmmanuel Vadot        default: 300
59c66ec88fSEmmanuel Vadot
60c66ec88fSEmmanuel Vadot      interrupts:
615def4c47SEmmanuel Vadot        minItems: 1
625def4c47SEmmanuel Vadot        maxItems: 2
63c66ec88fSEmmanuel Vadot        description:
645def4c47SEmmanuel Vadot          Short-circuit and over-current interrupts for ibb.
65c66ec88fSEmmanuel Vadot
667ef62cebSEmmanuel Vadot      interrupt-names:
677ef62cebSEmmanuel Vadot        minItems: 1
687ef62cebSEmmanuel Vadot        items:
697ef62cebSEmmanuel Vadot          - const: sc-err
707ef62cebSEmmanuel Vadot          - const: ocp
717ef62cebSEmmanuel Vadot
72c66ec88fSEmmanuel Vadot    required:
73c66ec88fSEmmanuel Vadot      - interrupts
747ef62cebSEmmanuel Vadot      - interrupt-names
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel Vadotrequired:
77c66ec88fSEmmanuel Vadot  - compatible
78c66ec88fSEmmanuel Vadot
796be33864SEmmanuel VadotadditionalProperties: false
80c66ec88fSEmmanuel Vadot
81c66ec88fSEmmanuel Vadotexamples:
82c66ec88fSEmmanuel Vadot  - |
83c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
84c66ec88fSEmmanuel Vadot
85c66ec88fSEmmanuel Vadot    labibb {
86c66ec88fSEmmanuel Vadot      compatible = "qcom,pmi8998-lab-ibb";
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadot      lab {
895def4c47SEmmanuel Vadot        interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,
905def4c47SEmmanuel Vadot                     <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;
915def4c47SEmmanuel Vadot        interrupt-names = "sc-err", "ocp";
92c66ec88fSEmmanuel Vadot      };
93c66ec88fSEmmanuel Vadot
94c66ec88fSEmmanuel Vadot      ibb {
955def4c47SEmmanuel Vadot        interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,
965def4c47SEmmanuel Vadot                     <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_LOW>;
975def4c47SEmmanuel Vadot        interrupt-names = "sc-err", "ocp";
98c66ec88fSEmmanuel Vadot      };
99c66ec88fSEmmanuel Vadot    };
100c66ec88fSEmmanuel Vadot
101c66ec88fSEmmanuel Vadot...
102