Skip to content

Commit d688299

Browse files
aurel32mmind
authored andcommitted
arm64: dts: rockchip: Add IR receiver node to ODROID-M1
Add the infrared receiver and its associated pinctrl entry. Note that there is an external pullup to VCC3V3_SYS. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Tested-by: Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-14-aurelien@aurel32.net Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 35b2858 commit d688299

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949
};
5050
};
5151

52+
ir-receiver {
53+
compatible = "gpio-ir-receiver";
54+
gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_LOW>;
55+
pinctrl-names = "default";
56+
pinctrl-0 = <&ir_receiver_pin>;
57+
};
58+
5259
leds {
5360
compatible = "gpio-leds";
5461

@@ -519,6 +526,13 @@
519526
};
520527
};
521528

529+
ir-receiver {
530+
ir_receiver_pin: ir-receiver-pin {
531+
/* external pullup to VCC3V3_SYS */
532+
rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
533+
};
534+
};
535+
522536
leds {
523537
led_power_pin: led-power-pin {
524538
rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;

0 commit comments

Comments
 (0)