[maemo-developers] Can anyone tell me how the N900 vibrator driver works?

From: Philipp Zabel philipp.zabel at gmail.com
Date: Thu Jul 7 20:19:15 EEST 2011
On Thu, Jul 7, 2011 at 7:06 PM, Jonathan Wilson <jfwfreo at tpgi.com.au> wrote:
> I am looking for information on the driver the responds to
> /sys/class/i2c-adapter/i2c-1/1-0048/twl4030_vibra/pulse and in particular
> details of just what it does with the numbers.
> Pointers to the source code for the driver in question may also help
> although I dont know the first thing about linux kernel drivers :P

Check out drivers/leds/leds-twl4030-vibra.c from the N900 kernel
sources. vibra_set_seq() handles input from the pulse sysfs file.
It takes a series of signed PWM strength values and durations in milliseconds.

regards
Philipp
More information about the maemo-developers mailing list