linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/2] Apple Magic Keyboard Backlight
@ 2023-02-16  4:12 Orlando Chamberlain
  2023-02-16  4:12 ` [PATCH 1/2] Documentation: leds: standardise keyboard backlight led names Orlando Chamberlain
  2023-02-16  4:12 ` [PATCH 2/2] HID: apple-magic-backlight: Add driver for keyboard backlight on internal Magic Keyboards Orlando Chamberlain
  0 siblings, 2 replies; 9+ messages in thread
From: Orlando Chamberlain @ 2023-02-16  4:12 UTC (permalink / raw)
  To: linux-input
  Cc: Jonathan Corbet, Jiri Kosina, Benjamin Tissoires, linux-doc,
	linux-kernel, Pavel Machek, Aditya Garg, Aun-Ali Zaidi,
	Kerem Karabay, Andy Shevchenko, Thomas Weißschuh,
	Orlando Chamberlain

This patchseries adds support for the internal keyboard backlight of
Macs with Apple's "Magic" keyboard (MacBookPro16,* and MacBookAir9,1),
and also documents what names should be used for keyboard backlight
leds in Documentation/leds/well-known-leds.txt.

A previous version of this patch was sent alongside some other drivers
here[1] but for v2 I'm submitting it separately to make upstreaming
easier.

v1->v2:
- drop unneeded remove function
- combine set functions
- add missing header inclusions
- avoid char as argument in favour of u8
- handful of style/formatting fixes
- use standard led name ":white:kbd_backlight"
- rename USAGE_MAGIC_BL to HID_USAGE_MAGIC_BL
- New patch documenting preferred keyboard backlight names

[1]: https://lore.kernel.org/linux-input/7D70F1FE-7F54-4D0A-8922-5466AA2AD364@live.com/

Orlando Chamberlain (2):
  Documentation: leds: standardise keyboard backlight led names
  HID: apple-magic-backlight: Add driver for keyboard backlight on
    internal Magic Keyboards

 Documentation/leds/well-known-leds.txt |   8 ++
 MAINTAINERS                            |   6 ++
 drivers/hid/Kconfig                    |  13 +++
 drivers/hid/Makefile                   |   1 +
 drivers/hid/apple-magic-backlight.c    | 125 +++++++++++++++++++++++++
 5 files changed, 153 insertions(+)
 create mode 100644 drivers/hid/apple-magic-backlight.c

-- 
2.39.1


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/2] Add driver for keyboard backlight on Magic keyboards found on T2 Macs
@ 2024-07-01 19:18 Aditya Garg
  2024-07-01 19:20 ` [PATCH 1/2] Documentation: leds: standardise keyboard backlight led names Aditya Garg
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Garg @ 2024-07-01 19:18 UTC (permalink / raw)
  To: Pavel Machek, lee@kernel.org, Jonathan Corbet, Jiri Kosina,
	bentiss@kernel.org
  Cc: linux-leds@vger.kernel.org, linux-doc@vger.kernel.org,
	Linux Kernel Mailing List, linux-input@vger.kernel.org,
	Orlando Chamberlain, Kerem Karabay, Andy Shevchenko,
	Thomas Weißschuh

This patchseries adds support for the internal keyboard backlight of
Macs with Apple's "Magic" keyboard (MacBookPro16,* and MacBookAir9,1),
and also documents what names should be used for keyboard backlight
leds in Documentation/leds/well-known-leds.txt.

A separate driver for the purpose of backlight has been chosen because:

1. On the MacBookAir9,1 there is a USB device dedicated just for keyboard
  backlight by the name of Touchbar Backlight. Adding its support to any other
  hid-driver breaks the device.

2. Its now possible to use drm on the Touch Bar (similar to what macOS does).
  So, the Touch Bar drivers intended to be upstreamed before are no longer used.
  https://lore.kernel.org/all/868AA58D-2399-4E4A-A6C6-73F88DB13992@live.com/
  The driver that supports drm is still out of tree and yet to be submitted.

Orlando Chamberlain (2):
Documentation: leds: standardise keyboard backlight led names
HID: hid-apple-magic-backlight: Add driver for keyboard backlight on
internal Magic Keyboards

Documentation/leds/well-known-leds.txt | 8 ++
MAINTAINERS | 6 ++
drivers/hid/Kconfig | 13 +++
drivers/hid/Makefile | 1 +
drivers/hid/hid-apple-magic-backlight.c | 120 ++++++++++++++++++++++++
5 files changed, 148 insertions(+)
create mode 100644 drivers/hid/hid-apple-magic-backlight.c

-- 
2.39.2

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

end of thread, other threads:[~2024-07-01 19:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-16  4:12 [PATCHv2 0/2] Apple Magic Keyboard Backlight Orlando Chamberlain
2023-02-16  4:12 ` [PATCH 1/2] Documentation: leds: standardise keyboard backlight led names Orlando Chamberlain
2023-02-16  4:12 ` [PATCH 2/2] HID: apple-magic-backlight: Add driver for keyboard backlight on internal Magic Keyboards Orlando Chamberlain
2023-02-16  5:41   ` Thomas Weißschuh
2023-02-16  5:58     ` Orlando Chamberlain
2023-02-16 11:51     ` Andy Shevchenko
2023-02-16  7:10   ` Orlando Chamberlain
2023-02-16 11:49     ` Andy Shevchenko
  -- strict thread matches above, loose matches on Subject: below --
2024-07-01 19:18 [PATCH 0/2] Add driver for keyboard backlight on Magic keyboards found on T2 Macs Aditya Garg
2024-07-01 19:20 ` [PATCH 1/2] Documentation: leds: standardise keyboard backlight led names Aditya Garg

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