From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BB5D33F59E for ; Mon, 22 Jun 2026 17:11:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782148276; cv=none; b=oGYIhoX/W/M/l7JuIa4USwuxcezHsYIKB0saYDdDAHuDtYvrNpHx+MlPw5Q9hjfydSJnOnxqNYs8FHSyKEP/iH8AOVVq43Y0tWkUdb59T4XWZpfw/aC76Fs9Y4xJITZXSXpU9xwhZU4wQL+BKjCo7e74s739lYSdrti5lY09qG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782148276; c=relaxed/simple; bh=BfrcLv4GnrH8Yz0Wa6y+hsOL6W6hwvomCpv3lLR+OOE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Za8BDDoeskJXltfHrQn24LqbFBn0VsGDn26An7qlE82x05lefqPCtn9Ka7+y5Q3WBkm0HJVtzq4HBQKHj0gYl4ouaazp35Xt2zAt2YM3BzYLasTagnVYkXBUV0crR6j/QMglFcC5tUvzFeRdX6Te6AdHoKkPSzChTr4wz7Kd0v0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=xDPen3V6; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="xDPen3V6" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id D525A4E40110; Mon, 22 Jun 2026 17:11:12 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 97034601BB; Mon, 22 Jun 2026 17:11:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E3BBD106C8985; Mon, 22 Jun 2026 19:11:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1782148271; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=udTrftYgU70f6ssJVopKHx4JxPNGXTrbdi0A2JgqHSg=; b=xDPen3V6VcxSbnYKi5N2dl5YBkn0e6b6hVX638BooXj9h6cMpp2Ghmz3zAL1uUO7R+mYlT l8d0mTrdtSkRdXoSTRXfjRZa1WJ7v9ZE0rkcRhe/r3WUOPLjqSV5nHJj+WhzThg+gFs5am CH90OgjK0HueBEWaYQfLqJDSImtFO3caA65uC7XtzXgNOPI0hBmVAcJyWYp40s3nfaNEAk YTmB9fs+Yair2dPVIzkl3gwpeHlXWm2FujIBvh95WWWEGLmy12Atg+jI1u/3dvxLqNwhmF bEPgeoYKSWW8jEOSd7w02Mz8pYzjyZ+ngdodnoIXx0Qh/7xyIyxbmNiWWgA8/g== From: Miquel Raynal To: Krzysztof Kozlowski Cc: Santhosh Kumar K , broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, richard@nod.at, vigneshr@ti.com, pratyush@kernel.org, mwalle@kernel.org, takahiro.kuwano@infineon.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, praneeth@ti.com, u-kumar1@ti.com, a-dutta@ti.com Subject: Re: [PATCH v4 02/16] spi: dt-bindings: add spi-phy-pattern-partition property In-Reply-To: <20260622-jasmine-mandrill-of-emphasis-eebb4c@quoll> (Krzysztof Kozlowski's message of "Mon, 22 Jun 2026 11:17:47 +0200") References: <20260618073725.84733-1-s-k6@ti.com> <20260618073725.84733-3-s-k6@ti.com> <20260622-jasmine-mandrill-of-emphasis-eebb4c@quoll> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Mon, 22 Jun 2026 19:11:06 +0200 Message-ID: <87zf0m5wlx.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hello, >> + spi-phy-pattern-partition: > > Is this specific to SPI-based MTD/NAND or rather broader - specific to > MTD/NAND memories, regardless of interface? Feels like the second, thus > maybe should be placed into the NAND bindings. > > If the first, then in below description: > > s/PHY/SPI PHY/ to be clear that this is about SPI, not the memory > itself. As far as I know, there is no raw NAND controller with such capability. In the raw/parallel NAND world, timings are well defined by the ONFI specification, it covers both the bus timings and the minimal requirements for the chips. There is a method to query what "timing mode" the NAND chip supports, and then we tune the controller registers to fit the highest supported timings (capped by possible controller limits). In the SPI world it is different. No specific timing has ever been globally defined, so every manufacturer has its own capabilities which are not discoverable dynamically. The routing also weights a lot. I would say that we can safely keep this property SPI related, because it is about the SPI bus being used with optimized timings, rather than some kind of memory specific feature. The reason why we need a property in those memories for the feature to work, is because we need to make data transfers with a known pattern, thus requiring to read the pattern from the internal array somehow. Therefore, we shall indeed go for the s/PHY/SPI PHY/ naming indeed. Thanks, Miqu=C3=A8l From mboxrd@z Thu Jan 1 00:00:00 1970 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 11F79CDB46F for ; Mon, 22 Jun 2026 17:11:26 +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:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A6x75hicT1VN6DcCn1jVdp2RuAAfcXn6X8/EhXs4Am4=; b=q+SzL/AXDhWWH6 rAhM/lK7GSUpgEl644HpaYvQvP4chws0eXknE8wmv6/6wSLnod/x1glMgxUoIZdw9baj8N4qwqM+G 5nFH9Rl6bX29lnZd0zGD9de9QGo86BCYKPdg+WJRVwkqRXIsNURCpN26s+9++s39UcuYwYkxhq5en ouiuvI9OuiD7YTpDnV+duNoP5gP/BdBH5+Ycva29HExqiJ4+J7d31CRZeDOhwsfuag37/5p6yy9Y/ zCqOri7wMwWMwp/sh+tm4iZA6QF68DliSYtOlQkBPjdbqTRmQFdEvnXamONQH9hnMmyEs7mM6boH4 MX1NCUr2U1KZKK6D7v5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbiB7-00000005Ey5-1Oya; Mon, 22 Jun 2026 17:11:21 +0000 Received: from smtpout-03.galae.net ([185.246.85.4]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbiB4-00000005ExR-0YX5 for linux-mtd@lists.infradead.org; Mon, 22 Jun 2026 17:11:20 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id D525A4E40110; Mon, 22 Jun 2026 17:11:12 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 97034601BB; Mon, 22 Jun 2026 17:11:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E3BBD106C8985; Mon, 22 Jun 2026 19:11:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1782148271; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=udTrftYgU70f6ssJVopKHx4JxPNGXTrbdi0A2JgqHSg=; b=xDPen3V6VcxSbnYKi5N2dl5YBkn0e6b6hVX638BooXj9h6cMpp2Ghmz3zAL1uUO7R+mYlT l8d0mTrdtSkRdXoSTRXfjRZa1WJ7v9ZE0rkcRhe/r3WUOPLjqSV5nHJj+WhzThg+gFs5am CH90OgjK0HueBEWaYQfLqJDSImtFO3caA65uC7XtzXgNOPI0hBmVAcJyWYp40s3nfaNEAk YTmB9fs+Yair2dPVIzkl3gwpeHlXWm2FujIBvh95WWWEGLmy12Atg+jI1u/3dvxLqNwhmF bEPgeoYKSWW8jEOSd7w02Mz8pYzjyZ+ngdodnoIXx0Qh/7xyIyxbmNiWWgA8/g== From: Miquel Raynal To: Krzysztof Kozlowski Cc: Santhosh Kumar K , broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, richard@nod.at, vigneshr@ti.com, pratyush@kernel.org, mwalle@kernel.org, takahiro.kuwano@infineon.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, praneeth@ti.com, u-kumar1@ti.com, a-dutta@ti.com Subject: Re: [PATCH v4 02/16] spi: dt-bindings: add spi-phy-pattern-partition property In-Reply-To: <20260622-jasmine-mandrill-of-emphasis-eebb4c@quoll> (Krzysztof Kozlowski's message of "Mon, 22 Jun 2026 11:17:47 +0200") References: <20260618073725.84733-1-s-k6@ti.com> <20260618073725.84733-3-s-k6@ti.com> <20260622-jasmine-mandrill-of-emphasis-eebb4c@quoll> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Mon, 22 Jun 2026 19:11:06 +0200 Message-ID: <87zf0m5wlx.fsf@bootlin.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260622_101118_343682_697AB2B0 X-CRM114-Status: GOOD ( 10.62 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org SGVsbG8sCgo+PiArICBzcGktcGh5LXBhdHRlcm4tcGFydGl0aW9uOgo+Cj4gSXMgdGhpcyBzcGVj aWZpYyB0byBTUEktYmFzZWQgTVREL05BTkQgb3IgcmF0aGVyIGJyb2FkZXIgLSBzcGVjaWZpYyB0 bwo+IE1URC9OQU5EIG1lbW9yaWVzLCByZWdhcmRsZXNzIG9mIGludGVyZmFjZT8gRmVlbHMgbGlr ZSB0aGUgc2Vjb25kLCB0aHVzCj4gbWF5YmUgc2hvdWxkIGJlIHBsYWNlZCBpbnRvIHRoZSBOQU5E IGJpbmRpbmdzLgo+Cj4gSWYgdGhlIGZpcnN0LCB0aGVuIGluIGJlbG93IGRlc2NyaXB0aW9uOgo+ Cj4gcy9QSFkvU1BJIFBIWS8gdG8gYmUgY2xlYXIgdGhhdCB0aGlzIGlzIGFib3V0IFNQSSwgbm90 IHRoZSBtZW1vcnkKPiBpdHNlbGYu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