Hi all! This patch series aims to improve the Touch Bar support for x86 Macs. Recently, the hid-appletb-kbd and hid-appletb-bl drivers were upstreamed into the Linux kernel [1]. They enabled the Touch Bar to display a predefined set of media and function keys, exactly the same it does on Windows Bootcamp. Now, we are adding support for the DRM mode of the Touch Bar via these patches. The DRM mode enables the Touch Bar to act as a second display, just like macOS. So now you can add a widget, put a clock or anything else on the Touch Bar as long as you can develop a daemon. Credits for this driver should goto Ben (Bingxing) Wang on GitHub [2], who reverse engineered the protocol and made a Windows driver for the same. Credits also goto Kerem Karabay, the author of this patch series, who ported this Windows driver to Linux. The first patch adds emulation helper from XRGB8888 to BGR888 which is needed by this device and the driver. The second patch is the main DRM driver, required for the DRM mode. Currently, only T2 Macs are supported. Currently, a daemon named tiny-dfr [3] by Asahi Linux supports the Touch Bar in this mode by displaying the Function and Media keys. More such daemons can be made with more customisation in the future. For the case of T2 Macs, apple-bce [4], the driver for the T2 Security Chip is also needed for all the peripherals, including the Touch Bar to work. It is still WIP, and will be subsequently sent later to the appropriate tree. Till then, I'll suggest for get the driver from [4], or more preferably, get Linux support from https://t2linux.org/. Cheers Aditya [1]: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/log/?h=for-6.15/apple [2]: https://github.com/imbushuo/DFRDisplayKm [3]: https://github.com/AsahiLinux/tiny-dfr [4]: https://github.com/t2linux/apple-bce-drv Kerem Karabay (2): drm/format-helper: Add conversion from XRGB8888 to BGR888 drm/tiny: add driver for Apple Touch Bars in x86 Macs MAINTAINERS | 8 + drivers/gpu/drm/drm_format_helper.c | 54 ++ .../gpu/drm/tests/drm_format_helper_test.c | 81 ++ drivers/gpu/drm/tiny/Kconfig | 12 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/appletbdrm.c | 844 ++++++++++++++++++ include/drm/drm_format_helper.h | 3 + 7 files changed, 1003 insertions(+) create mode 100644 drivers/gpu/drm/tiny/appletbdrm.c -- 2.43.0