arm64: dts: rockchip: Add Hugsun X99 IR receiver
authorVivek Unune <npcomplete13@gmail.com>
Fri, 13 Mar 2020 23:05:13 +0000 (19:05 -0400)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 17 Mar 2020 00:48:12 +0000 (01:48 +0100)
Add the IR receiver and its associated pinctrl entry.

Tested with LibreElec linux-next-20200305

Signed-off-by: Vivek Unune <npcomplete13@gmail.com>
Link: https://lore.kernel.org/r/20200313230513.123049-1-npcomplete13@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts

index ee4867f..9bd14bc 100644 (file)
                regulator-max-microvolt = <5000000>;
        };
 
+       ir-receiver {
+               compatible = "gpio-ir-receiver";
+               gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&ir_rx>;
+       };
+
        vcc_sys: vcc-sys {
                compatible = "regulator-fixed";
                regulator-name = "vcc_sys";
                };
        };
 
+       ir {
+               ir_rx: ir-rx {
+                       rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>;
+               };
+       };
+
        pmic {
                pmic_int_l: pmic-int-l {
                        rockchip,pins =