From 457627e320651f2f4f5e418741cf646892454f30 Mon Sep 17 00:00:00 2001 From: Varshitha H N Date: Fri, 22 Mar 2024 16:41:36 +0530 Subject: [PATCH] dt-bindings: leds: DT binding for leds-qpnp-vibrator-ldo device Add devicetree bindings for leds-qpnp-vibrator-ldo driver. Change-Id: I0a7c2e0de5ff9479dfe6c8857feaf9e2ea731ec4 Signed-off-by: Varshitha H N --- .../leds/qcom,leds-qpnp-vibrator-ldo.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 bindings/leds/qcom,leds-qpnp-vibrator-ldo.yaml diff --git a/bindings/leds/qcom,leds-qpnp-vibrator-ldo.yaml b/bindings/leds/qcom,leds-qpnp-vibrator-ldo.yaml new file mode 100644 index 00000000..396977cc --- /dev/null +++ b/bindings/leds/qcom,leds-qpnp-vibrator-ldo.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/qcom,leds-qpnp-vibrator-ldo.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. Vibrator-LDO + +maintainers: + - Jishnu Prakash + +description: > + QPNP (Qualcomm Technologies, Inc. Plug N Play) Vibrator-LDO is a peripheral + on some QTI PMICs. It can be interfaced with the host processor via SPMI. + +properties: + compatible: + const: qcom,qpnp-vibrator-ldo + + reg: + description: Base address of vibrator-ldo peripheral. + + qcom,vib-ldo-volt-uv: + description: The optimal voltage requirement of the vibrator motor for + a normal vibration. Value is specified in microvolts. + $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,disable-overdrive: + description: Do not apply overdrive voltage. + type: boolean + + qcom,vib-overdrive-volt-uv: + description: The voltage in microvolts used as overdrive factor for + improving motor reactivity at the start of vibration. + If this property not specified, a default value of + 2 times the value specified in qcom,vib-ldo-volt-uv + property is used. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + - qcom,vib-ldo-volt-uv + +allOf: + - $ref: common.yaml# + +additionalProperties: false + +examples: + - | + pmi632_vib: qcom,vibrator@5700 { + compatible = "qcom,qpnp-vibrator-ldo"; + reg = <0x5700 0x100>; + qcom,vib-ldo-volt-uv = <1504000>; + qcom,disable-overdrive; + qcom,vib-overdrive-volt-uv = <3544000>; + }; +...