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

Commit 11215827 authored by Bingzhe Cai's avatar Bingzhe Cai
Browse files

ARM: dts: msm: add lis3dh accelerometer device tree for SKUH



Add ST lis3dh accelerometer device tree for QRD8916 SKUH.

Change-Id: Iad22e905807487a6fe62d955d8d7454dd81f017f
Signed-off-by: default avatarBingzhe Cai <bingzhec@codeaurora.org>
parent ec8352c7
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -39,6 +39,16 @@
			bias-pull-up;
		};
	};

	lis3dh_int1_pin {
		qcom,pins = <&gp 115>;
		qcom,num-grp-pins = <1>;
		label = "lis3dh_int_pin";
		lis3dh_int1_default: int1_default {
			  drive-strength = <6>;
			  bias-pull-up;
		};
	};
};

&i2c_0 { /* BLSP1 QUP2 */
@@ -73,6 +83,26 @@
		avago,als_D = <142>;
		avago,ga_value = <48>;
	};

	st@18 {
		compatible = "st,lis3dh";
		reg = <0x18>;
		pinctrl-names = "default";
		pinctrl-0 = <&lis3dh_int1_default>;
		interrupt-parent = <&msm_gpio>;
		vdd-supply = <&pm8916_l17>;
		vddio-supply = <&pm8916_l6>;
		st,min-interval = <5>;
		st,init-interval = <200>;
		st,axis-map-x = <1>;
		st,axis-map-y = <0>;
		st,axis-map-z = <2>;
		st,g-range = <2>;
		st,gpio-int1 = <&msm_gpio 115 0x2002>;
		st,negate-x;
		st,negate-y;
		st,negate-z;
	};
};

&mdss_mdp {