diff options
author | Lin, Meng-Bo <linmengbo0689@protonmail.com> | 2023-07-16 19:08:24 +0000 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-07-21 20:59:57 -0700 |
commit | 3e9b36783b22327a4c88fe67b48b8fefae868a4a (patch) | |
tree | f96d5cdc3cca808f5ad29aa0931c886806a4d7b8 /arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi | |
parent | 45a6bf1b272ee6b590233984408e0ba2093ac903 (diff) | |
download | lwn-3e9b36783b22327a4c88fe67b48b8fefae868a4a.tar.gz lwn-3e9b36783b22327a4c88fe67b48b8fefae868a4a.zip |
arm64: dts: qcom: msm8916-samsung-e2015: Add accelerometer
E5, E7 and Grand Max have ST LIS2HH12 accelerometer.
Add support for it.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
Link: https://lore.kernel.org/r/20230716190807.7056-1-linmengbo0689@protonmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi index 0cdd6af7817f..6f65fd4b3ed3 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi @@ -42,10 +42,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 = <&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"; + }; }; ®_motor_vdd { |