[PATCH 1/1] riscv: dts: spacemit: enable QSPI for OrangePi RV2
Chukun Pan
amadeus at jmu.edu.cn
Sat May 16 01:00:30 PDT 2026
Enable the QSPI controller and the XM25QU128C SPI NOR flash on the
OrangePi RV2 board. Add a flash partition layout from vendor UBoot.
Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
---
.../boot/dts/spacemit/k1-orangepi-rv2.dts | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index c95ca38e3d4a..3081065cec0e 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -288,6 +288,51 @@ &pcie2 {
status = "okay";
};
+&qspi {
+ pinctrl-names = "default";
+ pinctrl-0 = <&qspi_cfg>;
+ status = "okay";
+
+ flash at 0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <26500000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ vcc-supply = <&buck3_1v8>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ bootinfo at 0 {
+ reg = <0x00000 0x010000>;
+ };
+
+ private at 10000 {
+ reg = <0x10000 0x010000>;
+ };
+
+ fsbl at 20000 {
+ reg = <0x20000 0x040000>;
+ };
+
+ env at 60000 {
+ reg = <0x60000 0x010000>;
+ };
+
+ opensbi at 70000 {
+ reg = <0x70000 0x030000>;
+ };
+
+ uboot at a00000 {
+ reg = <0xa0000 0x760000>;
+ };
+ };
+ };
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_2_cfg>;
--
2.34.1
More information about the linux-riscv
mailing list