Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1241251pxf; Fri, 12 Mar 2021 05:31:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtLYjY0tNqkkO2W0ba+/SJlY9jTlHsC8t/hN1wMfmWoT6GI7FYbVXKE8JAJSRXcSXbvom6 X-Received: by 2002:a17:906:73d5:: with SMTP id n21mr8720556ejl.8.1615555864608; Fri, 12 Mar 2021 05:31:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615555864; cv=none; d=google.com; s=arc-20160816; b=oVbnaxrinimhKWR3LEREqHNRACMp4BlT/o5UcrQrqWtQkf+gg+LSMHfzjsod3Nztzb OVsPdg8GF5/2dz0ao5tCrCobwa/r75QngpejnNFpkTUfir5W0fNcnF975VPbY5KSwcjt LgS8wOm78CzwCnLWwroQGvUBLZcXh7Ailoo7RVrnJE0raUQDjbiOvTTcCK4O992uzZv1 GqG0Kwg2MftzraJXcjTp7JxEu9qb6FduPzyuuwxVKZJ6NPBW844Kwd+/2sBkRPUZ7QPF UCWM5aVTsHVhVjx0okB5SGe9v5f/8uED+YfP/UGzY5l3BlUAJnIAqgfQTaWdtSTTiFxr 2ZGA== 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=KcBTD7nfiYyHNct1X3UL2VExLlEbLzhpNivSjn0I+wk=; b=DBYjL5en/2ywx9kRUb9kqtwovx1w750H4EIKbPKY0VdyGdtC/NU6/4QoXnx0/PRUOE sTUw9KsV9kA4bzaajCKcbO5zx8f0jD/GIRiTANdUMdVBjhH8BznD7G6QXmQ72Mtorm1A KCsEmzoJWO6F8wJgyvHUrwbM/mIJf31XluL55hbV7tBAF2SKmIgcFHhBCHn/4jRvPRql jnW6T3tzWt9dj1cXkIWsw3/nJ/X8xpdUZHiJ0RnVbUXB42drKAkmjx7FooOF0AOYibmw E1zqFDXyXB5YwnDByEZLonWoOKsFAL7hGfp2OJLv8W4fidQarEQx4vc9hQxQYKqeHsE6 02TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=svmemSWB; 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 p13si3987768edt.516.2021.03.12.05.30.41; Fri, 12 Mar 2021 05:31:04 -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=svmemSWB; 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 S230077AbhCLN10 (ORCPT + 99 others); Fri, 12 Mar 2021 08:27:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbhCLN0z (ORCPT ); Fri, 12 Mar 2021 08:26:55 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69B2CC061574; Fri, 12 Mar 2021 05:26:55 -0800 (PST) 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 3839422238; Fri, 12 Mar 2021 14:26:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1615555611; 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=KcBTD7nfiYyHNct1X3UL2VExLlEbLzhpNivSjn0I+wk=; b=svmemSWB+o+nVNl6REajtsf58ho2PMVwfIR7ipvPG5EzVj2hB2RF8EgQZ78GvhI1nqBuio 1hYjbb30eYza3JohGRszrmYEeG6vNO5Mn1sjlitt10HFidP4nvEOZA6P/tbY3WjEio45LF O07ww65cJKaDHdnj/w4DBwtjYJPhmsA= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 12 Mar 2021 14:26:50 +0100 From: Michael Walle To: Pratyush Yadav Cc: Tudor.Ambarus@microchip.com, nm@ti.com, kristo@kernel.org, robh+dt@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, broonie@kernel.org, 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, lokeshvutla@ti.com Subject: Re: [RFC PATCH 0/6] spi: Add OSPI PHY calibration support for spi-cadence-quadspi In-Reply-To: <20210312110707.lrabch4ketqyyepn@ti.com> References: <20210311191216.7363-1-p.yadav@ti.com> <9c551f56-4c00-b41a-f051-8b7e197fbcdc@microchip.com> <20210312101036.jfz2733ssv4nhfey@ti.com> <676386736df5e5b22e34b0b5af91c894@walle.cc> <20210312110707.lrabch4ketqyyepn@ti.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <278f4417bad780ee610d86299e613990@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-03-12 12:07, schrieb Pratyush Yadav: > On 12/03/21 11:20AM, Michael Walle wrote: >> Am 2021-03-12 11:10, schrieb Pratyush Yadav: >> > There is usually a delay from when the flash drives the data line (IOW, >> > puts a data bit on it) and when the signal reaches the controller. This >> > delay can vary by the flash, board, silicon characteristics, >> > temperature, etc. >> >> Temperature might change over time, but the calibration is only done >> once. I don't know how much influence the temperature actually has, >> but >> our boards are usually operating from -40°C to +85°C. So there might >> be >> a possible temperature difference of 125K between actual calibration >> and >> when the flash is accessed. > > The algorithm supports a temperature range of -45 C to +130 C. The > temperature is checked at calibration time and adjustments are made to > make sure the reads work over the entire temperature range [0]. Ah, nice. And you need the current temperature to correlate it to the meassured timings, right? -michael