Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: drv260x - fix binding document

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>

authored by

Dan Murphy and committed by
Dmitry Torokhov
6ba69456 dddf3bc4

+11 -12
+11 -12
Documentation/devicetree/bindings/input/ti,drv260x.txt
··· 1 - Texas Instruments - drv260x Haptics driver family 2 - 3 - The drv260x family serial control bus communicates through I2C protocols 1 + * Texas Instruments - drv260x Haptics driver family 4 2 5 3 Required properties: 6 4 - compatible - One of: ··· 35 37 3.2 v. 36 38 Example: 37 39 38 - drv2605l: drv2605l@5a { 39 - compatible = "ti,drv2605l"; 40 - reg = <0x5a>; 41 - enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>; 42 - mode = <DRV260X_LRA_MODE>; 43 - library-sel = <DRV260X_LIB_LRA>; 44 - vib-rated-mv = <3200>; 45 - vib-overdriver-mv = <3200>; 46 - }; 40 + haptics: haptics@5a { 41 + compatible = "ti,drv2605l"; 42 + reg = <0x5a>; 43 + vbat-supply = <&vbat>; 44 + enable-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>; 45 + mode = <DRV260X_LRA_MODE>; 46 + library-sel = <DRV260X_LIB_LRA>; 47 + vib-rated-mv = <3200>; 48 + vib-overdriver-mv = <3200>; 49 + } 47 50 48 51 For more product information please see the link below: 49 52 http://www.ti.com/product/drv2605