[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200923131424.1612960-3-art@khadas.com>
Date: Wed, 23 Sep 2020 21:14:24 +0800
From: Artem Lapkin <email2tema@...il.com>
To: linux-arm-kernel@...ts.infradead.org
Cc: robh+dt@...nel.org, art@...das.com, jbx6244@...il.com,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
nick@...das.com, gouwa@...das.com
Subject: [PATCH v2 2/2] arm64: dts: rockchip: add ir-receiver node to rk3399-khadas-edge
add missed ir-receiver and ir_rx pinctl nodes to rk3399-khadas-edge
Khadas Edge board uses gpio-ir-receiver on RK_PB6 gpio
Signed-off-by: Artem Lapkin <art@...das.com>
Tested-by: Artem Lapkin <art@...das.com>
---
.../boot/dts/rockchip/rk3399-khadas-edge.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
index c67420578fa..e4655097f22 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi
@@ -109,6 +109,14 @@ vsys_5v0: vsys-5v0 {
vin-supply = <&vsys>;
};
+ ir-receiver {
+ compatible = "gpio-ir-receiver";
+ gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&ir_rx>;
+ linux,rc-map-name = "rc-khadas";
+ };
+
adc-keys {
compatible = "adc-keys";
io-channels = <&saradc 1>;
@@ -585,6 +593,12 @@ pwrbtn: pwrbtn {
};
};
+ ir {
+ ir_rx: ir-rx {
+ rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
leds {
sys_led_pin: sys-led-pin {
rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
--
2.25.1
Powered by blists - more mailing lists