From patchwork Fri Apr 26 08:30:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13644329 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 6D6D7C19F4E for ; Fri, 26 Apr 2024 08:33:45 +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=qcFJYjd9soO+fBMui8V+xlgGWcI0ugoBoYH8UXfOB7A=; b=ltAtZIG2hOjwju TU7i/Onb/IjSwy4Bpg1E1qs4nddhEO3oqMtnMh/dT+AffCm8aCRZG+Bnl0LG/le9OzgQXdXgzxetQ G1CGo+b3xMjta3GaxqEMACmasgQMJYDE22zTElabMk4hWtsLv/p5uIedSuddKgTseVPl2fDVBxErj TCcOmt0X1xDQDt8ZHIhFKsgUpiZ8sUEFA1R3lZ7GEeFyhd79avN/8tx530q+/kRSa8MF73LSd8tHv 1PpmgrsS9qk0rfVmLRm4ipQotWzKnQsrgf7QdO8y5uZr31s3XejcECHFMfOFA5J/nclKikqNcZI/v 6YVkHIUsd1g8+55gvLOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0H1M-0000000BhLB-39Lq; Fri, 26 Apr 2024 08:33:28 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Gz4-0000000BfoW-0mbC for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 08:31:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 9C00B61E83; Fri, 26 Apr 2024 08:31:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E77B8C2BD10; Fri, 26 Apr 2024 08:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714120264; bh=xEJxo/IFZ1VAdQlbjcXpjYoT0TT7S1CbrsmFgJ9ucSU=; h=From:To:Cc:Subject:Date:From; b=J5qPrCvrcdOOnmUzXoTGMaLhG4gywToNkM3hPZMGL9EETjhoukxuRLiLmtNwUdOVp hXcrNyjPhJh+M527exCzJN8zPQew3UE2P/JIWq8Kv5bsoQBmHTBr4Hd5w4bdrGomZG RYjfjYTl3DtfV6dk/8wDtYHWWV2PX2W6xsQGfDyICxQNsdkX0oNLqh6sKxQTKkP8Ga QLg6i98voVJwl3Nb9yi6F/A7O8sJsusQQ7kdNPwhfyZDQd4IbwW7ITqJLKJZ4MFSNV 4QH0/Y/58aDuMgCtzDbxfwr8Qq3njhc39i+YI+pG12ozU0g7NFnId4KtCRpM9nEU8f 2nw3OPNXl3neA== 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 v4 0/3] Add add SPI-NAND Flash controller driver for EN7581 Date: Fri, 26 Apr 2024 10:30:50 +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-20240426_013106_306617_EEF96FF3 X-CRM114-Status: UNSURE ( 9.64 ) 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 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 | 1140 +++++++++++++++++ 6 files changed, 1244 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml create mode 100644 drivers/spi/spi-airoha-snfi.c