From 42e209aae66472cc9a613db580f98fd3f671ba08 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Thu, 29 Jun 2023 16:28:08 +0200
Subject: [PATCH 389/463] arm64: dts: rk3399-pinephone-pro: Improve SPI access
 speed

From 300 KiB/s to 2MiB/s.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
 arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
index 02f28c6d8d50b..9ae01af0e73bb 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
@@ -1483,11 +1483,14 @@ &sdhci {
 
 &spi1 {
 	status = "okay";
+	assigned-clocks = <&cru SCLK_SPI1>;
+	assigned-clock-rates = <100000000>;
 
 	flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
-		spi-max-frequency = <10000000>;
+		spi-max-frequency = <50000000>;
+		m25p,fast-read;
 	};
 };
 
-- 
2.46.0

