Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1243887pxf; Fri, 12 Mar 2021 05:34:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1fJGI8TwCCrNcjYw4XBKZsJflKEwEPZmVrWaXCVnzlTK86zwnnPM/95E1UUcAJa3mEYKW X-Received: by 2002:a17:906:eb4e:: with SMTP id mc14mr8347733ejb.169.1615556082196; Fri, 12 Mar 2021 05:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615556082; cv=none; d=google.com; s=arc-20160816; b=uEmPjjFX5VwpObRawSvdO0muJanUeyWUw3dfp7pFeZ+ZA9V8hd1k2nJ+DebHodu+g2 vxk02Gc60mWGVEACpgHgAB2K58CBUPXcSroPovrCx7xKGf92UwLmO3O0m0gW5g/Ynt2e qJ2b0mZPIqs9wfpofhOeaPpD9ziiTmv++ZanLx1UPgirD6qP7MGOrYeOIrJVfrP2qTrq iXr7T3FxiYw6xoJ2aLdA4YI3Cdo5XZk6Bn/UkgD/4Opo5veQkJCiIFZlojH8VsRhMOpj MK3qhMNuDJwMRhY3yk0+6AsxA1o1z/t9vChesOLl1F5gX6ZrDRJAtJEhI+SCdj479U4i 1rfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=QBuZP8POWp3qMMHBSO5zfPwntXaxLE+5SncR7mrkwkQ=; b=jJYhNpXCBvxCawS6bsZgeek+6j4iRmqDzJGq4U2AKvYCtChtbvjdMVyYXYP2cAIcPE PV4RzLrEBd8m2k+FZLyAljxexZ3woDTxTVu1ZUXcgSgfEno1j7B/Y2FOD+Mcvw/6S19L PRMgonn5RN12n8yiTkyV8e61qt7vQZ8Mjzqk0Oa9LqNp5t5gZsXJeked2fRfJ3JXmPu1 V8kw0MOxaY3yiXCQ16edfbAY6T3ND7EDy7e5PEB/W6iizEkFOqMZiXdeQPmwkkTr+u+y nIgphp3fV1nbSLkmwvKgee+vw3Y3qUVXBqdrpOZ9JzaheeKCy6Hfd6jczJSf0glD6uoc hTIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=fVeBkdcb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si3911710ejd.572.2021.03.12.05.34.19; Fri, 12 Mar 2021 05:34:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=fVeBkdcb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbhCLNcu (ORCPT + 99 others); Fri, 12 Mar 2021 08:32:50 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:53989 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbhCLNc0 (ORCPT ); Fri, 12 Mar 2021 08:32:26 -0500 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 438F722238; Fri, 12 Mar 2021 14:32:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1615555945; 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: in-reply-to:in-reply-to:references:references; bh=QBuZP8POWp3qMMHBSO5zfPwntXaxLE+5SncR7mrkwkQ=; b=fVeBkdcbfb0c7Z3025M6QUtKCnZBa2aNX05py5QmSYQTSEaWsyniqyN9M5FHUL77xqM7xq FzoedG7HmpzUT5MtJ1BsZSmiUozPbYcGeQxArBa9KJzjjwsUR1CRbDuLYSTz2W1mxDlWG3 oNTTVz+JnDS/UK8Y6Ravou9ofFt/t6Q= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 12 Mar 2021 14:32:25 +0100 From: Michael Walle To: Pratyush Yadav Cc: Nishanth Menon , Tero Kristo , Rob Herring , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mark Brown , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, Lokesh Vutla Subject: Re: [RFC PATCH 0/6] spi: Add OSPI PHY calibration support for spi-cadence-quadspi In-Reply-To: <20210311191216.7363-1-p.yadav@ti.com> References: <20210311191216.7363-1-p.yadav@ti.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-03-11 20:12, schrieb Pratyush Yadav: > The main problem here is telling the controller where to find the > pattern and how to read it. This RFC uses nvmem cells which point to a > fixed partition containing the data to do the reads. It depends on [0] > and [1]. > > The obvious problem with this is it won't work when the partitions are > defined via command line. I don't see any good way to add nvmem cells > to > command line partitions. I would like some help or ideas here. We don't > necessarily have to use nvmem either. Any way that can cleanly and > consistently let the controller find out where the pattern is stored is > good. The NXP LS1028A SoC has a similar calibration (although there its done in hardware it seems) and there the datasheet mentions there are flash devices which supports a preamble before a read function. The preamble is then some kind of learning pattern. Did you see a flash which actually supports that in the wild? I can't find any publicly available datasheets of 8bit I/O SPI NOR flashes. -michael