Skip to content

Commit

Permalink
Temporary use Gigadevice flash on v5.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkra committed Apr 23, 2024
1 parent 6293310 commit d2310a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
10 changes: 3 additions & 7 deletions app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_STREAM_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=65536
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

CONFIG_SPI_FLASH_LOADER=y

Expand Down Expand Up @@ -41,11 +41,7 @@ CONFIG_NRF_FUEL_GAUGE=y
CONFIG_APPLICATIONS_USE_BATTERY=n

# Temporary due to current flash having larger pages than NVS can handle.
CONFIG_FCB=y
CONFIG_SETTINGS_FCB=y
CONFIG_SETTINGS_NVS=n
CONFIG_NVS=n

CONFIG_ERASE_PROGRESSIVELY=n
CONFIG_SETTINGS_NVS=y
CONFIG_NVS=y

CONFIG_DEBUG_COREDUMP_BACKEND_OTHER=y
23 changes: 11 additions & 12 deletions app/boards/arm/zswatch_nrf5340/zswatch_nrf5340_cpuapp_5.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@
};
/ {
chosen {
nordic,pm-ext-flash = &s25fs256s;
nordic,pm-ext-flash = &gd25lq128d;
zephyr,console = &cdc_acm_uart0;
};

aliases {
spi-flash0 = &s25fs256s;
spi-flash0 = &gd25lq128d;
};

longpress: longpress {
Expand Down Expand Up @@ -245,24 +245,23 @@
pinctrl-0 = <&qspi_default>;
pinctrl-1 = <&qspi_sleep>;
pinctrl-names = "default", "sleep";
s25fs256s: s25fs256s@0 {
gd25lq128d: gd25lq128d@0 {
compatible = "nordic,qspi-nor";
reg = <0>;
sck-frequency = <96000000>;
jedec-id = [01 02 19];
size = <DT_SIZE_M(32*8)>;
jedec-id = [c8 60 18];
size = <DT_SIZE_M(16*8)>;
has-dpd;
// CS High to Power-Down Mode (tDP) - 3 us
// Rev. S Table 26. AC Electrical Characteristic
t-enter-dpd = <3000>;
t-enter-dpd = <30000>;
// CS High to Standby Mode without Electronic Signature Read (tRES1) 3 us
// Rev. S Table 26. AC Electrical Characteristic
t-exit-dpd = <3000>;
t-exit-dpd = <30000>;
// Configure to actully use Quad SPI data.
// TODO
//writeoc = "pp4o";
//readoc = "read4io";
//quad-enable-requirements = "S2B1v6";
writeoc = "pp4o";
readoc = "read4io";
quad-enable-requirements = "S2B1v1";
};
};

Expand All @@ -285,7 +284,7 @@

/delete-node/ &storage_partition;

&s25fs256s {
&gd25lq128d {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Expand Down
Binary file not shown.

0 comments on commit d2310a5

Please sign in to comment.