1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/regulator/q 4 $id: http://devicetree.org/schemas/regulator/qcom-labibb-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Qualcomm's LAB(LCD AMOLED Boost)/IBB(In 7 title: Qualcomm's LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) Regulator 8 8 9 maintainers: 9 maintainers: 10 - Sumit Semwal <sumit.semwal@linaro.org> 10 - Sumit Semwal <sumit.semwal@linaro.org> 11 11 12 description: 12 description: 13 LAB can be used as a positive boost power su 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 pane 14 negative boost power supply for display panels. Currently implemented for 15 pmi8998. 15 pmi8998. 16 16 17 properties: 17 properties: 18 compatible: 18 compatible: 19 const: qcom,pmi8998-lab-ibb 19 const: qcom,pmi8998-lab-ibb 20 20 21 lab: 21 lab: 22 type: object 22 type: object 23 $ref: regulator.yaml# 23 $ref: regulator.yaml# 24 unevaluatedProperties: false 24 unevaluatedProperties: false 25 25 26 properties: 26 properties: 27 qcom,soft-start-us: 27 qcom,soft-start-us: 28 description: Regulator soft start time 28 description: Regulator soft start time in microseconds. 29 enum: [200, 400, 600, 800] 29 enum: [200, 400, 600, 800] 30 default: 200 30 default: 200 31 31 32 interrupts: 32 interrupts: 33 minItems: 1 33 minItems: 1 34 maxItems: 2 34 maxItems: 2 35 description: 35 description: 36 Short-circuit and over-current inter 36 Short-circuit and over-current interrupts for lab. 37 37 38 interrupt-names: 38 interrupt-names: 39 minItems: 1 39 minItems: 1 40 items: 40 items: 41 - const: sc-err 41 - const: sc-err 42 - const: ocp 42 - const: ocp 43 43 44 required: 44 required: 45 - interrupts 45 - interrupts 46 - interrupt-names 46 - interrupt-names 47 47 48 ibb: 48 ibb: 49 type: object 49 type: object 50 $ref: regulator.yaml# 50 $ref: regulator.yaml# 51 unevaluatedProperties: false 51 unevaluatedProperties: false 52 52 53 properties: 53 properties: 54 qcom,discharge-resistor-kohms: 54 qcom,discharge-resistor-kohms: 55 $ref: /schemas/types.yaml#/definitions 55 $ref: /schemas/types.yaml#/definitions/uint32 56 description: Discharge resistor value 56 description: Discharge resistor value in KiloOhms. 57 enum: [300, 64, 32, 16] 57 enum: [300, 64, 32, 16] 58 default: 300 58 default: 300 59 59 60 interrupts: 60 interrupts: 61 minItems: 1 61 minItems: 1 62 maxItems: 2 62 maxItems: 2 63 description: 63 description: 64 Short-circuit and over-current inter 64 Short-circuit and over-current interrupts for ibb. 65 65 66 interrupt-names: 66 interrupt-names: 67 minItems: 1 67 minItems: 1 68 items: 68 items: 69 - const: sc-err 69 - const: sc-err 70 - const: ocp 70 - const: ocp 71 71 72 required: 72 required: 73 - interrupts 73 - interrupts 74 - interrupt-names 74 - interrupt-names 75 75 76 required: 76 required: 77 - compatible 77 - compatible 78 78 79 additionalProperties: false 79 additionalProperties: false 80 80 81 examples: 81 examples: 82 - | 82 - | 83 #include <dt-bindings/interrupt-controller 83 #include <dt-bindings/interrupt-controller/irq.h> 84 84 85 labibb { 85 labibb { 86 compatible = "qcom,pmi8998-lab-ibb"; 86 compatible = "qcom,pmi8998-lab-ibb"; 87 87 88 lab { 88 lab { 89 interrupts = <0x3 0xde 0x1 IRQ_TYPE_ED 89 interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>, 90 <0x3 0xde 0x0 IRQ_TYPE_LE 90 <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>; 91 interrupt-names = "sc-err", "ocp"; 91 interrupt-names = "sc-err", "ocp"; 92 }; 92 }; 93 93 94 ibb { 94 ibb { 95 interrupts = <0x3 0xdc 0x2 IRQ_TYPE_ED 95 interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>, 96 <0x3 0xdc 0x0 IRQ_TYPE_LE 96 <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_LOW>; 97 interrupt-names = "sc-err", "ocp"; 97 interrupt-names = "sc-err", "ocp"; 98 }; 98 }; 99 }; 99 }; 100 100 101 ... 101 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.