This driver adds support for the keyboard on Apple Silicon laptops. The controller for this keyboard sits on an SPI bus and uses an Apple-specific HID over SPI protocol. The packets sent by this controller for key presses and key releases are fairly simple and are decoded directly by the code in this driver and converted into standard Linux keycodes. The same controller handles the touchpad found on these laptops. Packets for touchpad events are simply ignored. Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Simon Glass <sjg@chromium.org> Tested on: Macbook Air M1 Tested-by: Simon Glass <sjg@chromium.org>
20 lines
533 B
Text
20 lines
533 B
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_APPLE=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="t8103-j274"
|
|
CONFIG_DEBUG_UART_BASE=0x235200000
|
|
CONFIG_DEBUG_UART_CLOCK=240000
|
|
CONFIG_DEBUG_UART=y
|
|
CONFIG_SYS_LOAD_ADDR=0x880000000
|
|
CONFIG_USE_PREBOOT=y
|
|
# CONFIG_DISPLAY_CPUINFO is not set
|
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
|
# CONFIG_NET is not set
|
|
# CONFIG_MMC is not set
|
|
CONFIG_DEBUG_UART_ANNOUNCE=y
|
|
CONFIG_NVME_APPLE=y
|
|
CONFIG_USB_XHCI_HCD=y
|
|
CONFIG_USB_XHCI_DWC3=y
|
|
CONFIG_USB_KEYBOARD=y
|
|
CONFIG_APPLE_SPI_KEYB=y
|
|
CONFIG_VIDEO_SIMPLE=y
|
|
# CONFIG_GENERATE_SMBIOS_TABLE is not set
|