Commit 3e9b3678 authored by Lin, Meng-Bo's avatar Lin, Meng-Bo Committed by Bjorn Andersson

arm64: dts: qcom: msm8916-samsung-e2015: Add accelerometer

E5, E7 and Grand Max have ST LIS2HH12 accelerometer.
Add support for it.
Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
Signed-off-by: default avatarLin, Meng-Bo <linmengbo0689@protonmail.com>
Link: https://lore.kernel.org/r/20230716190807.7056-1-linmengbo0689@protonmail.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 45a6bf1b
...@@ -42,10 +42,27 @@ reg_touch_key: regulator-touch-key { ...@@ -42,10 +42,27 @@ reg_touch_key: regulator-touch-key {
&blsp_i2c2 { &blsp_i2c2 {
/* lis2hh12 accelerometer instead of BMC150 */ /* lis2hh12 accelerometer instead of BMC150 */
status = "disabled";
/delete-node/ accelerometer@10; /delete-node/ accelerometer@10;
/delete-node/ magnetometer@12; /delete-node/ magnetometer@12;
accelerometer@1d {
compatible = "st,lis2hh12";
reg = <0x1d>;
interrupt-parent = <&tlmm>;
interrupts = <115 IRQ_TYPE_LEVEL_HIGH>;
vdd-supply = <&pm8916_l5>;
vddio-supply = <&pm8916_l5>;
st,drdy-int-pin = <1>;
mount-matrix = "1", "0", "0",
"0", "-1", "0",
"0", "0", "1";
pinctrl-0 = <&accel_int_default>;
pinctrl-names = "default";
};
}; };
&reg_motor_vdd { &reg_motor_vdd {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment