summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Riabchenko <d3adme4t@gmail.com>2022-12-14 16:54:33 +0100
committerHeiko Stuebner <heiko@sntech.de>2023-01-10 23:15:16 +0100
commit6e97ac440b345b42d0025fcaee4d30d381fe438c (patch)
treeb9839a40d2ca8615520075ec1e0a2dea03e73d15
parentcdf46cdbabfce6f1fa2843be7c396bc8bcff97e8 (diff)
downloadlwn-6e97ac440b345b42d0025fcaee4d30d381fe438c.tar.gz
lwn-6e97ac440b345b42d0025fcaee4d30d381fe438c.zip
arm64: dts: rockchip: Add IR receiver to BPI-R2Pro
Add the infrared receiver and its associated pinctrl entry. Based on Aurelien Jarno's patchset: https://lore.kernel.org/lkml/20220930051246.391614-14-aurelien@aurel32.net/ Signed-off-by: Alex Riabchenko <d3adme4t@gmail.com> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Link: https://lore.kernel.org/r/20221214155433.112257-1-linux@fw-web.de Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
index 26d7fda275ed..ff0bf24cc1a2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
@@ -66,6 +66,13 @@
};
};
+ ir-receiver {
+ compatible = "gpio-ir-receiver";
+ gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&ir_receiver_pin>;
+ };
+
vcc3v3_sys: vcc3v3-sys-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_sys";
@@ -614,6 +621,12 @@
};
};
+ ir-receiver {
+ ir_receiver_pin: ir-receiver-pin {
+ rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
pcie {
minipcie_enable_h: minipcie-enable-h {
rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none_drv_level_5>;