Commit 7f433e1e authored by Siddharth Manthan's avatar Siddharth Manthan Committed by Bjorn Andersson

arm64: dts: qcom: msm8916-samsung-fortuna: Add LSM303C accelerometer/magnetometer

Some Grand Prime use a ST LSM303C accelerometer/magnetometer combo.
Add support for it.
Signed-off-by: default avatarSiddharth Manthan <siddharth.manthan@gmail.com>
[Stephan: Move sensors to common dtsi (disabled by default)]
Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
[Raymond: Use interrupts-extended]
Signed-off-by: default avatarRaymond Hackley <raymondhackley@protonmail.com>
Link: https://lore.kernel.org/r/20240406111348.14358-3-raymondhackley@protonmail.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent a204bf3f
......@@ -9,3 +9,11 @@ / {
compatible = "samsung,fortuna3g", "qcom,msm8916";
chassis-type = "handset";
};
&st_accel {
status = "okay";
};
&st_magn {
status = "okay";
};
......@@ -158,6 +158,39 @@ bosch_magn: magnetometer@12 {
status = "disabled";
};
st_accel: accelerometer@1d {
compatible = "st,lsm303c-accel";
reg = <0x1d>;
interrupts-extended = <&tlmm 115 IRQ_TYPE_LEVEL_HIGH>;
vdd-supply = <&pm8916_l17>;
vddio-supply = <&pm8916_l5>;
pinctrl-0 = <&accel_int_default>;
pinctrl-names = "default";
st,drdy-int-pin = <1>;
mount-matrix = "0", "-1", "0",
"1", "0", "0",
"0", "0", "-1";
status = "disabled";
};
st_magn: magnetometer@1e {
compatible = "st,lsm303c-magn";
reg = <0x1e>;
vdd-supply = <&pm8916_l17>;
vddio-supply = <&pm8916_l5>;
mount-matrix = "0", "-1", "0",
"1", "0", "0",
"0", "0", "-1";
status = "disabled";
};
};
&blsp_i2c4 {
......
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