Skip to contentSkip to conversation

HID: apple: Add 2021 Magic Keyboard with fingerprint reader

PATCH Applied Alex Henrie 3 participants 4 messages Dec 2, 2021 – Jan 6, 2022 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 HID: apple: Add 2021 Magic Keyboard with fingerprint reader

---
 drivers/hid/hid-apple.c  | 4 ++++
 drivers/hid/hid-ids.h    | 1 +
 drivers/hid/hid-quirks.c | 1 +
 3 files changed, 6 insertions(+)
drivers/hid/hid-apple.c +4 -0
index 2c9c5faa74a9..b2d8bcd86bd5 100644
@@ -640,6 +640,10 @@ static const struct hid_device_id apple_devices[] = {
 		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
 	{ HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021),
 		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021),
+		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
+	{ HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021),
+		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
 
 	{ }
 };
drivers/hid/hid-ids.h +1 -0
index 96a455921c67..8c70a731ef46 100644
@@ -175,6 +175,7 @@
 #define USB_DEVICE_ID_APPLE_IRCONTROL4	0x8242
 #define USB_DEVICE_ID_APPLE_IRCONTROL5	0x8243
 #define USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021   0x029c
+#define USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021   0x029a
 
 #define USB_VENDOR_ID_ASUS		0x0486
 #define USB_DEVICE_ID_ASUS_T91MT	0x0185
drivers/hid/hid-quirks.c +1 -0
index 06b7908c874c..319bbae7ff62 100644
@@ -303,6 +303,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021) },
 #endif
 #if IS_ENABLED(CONFIG_HID_APPLEIR)
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_IRCONTROL) },
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 HID: apple: Add 2021 Magic Keyboard with number pad

---
 drivers/hid/hid-apple.c | 4 ++++
 drivers/hid/hid-ids.h   | 1 +
 2 files changed, 5 insertions(+)
drivers/hid/hid-apple.c +4 -0
index b2d8bcd86bd5..5eda7a0d0575 100644
@@ -644,6 +644,10 @@ static const struct hid_device_id apple_devices[] = {
 		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
 	{ HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021),
 		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021),
+		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
+	{ HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021),
+		.driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
 
 	{ }
 };
drivers/hid/hid-ids.h +1 -0
index 8c70a731ef46..16fbcdab2ae2 100644
@@ -176,6 +176,7 @@
 #define USB_DEVICE_ID_APPLE_IRCONTROL5	0x8243
 #define USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021   0x029c
 #define USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021   0x029a
+#define USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021   0x029f
 
 #define USB_VENDOR_ID_ASUS		0x0486
 #define USB_DEVICE_ID_ASUS_T91MT	0x0185
Signature · 1 line
2.34.1
Tested-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] HID: apple: Add 2021 Magic Keyboard with number pad

Hi!

Thanks a lot for the patches Alex.

I tested them on the following hardware:

- Magic Keyboard 2021 without fingerprint reader. ANSI, ISO and JIS.
- Magic Keyboard 2021 with fingerprint reader. ANSI.
- Magic Keyboard 2021 with fingerprint reader and numpad. ANSI

Code looks good as well.

maintainer Applied
#3 lore raw

Re: [PATCH 2/2] HID: apple: Add 2021 Magic Keyboard with number pad

Quoted 6 lines · José Expósito

Hi!

Thanks a lot for the patches Alex.

I tested them on the following hardware:

Quoted 7 lines

- Magic Keyboard 2021 without fingerprint reader. ANSI, ISO and JIS.
- Magic Keyboard 2021 with fingerprint reader. ANSI.
- Magic Keyboard 2021 with fingerprint reader and numpad. ANSI

Code looks good as well.

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs