arm64: dts: rockchip: Add IR receiver node to ODROID-M1
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 30 Sep 2022 05:12:46 +0000 (07:12 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 17 Oct 2022 11:44:42 +0000 (13:44 +0200)
Add the infrared receiver and its associated pinctrl entry. Note that
there is an external pullup to VCC3V3_SYS.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Dan Johansen <strit@manjaro.org>
Link: https://lore.kernel.org/r/20220930051246.391614-14-aurelien@aurel32.net
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts

index 2f685c6..59ecf86 100644 (file)
                };
        };
 
+       ir-receiver {
+               compatible = "gpio-ir-receiver";
+               gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&ir_receiver_pin>;
+       };
+
        leds {
                compatible = "gpio-leds";
 
                };
        };
 
+       ir-receiver {
+               ir_receiver_pin: ir-receiver-pin {
+                       /* external pullup to VCC3V3_SYS */
+                       rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        leds {
                led_power_pin: led-power-pin {
                        rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;