media: rc: add keymap and bindings for Dreambox remotes
Subsystems (3)
v2 cover media: rc: add keymap and bindings for Dreambox remotes
This series adds bindings and common keymap for the Dreambox RC10/RC0 and RC20/RC-BT remote devices.
Changes since v1:
- Split bindings and keymap into separate patches
- Revise keymap description to clarify non-IR keys and mappings
- Revise tagging and key ordering in the keymap
In v1 the RC10/RC0 keymap is incorrectly tagged as RC20/RC-BT and vice versa, resulting in some missing //RADIO and //TV keys. Correcting the tagging then reordering the keys to match physical layouts [0] and [1] results in no missing keys. The keymaps worked, but I've gotten things confused when translating from Emanuel's original keymap. So apologies for the confusion.
Christian Hewitt (1):
dt-bindings: media: rc: add rc-dreambox binding
Emanuel Strobel (1):
media: rc: add common keymap for Dreambox RC10/RC0 and RC20/RC-BT
remotes
.../devicetree/bindings/media/rc.yaml | 1 + drivers/media/rc/keymaps/Makefile | 1 + drivers/media/rc/keymaps/rc-dreambox.c | 151 ++++++++++++++++++ include/media/rc-map.h | 1 + 4 files changed, 154 insertions(+) create mode 100644 drivers/media/rc/keymaps/rc-dreambox.c
Signature · 1 line
2.34.1
PATCH v2 1/2 dt-bindings: media: rc: add rc-dreambox binding
Add a binding for the rc-dreambox remote keymap
--- Documentation/devicetree/bindings/media/rc.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/media/rc.yaml +1 -0
@@ -55,6 +55,7 @@ properties: - rc-dm1105-nec - rc-dntv-live-dvb-t - rc-dntv-live-dvbt-pro + - rc-dreambox - rc-dtt200u - rc-dvbsky - rc-dvico-mce
Signature · 1 line
2.34.1
Re: [PATCH v2 1/2] dt-bindings: media: rc: add rc-dreambox binding
Quoted 3 lines · Christian Hewitt
Add a binding for the rc-dreambox remote keymap
Signed-off-by Christian Hewitt <[email protected]>
If there is going to be resend:
Subject: drop second/last, redundant "bindins". The "dt-bindings" prefix is already stating that these are bindings.
Quoted 1 line
---
Best regards,
Krzysztof
PATCH v2 2/2 media: rc: add common keymap for Dreambox RC10/RC0 and RC20/RC-BT remotes
In reply to Christian HewittFrom: Emanuel Strobel <[email protected]>
Add a common keymap for the RC10/RC0 and RC20/RC-BT remotes used with the Dreambox One and Dreambox Two DVB-S/T boxes. The maps are combined since the IR codes do not conflict and both boxes have shipped with both remote designs over time.
Both remote types can be programmed to control TVs, so include non-IR keys that are used to switch-to or toggle the remote mode:
- DREAM in RC10/RC0 switches to (Dreambox) STB control mode
- TV in RC10/RC0 switches to TV control mode
- MODE in RC20/RC-BT toggles between STB/TV/BT control modes
In the RC20 keymap the Android MIC (voice search) key maps to KEY_HELP and EXIT is mapped to KEY_ESC to replicate the go-backwards navigation behaviour in the Android vendor OS that ships on Dreambox devices.
--- drivers/media/rc/keymaps/Makefile | 1 + drivers/media/rc/keymaps/rc-dreambox.c | 151 +++++++++++++++++++++++++ include/media/rc-map.h | 1 + 3 files changed, 153 insertions(+) create mode 100644 drivers/media/rc/keymaps/rc-dreambox.c
drivers/media/rc/keymaps/Makefile +1 -0
@@ -37,6 +37,7 @@ obj-$(CONFIG_RC_MAP) += \ rc-dm1105-nec.o \ rc-dntv-live-dvb-t.o \ rc-dntv-live-dvbt-pro.o \ + rc-dreambox.o \ rc-dtt200u.o \ rc-dvbsky.o \ rc-dvico-mce.o \
drivers/media/rc/keymaps/rc-dreambox.c new file +151 -0
151 lines not on this page · raw message
include/media/rc-map.h +1 -0
@@ -241,6 +241,7 @@ struct rc_map *rc_map_get(const char *name);#define RC_MAP_DM1105_NEC "rc-dm1105-nec"#define RC_MAP_DNTV_LIVE_DVB_T "rc-dntv-live-dvb-t"#define RC_MAP_DNTV_LIVE_DVBT_PRO "rc-dntv-live-dvbt-pro" +#define RC_MAP_DREAMBOX "rc-dreambox"#define RC_MAP_DTT200U "rc-dtt200u"#define RC_MAP_DVBSKY "rc-dvbsky"#define RC_MAP_DVICO_MCE "rc-dvico-mce"
Signature · 1 line
2.34.1
Quoted 11 lines · Christian Hewitt
This series adds bindings and common keymap for the Dreambox RC10/RC0 and RC20/RC-BT remote devices.
Changes since v1:
- Split bindings and keymap into separate patches
- Revise keymap description to clarify non-IR keys and mappings
- Revise tagging and key ordering in the keymap
Quoted 6 lines
In v1 the RC10/RC0 keymap is incorrectly tagged as RC20/RC-BT and vice versa, resulting in some missing //RADIO and //TV keys. Correcting the tagging then reordering the keys to match physical layouts [0] and [1] results in no missing keys. The keymaps worked, but I've gotten things confused when translating from Emanuel's original keymap. So apologies for the confusion.
^ missed these references
Quoted 17 lines
Christian Hewitt (1):
dt-bindings: media: rc: add rc-dreambox bindingEmanuel Strobel (1):
media: rc: add common keymap for Dreambox RC10/RC0 and RC20/RC-BT
remotes.../devicetree/bindings/media/rc.yaml | 1 + drivers/media/rc/keymaps/Makefile | 1 + drivers/media/rc/keymaps/rc-dreambox.c | 151 ++++++++++++++++++ include/media/rc-map.h | 1 + 4 files changed, 154 insertions(+)create mode 100644
drivers/media/rc/keymaps/rc-dreambox.cSignature · 1 line
2.34.1