OSDN Git Service

Input: drv260x - fix binding document
authorDan Murphy <dmurphy@ti.com>
Tue, 26 Aug 2014 22:38:31 +0000 (15:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Aug 2014 22:42:04 +0000 (15:42 -0700)
Update the drv260x dt binding document:
- Change the node name to the devices function not the device name.
- Add vbat-supply to the example.
- Fix indentation of the example.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/ti,drv260x.txt

index a9c8519..ee09c8f 100644 (file)
@@ -1,6 +1,4 @@
-Texas Instruments - drv260x Haptics driver family
-
-The drv260x family serial control bus communicates through I2C protocols
+* Texas Instruments - drv260x Haptics driver family
 
 Required properties:
        - compatible - One of:
@@ -37,15 +35,16 @@ Optional properties:
                          3.2 v.
 Example:
 
-drv2605l: drv2605l@5a {
-               compatible = "ti,drv2605l";
-               reg = <0x5a>;
-               enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
-               mode = <DRV260X_LRA_MODE>;
-               library-sel = <DRV260X_LIB_LRA>;
-               vib-rated-mv = <3200>;
-               vib-overdriver-mv = <3200>;
-};
+haptics: haptics@5a {
+       compatible = "ti,drv2605l";
+       reg = <0x5a>;
+       vbat-supply = <&vbat>;
+       enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
+       mode = <DRV260X_LRA_MODE>;
+       library-sel = <DRV260X_LIB_LRA>;
+       vib-rated-mv = <3200>;
+       vib-overdriver-mv = <3200>;
+}
 
 For more product information please see the link below:
 http://www.ti.com/product/drv2605