From 87e3122b67587492a617764f88c71991893fcf8a Mon Sep 17 00:00:00 2001 From: Jakob Leifhelm Date: Thu, 8 Jun 2023 20:33:14 +0200 Subject: [PATCH] starfive visionfive2: Increase mtd0 to fit spl --- starfive/visionfive/v2/default.nix | 5 +++++ starfive/visionfive/v2/qspi-patch.dts | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 starfive/visionfive/v2/qspi-patch.dts diff --git a/starfive/visionfive/v2/default.nix b/starfive/visionfive/v2/default.nix index e4ba893..1a3c66c 100644 --- a/starfive/visionfive/v2/default.nix +++ b/starfive/visionfive/v2/default.nix @@ -21,4 +21,9 @@ hardware.deviceTree.name = lib.mkDefault "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb"; + + hardware.deviceTree.overlays = [{ + name = "qspi-patch"; + dtsFile = ./qspi-patch.dts; + }]; } diff --git a/starfive/visionfive/v2/qspi-patch.dts b/starfive/visionfive/v2/qspi-patch.dts new file mode 100644 index 0000000..6e12c98 --- /dev/null +++ b/starfive/visionfive/v2/qspi-patch.dts @@ -0,0 +1,17 @@ +/dts-v1/; +/plugin/; +/ { + compatible = "starfive,jh7110"; + fragment@0 { + target = <&qspi>; + __overlay__ { + nor_flash: flash@0 { + partitions { + spl@0 { + reg = <0x0 0x40000>; + }; + }; + }; + }; + }; +};