]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: rk3188-radxarock: add GPIO IR receiver node
authorBeniamino Galvani <b.galvani@gmail.com>
Sun, 13 Jul 2014 12:10:01 +0000 (14:10 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 26 Jul 2014 22:25:59 +0000 (00:25 +0200)
This adds a device tree node for the infrared receiver connected to a
GPIO pin on the Radxa Rock.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3188-radxarock.dts

index 7628b4868d2ab3582811262cc67a34f997c661b7..b7f34232e3d2d4b278163c51b3269f1b923a0881 100644 (file)
@@ -58,6 +58,13 @@ sleep {
                };
        };
 
+       ir_recv: gpio-ir-receiver {
+               compatible = "gpio-ir-receiver";
+               gpios = <&gpio0 10 1>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&ir_recv_pin>;
+       };
+
        vcc_sd0: sdmmc-regulator {
                compatible = "regulator-fixed";
                regulator-name = "sdmmc-supply";
@@ -191,6 +198,12 @@ act8846_dvs0_ctl: act8846-dvs0-ctl {
                        rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
                };
        };
+
+       ir-receiver {
+               ir_recv_pin: ir-recv-pin {
+                       rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };
 
 &uart0 {