From patchwork Mon Jun 26 03:12:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 13292258 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 16916EB64DD for ; Mon, 26 Jun 2023 03:12:57 +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=w4dARuk0bHg+Hvsa2Uxx1+2Rvwxe0Zzn7EhOa4vljsU=; b=h7lhkfPK3O2BUx qiB64fnlaxpI8ZSCbEy5pH0lZP8yIA1p8lIGKqMZ0JynuE6ldZXM03mWPRNLVI/YNQdcOpSAo50Vi c4D4pN0HBrHYUDeVex8C1dOwk+sfK+B0wwWZzbsmtIJUMvYXYjiWtGB03z6eGAeKBSnSe3/ermpUd i9h6GA/ADOSkErkXyySLbYgLri0WhU3JzWYYHi6FDE8HQcxrzXNgbi5gC3XlNn4nbgTRdmwKimKMk thWXR+UGeKtojOMYsnOptOFjPMJ7tHLuPO9dcEJVrtUyKNjNaWDyTc2Y+JWNaAWKXDDi3c5pHIPFe KHji2lacs+EMVx4gjR/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qDceX-009DFm-1S; Mon, 26 Jun 2023 03:12:33 +0000 Received: from gate2.alliedtelesis.co.nz ([2001:df5:b000:5::4]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qDceT-009DDL-1Z for linux-arm-kernel@lists.infradead.org; Mon, 26 Jun 2023 03:12:31 +0000 Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (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) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id CF3FC2C0547; Mon, 26 Jun 2023 15:12:20 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1687749140; bh=jaft/Wql30k5S8yiUIGneVwgwK9Vf12SNTJw/A9l/5c=; h=From:To:Cc:Subject:Date:From; b=ShCTtcPZUPzIvhJuok8iXidLPnKeiIp3gLaLTo4ajQf2ifq5Rf9/NRUBd1ey0mQj1 kOFjhGDsmCp0ApouNO/sOnNCQcnFR+AW64uS6vMHN1Vx7fY8UltPBj27qAx98q7TLd dAZR0KUFhmcj1vDe7+XBefwLCWI9uQOHYZ4COpA8CEqXuJTgonUuuWPFFHsLoyo3WW jmPWSKSqjssG9Hf+ktH9wYz4gIpmAgerRNxm0J1YxxhA/wjitU8KtbvpT+Cq9O4HGi upzg7syaFrlFQhCQuCHkxugZ/keI9yVOOabvk9nWYNyupkm6mMJLPiV5/kK1occvwE 8zkEMsglTyXKw== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Mon, 26 Jun 2023 15:12:20 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 9F65413EE4B; Mon, 26 Jun 2023 15:12:20 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 9D858283B1A; Mon, 26 Jun 2023 15:12:20 +1200 (NZST) From: Chris Packham To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregory.clement@bootlin.com, pierre.gondois@arm.com, arnd@arndb.de, f.fainelli@gmail.com Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chris Packham Subject: [PATCH v2 0/3] mtd: rawnand: marvell: add support for AC5 SoC Date: Mon, 26 Jun 2023 15:12:14 +1200 Message-ID: <20230626031217.870938-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Patchwork-Bot: notify X-SEG-SpamProfiler-Analysis: v=2.3 cv=NPqrBHyg c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=of4jigFt-DYA:10 a=VwQbUJbxAAAA:8 a=BTILRwyEkoqLbeD1fBkA:9 a=AjGcO6oz07-iQ99wixmX:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230625_201229_685770_8574C56E X-CRM114-Status: GOOD ( 11.73 ) 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 This series adds support for the NAND Flash Controller on the AC5/AC5X SOC. It needs to be applied on top of two other recent series [1] (applied to mtd/fixes and mainline) [2] (applied to nand/next). I've tried to stick to the minimal changes required to get the NFC working on the board I have (AC5X + S34ML02G2). Marvell's SDK has hard coded tables of ndtr values for the different timing modes but so far that seems unnecessary. [1] - https://lore.kernel.org/linux-mtd/20230525003154.2303012-1-chris.packham@alliedtelesis.co.nz/raw [2] - https://lore.kernel.org/linux-mtd/20230619040742.1108172-2-chris.packham@alliedtelesis.co.nz/raw Chris Packham (3): dt-bindings: mtd: Add AC5 specific binding arm64: dts: marvell: Add NAND flash controller to AC5 mtd: rawnand: marvell: add support for AC5 SoC .../bindings/mtd/marvell,nand-controller.yaml | 1 + arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 10 ++++++++++ drivers/mtd/nand/raw/Kconfig | 2 +- drivers/mtd/nand/raw/marvell_nand.c | 16 ++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-)