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

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

ARM: dts: msm: Update haptics device node on pm8150b



Change to use qti-haptics driver and update the device node
configurations. It registers the haptics module as an input
FF (force-feedback) device and it defines different vibration
effects for userspace to control them via write/ioctl calls
into the input device.

Change-Id: I02e7dcdcb149847633ba389f756c83f5e5fb75ae
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 676815e3
Loading
Loading
Loading
Loading
+44 −13
Original line number Diff line number Diff line
@@ -462,23 +462,54 @@
		};

		pm8150b_haptics: qcom,haptics@c000 {
			compatible = "qcom,qpnp-haptics";
			compatible = "qcom,haptics";
			reg = <0xc000 0x100>;
			interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>,
				     <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>;
			interrupt-names = "hap-sc-irq", "hap-play-irq";
			qcom,pmic-revid = <&pm8150b_revid>;
			qcom,actuator-type = <0>;
			qcom,play-mode = "direct";
			qcom,vmax-mv = <3200>;
			qcom,ilim-ma = <800>;
			qcom,sc-dbc-cycles = <8>;
			qcom,wave-play-rate-us = <6667>;
			qcom,en-brake;
			qcom,lra-high-z = "opt0";
			qcom,lra-auto-res-mode = "qwd";
			qcom,lra-res-cal-period = <4>;
			status = "ok";
			qcom,actuator-type = "lra";
			qcom,vmax-mv = <3600>;
			qcom,play-rate-us = <6667>;
			qcom,lra-resonance-sig-shape = "sine";
			qcom,lra-auto-resonance-mode = "qwd";
			qcom,lra-allow-variable-play-rate;

			wf_0 {
				/* CLICK */
				qcom,effect-id = <0>;
				qcom,wf-pattern = [3e 3e 3e];
				qcom,wf-play-rate-us = <6667>;
			};
			wf_1 {
				/* DOUBLE CLICK */
				qcom,effect-id = <1>;
				qcom,wf-pattern = [7e 7e 02 02 02 02 7e 7e];
				qcom,wf-play-rate-us = <7143>;
			};
			wf_2 {
				/* TICK */
				qcom,effect-id = <2>;
				qcom,wf-pattern = [7e 7e];
				qcom,wf-play-rate-us = <4000>;
			};
			wf_3 {
				/* THUD */
				qcom,effect-id = <3>;
				qcom,wf-pattern = [7e 7e 7e];
				qcom,wf-play-rate-us = <5714>;
			};
			wf_4 {
				/* POP */
				qcom,effect-id = <4>;
				qcom,wf-pattern = [7e 7e];
				qcom,wf-play-rate-us = <5000>;
			};
			wf_5 {
				/* HEAVY CLICK */
				qcom,effect-id = <5>;
				qcom,wf-pattern = [7e 7e 7e];
				qcom,wf-play-rate-us = <6667>;
			};
		};
	};
};