* [PATCH] arm64: dts: imx8mq-evk: Add remote control
@ 2019-10-22 19:20 Rogerio Pimentel da Silva
2019-10-28 7:56 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Rogerio Pimentel da Silva @ 2019-10-22 19:20 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Lucas Stach, Carlo Caione, Abel Vesa, Anson Huang, Daniel Baluta,
Baruch Siach, Andrey Smirnov, devicetree, linux-arm-kernel,
linux-kernel
Cc: rpimentel.silva
Add remote control to i.MX8M EVK device tree.
The rc protocol must be selected by writing to:
/sys/devices/platform/ir-receiver/rc/rc0/protocols
On my tests, I used "nec" rc protocol:
echo nec > protocols
Tested using evetest:
evtest /dev/input/event0
Output log for each key pressed:
Event:
time 1568122608.267845, -------------- SYN_REPORT ------------
Event:
time 1568122610.503835, type 4 (EV_MSC), code 4 (MSC_SCAN), value 440
Signed-off-by: Rogerio Pimentel da Silva <rpimentel.silva@gmail.com>
---
arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index 6ede46f7d45b..bd81e4a45ff5 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -50,6 +50,13 @@
900000 0x1>;
};
+ ir-receiver {
+ compatible = "gpio-ir-receiver";
+ gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ir>;
+ };
+
wm8524: audio-codec {
#sound-dai-cells = <0>;
compatible = "wlf,wm8524";
@@ -340,6 +347,12 @@
>;
};
+ pinctrl_ir: irgrp {
+ fsl,pins = <
+ MX8MQ_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x4f
+ >;
+ };
+
pinctrl_pcie0: pcie0grp {
fsl,pins = <
MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B 0x76
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: imx8mq-evk: Add remote control
2019-10-22 19:20 [PATCH] arm64: dts: imx8mq-evk: Add remote control Rogerio Pimentel da Silva
@ 2019-10-28 7:56 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2019-10-28 7:56 UTC (permalink / raw)
To: Rogerio Pimentel da Silva
Cc: Mark Rutland, devicetree, Baruch Siach, Abel Vesa, Anson Huang,
Carlo Caione, Andrey Smirnov, Daniel Baluta, Sascha Hauer,
linux-kernel, Rob Herring, NXP Linux Team,
Pengutronix Kernel Team, Fabio Estevam, linux-arm-kernel,
Lucas Stach
On Tue, Oct 22, 2019 at 04:20:34PM -0300, Rogerio Pimentel da Silva wrote:
> Add remote control to i.MX8M EVK device tree.
>
> The rc protocol must be selected by writing to:
> /sys/devices/platform/ir-receiver/rc/rc0/protocols
>
> On my tests, I used "nec" rc protocol:
> echo nec > protocols
>
> Tested using evetest:
> evtest /dev/input/event0
>
> Output log for each key pressed:
> Event:
> time 1568122608.267845, -------------- SYN_REPORT ------------
> Event:
> time 1568122610.503835, type 4 (EV_MSC), code 4 (MSC_SCAN), value 440
>
> Signed-off-by: Rogerio Pimentel da Silva <rpimentel.silva@gmail.com>
Applied, thanks.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-28 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-22 19:20 [PATCH] arm64: dts: imx8mq-evk: Add remote control Rogerio Pimentel da Silva
2019-10-28 7:56 ` Shawn Guo
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).