diff mbox series

[1/3] arm64: dts: rockchip: add SFC support for Radxa ROCK 5B

Message ID 20240623023329.1044-1-naoki@radxa.com (mailing list archive)
State New
Headers show
Series [1/3] arm64: dts: rockchip: add SFC support for Radxa ROCK 5B | expand

Commit Message

FUKAUMI Naoki June 23, 2024, 2:33 a.m. UTC
This commit adds support for SPI NOR flash on Radxa ROCK 5B.

SPI NOR flash chip may vary, so use safe(lowest) spi-max-frequency.

Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
---
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Heiko Stuebner June 24, 2024, 4:20 p.m. UTC | #1
On Sun, 23 Jun 2024 11:33:27 +0900, FUKAUMI Naoki wrote:
> This commit adds support for SPI NOR flash on Radxa ROCK 5B.
> 
> SPI NOR flash chip may vary, so use safe(lowest) spi-max-frequency.
> 
> 

Applied, thanks!

[1/3] arm64: dts: rockchip: add SFC support for Radxa ROCK 5B
      commit: 9204a7ecca96403ee3d61c14cb9eb87ec89b0fcd
[2/3] arm64: dts: rockchip: add (but disabled) SFC node for Radxa ROCK 5A
      commit: 00224650dd45e166ea6eb1593f5f064583963ccf
[3/3] arm64: dts: rockchip: change spi-max-frequency for Radxa ROCK 3C
      commit: 06f6dd4d607766a527e37529f2f3f90dd1464293

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
index 6a3fd6be1793..966bbc582d89 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
@@ -449,6 +449,20 @@  &sdio {
 	status = "okay";
 };
 
+&sfc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&fspim2_pins>;
+	status = "okay";
+
+	flash@0 {
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <104000000>;
+		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
+	};
+};
+
 &uart6 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart6m1_xfer &uart6m1_ctsn &uart6m1_rtsn>;