bindings: input: qcom-hv-haptics: add swr-slave regulator subnode

Add a subnode to define a regulator device to control the online status
of the SWR slave in haptics module.

Change-Id: I2e97a9ab4f4499ab0cce23f626d1834a4f7e90c1
This commit is contained in:
Fenglin Wu
2020-02-14 13:57:29 +08:00
parent f821558081
commit 3bea77be4c

View File

@@ -108,6 +108,12 @@ The following properties are only required when LRA actuator is used:
is selected. Please refer to:
include/dt-bindings/input/qcom,hv-haptics.h.
A child node named "qcom,hap-swr-slave-reg" can be defined to export a regulator
device which is used for swr-haptics module to control the online status of SWR
slave. The child node should have following property for this regulator device:
- regulator-name: Please refer to: bindings/regulator/regulator.txt.
The following properties should be specified in child nodes for defining
different vibration effects:
@@ -222,6 +228,10 @@ Example:
qcom,drv-sig-shape = <WF_SINE>;
qcom,brake-sig-shape = <WF_SINE>;
qcom,hap-swr-slave-reg {
regulator-name = "hap-swr-slave-reg";
};
effect_0 {
/* CLICK effect */
qcom,effect-id = <0>;