From 47edffdb80a3e727d94f20181a6bbcfb081d5436 Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Thu, 5 Mar 2020 15:05:31 +0530 Subject: [PATCH] dt-bindings: leds-qpnp-vibrator-ldo: Add vibrator LDO documentation Add documentation for QPNP vibrator LDO HW module. The driver registers to leds framework and exposes device attributes such as state, duration, activate and vmax_uv. Change-Id: I4cefc815ca0d9fb877d024d09ad20a29cb7e957c --- qcom/leds-qpnp-vibrator-ldo.txt | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 qcom/leds-qpnp-vibrator-ldo.txt diff --git a/qcom/leds-qpnp-vibrator-ldo.txt b/qcom/leds-qpnp-vibrator-ldo.txt new file mode 100644 index 000000000000..2865019b3fcc --- /dev/null +++ b/qcom/leds-qpnp-vibrator-ldo.txt @@ -0,0 +1,50 @@ +Qualcomm Technologies, Inc. Vibrator-LDO + +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. + +Vibrator-LDO peripheral supports Eccentric Rotation Mass (ERM) vibrator. + +Properties: + +- compatible + Usage: required + Value type: + Definition: "qcom,qpnp-vibrator-ldo". + +- reg + Usage: required + Value type: + Definition: Base address of vibrator-ldo peripheral. + +- qcom,vib-ldo-volt-uv + Usage: required + Value type: + Definition: The optimal voltage requirement of the vibrator motor for + a normal vibration. Value is specified in microvolts. + +- qcom,disable-overdrive + Usage: optional + Value type: + Definition: Do not apply overdrive voltage. + +- qcom,vib-overdrive-volt-uv + Usage: optional and not required if qcom,disable-overdrive present + Value type: + Definition: 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. + +======= +Example +======= + +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>; +};