Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp839710pxb; Thu, 19 Aug 2021 12:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxysWXX69rhiuq7IHw7LlL5G4xJOueJ1Mp2FlzRBtloB4GTNLpdzVR58y/lL+sLcPH0XsF X-Received: by 2002:a05:6638:2b1:: with SMTP id d17mr12940567jaq.63.1629401650790; Thu, 19 Aug 2021 12:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629401650; cv=none; d=google.com; s=arc-20160816; b=FT/xZYsuivO21KGvZvxHXJsxVRsDSuHbtHsD0TyE891vIP8N70A6+HK7B8Nz4V1MZ9 pIOzMjBLFtJf4xx4HEmrdFdevEihT5Zc8Do/2m6dWzEra9etS1aiDWxlspmE69XNs5Or J3+qPRa9q/dchbnZkb5E058BksdxxFJqMT5tQDzLg92LXNQfxglus9c+UeVCo6Kx6XK+ ncRHbWslL9pxkcYUHNi+DR+u1daaVGFale/qsbv+8WrwaoFA9WoNI6Wm/B/BUIdwsAGz koaE8jJhOQ3TrCD5msaYEus7XBaN7//ObkIxweAKwor6+SSXxrBC/XwelGXAd/Y2lHBV KnaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=JY+D/Sy1TqJnSBxAjQVuX4InrTchjpCmDJzfReV7g6Y=; b=eS/ATS8H5yXmEFP54D++vWspMMLEOpP+P1fkZ1B04WdF9EBDMEspH3FbXv2oZqvLHO ECK1pY20wwr3fRaPoGUmwUYZnvqTjskDH5HwRi0ELjjk/7kV7vMwtoJgXpvN2Sbjepta +dBJ+okDu3UxpvrGPP3q/KRl172pHkpnA2rkKuyR1q9liFSdKDaleiyimFk9mE54bsya D1K0cw2XhX9GqCZEnyOiSc/D0hoW3NXf0D1smqXVtylhyYIXhx4Gro4iixhz5BMmQpBr USsXKsNjpcSpTaEKNmJMjajtq8E3c+eKBByrXlni9N2TXXV4CmJ9eY2rTXo4LUCmT9IQ iskw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Rp1CK4zx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si4802012jak.34.2021.08.19.12.33.58; Thu, 19 Aug 2021 12:34:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Rp1CK4zx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234781AbhHSTd2 (ORCPT + 99 others); Thu, 19 Aug 2021 15:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbhHSTd1 (ORCPT ); Thu, 19 Aug 2021 15:33:27 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37705C061575; Thu, 19 Aug 2021 12:32:51 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id l3so5511078qtk.10; Thu, 19 Aug 2021 12:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JY+D/Sy1TqJnSBxAjQVuX4InrTchjpCmDJzfReV7g6Y=; b=Rp1CK4zxfNBRaarTDu97u4mWJ+rExbEsmfnFBD4gjsTdxMzzHJr3B7ZiCP5sfyyIvn fWfkkaxDhCnXCJtsnlXQnPffWq3cYD/qglHTWUAmsUPlx4I9Zy+pI357V+d6GEw2r6EE la/v2/XS0o+h5roYhpw48INJ1FLfk3s195QYdIawHqNzQfOn3+H+3RbrThSuN5zMEJet q0eXiYPhX9g4SnFtwjTsB0TvHDK3Sp1Kdune8Mw7YNs1niVKMa7LI3ExPBOhPsyLQE1e R0BjQ8N2bHxuXvqakT5SgMewO4/VvoEWaVoIszCn4sRbdsEcCQ8DIL3qb3b7YQpvqlWO jgbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JY+D/Sy1TqJnSBxAjQVuX4InrTchjpCmDJzfReV7g6Y=; b=mZqc+s4XFtmO7ZoGvZ1dZK5QLDAPiWZIPShEkXuFZClCDCpYgejwHnfwTyxbihQVDO +If0f0iR3WcaO8DXPAVn/tgfLOjf/QSY/DgPf7wFo+E/UaB3ZcBCfnVCSvH8VL1vjVjJ HPFDI8DDMRykBg1jsE5+a3s1rYHgMHyr5JgvP5HkJxxmv1aarua2zGVG7DuiXhw7PDpF hpfrGifwYvrOkl6dAK4x++7cXsCpjj9lv1x5JB9c9kzSpkYCTXfCSGh/LifqAbyUtYYx YaW7dCSOpREiWA0D8SzCdTZPsPL5TemrBWDMqvBGWXRNvqEOBfhVjEbQdWpPRk8bLHpF pP1A== X-Gm-Message-State: AOAM533VyKCM6oQDC1FmkmziwB/LpwbmfA5WVMcoE+Sg5CTTN7m26L5m +WCw4ynwhQ+nsr+BZP0g6A8= X-Received: by 2002:ac8:5b04:: with SMTP id m4mr14208845qtw.344.1629401570398; Thu, 19 Aug 2021 12:32:50 -0700 (PDT) Received: from localhost.localdomain ([138.229.29.116]) by smtp.googlemail.com with ESMTPSA id g20sm2004493qki.73.2021.08.19.12.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 12:32:50 -0700 (PDT) From: Stephan Losa Cc: stephan.losa@gmail.com, Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: apple: Add support for Keychron K8, K2 in bluetooth mode Date: Thu, 19 Aug 2021 15:32:21 -0400 Message-Id: <20210819193221.558454-1-stephan.losa@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use hid-apple in bluetooth mode like in wired mode for Keychron K8, K2 (and others). Those keyboards use vendor/product ids 05AC:024F (APPLE_ALU_REVB_ANSI). Signed-off-by: Stephan Losa --- drivers/hid/hid-apple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index 6b8f0d004d34..dc6bd4299c54 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c @@ -501,6 +501,8 @@ static const struct hid_device_id apple_devices[] = { APPLE_RDESC_JIS }, { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ANSI), .driver_data = APPLE_HAS_FN }, + { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ANSI), + .driver_data = APPLE_HAS_FN }, { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO), .driver_data = APPLE_HAS_FN }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO), -- 2.25.1