mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
This change adds support for haptic driver controlled by voltage of a regulator. Userspace can control the device via Force Feedback interface from input framework. Signed-off-by: Jaewon Kim <[email protected]> Signed-off-by: Hyunhee Kim <[email protected]> Acked-by: Kyungmin Park <[email protected]> Tested-by: Chanwoo Choi <[email protected]> Reviewed-by: Chanwoo Choi <[email protected]> Reviewed-by: Pankaj Dubey <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
22 lines
616 B
Plaintext
22 lines
616 B
Plaintext
* Regulator Haptic Device Tree Bindings
|
|
|
|
Required Properties:
|
|
- compatible : Should be "regulator-haptic"
|
|
- haptic-supply : Power supply to the haptic motor.
|
|
[*] refer Documentation/devicetree/bindings/regulator/regulator.txt
|
|
|
|
- max-microvolt : The maximum voltage value supplied to the haptic motor.
|
|
[The unit of the voltage is a micro]
|
|
|
|
- min-microvolt : The minimum voltage value supplied to the haptic motor.
|
|
[The unit of the voltage is a micro]
|
|
|
|
Example:
|
|
|
|
haptics {
|
|
compatible = "regulator-haptic";
|
|
haptic-supply = <&motor_regulator>;
|
|
max-microvolt = <2700000>;
|
|
min-microvolt = <1100000>;
|
|
};
|