devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: Add IR receiver to BPI-R2Pro
@ 2022-12-14 15:54 Frank Wunderlich
  2023-01-10 14:04 ` Heiko Stuebner
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Wunderlich @ 2022-12-14 15:54 UTC (permalink / raw)
  To: linux-rockchip
  Cc: Alex Riabchenko, Rob Herring, Krzysztof Kozlowski, Heiko Stuebner,
	Frank Wunderlich, Michael Riesch, Sebastian Reichel, devicetree,
	linux-arm-kernel, linux-kernel

From: Alex Riabchenko <d3adme4t@gmail.com>

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>
---
 arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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 5701c96d31b1..6473756a69bf 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 @@ hdmi_con_in: endpoint {
 		};
 	};
 
+	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";
@@ -655,6 +662,12 @@ hym8563_int: hym8563-int {
 		};
 	};
 
+	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>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: Add IR receiver to BPI-R2Pro
  2022-12-14 15:54 [PATCH] arm64: dts: rockchip: Add IR receiver to BPI-R2Pro Frank Wunderlich
@ 2023-01-10 14:04 ` Heiko Stuebner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2023-01-10 14:04 UTC (permalink / raw)
  To: linux-rockchip, Frank Wunderlich
  Cc: Heiko Stuebner, devicetree, Sebastian Reichel, linux-kernel,
	Rob Herring, linux-arm-kernel, Michael Riesch,
	Krzysztof Kozlowski, Alex Riabchenko, Frank Wunderlich

On Wed, 14 Dec 2022 16:54:33 +0100, Frank Wunderlich wrote:
> From: Alex Riabchenko <d3adme4t@gmail.com>
> 
> 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/
> 
> [...]

Applied, thanks!

[1/1] arm64: dts: rockchip: Add IR receiver to BPI-R2Pro
      commit: 91ab5a0dcf3f6718099b894312dee2f1a235348d

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-10 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-14 15:54 [PATCH] arm64: dts: rockchip: Add IR receiver to BPI-R2Pro Frank Wunderlich
2023-01-10 14:04 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).