Skip to content

Commit

Permalink
starfive visionfive2: Increase mtd0 to fit spl
Browse files Browse the repository at this point in the history
  • Loading branch information
leifhelm authored and Mic92 committed Aug 4, 2023
1 parent e8159d4 commit 87e3122
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions starfive/visionfive/v2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}];
}
17 changes: 17 additions & 0 deletions starfive/visionfive/v2/qspi-patch.dts
Original file line number Diff line number Diff line change
@@ -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>;
};
};
};
};
};
};

0 comments on commit 87e3122

Please sign in to comment.