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

Commit a7138dd8 authored by Saijun Gu's avatar Saijun Gu
Browse files

ARM: dts: msm: Add bma2x2 Accel sensor in device tree



Add bma2x2 Accel sensor to calibrate Y direction and Z direction.

Change-Id: Ie21b85034234c28c3163ac7327e6d77d33a0ee2c
CRs-Fixed: 711983
Signed-off-by: default avatarSaijun Gu <sgu@codeaurora.org>
parent beb4f370
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -76,3 +76,20 @@
	status = "okay";
	qcom,battery-data = <&qrd_batterydata>;
};

&i2c_0 { /* BLSP1 QUP2 */
	bosch@18 { /* Accelerometer sensor */
		compatible = "bosch,bma2x2";
		reg = <0x18>;
		pinctrl-names = "default";
		pinctrl-0 = <&bma2x2_int1_default &bma2x2_int2_default>;
		interrupt-parent = <&msm_gpio>;
		interrupts = <112 0x2002>;
		vdd-supply = <&pm8916_l17>;
		vio-supply = <&pm8916_l6>;
		bosch,init-interval = <200>;
		bosch,place = <4>;
		bosch,gpio-int1 = <&msm_gpio 112 0x2002>;
		bosch,gpio-int2 = <&msm_gpio 114 0x2002>;
	};
};