Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: Add labibb regulator binding

Adding the devicetree binding for labibb regulator.

[sumits: cleanup as per review comments and update to yaml]

Signed-off-by: Nisha Kumari <nishakumari@codeaurora.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200622124110.20971-3-sumit.semwal@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Nisha Kumari and committed by
Mark Brown
88c14de2 498ab2fd

+70
+70
Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml
··· 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 + ...