Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH RESEND v2 0/4] Touch Bar driver for Apple Macs with T2 Security Chip
@ 2025-02-03 16:58 Aditya Garg
  2025-02-03 17:02 ` [PATCH RESEND v2 1/4] HID: hid-appletb-bl: add driver for the backlight of Apple Touch Bars Aditya Garg
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Aditya Garg @ 2025-02-03 16:58 UTC (permalink / raw)
  To: Jiri Kosina, bentiss@kernel.org, Benjamin Tissoires,
	Thomas Weißschuh, Thomas Weißschuh, jkosina@suse.cz
  Cc: Kerem Karabay, Orlando Chamberlain, Linux Kernel Mailing List,
	linux-input@vger.kernel.org

From: Aditya Garg <gargaditya08@live.com>

This patch series adds support for Touch Bar on found on MacBook Pro
models with T2 Security Chip. These drivers support the mode found on
Windows Bootcamp drivers.

V2: Added checks to the keyboard driver to ensure backlight driver is
initialised first.

Aditya Garg (2):
  HID: hid-appletb-kbd: add support for fn toggle between media and
    function mode
  HID: hid-appletb-kbd: add support for automatic brightness control
    while using the touchbar

Kerem Karabay (2):
  HID: hid-appletb-bl: add driver for the backlight of Apple Touch Bars
  HID: hid-appletb-kbd: add driver for the keyboard mode of Apple Touch
    Bars

 .../ABI/testing/sysfs-driver-hid-appletb-kbd  |  13 +
 drivers/hid/Kconfig                           |  25 +
 drivers/hid/Makefile                          |   2 +
 drivers/hid/hid-appletb-bl.c                  | 207 +++++++
 drivers/hid/hid-appletb-kbd.c                 | 506 ++++++++++++++++++
 drivers/hid/hid-quirks.c                      |   8 +-
 6 files changed, 759 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-hid-appletb-kbd
 create mode 100644 drivers/hid/hid-appletb-bl.c
 create mode 100644 drivers/hid/hid-appletb-kbd.c

-- 
2.43.0


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 1/4] HID: hid-appletb-bl: add driver for the backlight of Apple Touch Bars
@ 2025-02-05  3:50 Aditya Garg
  2025-02-07 12:53 ` Jiri Kosina
  0 siblings, 1 reply; 12+ messages in thread
From: Aditya Garg @ 2025-02-05  3:50 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: bentiss@kernel.org, Benjamin Tissoires, Thomas Weißschuh,
	Thomas Weißschuh, Kerem Karabay, Orlando Chamberlain,
	Linux Kernel Mailing List, linux-input@vger.kernel.org



> On 4 Feb 2025, at 7:47 AM, Jiri Kosina <jikos@kernel.org> wrote:
> 
> On Tue, 4 Feb 2025, Aditya Garg wrote:
> 
>> You might have noticed that the hid-apple driver has code for the magic
>> backlight. Now we have a case of MacBook Air 2020, which does not have a
>> touchbar but still shows presence of the touchbar backlight device, just
>> because it needs it for the keyboard backlight. In case we merge both
>> the backlight and touchbar code in a driver, on that model, the
>> backlight breaks. If kept separate, the touchbar driver simply doesn't
>> load and backlight works.
> 
> Sorry for being dense, but does that mean that it's either hid-appletb-bl
> or hid-apple, but never both to make a good user experience on those
> devices?
> 
> If so, can you please point out what exactly is the reason?
> 
> Either those have different VID/PID combination, and then it can be easily
> made conditional both in code and in runtime.
> Are we talking about conflicting VID/PID combinations, some of them
> needing current hid-apple, and some of them needing (in a mutually
> exclusive way) hid-appletb-bl?
> 

Just to clarify a bit more,

The touchbar backlight device is 05ac:8102, in all the models with magic backlight, that is, with as well as without touchbar. The MacBook Air 2020 is the only model with this device but not having a touchbar.

This device is responsible for both the touchbar brightness and the keyboard backlight, the 0th interface being responsible for keyboard backlight on Air and 1st on others.
> Thanks,
> 
> --
> Jiri Kosina
> SUSE Labs
> 

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

end of thread, other threads:[~2025-02-07 12:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 16:58 [PATCH RESEND v2 0/4] Touch Bar driver for Apple Macs with T2 Security Chip Aditya Garg
2025-02-03 17:02 ` [PATCH RESEND v2 1/4] HID: hid-appletb-bl: add driver for the backlight of Apple Touch Bars Aditya Garg
2025-02-03 21:55   ` Jiri Kosina
2025-02-04  2:11     ` Aditya Garg
2025-02-04  2:17       ` Jiri Kosina
2025-02-04  2:54         ` Aditya Garg
2025-02-03 17:03 ` [PATCH RESEND v2 3/4] HID: hid-appletb-kbd: add support for fn toggle between media and function mode Aditya Garg
2025-02-03 17:03 ` [PATCH RESEND v2 4/4] HID: hid-appletb-kbd: add support for automatic brightness control while using the touchbar Aditya Garg
2025-02-03 17:03 ` [PATCH RESEND v2 1/4] HID: hid-appletb-bl: add driver for the backlight of Apple Touch Bars Aditya Garg
2025-02-03 17:03 ` [PATCH RESEND v2 2/4] HID: hid-appletb-kbd: add driver for the keyboard mode " Aditya Garg
  -- strict thread matches above, loose matches on Subject: below --
2025-02-05  3:50 [PATCH RESEND v2 1/4] HID: hid-appletb-bl: add driver for the backlight " Aditya Garg
2025-02-07 12:53 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox