[PATCH v2 0/2] Apple M1 laptop keyboard support

Mark Kettenis kettenis at openbsd.org
Sun Jan 23 16:48:11 CET 2022


This short series implements support for the laptop keyboards on the
Apple Silicon Mac laptops.  These keyboards are connected to an SPI
bus, so this adds a driver for the SPI controller integrated on the
SoC, as well as the driver for the keyboard itself.  This makes it
possible to interact with U-Boot and EFI applications without the
need for an external USB keyboard.

ChangeLog:

v2: - Drop delay after enabling controller
    - Check for errors in spi calls
    - Add comments


Mark Kettenis (2):
  spi: apple: Add driver for Apple SPI controller
  input: apple: Add support for Apple SPI keyboard

 arch/arm/Kconfig              |   2 +
 configs/apple_m1_defconfig    |   1 +
 drivers/input/Kconfig         |   8 +
 drivers/input/Makefile        |   1 +
 drivers/input/apple_spi_kbd.c | 271 ++++++++++++++++++++++++++++++++
 drivers/spi/Kconfig           |   7 +
 drivers/spi/Makefile          |   1 +
 drivers/spi/apple_spi.c       | 285 ++++++++++++++++++++++++++++++++++
 include/configs/apple.h       |   2 +-
 9 files changed, 577 insertions(+), 1 deletion(-)
 create mode 100644 drivers/input/apple_spi_kbd.c
 create mode 100644 drivers/spi/apple_spi.c

-- 
2.34.1



More information about the U-Boot mailing list