From patchwork Sun Dec 12 03:47:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hector Martin X-Patchwork-Id: 12695785 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B82BAC433F5 for ; Sun, 12 Dec 2021 03:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8G1Wlfgdf0+uIHO54HyTPJCTkjSuthbn5SfaUtsxUqg=; b=iqRQY8kgeSzOff QD9/EEJyeyAYz+T+NXnyXL85OEnaGE1TZeg87l3WBd5f/UquUmwhdu/bFGUsTsf65auYHew+3vm9h Ab0SncfV6dcmagycGu8NVlD2VcGNVrzc6lTBxkwcgfQAN6u4VIv1umZmag79q2MyXgeIVQwQPjaSD cOIEsSjNj5JIFkb8QlaLA3Ndtino5c4c3TQs6a+uWxnSzWpApPn2QsOVthVfCZbqrXApuZZxDgE+W PR1EuurW1jJbLDD7pMrcDG/7vtfUBdagsvbioiaGycPcKNJ9vsRkqKnSVnD+Vqf5NtkfQohuagcO9 eg5ffNJTjKPeVrUrazYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwFq0-005tiL-2B; Sun, 12 Dec 2021 03:47:48 +0000 Received: from marcansoft.com ([2a01:298:fe:f::2] helo=mail.marcansoft.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwFpw-005tfe-Pg for linux-arm-kernel@lists.infradead.org; Sun, 12 Dec 2021 03:47:46 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hector@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id C152B419BC; Sun, 12 Dec 2021 03:47:36 +0000 (UTC) From: Hector Martin To: Sven Peter , Mark Brown , Rob Herring Cc: Hector Martin , Alyssa Rosenzweig , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Apple SPI controller driver Date: Sun, 12 Dec 2021 12:47:23 +0900 Message-Id: <20211212034726.26306-1-marcan@marcan.st> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211211_194745_011697_1C1A165C X-CRM114-Status: GOOD ( 13.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This short series adds a new SPI controller driver for Apple SoCs. It is based on spi-sifive. It has been tested with the generic jedec,spi-nor support and with a patched up input/keyboard/applespi.c (though we're going to write a new driver for the keyboard; that's a story for another time). As usual, I'm splitting off the MAINTAINERS and DT binding changes. We would rather merge the MAINTAINERS change through the Asahi-SoC tree to avoid merge conflicts as things trickle upstream, since we have other submissions touching that section of the file. The DT binding change can go via the SPI tree or via ours, but it's easier if we merge it, as then we can make the DT changes to instantiate it without worrying about DT validation failures depending on merge order. Hector Martin (3): MAINTAINERS: Add apple-spi driver & binding files dt-bindings: spi: apple,spi: Add binding for Apple SPI controllers spi: apple: Add driver for Apple SPI controller .../devicetree/bindings/spi/apple,spi.yaml | 63 ++ MAINTAINERS | 2 + drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/spi-apple.c | 566 ++++++++++++++++++ 5 files changed, 640 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/apple,spi.yaml create mode 100644 drivers/spi/spi-apple.c