arm64: dts: imx8mq-librem5-devkit: Add proximity sensor
authorGuido Günther <agx@sigxcpu.org>
Mon, 20 Jan 2020 16:12:55 +0000 (17:12 +0100)
committerShawn Guo <shawnguo@kernel.org>
Fri, 14 Feb 2020 02:24:58 +0000 (10:24 +0800)
Support for the vcnl4040 landet a while ago so add it and the
corresponding pinmux. The irq is currently unused in the driver so don't
configure it yet.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts

index 764a4cb..007c14e 100644 (file)
                VDDIO-supply = <&reg_1v8_p>;
        };
 
+       proximity-sensor@60 {
+               compatible = "vishay,vcnl4040";
+               reg = <0x60>;
+               pinctrl-0 = <&pinctrl_prox>;
+       };
+
        accel-gyro@6a {
                compatible = "st,lsm9ds1-imu";
                reg = <0x6a>;
                >;
        };
 
+       pinctrl_prox: proxgrp {
+               fsl,pins = <
+                       MX8MQ_IOMUXC_GPIO1_IO12_GPIO1_IO12      0x80  /* prox intr */
+               >;
+       };
+
        pinctrl_pwr_en: pwrengrp {
                fsl,pins = <
                        MX8MQ_IOMUXC_GPIO1_IO08_GPIO1_IO8       0x06