Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1419637pxf; Fri, 12 Mar 2021 09:05:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJywEK54PodbqP3A6I1uANg+ugYIaD2oxRqH8tz62xUN1mQBPjUBDRpyOveJLD7u/r/CKwpu X-Received: by 2002:a05:6402:180b:: with SMTP id g11mr15067403edy.195.1615568700700; Fri, 12 Mar 2021 09:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615568700; cv=none; d=google.com; s=arc-20160816; b=Oi5aUKEkRISaGlufb9H592BxPr2C/03BGsWxzIWX56MK70ptsWJyQbWRASDtCuB/E6 SsuXB9dyGNTXhSzvST9viAVcdvNAlL9X23SGO0Dp9WeQGpX6uMTVZ7fG3kRL8vndi2I+ NUiTjLneozGsVcb0FfoJlQ1FTM1wd09NjVt+joPa8KfvWZ0h6TOlTk+oGpZ0F+DTASpG hTgGptpVK2Zp8RCNUgt1lvG4XBWTg7NIHw3ETD7jkdpeQXiXIsWeUQSBLM8iJKmugHQ/ 1Gs5O0npBU58ACcfOEoBaMaXxB2tC96c+Zy5SmhiiB7QytHyFI6L45VnWd47fAaw33w8 dEoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zaa/mRSUMAXzQt5H0aezjgMFIyojIQMSj0VLcmmYG0Q=; b=io8mZbEiiyj5v+TnqnPMMJdNFx0jmP2s4n9szNZzUBYb51hCcmj/XIha48+BM7GniQ vdKoi7YKxfjA5JwGZw2LJ/O+9qnn9yEtvM4YoPWLJilgbk27hpMky75AJfDSnfBH6zDl S+58fj+OMUAZHEpVy5v1ruyfMao/c3nMEf30NxxcyvitpDYT/Asx89MNbmCcMSqcb2Q0 hNRR1XEmwXNJsTEtVkuKXP8lkGu7/maEkN9dM1r/NAmHMPcJUgXC0hnIDorndyF5/4LL 43/w5460SJZ7HGkWoIagqrMRx4jN54uswMu0/pL12cXqaOVwEzgB8HsidBGUixyulXpr Pv3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZJYQk2va; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si4316593ejc.294.2021.03.12.09.04.31; Fri, 12 Mar 2021 09:05:00 -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=@ti.com header.s=ti-com-17Q1 header.b=ZJYQk2va; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231519AbhCLRA6 (ORCPT + 99 others); Fri, 12 Mar 2021 12:00:58 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33758 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231557AbhCLRAc (ORCPT ); Fri, 12 Mar 2021 12:00:32 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12CH08kt121082; Fri, 12 Mar 2021 11:00:08 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615568408; bh=zaa/mRSUMAXzQt5H0aezjgMFIyojIQMSj0VLcmmYG0Q=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ZJYQk2vaku81q9JFcftwYrDwiWbZAGlKsxDCS7xolALzY4tOV4aVF0BWT02/gjsTp wiE2GWxclQRfYGBLI08wpZYK4vWqCWAfNIIbz7pXQZkZ1gu8Y/UYMWawOwyep9KYhn 7OqlbC/XkucryFWnndJAdBy0aUZO5x7G+oqOfb3k= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12CH07Vl049603 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 12 Mar 2021 11:00:08 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 12 Mar 2021 11:00:07 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Fri, 12 Mar 2021 11:00:07 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12CH06Rj086882; Fri, 12 Mar 2021 11:00:07 -0600 Date: Fri, 12 Mar 2021 22:30:02 +0530 From: Pratyush Yadav To: Michael Walle CC: Nishanth Menon , Tero Kristo , Rob Herring , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mark Brown , , , , , , Lokesh Vutla Subject: Re: [RFC PATCH 0/6] spi: Add OSPI PHY calibration support for spi-cadence-quadspi Message-ID: <20210312170000.szh55346o7sm6ase@ti.com> References: <20210311191216.7363-1-p.yadav@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/21 02:32PM, Michael Walle wrote: > 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. I haven't seen any such flash but it looks like Tudor has. > > -michael -- Regards, Pratyush Yadav Texas Instruments Inc.