[PATCH 12/15] arm64: dts: rockchip: add SFC support for opi5max

Jimmy Hon honyuenkwun at gmail.com
Sat Oct 26 02:48:28 PDT 2024


This commit adds support for SPI NOR flash on Orange Pi 5 Max

Signed-off-by: Jimmy Hon <honyuenkwun at gmail.com>
---
 .../boot/dts/rockchip/rk3588-orangepi-5-max.dts    | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
index 71b2d891a2bb..0cf0e30a503a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
@@ -327,6 +327,20 @@ &sdmmc {
 	status = "okay";
 };
 
+&sfc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&fspim2_pins>;
+	status = "okay";
+
+	spi_flash: flash at 0 {
+		compatible = "jedec,spi-nor";
+		reg = <0x0>;
+		spi-max-frequency = <100000000>;
+		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
+	};
+};
+
 &spi2 {
 	assigned-clocks = <&cru CLK_SPI2>;
 	assigned-clock-rates = <200000000>;
-- 
2.47.0




More information about the Linux-rockchip mailing list