2024-04-09 12:00:53

by Chukun Pan

[permalink] [raw]
Subject: [v2 0/1] arm64: dts: rockchip: enable onboard spi flash for rock-3a

Changes in v2:
Add missing cells count.
Increase spi max frequency to 104MHz.


2024-04-09 12:00:54

by Chukun Pan

[permalink] [raw]
Subject: [v2 1/1] arm64: dts: rockchip: enable onboard spi flash for rock-3a

There is a mx25u12835f spi flash on this board, enable it.

[ 2.525805] spi-nor spi4.0: mx25u12835f (16384 Kbytes)

Signed-off-by: Chukun Pan <[email protected]>
---
arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
index a5e974ea659e..c62230308457 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
@@ -757,6 +757,20 @@ &sdmmc2 {
status = "okay";
};

+&sfc {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0x0>;
+ spi-max-frequency = <104000000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <1>;
+ };
+};
+
&tsadc {
rockchip,hw-tshut-mode = <1>;
rockchip,hw-tshut-polarity = <0>;
--
2.25.1


2024-05-03 11:40:07

by Heiko Stuebner

[permalink] [raw]
Subject: Re: [v2 0/1] arm64: dts: rockchip: enable onboard spi flash for rock-3a

On Tue, 9 Apr 2024 20:00:02 +0800, Chukun Pan wrote:
> Changes in v2:
> Add missing cells count.
> Increase spi max frequency to 104MHz.
>

Applied, thanks!

[1/1] arm64: dts: rockchip: enable onboard spi flash for rock-3a
commit: 6c7676a2d3cde81f02e2cb7ac40ca5a99c107dec

Best regards,
--
Heiko Stuebner <[email protected]>