[7/8] ARM: dts: at91: sama5d2_icp: Set sst26vf064b SPI NOR flash at its maximum frequency
Message ID | 20221117105249.115649-8-tudor.ambarus@microchip.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp331895wrr; Thu, 17 Nov 2022 02:56:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf5FNOAh/u1kMlWYooJKOa2pD+h8eGfL7TYXkX0vMA91/ZObSMqyF4Ie/q7UiPGfIXC8Nj1p X-Received: by 2002:aa7:9097:0:b0:56c:674a:16f0 with SMTP id i23-20020aa79097000000b0056c674a16f0mr2524815pfa.10.1668682576726; Thu, 17 Nov 2022 02:56:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668682576; cv=none; d=google.com; s=arc-20160816; b=hx2UVwnEc345v5idYLQhmzzEU8/122x1hI4m2K54kDv5ViDlotbA0FGXvCC9a/BKpv xrwHWS9pGEZtlv64bza6jJ3CYf39TU423p78NhgFdxDt9nXkL4iO1j/NvMS4VO9m0XCW gkmnTQVW7f7DqTQi96DxfY5EcDMtfMsH1A+Vs2X33rixCBNftr5K5hklcT7Pg05K+bfJ 1LCmvKjf7nOtOks2TMzsL9/pvVU1xF7ZXw5Qo6br0ydLHjdCDt89zRaNiHi20vf0yBEi h963f4HWgCm2FSLTE+2IbZGhGPWKzyeRN/5w8JzreZek/Rfw/XMkLwS0CEOn1/tBpdxk joZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ptUmUIa8IqtKquZSiCZpp9YfQagRL/T5OjwuyYzoEgE=; b=InjXSbyvVhv6EsIH7niLrQIC/46GeEr4ZsYKWPOBOIEHYjbkeSoGH6x8JILQzfLgbL uIM5BiwmCEtO4NGRQHOGFkvZQ70E5a4s4C6a8BKd870Wll1EIKbi90PNvwp/ycfXmFwA nLuC7jo+GCt+ZHyAUEKyv02dKYHKdYxEWXSld60nQC1wEN7eo6ZVyoYpbDhIQ8Sm6sXM 2IKO7vFfpwcVRrcW9abNQnIByt372VE+8prBrX2qYPYYSqwbrh8U1AGRhQYRfQDln/sq NHXW64gNlUlr6sbTxS9dBfBHxAD+GO4wisS5GJaDmIjRhkMQqYYJQ8DdP9XVvvlhv4hu 4cLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=uwYiwXed; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc3-20020a17090b1c0300b002130053cad7si4977216pjb.7.2022.11.17.02.56.03; Thu, 17 Nov 2022 02:56:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=uwYiwXed; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239696AbiKQKyY (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Thu, 17 Nov 2022 05:54:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239267AbiKQKxV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Nov 2022 05:53:21 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6AD55BD4C; Thu, 17 Nov 2022 02:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1668682399; x=1700218399; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pub4+zHZreJmfMrR4t0OMZDURmCLD6tCvA9jmlzzuIg=; b=uwYiwXedumA2nE/77X4Fiu9LAmA9GY0Q979vmoG6/GVq/gaXV8AunBRD wI5SsCNe3RRM6cBBHBiHVuf0dXSibP322sUfS8YDiMrMPO4BF4Fzg1iLC 849cP+4de408Rof3pPXHfX4x2ZkKxwUKJRe7xreItgs9ZS3JRiihOibIL kDlzhZyvxoX313YH86W/ugUcdsHd7SbjwbIy/Ta/noj0Yg3UFyfL7qksy JxN0jhtEitDaSQGRTsNTDegH3ZMsbGcQ9O//0n3jwuRSyh1CtqlwD3PVu o0pPOqu6abGC4XUNZQLNTeoTCy2Y73Cp3ve+SuYR923StvaSwtmVpxt2h A==; X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="183965652" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Nov 2022 03:53:17 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 17 Nov 2022 03:53:14 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 17 Nov 2022 03:53:12 -0700 From: Tudor Ambarus <tudor.ambarus@microchip.com> To: <broonie@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <claudiu.beznea@microchip.com> CC: <linux-spi@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mtd@lists.infradead.org>, Tudor Ambarus <tudor.ambarus@microchip.com> Subject: [PATCH 7/8] ARM: dts: at91: sama5d2_icp: Set sst26vf064b SPI NOR flash at its maximum frequency Date: Thu, 17 Nov 2022 12:52:48 +0200 Message-ID: <20221117105249.115649-8-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221117105249.115649-1-tudor.ambarus@microchip.com> References: <20221117105249.115649-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749740501540782133?= X-GMAIL-MSGID: =?utf-8?q?1749740501540782133?= |
Series |
spi: Introduce spi-cs-setup-ns dt property
|
|
Commit Message
Tudor Ambarus
Nov. 17, 2022, 10:52 a.m. UTC
sama5d2_icp populates an sst26vf064b SPI NOR flash. Its maximum operating
frequency for 2.7-3.6V is 104 MHz. As the flash is operated at 3.3V,
increase its maximum supported frequency to 104MHz. The increasing of the
spi-max-frequency value requires the setting of the
"CE# Not Active Hold Time", thus set the spi-cs-setup-ns to a value of 7.
The sst26vf064b datasheet specifies just a minimum value for the
"CE# Not Active Hold Time" and it advertises it to 5 ns. There's no
maximum time specified. I determined experimentally that 5 ns for the
spi-cs-setup-ns is not enough when the flash is operated close to its
maximum frequency and tests showed that 7 ns is just fine, so set the
spi-cs-setup-ns dt property to 7.
With the increase of frequency the reads are now faster with ~37%.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
arch/arm/boot/dts/at91-sama5d2_icp.dts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/at91-sama5d2_icp.dts b/arch/arm/boot/dts/at91-sama5d2_icp.dts index dd1dec9d4e07..ffd9627874c9 100644 --- a/arch/arm/boot/dts/at91-sama5d2_icp.dts +++ b/arch/arm/boot/dts/at91-sama5d2_icp.dts @@ -669,7 +669,8 @@ flash@0 { #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; - spi-max-frequency = <80000000>; + spi-max-frequency = <104000000>; + spi-cs-setup-ns = /bits/ 16 <7>; spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; m25p,fast-read;