MIPS: DTS: CI20: add DT node for IR sensor
authorAlex Smith <alex.smith@imgtec.com>
Fri, 6 Mar 2020 21:06:31 +0000 (22:06 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 23 Mar 2020 12:43:32 +0000 (13:43 +0100)
The infrared sensor on the CI20 board is connected to a GPIO and can
be operated by using the gpio-ir-recv driver. Add a DT node for the
sensor to allow that driver to be used.

Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ingenic/ci20.dts

index c340f94..fc4e642 100644 (file)
                enable-active-high;
        };
 
+       ir: ir {
+               compatible = "gpio-ir-receiver";
+               gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
+       };
+
        wlan0_power: fixedregulator@1 {
                compatible = "regulator-fixed";
                regulator-name = "wlan0_power";