Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9aaf4c1 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

dt-bindings: input: Add binding settings for haptics audio/PWM mode



Add device tree properties for haptics audio/PWM mode as per effect
settings.

Change-Id: Ib2733ac76fece01ec1982ef2c10e2475bce92c32
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 04415e1e
Loading
Loading
Loading
Loading
+20 −14
Original line number Diff line number Diff line
@@ -59,19 +59,6 @@ Properties:
		specified in the LRA actuator datasheet. Allowed values are:
		0 to 20475. If this is not specified, 5715us play rate is used.

- qcom,external-waveform-source
  Usage:      optional
  Value type: <string>
  Definition: The haptics module supports to play with internal constant
		Vmax strength or play with patterns specified in its internal
		8-bytes waveform buffer. It can also play with the audio
		LINE-IN signal or PWM waveform coming from LINE-IN/PWM pin.
		This property specify the kind of the waveform resources
		on the LINE-IN/PWM pins. Allowed values are: "audio", "pwm".
		If this is not specified, internal signals (Vmax or buffer)
		will be selected according to the requriement of the playing
		waveforms.

- vdd-supply
  Usage:      optional
  Value type: <phandle>
@@ -114,7 +101,7 @@ waveforms/effects:
		notification event.

- qcom,wf-pattern
  Usage:      required
  Usage:      optional
  Value type: <prop-encoded-array>
  Definition: Specifies the waveform pattern in a byte array that will be
		played for the effect-id. The bit fields of each byte are:
@@ -172,6 +159,19 @@ waveforms/effects:
  Definition: If specified, the hardware feature of LRA auto resonance detection
		is disabled.

- qcom,wf-line-in-audio
  Usage:      optional
  Value type: <empty>
  Definition: Boolean flag to indicate if the effect is playing the audio signal
		comes into LINE-IN pin. If this is specified, the pattern
		specified in "qcom,wf-pattern" will be ignored.

- qcom,wf-line-in-pwm
  Usage:      optional
  Value type: <empty>
  Definition: Boolean flag to indicate if the effect is playing the PWM signal
		comes into LINE-IN pin. If this is specified, the pattern
		specified in "qcom,wf-pattern" will be ignored.
Example:
  qcom,haptics@c000 {
	compatible = "qcom,haptics";
@@ -200,4 +200,10 @@ Example:
		qcom,wf-play-rate-us = <6250>;
		qcom,wf-pattern = [7e 7e 7e];
	};

	wf_6 {
		/* RINGTONE_x effect */
		qcom,effect-id = <6>;
		qcom,wf-line-in-audio;
	};
  };