brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · e987c39 Raw
102 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---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) Regulator8 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 a14  negative boost power supply for display panels. Currently implemented for15  pmi8998.16 17properties:18  compatible:19    const: qcom,pmi8998-lab-ibb20 21  lab:22    type: object23    $ref: regulator.yaml#24    unevaluatedProperties: false25 26    properties:27      qcom,soft-start-us:28        description: Regulator soft start time in microseconds.29        enum: [200, 400, 600, 800]30        default: 20031 32      interrupts:33        minItems: 134        maxItems: 235        description:36          Short-circuit and over-current interrupts for lab.37 38      interrupt-names:39        minItems: 140        items:41          - const: sc-err42          - const: ocp43 44    required:45      - interrupts46      - interrupt-names47 48  ibb:49    type: object50    $ref: regulator.yaml#51    unevaluatedProperties: false52 53    properties:54      qcom,discharge-resistor-kohms:55        $ref: /schemas/types.yaml#/definitions/uint3256        description: Discharge resistor value in KiloOhms.57        enum: [300, 64, 32, 16]58        default: 30059 60      interrupts:61        minItems: 162        maxItems: 263        description:64          Short-circuit and over-current interrupts for ibb.65 66      interrupt-names:67        minItems: 168        items:69          - const: sc-err70          - const: ocp71 72    required:73      - interrupts74      - interrupt-names75 76required:77  - compatible78 79additionalProperties: false80 81examples:82  - |83    #include <dt-bindings/interrupt-controller/irq.h>84 85    labibb {86      compatible = "qcom,pmi8998-lab-ibb";87 88      lab {89        interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,90                     <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;91        interrupt-names = "sc-err", "ocp";92      };93 94      ibb {95        interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,96                     <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_LOW>;97        interrupt-names = "sc-err", "ocp";98      };99    };100 101...102