From patchwork Wed May 1 14:06:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13650773 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 BCA60C4345F for ; Wed, 1 May 2024 14:07:13 +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=PRMS/CfTcTQk7Ir4pth1OIRmcHBt4NI0l8qXbzsH1Ws=; b=sWZevTMV9mSNjl Mu4khpob4xoDoM1lBL7P7pbXGYYIuwfV4G6FNV4Sk8a8lYYUgGWTJH04qPxjn+POU32rqc1ohdgzF QYsMcTe72YhEdxTqW8aJnPYwv1n7p9mIcw6fcXxPQ4jJfRYvhnmwqvKHOtWi5NTjOpecnsW0FinRV DmsE2LHIQDVrsZiHTZIyrb9gPWRlJ3aKyK2ajCGgKfqQTEJSTunF+YgHJMjfFSAjfNIjuY6jGzxvT +jK+F6Q32XvBKwk9WeOQqg33I4blwE9ANs1e+jvWOgUlyYj8Wo0eMzXm0fIVBITatfaKkPgrK9JXI pDZJNhyTc9E52hcX0paQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Abq-00000009lK0-1mRM; Wed, 01 May 2024 14:06:58 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Abn-00000009lJW-0yKp for linux-arm-kernel@lists.infradead.org; Wed, 01 May 2024 14:06:56 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D53026179B; Wed, 1 May 2024 14:06:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 064EDC072AA; Wed, 1 May 2024 14:06:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714572413; bh=AcR136gtgNUZp2TMJl2fBlKkyVpp9/41WyUGPmas4wE=; h=From:To:Cc:Subject:Date:From; b=b7VIk2YQmi+N58qtneuqPdrfCJNRsehkQ/LMxgFJGRQiaoxtu9Ux/gef49JVMGNvv YwI0s0cCDhyYLF39ixZpVKa9o/j3Of4lJGmQ9cOzZlKTcTSK/ghpjbsZ6cWcV4do6a QSF2FPuz5bll3/YfWIfjZtYpil8HPblYPSsBhKoHjWbGfHA+03oMLEG9/9S1C4D343 Kh6QmkdZjuuwlLhza3f9jPdiYMRu2fAHdpixEmA9VC54XVryOsJFpbmXcBmbBtszel J1BSd+jlTQon3li6yXI/54B78gLdRJbn/6s/HaqyTEi51Wi0KeknavALwayAdMoDz3 +Kn7ufz6FaM9A== From: Lorenzo Bianconi To: linux-spi@vger.kernel.org Cc: broonie@kernel.org, conor@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 v6 0/3] Add add spi-nand flash controller driver for EN7581 Date: Wed, 1 May 2024 16:06:40 +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-20240501_070655_336725_C7D8119F X-CRM114-Status: GOOD ( 11.10 ) 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 v5: - modify patch commit logs - cosmetic rework 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): spi: dt-bindings: Add binding doc for spi-airoha-snfi arm64: dts: airoha: en7581: Add 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 | 1124 +++++++++++++++++ 6 files changed, 1228 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml create mode 100644 drivers/spi/spi-airoha-snfi.c