forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ERM actuator support in QCOM spmi-haptics driver and enable it fo…
…r pmi8950
- Loading branch information
Showing
3 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
// Copyright (c) 2019, AngeloGioacchino Del Regno <[email protected]> | ||
|
||
#include <dt-bindings/input/qcom,spmi-haptics.h> | ||
#include <dt-bindings/iio/qcom,spmi-vadc.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/spmi/spmi.h> | ||
|
@@ -108,5 +109,23 @@ | |
|
||
status = "disabled"; | ||
}; | ||
|
||
pmi8950_haptics: haptics@c000 { | ||
compatible = "qcom,pmi8941-haptics", "qcom,spmi-haptics"; | ||
reg = <0xc000>; | ||
|
||
interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, | ||
<0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; | ||
interrupt-names = "short", "play"; | ||
|
||
qcom,actuator-type = <HAP_TYPE_ERM>; | ||
qcom,wave-shape = <HAP_WAVE_SQUARE>; | ||
|
||
/* Downstream defines direct play mode */ | ||
qcom,play-mode = <HAP_PLAY_BUFFER>; | ||
qcom,brake-pattern = <0x3 0x3 0x0 0x0>; | ||
|
||
status = "disabled"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters