Input: tl6040-vibra - Device Tree support
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 7 May 2012 15:45:50 +0000 (08:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 11 May 2012 03:37:46 +0000 (20:37 -0700)
commit9ac7b1a36c729ce88eee7370da3c9992d7b40590
treecbdfe7dcb397991e5befb8434a597597ca94626b
parent2872a9b521ac936c7a8525a8c2bdfb9b4ccf5cfc
Input: tl6040-vibra - Device Tree support

Enable DT based probing of the vibra driver.

Example of dts section to load the twl6040-vibra driver:
twl6040: twl6040@4b {
...
twl6040_vibra: twl6040@1 {
compatible = "ti,twl6040-vibra";
interrupts = <4>;
vddvibl-supply = <&vbat>;
vddvibr-supply = <&vbat>;
vibldrv_res = <8>;
vibrdrv_res = <3>;
viblmotor_res = <10>;
vibrmotor_res = <10>;
};
};

[Sasha Levin <levinsasha928@gmail.com>: fixed build error]
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Documentation/devicetree/bindings/input/twl6040-vibra.txt [new file with mode: 0644]
drivers/input/misc/twl6040-vibra.c