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

Commit b1c169ba authored by Chun Zhang's avatar Chun Zhang Committed by Kyle Yan
Browse files

ARM: dts: msm: enable haptic on Cobalt CDP and MTP



Add in device tree into for Cobalt CDP and MTP to enable haptic
function.

CRs-Fixed: CRs-Fixed: 1004941
Change-Id: Iead32e33e13b302baf541fa23e47a2f44846b0ff
Signed-off-by: default avatarChun Zhang <chunz@codeaurora.org>
Signed-off-by: default avatarJing Lin <jinglin@codeaurora.org>
parent d8cb43ee
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -312,5 +312,29 @@
			qcom,led-strings-list = [00 01 02 03];
			qcom,en-ext-pfet-sc-pro;
		};

		pmicobalt_haptics: qcom,haptic@c000 {
			status = "disabled";
			compatible = "qcom,qpnp-haptic";
			reg = <0xc000 0x100>;
			interrupts = <0x3 0xc0 0x0>,
				     <0x3 0xc0 0x1>;
			interrupt-names = "sc-irq", "play-irq";
			qcom,actuator-type = "lra";
			qcom,play-mode = "direct";
			qcom,vmax-mv = <3200>;
			qcom,ilim-ma = <800>;
			qcom,wave-shape = "square";
			qcom,wave-play-rate-us = <6667>;
			qcom,int-pwm-freq-khz = <505>;
			qcom,sc-deb-cycles = <8>;
			qcom,en-brake;
			qcom,brake-pattern = [03 03 00 00];
			qcom,use-play-irq;
			qcom,use-sc-irq;
			qcom,lra-high-z = "opt1";
			qcom,lra-auto-res-mode = "qwd";
			qcom,lra-res-cal-period = <4>;
		};
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -138,3 +138,7 @@
		synaptics,fw-name = "PR1702898-s3528t_60QHD_00400001.img";
	};
};

&pmicobalt_haptics {
	status = "okay";
};
+4 −0
Original line number Diff line number Diff line
@@ -138,3 +138,7 @@
		synaptics,fw-name = "PR1702898-s3528t_60QHD_00400001.img";
	};
};

&pmicobalt_haptics {
	status = "okay";
};