linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc
@ 2021-06-19 12:16 Alex Bee
  2021-06-19 21:58 ` Heiko Stuebner
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Bee @ 2021-06-19 12:16 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Rob Herring, devicetree, linux-arm-kernel, linux-rockchip,
	linux-kernel, Alex Bee

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 <knaerzche@gmail.com>
---
 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


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

* Re: [PATCH] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc
  2021-06-19 12:16 [PATCH] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc Alex Bee
@ 2021-06-19 21:58 ` Heiko Stuebner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2021-06-19 21:58 UTC (permalink / raw)
  To: Alex Bee
  Cc: Heiko Stuebner, devicetree, linux-rockchip, Rob Herring,
	linux-arm-kernel, linux-kernel

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 <heiko@sntech.de>

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

end of thread, other threads:[~2021-06-19 21:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-19 12:16 [PATCH] arm64: dts: rockchip: add ir-receiver for rk3399-roc-pc Alex Bee
2021-06-19 21:58 ` 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).