arm64: dts: imx8mm-evk: add IR support
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Mon, 2 Nov 2020 02:25:26 +0000 (10:25 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 30 Nov 2020 14:30:29 +0000 (22:30 +0800)
Add IR support on i.MX8MM EVK board.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi

index 469d570..8c5aa2d 100644 (file)
                enable-active-high;
        };
 
+       ir-receiver {
+               compatible = "gpio-ir-receiver";
+               gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_ir>;
+               linux,autosuspend-period = <125>;
+       };
+
        wm8524: audio-codec {
                #sound-dai-cells = <0>;
                compatible = "wlf,wm8524";
                >;
        };
 
+       pinctrl_ir: irgrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13              0x4f
+               >;
+       };
+
        pinctrl_gpio_wlf: gpiowlfgrp {
                fsl,pins = <
                        MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21        0xd6