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…
Source: Phoronix – Linux 5.2 Picking Up A GPIO Vibrator Driver For Supporting Setups Like The Fairphone 2