[PATCH v2 4/6] arm64: dts: rockchip: add IR-receiver to NanoPC-T6
Marcin Juszkiewicz
marcin.juszkiewicz at linaro.org
Wed Aug 21 01:25:33 PDT 2024
FriendlyELEC NanoPC-T6 has IR receiver connected to PWM3_IR_M0 line
which ends as GPIO0_D4.
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz at linaro.org>
---
arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
index 0f9df64dc1b1..57a9cf3da178 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
@@ -25,6 +25,11 @@ chosen {
stdout-path = "serial2:1500000n8";
};
+ ir-receiver {
+ compatible = "gpio-ir-receiver";
+ gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_LOW>;
+ };
+
leds {
compatible = "gpio-leds";
@@ -254,7 +259,7 @@ &gpio0 {
"HEADER_10", "HEADER_08", "HEADER_32", "",
/* GPIO0 D0-D7 */
"", "", "", "",
- "", "", "", "";
+ "IR receiver [PWM3_IR_M0]", "", "", "";
};
&gpio1 {
@@ -564,6 +569,13 @@ &pwm1 {
status = "okay";
};
+/* Connected to IR Receiver */
+&pwm3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm3m0_pins>;
+ status = "okay";
+};
+
&saradc {
vref-supply = <&avcc_1v8_s0>;
status = "okay";
--
2.46.0
More information about the Linux-rockchip
mailing list