Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 02618C433EF for ; Sun, 16 Jan 2022 17:06:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 32311830DF; Sun, 16 Jan 2022 18:06:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=kpnmail.nl header.i=@kpnmail.nl header.b="AuGZsptd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5A6E98350D; Sun, 16 Jan 2022 18:06:25 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2CBCC81DCC for ; Sun, 16 Jan 2022 18:06:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org X-KPN-MessageId: 70e0aae3-76ee-11ec-8a6e-005056ab378f Received: from smtp.kpnmail.nl (unknown [10.31.155.39]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 70e0aae3-76ee-11ec-8a6e-005056ab378f; Sun, 16 Jan 2022 18:05:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kpnmail.nl; s=kpnmail01; h=mime-version:message-id:date:subject:to:from; bh=pdwxmLrqIze+L/LF4iRXmIfmHZm+DGg9dsYO7En/i1o=; b=AuGZsptdJ60icR80qV5ZhY4i15yUVE34StSiWZHPp4Fi/KGCR0h8sJKjR+5cHbgD3xCxx38TkPSbt cof3TNo7u4ZLNiRUc4hNLUXhuPD5SPV/wdQD1lwro7xVF1hxpZLrpbywWF/X4wBwaK77Emnoz653zp jbTOskWCnh41LMrw= X-KPN-VerifiedSender: No X-CMASSUN: 33|a1EeUUv6Ay55W5D1RfCLv0hG3ZOCBIdL+YTdYkc/f6mvvp9l2p7Zx5V6+/bqMw+ 9OvRMkZA8aPqxj30grNIjLw== X-Originating-IP: 83.163.83.176 Received: from copland.sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) by smtp.xs4all.nl (Halon) with ESMTPSA id a076be2f-76ee-11ec-81f5-005056ab7447; Sun, 16 Jan 2022 18:06:21 +0100 (CET) From: Mark Kettenis To: u-boot@lists.denx.de Cc: jagan@amarulasolutions.com, marcan@marcan.st, sjg@chromium.org, trini@konsulko.com, Mark Kettenis Subject: [PATCH 0/2] Apple M1 laptop keyboard support Date: Sun, 16 Jan 2022 18:06:11 +0100 Message-Id: <20220116170613.52392-1-kettenis@openbsd.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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. 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 | 255 ++++++++++++++++++++++++++++++ drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/apple_spi.c | 283 ++++++++++++++++++++++++++++++++++ include/configs/apple.h | 2 +- 9 files changed, 559 insertions(+), 1 deletion(-) create mode 100644 drivers/input/apple_spi_kbd.c create mode 100644 drivers/spi/apple_spi.c -- 2.34.1