Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6866773rdb; Fri, 15 Dec 2023 10:17:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBeZ2MPFN0YNyyv+MypB7csT8tUmpE27B0VlCC2oINGKVlgwZ4qxNwrPDbS1VoLfkUAxCS X-Received: by 2002:a05:6a20:3c8b:b0:190:2f5f:f44a with SMTP id b11-20020a056a203c8b00b001902f5ff44amr16344956pzj.3.1702664241887; Fri, 15 Dec 2023 10:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702664241; cv=none; d=google.com; s=arc-20160816; b=mN4TYu2DcckQHL/1CFhYEbl8eulX8Hgjb6Fje6+bV1zDg2qTsoNMVQzdA3fVOMG0yB QAgrV77BtBApK4fSMFolYgEhCIbLyOv/XnBV5yzsNMHbaUutSonmapHNMmZE4h6ALC9z NaaeTpWQnOHWaahMT6QIESw/MS58SWHhP/X0a/45ozQY4DzQ1hPBy/A6w0DaM5ARdWEr NCxHPMk3LGjr0wOPBFYMJ/+GlNfSOn29ru/lWK2vDye3V0+R7iyH07VrfDAvXtXzcZ4K DaMIg0/1lkoOi6uIUUveUFOZdNSMxpmcfcH7GfbeRu96iP8ZpIlWMTVfg4x5J7dsKboC Kdog== 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=QLl4Jqx3rNltuypgViiDs8ZHnWVRymYQ4vUIm1Ri+jc=; fh=aMMvjttvDywN0BQPXTHDiTT9rZLE7wh9V43wUOuF5Wc=; b=M+9Zx3PFtqEOiJZznJui9lfOD3XBhVp9PLVDzUX+71IqC4vUf4ZTaNoa0pNuC9P8jN MEc5G7qQ+6JXP3RH55HymXmCOJBjf/HtrvqnmrPrmF3pn6CQbZixW14RE2xU9UcErVyU kIHuNrTeCsR289M/2IFieN/IJeu1MnhwUV1LaQ9o3WiIB7UY2jnqSIV41+bX3g3sTrJo BIJTg/ahU6nRO78UcKPPAlj53PMAeF2FChDP72B+qpc5/lirDuWGRTA6I2u3eJZ/PqNx VgNdMowuc2hFQjHEMbs6Rav6kZ6SpZmzR36own/+IvyarhyleNrrggdr+V0Mr4oGgJm6 OOTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=rVzSaR7h; spf=pass (google.com: domain of linux-kernel+bounces-1512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n12-20020a634d4c000000b005c66d14ab63si13258453pgl.407.2023.12.15.10.17.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 10:17:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=rVzSaR7h; spf=pass (google.com: domain of linux-kernel+bounces-1512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1512-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 23FB7B22E13 for ; Fri, 15 Dec 2023 18:17:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7CD641872; Fri, 15 Dec 2023 18:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="rVzSaR7h" 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 38C944776D; Fri, 15 Dec 2023 18:15:07 +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=1702664105; 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=QLl4Jqx3rNltuypgViiDs8ZHnWVRymYQ4vUIm1Ri+jc=; b=rVzSaR7h/ndnUV1PAbLfm6mmGlhLYPeuIBzzmCITrHt1OKSDQgmHSBfIaPZuguLQApDil8 1pZGts5VksBC8XnK7Bw2j3blncRF7AHvTadjSanvHA9Ag+ZUdPTEzq0902l6VD/tp0+jsu 3mly5OXzlxb01B7SLVdbhLUsb8wK4wVBscs17JpXdqW+w9aIdnCk1cBLfXESJauaodJMxC utMsJQ1jnwQfaMN83+xLKymuPrER+oXc+XM7pV9C/ZyuJ0bigYvPIIX+CeH6AKzMLeVsiP q2bRXZNsmgqiO6+sBtwL9SZjHrF+jvSIl5CUs2Kz+xZNEEO0qr2M7/umkZoYaQ== Date: Fri, 15 Dec 2023 19:15:05 +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] arm64: dts: rockchip: Increase maximum frequency of SPI flash for ROCK Pi 4A/B/C In-Reply-To: <20231215122848.59534-1-stefan.nagy@ixypsilon.net> References: <20231215122848.59534-1-stefan.nagy@ixypsilon.net> Message-ID: <33e632c38fa57053585c0016652ed8c8@manjaro.org> 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-15 13:28, Stefan Nagy wrote: > The ROCK Pi 4A/B/C boards come with a 32 Mbit SPI NOR flash chip (XTX > Technology Limited XT25F32) which has a maximum clock frequency of 108 > MHz. However, the Rockchip SPI controller driver limits the maximum > SPI clock frequency to 50 MHz. Use this limit for spi-max-freq. > > This patch has been tested on ROCK Pi 4A. > > Signed-off-by: Stefan Nagy > --- > 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..30e63e62a 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 = <50000000>; > }; > }; > 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..7122bf6c0 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 = <50000000>; > }; > }; > > 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..8af75bc7c 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 = <50000000>; > }; > }; It would be better to upstream these changes to the Linux kernel first, and then sync them back to U-Boot.