Skip to contentSkip to conversation

add videostrong kii pro keymap

PATCH Superseded Mohammad Rasim 2 participants 5 messages Feb 13, 2020 – Feb 14, 2020

Subsystems (4)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover add videostrong kii pro keymap

Videostrong kii pro comes with a NEC remote control, this adds support for this remote and also select it from the device dts

Changes since v1:
- fix styling issues

Changes since v2:
- use KEY_VENDOR for mouse key
- use KEY_PVR instead of KEY_RECORD
- use KEY_APPSELECT for the launcher
- use KEY_TV for the tv app key

Changes since v3:
- add a patch to use the keymap by the device's dts

Mohammad Rasim (2):
media: rc: add keymap for Videostrong KII Pro
arm64: dts: amlogic: add rc-videostrong-kii-pro keymap

 .../boot/dts/amlogic/meson-gxbb-kii-pro.dts   |  4 +
 drivers/media/rc/keymaps/Makefile             |  1 +
 .../media/rc/keymaps/rc-videostrong-kii-pro.c | 83 +++++++++++++++++++
 include/media/rc-map.h                        |  1 +
 4 files changed, 89 insertions(+)
 create mode 100644 drivers/media/rc/keymaps/rc-videostrong-kii-pro.c

--
2.25.0

#1 lore raw

PATCH v4 1/2 media: rc: add keymap for Videostrong KII Pro

This is an NEC remote control device shipped with the Videostrong KII Pro tv box.

---
 drivers/media/rc/keymaps/Makefile             |  1 +
 .../media/rc/keymaps/rc-videostrong-kii-pro.c | 83 +++++++++++++++++++
 include/media/rc-map.h                        |  1 +
 3 files changed, 85 insertions(+)
 create mode 100644 drivers/media/rc/keymaps/rc-videostrong-kii-pro.c
drivers/media/rc/keymaps/Makefile +1 -0
index 63261ef6380a..aaa1bf81d00d 100644
@@ -119,6 +119,7 @@ obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \
 			rc-videomate-m1f.o \
 			rc-videomate-s350.o \
 			rc-videomate-tv-pvr.o \
+			rc-videostrong-kii-pro.o \
 			rc-wetek-hub.o \
 			rc-wetek-play2.o \
 			rc-winfast.o \
drivers/media/rc/keymaps/rc-videostrong-kii-pro.c new file +83 -0

83 lines not on this page · raw message

include/media/rc-map.h +1 -0
index f99575a0d29c..d22810dcd85c 100644
@@ -274,6 +274,7 @@ struct rc_map *rc_map_get(const char *name);
 #define RC_MAP_VIDEOMATE_K100            "rc-videomate-k100"
 #define RC_MAP_VIDEOMATE_S350            "rc-videomate-s350"
 #define RC_MAP_VIDEOMATE_TV_PVR          "rc-videomate-tv-pvr"
+#define RC_MAP_KII_PRO                   "rc-videostrong-kii-pro"
 #define RC_MAP_WETEK_HUB                 "rc-wetek-hub"
 #define RC_MAP_WETEK_PLAY2               "rc-wetek-play2"
 #define RC_MAP_WINFAST                   "rc-winfast"

--
2.25.0

#2 lore raw

PATCH v4 2/2 arm64: dts: amlogic: add rc-videostrong-kii-pro keymap

In reply to Mohammad Rasim

videostrong kii pro comes with a nec rc, add the keymap to the dts

---
 arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +4 -0
index 2f1f829450a2..6c9cc45fb417 100644
@@ -76,3 +76,7 @@ eth_phy0: ethernet-phy@0 {
 		};
 	};
 };
+
+&ir {
+	linux,rc-map-name = "rc-videostrong-kii-pro";
+};

--
2.25.0

#3 lore raw

Re: [PATCH v4 2/2] arm64: dts: amlogic: add rc-videostrong-kii-pro keymap

Hi,

Quoted 12 lines · Mohammad Rasim

videostrong kii pro comes with a nec rc, add the keymap to the dts

---
 arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +0 -0
index 2f1f829450a2..6c9cc45fb417 100644

arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts eth_phy0: ethernet-phy@0 { · line 81

Quoted 6 lines
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +3 -0
@@ -76,3 +76,7 @@ eth_phy0: ethernet-phy@0 {
 		};
 	};
 };
+
+&ir {
+	linux,rc-map-name = "rc-videostrong-kii-pro";

You should also update Documentation/devicetree/bindings/media/rc.yaml

Quoted 4 lines
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +1 -1
+};
--

2.25.0

Thanks,
Neil

#4 lore raw

Re: [PATCH v4 2/2] arm64: dts: amlogic: add rc-videostrong-kii-pro keymap

Quoted 10 lines · Neil Armstrong

Hi,

Quoted 7 lines · Mohammad Rasim

videostrong kii pro comes with a nec rc, add the keymap to the dts

---
 arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts | 4 ++++
 1 file changed, 4 insertions(+)
Quoted 14 lines

arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts eth_phy0: ethernet-phy@0 { · line 81

Quoted 11 lines
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +3 -0
index 2f1f829450a2..6c9cc45fb417 100644
@@ -76,3 +76,7 @@ eth_phy0: ethernet-phy@0 {
 		};
 	};
 };
+
+&ir {
+	linux,rc-map-name = "rc-videostrong-kii-pro";

You should also update Documentation/devicetree/bindings/media/rc.yaml

fixed in v5.

Quoted 7 lines
Quoted 4 lines
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts +1 -1
+};
--

2.25.0

Thanks,
Neil