summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2019-01-14 12:05:33 +0000
committerHeiko Stuebner <heiko@sntech.de>2019-01-17 14:59:20 +0100
commit95658e21b1707ad7844f873db2fdaa295109a5a3 (patch)
tree59a123440b26e54de3b717a7ef9fe7cc3cb3bacf /arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts
parentc62ffaf5026d0b7633e62b2cea8450b5543c349a (diff)
arm64: dts: rockchip: Add NanoPC-T4 IR receiver
In common with most Rockchip reference designs, NanoPC-T4 has a passive IR receiver connected to PWM3. In lieu of a specialised driver for PWM-based IR pulse measurement, running the pin as a GPIO with the basic driver works perfectly well. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts')
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts
index 623a03f2548a..84433cf02be9 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts
@@ -45,6 +45,22 @@
press-threshold-microvolt = <18000>;
};
};
+
+ ir-receiver {
+ compatible = "gpio-ir-receiver";
+ gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&ir_rx>;
+ };
+};
+
+&pinctrl {
+ ir {
+ ir_rx: ir-rx {
+ /* external pullup to VCC3V3_SYS, despite being 1.8V :/ */
+ rockchip,pins = <0 RK_PA6 RK_FUNC_1 &pcfg_pull_none>;
+ };
+ };
};
&sdhci {