From patchwork Fri Sep 2 08:24:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 2344 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3A2643F057 for ; Fri, 2 Sep 2022 10:25:34 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id ng1-20020a17090b1a8100b001f4f9f69d48sf2760770pjb.4 for ; Fri, 02 Sep 2022 01:25:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662107133; cv=pass; d=google.com; s=arc-20160816; b=KrBh3E3a7gB+o3GXApafgcZhWmcezYdZRWfWSYNJFHDJvKtmKhKfWsxvkmvPu1dZD7 0q1XobrHeyfmHdNP9wBQF8uP+1fLF/q+cXVFv7tCRdgfZU0JrnidTSbcoGUPWaE5ic4H uiwq8BBdlr/+eq2qBnNh44AWnCPW2tSKO21mR41Ob0YXBwfdjVfaCfvNZ9nlcESiL8vs OHLW3w3q0QdutGwo6qlkWcEk3QgXMnb9TlktTgeKgbo/+7h2Nu4VejkIs1Qdr/CshU9+ vchTrwjcp4MYXTFiXbHRSRUsJ7XGMEPoWNg97v0pXXD82pkkZi3mTK+QM+9gPaOAd6t8 9mRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Lm9amcr0b0Y1J8Jv0sauFAsDBrripHbrGCIP/x3YkGQ=; b=Zf0P/n7tLyCHEFxulqKS1Fk8A8LZ2F4n65fX75bxis4kJ9CpiYAa5KZjtZQOwMj+cP Dr58UnkhFaZwhYliCPWlNsudqbRS6bzEckOx+30Kqmidk1eRp91qfdkw4mlrL+3wlyTs WnkGCvUvUXVZZFHyAc4JC8Ep03e/J0B+MnCXOZTpK+xdU2VXqlEeF5h4BOdun44M9jQQ Bs9y5svBD5gSCdIsvYswFNkYVEo5jeLrxvbnE6kSVSl4RahTbA3RtzAEf2eDmUUpOGL6 onZ6tHFzRvAGMk+yWWLKShBOg9qX867SzrveLneAkcPNkcrjqcSYcQi8/MuhE1EH+tRe 4Q6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bwUul3bo; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date; bh=Lm9amcr0b0Y1J8Jv0sauFAsDBrripHbrGCIP/x3YkGQ=; b=eifqSgLX5GVHLVc3wiwkMfIWKg1yKhTmQdvO2M4XjUIcywjfYGnizWik0N7EWkLLOF 27xnVs9FRPgtTGHprVuENn3epV2XTrYNhJo5cbViiEhKoJ8Rxa8TzG2LFmf++Sj2E36u 74eIVw9bojd44kmPnC+27wwDHlMJWroWA+vew= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=Lm9amcr0b0Y1J8Jv0sauFAsDBrripHbrGCIP/x3YkGQ=; b=lL4KfGjdY5RC1rMvbhLHO8jc746f043Cwdk77XMl81tC0sMejUvCqYAfKpZHFK9LOb r4AqC1i4C2Xtrd9TE69dU2ohyXC4q/mbYsKdkjJhG3jxD/uA9BVszKZ9ekrMtv7zzPqM ed1I8RXbS85XzI4JhBid9Lva3MXi4RLk5wbTPNERP+EaGP2B6Cs5Qp5zLf7q7xqOQHSU JN3/pQY6rhD4jJKtdVujYQ94lWB9bA+rKMNQ+HAOVRkJLmQ/XrwJFjrVT1adga24a//u 8V7dJkZEA1qIlfCPmrCCYRUJlpcON8H7jn2QpC+jBcOs/cBbeoXT5bAXcxge8nslU4LF Np9g== X-Gm-Message-State: ACgBeo2gx5G1Wb7rx2726HLdUJ/5tKE5CR+gtBNjKYSe+M74VwZhiqLf 4T622BCGyBDWbtK77ee6YWCsx7H0 X-Google-Smtp-Source: AA6agR4kOEBaBGvxm9yEke+H2IWrsqO/cPrCx2IC3hfJTACCWsbXruZnlnooaoqLl3QiuPw/QZKibA== X-Received: by 2002:a17:90b:3a8c:b0:1fd:e8a7:165 with SMTP id om12-20020a17090b3a8c00b001fde8a70165mr3563567pjb.179.1662107133033; Fri, 02 Sep 2022 01:25:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:8d10:b0:1f3:1fa8:829d with SMTP id c16-20020a17090a8d1000b001f31fa8829dls3168120pjo.3.-pod-control-gmail; Fri, 02 Sep 2022 01:25:32 -0700 (PDT) X-Received: by 2002:a17:902:e884:b0:174:9834:53 with SMTP id w4-20020a170902e88400b0017498340053mr26128214plg.2.1662107132180; Fri, 02 Sep 2022 01:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662107132; cv=none; d=google.com; s=arc-20160816; b=T9NKJscRebKp1n6/IcQjATc9eKvCrwccivmYiqXfq9bDbues2UIxkfhEAhENAgKza8 E/m9G2EgbLgdTS6vZweu+/MgYqRrg7nv5Vb9OQIzxCDRhJrnxFe6XAG/RVx9p5txxwnR oQjBKwEynDrmZmWTiE+xjVn9ELzfhSeksli3vkNa7XR9IrZd1so0+s/QfoyP3C39lAmS EbntwFlaZpfHTQ0TDO8Afp5bBkXWyNxYJCyPibEafv54ZChLLlCuc8wOqSVLPw1C63g9 U/seo44U2J+JM3ndyXyuSryizQcqF7T2jPjN1akTZexVVSEMz/qe5sGyCgm693yfNTSU Wrvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=npINOhOr3vfRRSuSz/nSaDBRFUpOjuCEDDm8d7nVZDA=; b=tBilyZ0kCiVXjqSHvcrEuJbu6p7JKlaohjV0D9/TwI0X0aDXsnwyuEaOeymLZVEt6B 31cglhIFRbB53Ma5qjOwtsdxA3W6zcfrj+ZvBVLbay5NVV/dSTaB1I7XTD+d07+ZiOU3 h3xwVM5xDCrI56E1Id1bknvbRTFcn+IOJfl4dXhkM8/ROe+iKtx06aWPDBx/T+4I2s1Q IWxCzd6yMT/r8Km4aL5LHNxQeewa6JsGoh7YYiKNymtFAMrwnli3b2KRtVi7JzLgbwT0 WlH7ESgOjw+kf0PFfJCOc0XBeFJrRLaYiaVLjS5j/AoowLfYgK5J/Wtw8Nxy+qKG9fbG QUDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bwUul3bo; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id w5-20020a634745000000b0042c65f56606sor613083pgk.33.2022.09.02.01.25.32 for (Google Transport Security); Fri, 02 Sep 2022 01:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:2304:0:b0:42c:60ce:8bb7 with SMTP id j4-20020a632304000000b0042c60ce8bb7mr17383434pgj.250.1662107131896; Fri, 02 Sep 2022 01:25:31 -0700 (PDT) Received: from localhost.localdomain ([183.83.136.224]) by smtp.gmail.com with ESMTPSA id r1-20020aa79ec1000000b00536fc93b8c8sm1063671pfq.20.2022.09.02.01.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 01:25:31 -0700 (PDT) From: Manoj Sai To: Simon Glass , Philipp Tomsich , Kever Yang , Johan Jonker , Alper Nebi Yasak , "Marty E . Plummer" Cc: Da Xue , dsx724 , linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki , Suniel Mahesh , Michael Nazzareno Trimarchi , Manoj Sai Subject: [PATCH 4/4] configs: roc-pc-rk3399:Set the maximum slave SPI speed to 30MHz Date: Fri, 2 Sep 2022 13:54:44 +0530 Message-Id: <20220902082444.83788-5-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220902082444.83788-1-abbaraju.manojsai@amarulasolutions.com> References: <20220902082444.83788-1-abbaraju.manojsai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: abbaraju.manojsai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bwUul3bo; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , -While the SPI controller speed is defined by DTS, the maximum slave speed (connected devices) is limited by the pre-defined configuration value CONFIG_SF_DEFAULT_SPEED from 10 MHz to 30Mhz. -set the Value of SPI flash max frequency for environment to 30Mhz. This patch increases this maximum SPI slave device speed and SPI flash max frequency for environment to 30MHz . difference in time of erase and update a region of SPI flash from memory with 10Mhz and 30Mhz frequencey range updation : => sf update 0x300000 0x800000 0x400000 with 10 Mhz frequency updation :- 4194304 bytes written, 0 bytes skipped in 36.819s, speed 119837 B/s with 30Mhz frequency updation :- 4194304 bytes written, 0 bytes skipped in 20.319s, speed 220752 B/s Signed-off-by: Manoj Sai Signed-off-by: Da Xue Signed-off-by: dsx724 --- configs/roc-pc-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 84e72e8b60..7754cb8388 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -45,6 +45,7 @@ CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y +CONFIG_ENV_SPI_MAX_HZ=30000000 CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_ROCKCHIP_GPIO=y @@ -55,6 +56,7 @@ CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_SF_DEFAULT_BUS=1 +CONFIG_SF_DEFAULT_SPEED=30000000 CONFIG_SPI_FLASH_WINBOND=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y