Input: pm8xxx-vibrator - add DT match table
authorStephen Boyd <sboyd@codeaurora.org>
Sat, 29 Mar 2014 19:44:14 +0000 (12:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 30 Mar 2014 20:25:20 +0000 (13:25 -0700)
The driver is only supported on DT enabled platforms. Convert the
driver to DT so that it can probe properly.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt [new file with mode: 0644]
drivers/input/misc/pm8xxx-vibrator.c

diff --git a/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt b/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt
new file mode 100644 (file)
index 0000000..4ed467b
--- /dev/null
@@ -0,0 +1,22 @@
+Qualcomm PM8xxx PMIC Vibrator
+
+PROPERTIES
+
+- compatible:
+       Usage: required
+       Value type: <string>
+       Definition: must be one of:
+                   "qcom,pm8058-vib"
+                   "qcom,pm8921-vib"
+
+- reg:
+       Usage: required
+       Value type: <prop-encoded-array>
+       Definition: address of vibration control register
+
+EXAMPLE
+
+       vibrator@4a {
+               compatible = "qcom,pm8058-vib";
+               reg = <0x4a>;
+       };
Simple merge