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>; + }; + }; + }; + }; + }; +};