rock-5b: enable spi flash patch

This commit is contained in:
Lane Jennison 2024-01-20 17:31:55 +00:00 committed by Igor
parent f106da7fc8
commit fda3813284

View File

@ -0,0 +1,56 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: lanefu <lane@lane-fu.com>
Date: Sat, 20 Jan 2024 17:16:20 +0000
Subject: rock-5b enable SPI flash in device tree
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
Signed-off-by: lanefu <lane@lane-fu.com>
---
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 27 ++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
index a08ccc204158..a50a35409392 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
@@ -498,10 +498,37 @@ &uart6 {
pinctrl-names = "default";
pinctrl-0 = <&uart6m1_xfer &uart6m1_ctsn &uart6m1_rtsn>;
status = "okay";
};
+&sfc {
+ status = "okay";
+
+ spi_flash: spi-flash@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "jedec,spi-nor";
+ reg = <0x0>;
+ spi-max-frequency = <50000000>;
+ spi-tx-bus-width = <1>;
+ spi-rx-bus-width = <4>;
+ status = "okay";
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ loader@0 {
+ label = "loader";
+ reg = <0x0 0x1000000>;
+ };
+ };
+ };
+
+};
+
&spi2 {
status = "okay";
assigned-clocks = <&cru CLK_SPI2>;
assigned-clock-rates = <200000000>;
pinctrl-names = "default";
--
Created with Armbian build tools https://github.com/armbian/build