From patchwork Mon Apr 29 08:13:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13646438 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 10EB9C4345F for ; Mon, 29 Apr 2024 08:13:44 +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=z7T8Uv5OiPANvrRc8i5IvrwUA3YBGqdbh49cg2nyeTI=; b=TmzFi7Ohzv4sKw HAiNw5BETur4eP2mUdnu4HT4mlDiidJWMZU3/aF+IWxs/ErIjpbSkCXfw5iqLFd86XlqKFuMjIeOh Q2hIRzLvk8GoYEPar5d7WF7vPGSSA0TRWx24ulS0AWMoo394CRF4X+W5LX8Ij8zfVX+Qz2rDjS+4y MKlJjqRkcbRDY/0dqBdoO055FIbjzLahtziWPDoIBIBO5PjEWnxNlJ5PoyzlZwTcaACBjHP6ifIFQ ziRhWf2iA11CVWDNp7pcloYwODZBPJ6RUUGm6czAk6tm/XPGcjHAt3aKBE4FnD7zY2REeMIuAxdoW fL0MT+4+I8A2dZ8caPtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1M8h-00000001vEW-1LVH; Mon, 29 Apr 2024 08:13:31 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1M8e-00000001vDO-2JzM for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2024 08:13:30 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 466A8CE09FD; Mon, 29 Apr 2024 08:13:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28A60C4AF18; Mon, 29 Apr 2024 08:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714378401; bh=T7Eygal6aBMNI+EhMYkMgd2zHgQb/3RTGV+3ifg4ZDc=; h=From:To:Cc:Subject:Date:From; b=G0f28w5bShORYkOpUc+NkUt7kHrFgMsEIHH05fkprA00X/UhwPdNQiWfh7bKFWmY7 Bqpj4IwWTRhIyykOink1+/KHHMdx1rskPwAes0axDBdQGVMs1cUqyU78+5kVtKhGp0 71BD4mg4gk2TYeV8ae6F15EIWWEqsWyOXYYggnxQPHlCuL4rZKbJhm5OmHM1og/NHO TDGVIlKb71HUAGJlFT4W0rR3P19xbJntx/DK0AP6ND55nOZotzdU0IMTFKaxl8A0ii 6txg8K5Alr9oR/IKByXup+hg5heOvc7j3GDscITp5HK86fh877V2BpKS+2F+GP9CBZ iEVnojpWUIvtQ== From: Lorenzo Bianconi To: linux-spi@vger.kernel.org Cc: conor@kernel.org, broonie@kernel.org, lorenzo.bianconi83@gmail.com, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, nbd@nbd.name, john@phrozen.org, dd@embedd.com, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, andy.shevchenko@gmail.com Subject: [PATCH v5 0/3] Add add SPI-NAND Flash controller driver for EN7581 Date: Mon, 29 Apr 2024 10:13:07 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_011329_024413_CF62E844 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. 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 Introduce support for SPI-NAND driver of the Airoha NAND Flash Interface found on Airoha ARM EN7581 SoCs. Changes since v4: - rely on devm_platform_ioremap_resource() routine - rework airoha_snand_is_page_ops() routine Changes since v3: - rely on devm_kzalloc() to allocate airoha_snand_dev buffers - rely on dev_err_probe() - cosmetic rework Changes since v2: - Fix compilation warnings - Remove interrupt entry in dts since it is not connected so far Changes since v1: - Introduce spi clock dependency Lorenzo Bianconi (3): dt-bindings: spi: airoha: Add YAML schema for SNFI controller arm64: dts: airoha: add EN7581 spi-nand node spi: airoha: add SPI-NAND Flash controller driver .../bindings/spi/airoha,en7581-snand.yaml | 65 + MAINTAINERS | 9 + arch/arm64/boot/dts/airoha/en7581.dtsi | 19 + drivers/spi/Kconfig | 10 + drivers/spi/Makefile | 1 + drivers/spi/spi-airoha-snfi.c | 1129 +++++++++++++++++ 6 files changed, 1233 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml create mode 100644 drivers/spi/spi-airoha-snfi.c