mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
0cfd254913
Hardware -------- RockChip RK3588 ARM64 (8 cores) 4/8/16/32GB LPDDR4X RAM 1000 Base-T Status LED eMMC/SPI Connector Micro-SD Slot 2x USB 3.0 Port 2x USB 2.0 Port Headphone Jack M.2 E-Key USB PD/QC 5/9/12/15/20V Power Install -------- Uncompress the OpenWrt sysupgrade and write it to a micro SD card or internal eMMC using dd. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> Link: https://github.com/openwrt/openwrt/pull/16149 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From 00224650dd45e166ea6eb1593f5f064583963ccf Mon Sep 17 00:00:00 2001
|
|
From: FUKAUMI Naoki <naoki@radxa.com>
|
|
Date: Sun, 23 Jun 2024 11:33:28 +0900
|
|
Subject: [PATCH] arm64: dts: rockchip: add (but disabled) SFC node for Radxa
|
|
ROCK 5A
|
|
|
|
This commit adds SFC node for Radxa ROCK 5A.
|
|
|
|
since sdhci and sfc on RK3588s share pins(i.e. exclusive), it cannot
|
|
be enabled both nodes at the same time. so status = "okay" is omitted
|
|
here.
|
|
|
|
you may be able to enable sfc (and disable sdhci) by fdt overlay.
|
|
|
|
SPI NOR flash chip may vary, so use safe(lowest) spi-max-frequency.
|
|
|
|
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
|
|
Link: https://lore.kernel.org/r/20240623023329.1044-2-naoki@radxa.com
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
---
|
|
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
|
|
@@ -376,6 +376,19 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&sfc {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&fspim0_pins>;
|
|
+
|
|
+ flash@0 {
|
|
+ compatible = "jedec,spi-nor";
|
|
+ reg = <0>;
|
|
+ spi-max-frequency = <104000000>;
|
|
+ spi-rx-bus-width = <4>;
|
|
+ spi-tx-bus-width = <1>;
|
|
+ };
|
|
+};
|
|
+
|
|
&spi2 {
|
|
status = "okay";
|
|
assigned-clocks = <&cru CLK_SPI2>;
|