[PATCH] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc

Subsystems: the rest

STALE1875d LANDED

Landed in mainline as e1d635bc94bc on 2021-06-19.

2 messages, 2 authors, 2021-06-19 · open the first message on its own page

[PATCH] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc

From: Alex Bee <hidden>
Date: 2021-06-19 12:16:52

Like some other RK3399 boards RK3399-ROC-PC has an ir receiver
connected to pwm3 which can be used as gpio-ir-receiver.

Signed-off-by: Alex Bee <redacted>
---
 arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
index 8b27ee4be755..d1aaf8e83391 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
@@ -63,6 +63,13 @@ power {
 		};
 	};
 
+	ir-receiver {
+		compatible = "gpio-ir-receiver";
+		gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&ir_int>;
+	};
+
 	leds {
 		compatible = "gpio-leds";
 		pinctrl-names = "default";
@@ -604,6 +611,12 @@ pwr_key_l: pwr-key-l {
 		};
 	};
 
+	ir {
+		ir_int: ir-int {
+			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	lcd-panel {
 		lcd_panel_reset: lcd-panel-reset {
 			rockchip,pins = <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
-- 
2.27.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc

From: Heiko Stuebner <heiko@sntech.de>
Date: 2021-06-19 21:58:45

On Sat, 19 Jun 2021 14:16:42 +0200, Alex Bee wrote:
Like some other RK3399 boards RK3399-ROC-PC has an ir receiver
connected to pwm3 which can be used as gpio-ir-receiver.
Applied, thanks!

[1/1] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc
      commit: e1d635bc94bce69e45a2d4e93c94178613e01229

Best regards,
-- 
Heiko Stuebner [off-list ref]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help