Several Qualcomm PMICs have an LCDB block providing the positive and negative bias rails for LCD panels. It is not supported by Linux, so boards using it either model the rails as dummy fixed regulators and depend on the state left by the bootloader.
Describe the LCDB regulator present on the PM8150L. Use it as a fallback compatible for LCDB blocks on PMI632 and PM6150L. PM660L has a different version of LCDB block, so it's not being covered. Assisted-by: LLM Signed-off-by: Dmitry Baryshkov <[email protected]> --- .../bindings/regulator/qcom,pm8150l-lcdb.yaml | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,pm8150l-lcdb.yaml b/Documentation/devicetree/bindings/regulator/qcom,pm8150l-lcdb.yaml new file mode 100644 index 000000000000..eb5014f86439 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/qcom,pm8150l-lcdb.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/qcom,pm8150l-lcdb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm LCDB (LCD Bias) regulator + +maintainers: + - Dmitry Baryshkov <[email protected]> + +description: + LCDB is the LCD panel bias supply found on Qualcomm PMICs such as PMI632, + PM6150L and PM8150L. It consists of a boost converter feeding an LDO, which + provides the positive bias rail, and an inverting charge pump (NCP), which + provides the negative one. Both rails are switched together by a single + module enable. + +properties: + compatible: + oneOf: + - const: qcom,pm8150l-lcdb + - items: + - enum: + - qcom,pm6150l-lcdb + - qcom,pmi632-lcdb + - const: qcom,pm8150l-lcdb + + reg: + maxItems: 1 + + interrupts: + items: + - description: short circuit on one of the outputs + + ldo: + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + description: Positive bias rail. + + ncp: + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + description: + Negative bias rail. The voltage is specified as an absolute value. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + + pmic { + #address-cells = <1>; + #size-cells = <0>; + + lcdb@ec00 { + compatible = "qcom,pm8150l-lcdb"; + reg = <0xec00>; + interrupts = <0x5 0xec 0x1 IRQ_TYPE_EDGE_RISING>; + + ldo { + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <6000000>; + }; + + ncp { + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <6000000>; + }; + }; + }; + +... -- 2.47.3
