ARM: dts: rockchip: Add IR receiver to RK3288 Radxa Rock 2 Square
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 23 Nov 2015 14:36:28 +0000 (15:36 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 23 Nov 2015 16:18:45 +0000 (17:18 +0100)
Add support for the IR receiver as present on the Radxa Rock 2 Square
board.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3288-rock2-square.dts

index 8af35c867a8013e78b278bb6b855e2dc43d62e60..c5453a0b07fca940227c8f24a92b838cbe43219d 100644 (file)
                stdout-path = "serial2:115200n8";
        };
 
+       ir: ir-receiver {
+               compatible = "gpio-ir-receiver";
+               gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&ir_int>;
+       };
+
        sound {
                compatible = "simple-audio-card";
                simple-audio-card,name = "SPDIF";
 };
 
 &pinctrl {
+       ir {
+               ir_int: ir-int {
+                       rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+
        pmic {
                pmic_int: pmic-int {
                        rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_up>;