arm64: dts: qcom: msm8916-samsung-serranove: Add IMU
authorStephan Gerhold <stephan@gerhold.net>
Mon, 4 Oct 2021 20:19:10 +0000 (22:19 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 24 Oct 2021 03:23:02 +0000 (22:23 -0500)
Add the STMicroelectronics LSM6DS3 IMU that is used in the S4 Mini VE
to the device tree.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211004201921.18526-5-stephan@gerhold.net
arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts

index 564f4f6d4f0f993df59619fccf1ff3812e79f594..2280b2e4b09f57e92609ecb050cb5d19e166cb8e 100644 (file)
        };
 };
 
+&blsp_i2c2 {
+       status = "okay";
+
+       imu@6b {
+               compatible = "st,lsm6ds3";
+               reg = <0x6b>;
+
+               interrupt-parent = <&msmgpio>;
+               interrupts = <115 IRQ_TYPE_EDGE_RISING>;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&imu_irq_default>;
+       };
+};
+
 &blsp_i2c5 {
        status = "okay";
 
                bias-disable;
        };
 
+       imu_irq_default: imu-irq-default {
+               pins = "gpio115";
+               function = "gpio";
+
+               drive-strength = <2>;
+               bias-disable;
+       };
+
        muic_i2c_default: muic-i2c-default {
                pins = "gpio105", "gpio106";
                function = "gpio";