74 lines
2.1 KiB
Diff
74 lines
2.1 KiB
Diff
From 0a0b9c2ad766b0f2789c12abc6d78cd97b57bf22 Mon Sep 17 00:00:00 2001
|
|
From: Stephen <stephen@vamrs.com>
|
|
Date: Sat, 15 Jun 2019 11:35:35 +0800
|
|
Subject: [PATCH 58/97] arm64: overlays-rockpi4: add spi1 flash support
|
|
|
|
Signed-off-by: Stephen <stephen@vamrs.com>
|
|
---
|
|
.../dts/rockchip/overlays-rockpi4/Makefile | 3 +-
|
|
.../overlays-rockpi4/spi1-flash-overlay.dts | 38 +++++++++++++++++++
|
|
2 files changed, 40 insertions(+), 1 deletion(-)
|
|
create mode 100644 arch/arm64/boot/dts/rockchip/overlays-rockpi4/spi1-flash-overlay.dts
|
|
|
|
diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
|
|
index fa22f1b499ef..aeeb2218930c 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
|
|
+++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
|
|
@@ -9,7 +9,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
|
|
devspi2.dtbo \
|
|
pcie-gen2.dtbo \
|
|
spi1-waveshare35c.dtbo \
|
|
- spi1-waveshare35b-v2.dtbo
|
|
+ spi1-waveshare35b-v2.dtbo \
|
|
+ spi1-flash.dtbo
|
|
|
|
targets += dtbs dtbs_install
|
|
targets += $(dtbo-y)
|
|
diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/spi1-flash-overlay.dts b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/spi1-flash-overlay.dts
|
|
new file mode 100644
|
|
index 000000000000..bca5891a8594
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/spi1-flash-overlay.dts
|
|
@@ -0,0 +1,38 @@
|
|
+//This devicetree overlay is used to boot ROCK Pi 4 from SPI Flash device.
|
|
+//Test device: GD25Q127CSIG
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+/ {
|
|
+ model = "ROCK PI 4B";
|
|
+ compatible = "rockchip,rockpi","rockchip,rk3399";
|
|
+
|
|
+ fragment@0 {
|
|
+ target = <&spi1>;
|
|
+
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ max-freq = <10000000>;
|
|
+
|
|
+ spiflash: spi-flash@0 {
|
|
+ #address-cells = <0x1>;
|
|
+ #size-cells = <1>;
|
|
+ compatible = "jedec,spi-nor";
|
|
+ reg = <0x0>;
|
|
+ spi-max-frequency = <10000000>;
|
|
+ status = "okay";
|
|
+
|
|
+ partitions {
|
|
+ compatible = "fixed-partitions";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ loader@0 {
|
|
+ label = "loader";
|
|
+ reg = <0x0 0x400000>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
--
|
|
2.25.1
|
|
|