]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: add ir-receiver node to rk3399-khadas-edge
authorArtem Lapkin <email2tema@gmail.com>
Wed, 23 Sep 2020 13:08:23 +0000 (21:08 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 23 Sep 2020 13:39:58 +0000 (15:39 +0200)
add missed ir-receiver and ir_rx pinctl nodes to rk3399-khadas-edge
Khadas Edge board uses gpio-ir-receiver on RK_PB6 gpio

Signed-off-by: Artem Lapkin <art@khadas.com>
Link: https://lore.kernel.org/r/20200923130823.1612533-3-art@khadas.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi

index c67420578fac9e4aff798aea3f8db1bf1c6a456d..635afdd99122f6e8883980fbad2045ebc015b793 100644 (file)
                };
        };
 
+       ir-receiver {
+               compatible = "gpio-ir-receiver";
+               gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
+               linux,rc-map-name = "rc-khadas";
+               pinctrl-names = "default";
+               pinctrl-0 = <&ir_rx>;
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                };
        };
 
+       ir {
+               ir_rx: ir-rx {
+                   rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        leds {
                sys_led_pin: sys-led-pin {
                        rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;