Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6661108rdb; Fri, 15 Dec 2023 05:12:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXoSeOQ1ZQL4eTXlSaGRExmGBZDmTUCRUHxoLEKg5ggJxmG+5Noe8lp+YzoqaBNB8LTwbF X-Received: by 2002:a17:902:6b0c:b0:1d0:8c63:cfe4 with SMTP id o12-20020a1709026b0c00b001d08c63cfe4mr9523736plk.77.1702645928236; Fri, 15 Dec 2023 05:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702645928; cv=none; d=google.com; s=arc-20160816; b=opQoHZ9MeJdNlk+WlEua4Hr5+i0ACbNS6ugi5YPJVrPMDGe/kUlKSn1S6rklWTtsy4 ThlvKAx8d79MG9rmNvt69W5H9yp7KOs8gIc+ZxxEKGAqO0wg4fwJ228I8ARvPHKip9zk TO/NjolNmbagPbx0bkkZ95mZmH8HlRDbuE+j070STSKRtu4B9sX5LAWsSn7aX/H/95BL jhka2CJRix2HhVG7qTIRI+JjMJmTF4DbBcLBMPtNlBSllfAWCb/CZAw1gRt1Kkr696/F PeRy7tVLA6CLxGXaPpWbbiACxJmIgjUVT3OJiBE2axUZTDoZUXbfEXX87hLiFQNB+XL6 t0aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Oj0QHgPdvHMo9GUAP8G/tq7iyDKRF1mzr5DOg7Hc4RM=; fh=zosk5D1elaoWSWsK2qEKDNjzbqEfAhPiSs49IBW+Ll4=; b=kr6voZnFhlEPplLXuLjjoTzDbnjQ0KoptORQyugzGCZbvh+uLs01J6wZSQCZyLZQQR BnPorQiWBFEewQnnBENVgiqNxA6OabGJh3qWuLb4fSFkxeaqMGWjwe4u0347/n2YvFjT 1KUUwmwAVlU+y18nfNj/zm762zN1DV0uWswUncu0KyqlPwmA9r1ZS72oBq7WaYMcQmOH cB7Cj+pTX/V9DFuwLmVpQUQ457HDCs5Jtfd6rXQXOPCRY/qEuKsu+bnGMwutanHir/ZA dmjIL9XhwuQPkA3rDSohsk2Vo91eJu9zpJ9KeONgU7HwPAQkLc2Qv06YVoohQL8suvTc RERg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ixypsilon.net header.s=20210903 header.b=bXdD6OAi; spf=pass (google.com: domain of linux-kernel+bounces-973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=REJECT dis=NONE) header.from=ixypsilon.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r6-20020a1709028bc600b001d37a3c20fdsi1784130plo.294.2023.12.15.05.12.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:12:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@ixypsilon.net header.s=20210903 header.b=bXdD6OAi; spf=pass (google.com: domain of linux-kernel+bounces-973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=REJECT dis=NONE) header.from=ixypsilon.net 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 5CB28B215C3 for ; Fri, 15 Dec 2023 13:09:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE4312D78C; Fri, 15 Dec 2023 13:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ixypsilon.net header.i=@ixypsilon.net header.b="bXdD6OAi" X-Original-To: linux-kernel@vger.kernel.org Received: from uvw.ixypsilon.net (uvw.ixypsilon.net [81.223.58.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6560F2D052; Fri, 15 Dec 2023 13:09:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ixypsilon.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ixypsilon.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ixypsilon.net; s=20210903; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Oj0QHgPdvHMo9GUAP8G/tq7iyDKRF1mzr5DOg7Hc4RM=; t=1702645766; x=1703855366; b=bXdD6OAiLxWCqjFarQVPUWAR2T2uvBP8k0uC9bi9ODufz+P9UjOsJl9FiOZew7t0BVFVyaLLlYw XzFRMXKWQZFg2i6ntUEyBx1d0TsY6/37WR8JLPGQexT/GI/xez6OLtjmOQ7TCaAQP3wlzd37CBBTK 5h6ravs3jj/NjnnI1D9XZDi/cjVQ0f5AihbKIE+/vpsp9I8Kyxd9GD9VaTzyrLDgvFr+yA7VszR8M d2Nnf1rbzm8G7L8fS2/owdMHvb9IlU+1VQL4eOPeg3ptYKYs2WicgzcWv7XoEh+5+uruiIpQv2wLx /uNU+AIriGRGTbCBquUMBX0PM52fKqP2Tdsw==; Received: from [192.168.0.1] (helo=librem14.Hitronhub.home) by uvw.ixypsilon.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rE7JH-0006gN-0U; Fri, 15 Dec 2023 13:28:56 +0100 From: Stefan Nagy To: Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: Increase maximum frequency of SPI flash for ROCK Pi 4A/B/C Date: Fri, 15 Dec 2023 13:28:48 +0100 Message-Id: <20231215122848.59534-1-stefan.nagy@ixypsilon.net> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam_score: -1.0 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>; }; }; -- 2.30.2