Skip to content

Commit

Permalink
arm64: dts: imx8mq-librem5-devkit: Add proximity sensor
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guido Günther authored and Shawn Guo committed Feb 14, 2020
1 parent 4c94035 commit ea38ca9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@
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>;
Expand Down Expand Up @@ -543,6 +549,12 @@
>;
};

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
Expand Down

0 comments on commit ea38ca9

Please sign in to comment.