1 From c8756cbad816954be912ba32277ccd55fe7acc01 Mon Sep 17 00:00:00 2001
2 From: Tim Harvey <tharvey@gateworks.com>
3 Date: Tue, 12 May 2020 13:59:56 -0700
4 Subject: [PATCH 06/20] ARM: dts: imx6qdl-gw5904: add lsm9ds1 iio imu/magn
7 Add one node for the accel/gyro i2c device and another for the separate
8 magnetometer device in the lsm9ds1.
10 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
11 Signed-off-by: Shawn Guo <shawnguo@kernel.org>
13 arch/arm/boot/dts/imx6qdl-gw5904.dtsi | 31 +++++++++++++++++++++++++++++++
14 1 file changed, 31 insertions(+)
16 diff --git a/arch/arm/boot/dts/imx6qdl-gw5904.dtsi b/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
17 index 6d21cc6..76d6cf5 100644
18 --- a/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
19 +++ b/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
21 pinctrl-0 = <&pinctrl_i2c2>;
25 + compatible = "st,lsm9ds1-magn";
27 + pinctrl-names = "default";
28 + pinctrl-0 = <&pinctrl_mag>;
29 + interrupt-parent = <&gpio5>;
30 + interrupts = <17 IRQ_TYPE_EDGE_RISING>;
34 compatible = "lltc,ltc3676";
42 + compatible = "st,lsm9ds1-imu";
44 + st,drdy-int-pin = <1>;
45 + pinctrl-names = "default";
46 + pinctrl-0 = <&pinctrl_imu>;
47 + interrupt-parent = <&gpio4>;
48 + interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
57 + pinctrl_imu: imugrp {
59 + MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x1b0b0
63 + pinctrl_mag: maggrp {
65 + MX6QDL_PAD_DISP0_DAT23__GPIO5_IO17 0x1b0b0
69 pinctrl_pcie: pciegrp {
71 MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */