ARM: dts: imx6qdl-zii-rdu2: Fix accelerometer interrupt-names
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Tue, 22 Oct 2019 04:04:59 +0000 (21:04 -0700)
committerShawn Guo <shawnguo@kernel.org>
Mon, 28 Oct 2019 06:18:45 +0000 (14:18 +0800)
According to Documentation/devicetree/bindings/iio/accel/mma8452.txt,
the correct interrupt-names are "INT1" and "INT2", so fix them
accordingly.

While at it, modify the node to only specify "INT2" since providing
two interrupts is not necessary or useful (the driver will only use
one).

Signed-off-by: Fabio Estevam <festevam@gmail.com>
[andrew.smirnov@gmail.com modified the patch to drop INT1]
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi

index 93be00a..8603068 100644 (file)
                compatible = "fsl,mma8451";
                reg = <0x1c>;
                interrupt-parent = <&gpio1>;
-               interrupt-names = "int1", "int2";
-               interrupts = <18 IRQ_TYPE_LEVEL_LOW>, <20 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-names = "INT2";
+               interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
        };
 
        hpa2: amp@60 {
 &iomuxc {
        pinctrl_accel: accelgrp {
                fsl,pins = <
-                       MX6QDL_PAD_SD1_CMD__GPIO1_IO18          0x4001b000
                        MX6QDL_PAD_SD1_CLK__GPIO1_IO20          0x4001b000
                >;
        };