Skip to content

Commit

Permalink
FROMLIST: arm64: dts: qcom: msm8916-samsung-e2015: Add accelerometer
Browse files Browse the repository at this point in the history
E5, E7 and Grand Max have ST LIS2HH12 accelerometer.
Add support for it.

Signed-off-by: Stephan Gerhold <[email protected]>
Signed-off-by: Lin, Meng-Bo <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
  • Loading branch information
bolilingmeng89006 committed Jul 15, 2023
1 parent 424e7b9 commit b8d9e39
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,27 @@

&blsp_i2c2 {
/* lis2hh12 accelerometer instead of BMC150 */
status = "disabled";

/delete-node/ accelerometer@10;
/delete-node/ magnetometer@12;

accelerometer@1d {
compatible = "st,lis2hh12";
reg = <0x1d>;

interrupt-parent = <&msmgpio>;
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";
};
};

&dsi0 {
Expand Down

0 comments on commit b8d9e39

Please sign in to comment.