Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp181854rdb; Sun, 17 Dec 2023 07:18:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEI0LDU/c1jtMgPPKCQtvHRJd0vOVwOv6PLQPgAOlTvDadDEBGk3cdNZ8rNRgClP34TgfGZ X-Received: by 2002:a05:6808:3c9b:b0:3b6:dd3c:5f78 with SMTP id gs27-20020a0568083c9b00b003b6dd3c5f78mr20027273oib.44.1702826322566; Sun, 17 Dec 2023 07:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702826322; cv=none; d=google.com; s=arc-20160816; b=MPOkufPQCLVYozJlG+myqKfAb8VZAtEoA/FjzgRCHL+Kh8hHqAxK8NH0P3iaXlHPIb OfULS2L19rRqLfOoYJzTotun7Sz2rRHG7+ixoYpuQJZSGFCZt66FwpTIT807DrigBtHA HaUxtM9BzggQbpi7fvWOTMviWHYzYRw9Lzcc8JLVXIECqgKZSoBRaUZfNeKBr5k3xOl7 gFg3ylEl8myasy4sIZtvy5n4oYXAyMrv1O7/RtXQiE70S5MhHX1j6OS2w14QE/RMHjcR AJGCb+iYHdBJWArFP8AGdFI9wFASfZku/9JhvYFfX3JXJkhx41VOcpPiKzqb4nosJNTt KOlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:dkim-signature:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=YgdXduRKDjKkV05w+ashYe1V8iCTBHNOlwTcti7d7Bg=; fh=aMMvjttvDywN0BQPXTHDiTT9rZLE7wh9V43wUOuF5Wc=; b=GFb8oSyZlrowOwLAVJYj1Bwl1l2ECJ9qpMRofjYa6MVdVq5vwfxFLjlJseFXGbKqoL 2O3C6ORipT6WxhQ5qYQg9U/sS3g5JfO2uLOy1tuo/7Sp7gTfJOA3sTgwQ53TP5GxeC4o tPGpTSEn1K+0Wya+xw9z5luXQZemv3/6mu9pM69v0lgkFwPT0uVUyzrOguRyFcjjxvsu hz2NuxsyGnGOenBQhRamkUb9K+ZBNbnNpY5ALfZ7oKYk5F9khGHLoFY8BpKAkzK9K0EB RMEfO/WwqTyzkzcYrtmjk6dMfaWdBQYHsP6vYby3qnUZL9/P0bzv3Kduv5Z4XUNBQizM 8E1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=YbpPTZaM; spf=pass (google.com: domain of linux-kernel+bounces-2662-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2662-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p3-20020a0ccb83000000b0067f29ac2758si3339065qvk.42.2023.12.17.07.18.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 07:18:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2662-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=YbpPTZaM; spf=pass (google.com: domain of linux-kernel+bounces-2662-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2662-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3A56B1C20E68 for ; Sun, 17 Dec 2023 15:18:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F186944C90; Sun, 17 Dec 2023 15:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="YbpPTZaM" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7267017F8; Sun, 17 Dec 2023 15:18:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1702826302; 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=YgdXduRKDjKkV05w+ashYe1V8iCTBHNOlwTcti7d7Bg=; b=YbpPTZaMhsYWWeel0FpSWWui3jWQCJDkCzwfrjdtdVcTx4QXzqWGYEigcgHzvtexY1gOMr hdyQAVCBWOGEuUcgc+e+So8VjVf5EXUezhH9cHLatf0z3ZLyAZYcsDj3MmEkDedK4GqmVK Oe/hZCNMcTLTFP1HSx1QgPYLm5lHS507rbHVQN1dUwwftIM74vDS/Cgklpqoxidor5qV7Z E6c3pscZ9brmaPVCcjNd9d3FlLdMnDPRqdUNvrWUDzBPQW6jqFbmsoB1PXBhPzHJAmpUvo d0dymju33bXOjBWSzTJVqZ3npBfIeoyQxNB+WjrubYZNFy341ROC7gB+wkobLA== Date: Sun, 17 Dec 2023 16:18:22 +0100 From: Dragan Simic To: Stefan Nagy Cc: Heiko Stuebner , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: dts: rockchip: Increase maximum frequency of SPI flash for ROCK Pi 4A/B/C In-Reply-To: <20231217113208.64056-1-stefan.nagy@ixypsilon.net> References: <20231217113208.64056-1-stefan.nagy@ixypsilon.net> Message-ID: X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org On 2023-12-17 12:32, Stefan Nagy wrote: > The ROCK Pi 4A/B/C boards come with a 32 Mbit SPI NOR flash chip (XTX > Technology Limited XT25F32) with a maximum clock frequency of 108 MHz. > Use this value for the device node's spi-max-frequency property. > > This patch has been tested on ROCK Pi 4A. > > Signed-off-by: Stefan Nagy Looks good to me. It would be nice, if you have time, to include some SPI benchmark results before and after the change in the commit message. Otherwise, Reviewed-by: Dragan Simic > --- > Changes from v1: > - Use the maximum clock frequency the SPI chip actually supports > instead of the SPI clock frequency limit of 50 MHz set by the > Rockchip SPI driver. > --- > arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts | 2 +- > arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts | 2 +- > arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts > b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts > index d5df8939a..c68f45849 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts > @@ -19,6 +19,6 @@ &spi1 { > flash@0 { > compatible = "jedec,spi-nor"; > reg = <0>; > - spi-max-frequency = <10000000>; > + spi-max-frequency = <108000000>; > }; > }; > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts > b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts > index bee6d7588..6ea3180e5 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts > @@ -37,7 +37,7 @@ &spi1 { > flash@0 { > compatible = "jedec,spi-nor"; > reg = <0>; > - spi-max-frequency = <10000000>; > + spi-max-frequency = <108000000>; > }; > }; > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts > b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts > index de2ebe4cb..5274938bf 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts > @@ -49,7 +49,7 @@ &spi1 { > flash@0 { > compatible = "jedec,spi-nor"; > reg = <0>; > - spi-max-frequency = <10000000>; > + spi-max-frequency = <108000000>; > }; > };