From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: lanefu 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 --- 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 111111111111..222222222222 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -421,6 +421,33 @@ &uart6 { 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>; -- Armbian