| Message ID | 20241106085507.76425-1-bastien.curutchet@bootlin.com |
|---|---|
| Headers | show
Return-Path:
<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
secure) header.d=lists.infradead.org header.i=@lists.infradead.org
header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uG4BOM71;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256
header.s=gm1 header.b=KDRfvLS9;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=none (no SPF record) smtp.mailfrom=lists.infradead.org
(client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;
envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;
receiver=patchwork.ozlabs.org)
Received: from bombadil.infradead.org (bombadil.infradead.org
[IPv6:2607:7c80:54:3::133])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4XjzYz4l8rz1xyX
for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 19:55:35 +1100 (AEDT)
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=5cZJf6BojHddKBvo+Fc0d8JR06tUy+CH3HH6dsAS8qY=; b=uG4BOM71kyEcj3
EVUvCFQ+yRbWr14mdxExjJVuqJNgop4QYMgGxAGxj5/zeHt3lGVs3SJDpg9pPmI8J+wJujm9Gr+FD
/WqgY6fI4MyWazH3dBaTYDRZM5U90ql/WXSWAK6LoZNL0rhkipclQfIR+5/GzU4BBSt27elLE34nj
kt65J3T8Rr9kRsF67RrbgNkRY4IreIpMJ5AblwRDB24USD/pXzjusEsY1duZU2Ivwb92Cjk26OX1f
FzHUeoJH44HPOCiYDnKmzaVLrX/djD/D57AXB2CVv8AGi1TvHRjWVTsaCM25O8bQm9alHgGaeAHRM
X68ZFxlIsrzCCD3U2d8w==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux))
id 1t8bou-00000002Mac-0olS;
Wed, 06 Nov 2024 08:55:20 +0000
Received: from relay5-d.mail.gandi.net ([217.70.183.197])
by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux))
id 1t8bop-00000002MWu-47i7
for linux-mtd@lists.infradead.org;
Wed, 06 Nov 2024 08:55:18 +0000
Received: by mail.gandi.net (Postfix) with ESMTPA id 101EF1C000A;
Wed, 6 Nov 2024 08:55:09 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1;
t=1730883311;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding;
bh=DK3aO1Ft6P60EgK01AvhNU8ciFPwjwRQCU5JDKN6QFM=;
b=KDRfvLS9HeE6reR09UlcPAaftktG9Pcxj3vpz+diP6NOyaJ/2eajMgQIvyaweGHKzNQFuA
vJ7BkmT+7ZBD/SFkyPsabM8OGsu/CZnYXiszvHBAx9dqDRGmW/TM4dGoZJEt3jSk13Hi5K
I7Y4/PE2duw5D3zHP8lKQN4sSBYLT8VSczV81VbnTN6fWInMXnMq9px8o/ACUpORLh097X
nguMtvSLrXLWRcJML6LFOWDqdwMM5Wxy07SUjURfQJPf2HM/p81Sk3k9Qj6nQ2Lgxueci3
QX0KgYPj2gp9LdLpk7Agz+rY7yUGkumxAn3vtQmLGWah5xmfauZB00TUtR2rYQ==
From: Bastien Curutchet <bastien.curutchet@bootlin.com>
To: Santosh Shilimkar <ssantosh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-kernel@vger.kernel.org,
linux-mtd@lists.infradead.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Herve Codina <herve.codina@bootlin.com>,
Christopher Cordahi <christophercordahi@nanometrics.ca>,
Bastien Curutchet <bastien.curutchet@bootlin.com>
Subject: [PATCH v2 0/6] Implement setup_interface() in the DaVinci NAND
controller
Date: Wed, 6 Nov 2024 09:55:01 +0100
Message-ID: <20241106085507.76425-1-bastien.curutchet@bootlin.com>
X-Mailer: git-send-email 2.47.0
MIME-Version: 1.0
X-GND-Sasl: bastien.curutchet@bootlin.com
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20241106_005516_458985_F51DE7D5
X-CRM114-Status: GOOD ( 14.13 )
X-Spam-Score: -2.8 (--)
X-Spam-Report: Spam detection software,
running on the system "bombadil.infradead.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Hi all,
This patch series aims to implement the setup_interface()
operation in the DaVinci NAND controller to enable the use of all ONFI
modes
and improve the NAND access speed. PATCH 2 depends on PATCH 1 PATCH 6
depends
on PATCH 2-4-5
Content analysis details: (-2.8 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[217.70.183.197 listed in sa-accredit.habeas.com]
0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[217.70.183.197 listed in
sa-trusted.bondedsender.org]
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
-0.0 SPF_PASS SPF: sender matches SPF record
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK
signature
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4)
[217.70.183.197 listed in wl.mailspike.net]
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low
trust
[217.70.183.197 listed in list.dnswl.org]
0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[217.70.183.197 listed in
bl.score.senderscore.com]
0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
X-BeenThere: linux-mtd@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>,
<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/>
List-Post: <mailto:linux-mtd@lists.infradead.org>
List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>,
<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org>
Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org
|
| Series |
Implement setup_interface() in the DaVinci NAND controller
|
expand
|
Hi all, This patch series aims to implement the setup_interface() operation in the DaVinci NAND controller to enable the use of all ONFI modes and improve the NAND access speed. PATCH 2 depends on PATCH 1 PATCH 6 depends on PATCH 2-4-5 This NAND controller is present in the DaVinci (OMAP L138) and Keystone2 SoCs and functions as a 'child' of the AEMIF controller. So its timings are set by the AEMIF controller itself from device-tree properties. Implementing the setup_interface() callback implies being able to update dynamically these timings, so the first two patches of the series modify the AEMIF driver to provide its 'children' a way to modify their chip select timing configuration. The remaining patches implement the setup_interface() operation. The computation of the register's contents is directly based on ยง20.3.2.3 of the OMAP-L138 TRM [1] This has been tested on two platforms based upon the DaVinci SoC. One is interfaced with a Macronix MX30UF4G18AC NAND, the other with a Toshiba NAND. [1] : https://www.ti.com/lit/ug/spruh77c/spruh77c.pdf Change log: * v2 Cover letter : - Add dependency details - Remove the question about ti-aemif.h location PATCH 1 : - Fix aemif_cs_timings's description in the comments PATCH 2 : - Fix typo in the config_cs_lock's description in the comments - Move include/memory/ti-aemif.h to include/linux/memory/ti-aemif.h PATCH 3 [NEW] : - Fix dependency issue with aemif controller in Kconfig PATCH 5 : - Add details about the clock bindings in the commit log - Replace devm_clk_get() with devm_clk_get_enabled() - Use dev_err_probe() to return the devm_clk_get_enabled() error Bastien Curutchet (6): memory: ti-aemif: Create aemif_set_cs_timings() memory: ti-aemif: Export aemif_set_cs_timings() mtd: rawnand: davinci: Always depends on TI_AEMIF mtd: rawnand: davinci: Order headers alphabetically mtd: rawnand: davinci: Add clock resource mtd: rawnand: davinci: Implement setup_interface() operation drivers/memory/ti-aemif.c | 102 +++++++++++++++++++--------- drivers/mtd/nand/raw/Kconfig | 4 +- drivers/mtd/nand/raw/davinci_nand.c | 93 +++++++++++++++++++++++-- include/linux/memory/ti-aemif.h | 31 +++++++++ 4 files changed, 191 insertions(+), 39 deletions(-) create mode 100644 include/linux/memory/ti-aemif.h