linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input: Add marine keycodes for radar control.
@ 2025-10-13 15:23 Hunter Moore
  2025-10-13 16:05 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Hunter Moore @ 2025-10-13 15:23 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: linux-input, linux-kernel, Hunter Moore, Hunter Moore

From: Hunter Moore <hunter.moore@garmin.com>

We are looking into adding some additional keycodes to add support for
radar control. In total we are adding 29 keycodes which seems to
exceed the KEY_MAX limit set, so we have also bumped this value to
0x3ff to double the available keycodes.

Signed-off-by: Hunter Moore <Hunter.Moore@garmin.com>
---
 include/linux/mod_devicetable.h        |  2 +-
 include/uapi/linux/input-event-codes.h | 32 +++++++++++++++++++++++++-
 2 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index 6077972e8b45..97f8867955de 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -333,7 +333,7 @@ struct pcmcia_device_id {
 /* Input */
 #define INPUT_DEVICE_ID_EV_MAX         0x1f
 #define INPUT_DEVICE_ID_KEY_MIN_INTERESTING    0x71
-#define INPUT_DEVICE_ID_KEY_MAX                0x2ff
+#define INPUT_DEVICE_ID_KEY_MAX                0x3ff
 #define INPUT_DEVICE_ID_REL_MAX                0x0f
 #define INPUT_DEVICE_ID_ABS_MAX                0x3f
 #define INPUT_DEVICE_ID_MSC_MAX                0x07
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
index ca5851e97fac..49a7fd7c0e23 100644
--- a/include/uapi/linux/input-event-codes.h
+++ b/include/uapi/linux/input-event-codes.h
@@ -815,9 +815,39 @@
 #define BTN_TRIGGER_HAPPY39            0x2e6
 #define BTN_TRIGGER_HAPPY40            0x2e7

+#define KEY_RADAR_TRANSMIT             0x2e8
+#define KEY_RADAR_RANGE_UP             0x2e9
+#define KEY_RADAR_RANGE_DOWN           0x2ea
+#define KEY_RADAR_GAIN_UP              0x2eb
+#define KEY_RADAR_GAIN_DOWN            0x2ec
+#define KEY_RADAR_SEA_UP               0x2ed
+#define KEY_RADAR_SEA_DOWN             0x2ee
+#define KEY_RADAR_RAIN_UP              0x2ef
+#define KEY_RADAR_RAIN_DOWN            0x2f0
+#define KEY_RADAR_VRM1_UP              0x2f1
+#define KEY_RADAR_VRM1_DOWN            0x2f2
+#define KEY_RADAR_VRM2_UP              0x2f3
+#define KEY_RADAR_VRM2_DOWN            0x2f4
+#define KEY_RADAR_EBL1_UP              0x2f5
+#define KEY_RADAR_EBL1_DOWN            0x2f6
+#define KEY_RADAR_EBL2_UP              0x2f7
+#define KEY_RADAR_EBL2_DOWN            0x2f8
+#define KEY_RADAR_VRM_TOGGLE           0x2f9
+#define KEY_RADAR_VRM_UP               0x2fa
+#define KEY_RADAR_VRM_DOWN             0x2fb
+#define KEY_RADAR_EBL_TOGGLE           0x2fc
+#define KEY_RADAR_EBL_UP               0x2fd
+#define KEY_RADAR_EBL_DOWN             0x2fe
+#define KEY_RADAR_SCANNER_TOGGLE       0x2ff
+#define KEY_RADAR_SCANNER1             0x300
+#define KEY_RADAR_SCANNER2             0x301
+#define KEY_RADAR_CHANNEL_TOGGLE       0x302
+#define KEY_RADAR_CHANNEL_A            0x303
+#define KEY_RADAR_CHANNEL_B            0x304
+
 /* We avoid low common keys in module aliases so they don't get huge. */
 #define KEY_MIN_INTERESTING    KEY_MUTE
-#define KEY_MAX                        0x2ff
+#define KEY_MAX                        0x3ff
 #define KEY_CNT                        (KEY_MAX+1)

 /*
--
2.43.0


________________________________

CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be Garmin confidential and/or Garmin legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.

________________________________

CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be Garmin confidential and/or Garmin legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-19 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 15:23 [PATCH] input: Add marine keycodes for radar control Hunter Moore
2025-10-13 16:05 ` Dmitry Torokhov
2025-11-19 16:38   ` Hunter Moore

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).