summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/regulator-haptic.txt
diff options
context:
space:
mode:
authorJaewon Kim <jaewon02.kim@samsung.com>2014-12-17 21:31:08 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-12-22 05:59:20 +0300
commitd64cb71bede87dbca60d586a7bb4cef87fbe2731 (patch)
tree739e9baeed3147f7c81cbd8ff7f4ec714acf7ec4 /Documentation/devicetree/bindings/input/regulator-haptic.txt
parent27a560ba1d4f0a07a36e1de2cae839abe776e8f3 (diff)
downloadlinux-d64cb71bede87dbca60d586a7bb4cef87fbe2731.tar.xz
Input: add regulator haptic driver
This change adds support for haptic driver controlled by voltage of a regulator. Userspace can control the device via Force Feedback interface from input framework. Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com> Signed-off-by: Hyunhee Kim <hyunhee.kim@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Tested-by: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/regulator-haptic.txt')
-rw-r--r--Documentation/devicetree/bindings/input/regulator-haptic.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/regulator-haptic.txt b/Documentation/devicetree/bindings/input/regulator-haptic.txt
new file mode 100644
index 000000000000..3ed1c7eb2f97
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/regulator-haptic.txt
@@ -0,0 +1,21 @@
+* Regulator Haptic Device Tree Bindings
+
+Required Properties:
+ - compatible : Should be "regulator-haptic"
+ - haptic-supply : Power supply to the haptic motor.
+ [*] refer Documentation/devicetree/bindings/regulator/regulator.txt
+
+ - max-microvolt : The maximum voltage value supplied to the haptic motor.
+ [The unit of the voltage is a micro]
+
+ - min-microvolt : The minimum voltage value supplied to the haptic motor.
+ [The unit of the voltage is a micro]
+
+Example:
+
+ haptics {
+ compatible = "regulator-haptic";
+ haptic-supply = <&motor_regulator>;
+ max-microvolt = <2700000>;
+ min-microvolt = <1100000>;
+ };