Skip to content

Commit

Permalink
dt-bindings: input: add max output voltage & auto resonance mode to t…
Browse files Browse the repository at this point in the history
…he Qualcomm SPMI haptics

Signed-off-by: Antony K. S <[email protected]>
  • Loading branch information
Smankusors authored and barni2000 committed Jan 30, 2025
1 parent 8ec6321 commit 39aa0e7
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Documentation/devicetree/bindings/input/qcom,spmi-haptics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,25 @@ properties:
enum: [ 0, 1, 2, 3 ]
default: 2

qcom,vmax-millivolt:
description: |
Maximum output voltage in millivolts
$ref: /schemas/types.yaml#/definitions/uint32
default: 3596

qcom,auto-res-mode:
description: |
Selects the auto resonance technique for LRA type.
Allowed values are,
0 - HAP_AUTO_RES_NONE
1 - HAP_AUTO_RES_ZXD
2 - HAP_AUTO_RES_QWD
3 - HAP_AUTO_RES_MAX_QWD
4 - HAP_AUTO_RES_ZXD_EOP
$ref: /schemas/types.yaml#/definitions/uint32
enum: [ 0, 1, 2, 3, 4 ]
default: 4

qcom,wave-play-rate-us:
description: |
Wave play rate in microseconds, 1/f where f
Expand Down Expand Up @@ -124,6 +143,7 @@ examples:
qcom,wave-shape = <HAP_WAVE_SINE>;
qcom,wave-play-rate-us = <4255>;
qcom,play-mode = <HAP_PLAY_BUFFER>;
qcom,auto-res-mode = <HAP_AUTO_RES_ZXD_EOP>;
qcom,brake-pattern = <0x3 0x3 0x2 0x1>;
};
};
};

0 comments on commit 39aa0e7

Please sign in to comment.