Message ID | 20230626031217.870938-3-chris.packham@alliedtelesis.co.nz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7226940vqr; Sun, 25 Jun 2023 20:54:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Tf63bTJJefBRUGmQVs+z6kNNFPN7AW+npTrxGPQeaZYG1m0zUvaLDxpEi6zrh/Ji1/qSi X-Received: by 2002:a2e:3e13:0:b0:2b5:813c:b74f with SMTP id l19-20020a2e3e13000000b002b5813cb74fmr8832365lja.5.1687751675641; Sun, 25 Jun 2023 20:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687751675; cv=none; d=google.com; s=arc-20160816; b=iD/c3KyO1SMPG/+RowFZEqytMjANZomwLv8FRLrCherA/Pden3M/UWddKn2V2ljEr8 GPZIbIfiFx5QZliW3SNjVhGYt+tlxr+r4na1NSYjuaPFNmYjy8l8xGMAK6AgSi5UDamG 56L8Mr6OFEPDF4DZxDXAP68L6WsMgEVj5DztAEAH1RlVKp9DGFHUpPkf5QpQfwSs35vR thG4iPt8Q51Q5e09P6/d2EzoEtS0pnUa5ytjlnk0yRp4rWThOf8ub7+g7fdnqpwvuePz F+ifrcQZk2CUGQKWXtThrxAgRto+YwuyqcFEFEf5cOUriSJG+Mon+3Rr7mYMiqpEmRYy I+RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qyuUI+GTbigVnLlHtbXT9nNOWssZWdbxI7Bqwiieak8=; fh=u1T6lzBhedTY+P8JX/fXlYyShslneoAz5x8mqfe6RIo=; b=HVbrxUUbFf5NKTrC/LgaTskmpQ9HKnxwUW2BEs0iRDTopW39O/+tReCNtR8eP+Ad1U 1DsAfPC2y/oysxwL5M0FWDkirrJ17pHFtH2wLyHXjjAzQ3tqCk6bQsDxjzhmzfD12uNp qQCss1z42uWg7K5aBRksaevio+zG34m94fa7Ojhb2y/hshXgfE88SyRos+TkS06Lnee9 YqEm0fbsVqYjYV5wN2xUDW48QgG+IrOJXMWFyWCGJqiyTNITVAW1yxtPJuxyK8VZ6iER vnHlGMjBElUbI+6F/i6E65iWE3FXB0wHTJJv3piSMJJqVsB8PPvkAPA0gHiPhlYMXO/B Br1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=TY67yQ5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a056402114f00b0051878e08975si2095622edw.441.2023.06.25.20.54.11; Sun, 25 Jun 2023 20:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=TY67yQ5B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230468AbjFZDMn (ORCPT <rfc822;filip.gregor98@gmail.com> + 99 others); Sun, 25 Jun 2023 23:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbjFZDM1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 25 Jun 2023 23:12:27 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34A7CE56 for <linux-kernel@vger.kernel.org>; Sun, 25 Jun 2023 20:12:24 -0700 (PDT) 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 039782C055E; Mon, 26 Jun 2023 15:12:21 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1687749141; bh=qyuUI+GTbigVnLlHtbXT9nNOWssZWdbxI7Bqwiieak8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TY67yQ5BxL4sg46haJEXGpozSvX91Y9otoDTdYdGTAgQK9k7JKEi0shHHL1nD0QBL lRpxpsXG4qUu/NhcZi2ZZUWUX+wIDDwc7duAFdNAqpxYokrq8Erf0u2VP4FFkIk5GT pnjMPpOv+Fwsqv+1XOA3QYQwDh1DM9GmUBWA82ejx04A0+7MDrx6qZmNppfaUJj0YC 0B5A+1nBwo/NFTK4U9lAuG1zac9mvZ8uWa8etqpX5a/CnimYlEERbuFq5IM/g6ygtr EffuJplMzPQZu48Q/K38rVjS7ecvNpGfKCKONNCzu+AqCQhx3laxdXtnWAjBvxJKHs bB3VYsojSPXRw== 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 <B649902140002>; 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 A24D013EE63; Mon, 26 Jun 2023 15:12:20 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id A2BC6283B3E; Mon, 26 Jun 2023 15:12:20 +1200 (NZST) From: Chris Packham <chris.packham@alliedtelesis.co.nz> 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 <chris.packham@alliedtelesis.co.nz> Subject: [PATCH v2 2/3] arm64: dts: marvell: Add NAND flash controller to AC5 Date: Mon, 26 Jun 2023 15:12:16 +1200 Message-ID: <20230626031217.870938-3-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230626031217.870938-1-chris.packham@alliedtelesis.co.nz> References: <20230626031217.870938-1-chris.packham@alliedtelesis.co.nz> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=NPqrBHyg c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=of4jigFt-DYA:10 a=AWclJRrDGzD0f9BZm7oA:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769735901306883588?= X-GMAIL-MSGID: =?utf-8?q?1769735901306883588?= |
Series |
mtd: rawnand: marvell: add support for AC5 SoC
|
|
Commit Message
Chris Packham
June 26, 2023, 3:12 a.m. UTC
The AC5/AC5X SoC has a NAND flash controller (NFC). Add this to
the base SoC dtsi file as a disabled node. The NFC integration
on the AC5/AC5X only supports SDR timing modes up to 3 so requires a
dedicated compatible property so this limitation can be enforced.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v2:
- New.
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On 26/06/23 15:12, Chris Packham wrote: > The AC5/AC5X SoC has a NAND flash controller (NFC). Add this to > the base SoC dtsi file as a disabled node. The NFC integration > on the AC5/AC5X only supports SDR timing modes up to 3 so requires a > dedicated compatible property so this limitation can be enforced. > > Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> > --- > > Notes: > Changes in v2: > - New. > > arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi > index 8bce64069138..74d644e0c29e 100644 > --- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi > +++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi > @@ -296,6 +296,16 @@ spi1: spi@805a8000 { > status = "disabled"; > }; > > + nand: nand-controller@805b0000 { > + compatible = "marvell,ac5-nand-controller"; > + reg = <0x0 0x805b0000 0x0 0x00000054>; > + #address-cells = <0x1>; > + #size-cells = <0x0>; > + interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&cnm_clock>; Actually I think I've just noticed a problem with this. The NFC uses a different clock not the cnm one. It's not a gating clock like other SoCs and they're close enough frequency wise so it mostly works. I'll update this to add a dedicated nand-clock for v3. > + status = "disabled"; > + }; > + > gic: interrupt-controller@80600000 { > compatible = "arm,gic-v3"; > #interrupt-cells = <3>;
diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi index 8bce64069138..74d644e0c29e 100644 --- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi +++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi @@ -296,6 +296,16 @@ spi1: spi@805a8000 { status = "disabled"; }; + nand: nand-controller@805b0000 { + compatible = "marvell,ac5-nand-controller"; + reg = <0x0 0x805b0000 0x0 0x00000054>; + #address-cells = <0x1>; + #size-cells = <0x0>; + interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cnm_clock>; + status = "disabled"; + }; + gic: interrupt-controller@80600000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>;