Linux 5.2 Picking Up A GPIO Vibrator Driver For Supporting Setups Like The Fairphone 2

Written by Michael Larabel in Hardware on 3 May 2019 at 12:04 AM EDT. 6 Comments
HARDWARE
Should you be looking to control a vibrator over GPIO (general-purpose input/output), that capability is coming to the Linux 5.2 kernel thanks to a new driver.

The "gpio-vibra" driver is queued as part of the Linux input subsystem's "-next" tree ahead of Linux 5.2. The gpio-vibra is a simple 200+ lines of code driver for being able to control vibrators via GPIO. This GPIO vibrator driver for the Linux kernel is based on the existing PWM-controlled vibrator driver introduced back in 2017 but with being re-tooled for being able to turn the vibrator on/off via GPIO.

The originally designed use-case for "gpio-vibra" is for being able to support the phone vibrator within the Fairphone 2 smartphone but given flexibility of GPIO and being very common to low-power ARM SBCs, there's certainly a lot more possibilities.

More details on this new Linux driver via this commit.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week