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