OSDN Git Service

arm64: dts: qcom: msm8916-longcheer-l8150: Add missing sensor interrupts
authorStephan Gerhold <stephan@gerhold.net>
Mon, 16 Aug 2021 12:35:44 +0000 (14:35 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 27 Sep 2021 22:31:55 +0000 (17:31 -0500)
commit51c7786f5d4201422e076b9a3650e543a61d36da
treed005dc6f47d73ec4dcd0c5b8f64cc5b7ab1e2ea3
parentede638c42c82b1e6648a3c6ac71aaf088ff830e2
arm64: dts: qcom: msm8916-longcheer-l8150: Add missing sensor interrupts

So far there were no interrupts set up for the BMC150 accelerometer
+ magnetometer combo because they were broken for some reason.
It turns out Longcheer L8150 actually has a BMC156 which is very similar
to BMC150, but only has an INT2 pin for the accelerometer part.

This requires some minor changes in the bmc150-accel driver which is now
supported by using the more correct bosch,bmc156_accel compatible.
Unfortunately it looks like even INT2 is not functional on most boards
because the interrupt line is not actually connected to the BMC156.
However, there are two pads next to the chip that can be shorted
to make it work if needed.

While at it, add the missing interrupts for the magnetometer part
and extra BMG160 gyroscope, those seem to work without any problems.
Also correct the magnetometer compatible to bosch,bmc156_magn for clarity
(no functional difference for the magnetometer part).

Tested-by: Nikita Travkin <nikita@trvn.ru>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210816123544.14027-1-stephan@gerhold.net
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts