@@ -43,6 +43,28 @@ usb_id: usb-id {
};
};
+&blsp_i2c2 {
+ status = "okay";
+
+ imu@68 {
+ compatible = "invensense,mpu6880";
+ reg = <0x68>;
+
+ interrupt-parent = <&msmgpio>;
+ interrupts = <115 IRQ_TYPE_EDGE_RISING>;
+
+ vdd-supply = <&pm8916_l17>;
+ vddio-supply = <&pm8916_l6>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&imu_default>;
+
+ mount-matrix = "1", "0", "0",
+ "0", "-1", "0",
+ "0", "0", "1";
+ };
+};
+
&blsp_i2c5 {
status = "okay";
@@ -257,6 +279,14 @@ gpio_keys_default: gpio-keys-default {
bias-pull-up;
};
+ imu_default: imu-default {
+ pins = "gpio115";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+
touchscreen_default: touchscreen-default {
pins = "gpio13";
function = "gpio";
The Xiaomi Redmi 2 has an InvenSense MPU-6880 supported by the inv_mpu6050 driver in Linux. Add it to the device tree. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> --- .../dts/qcom/msm8916-wingtech-wt88047.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)