Skip to content

Commit 3a18c06

Browse files
committed
boards: bl604e_iot_dvk: update to new bl60x support
Update to new bl60x support Signed-off-by: Camille BAUD <mail@massdriver.space>
1 parent 445ce72 commit 3a18c06

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

boards/bflb/bl60x/bl604e_iot_dvk/bl604e_iot_dvk.dts

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/dts-v1/;
88

9-
#include <bflb/bl60x.dtsi>
9+
#include <bflb/bl604.dtsi>
1010
#include "bl604e_iot_dvk-pinctrl.dtsi"
1111

1212
/ {
@@ -15,6 +15,7 @@
1515

1616
chosen {
1717
zephyr,flash = &flash0;
18+
zephyr,code-partition = &slot0_partition;
1819
zephyr,itcm = &itcm;
1920
zephyr,dtcm = &dtcm;
2021
zephyr,sram = &sram0;
@@ -27,18 +28,30 @@
2728
clock-frequency = <DT_FREQ_M(192)>;
2829
};
2930

30-
&spi1 {
31-
#address-cells = <1>;
32-
#size-cells = <0>;
33-
reg = <0x4000b000 0x1000 0x23000000 0xc00000>;
34-
35-
flash0: flash@0 {
36-
compatible = "issi,is25lp128", "jedec,spi-nor";
37-
status = "disabled";
38-
size = <DT_SIZE_M(128)>;
39-
jedec-id = [96 60 18];
40-
reg = <0>;
41-
spi-max-frequency = <DT_FREQ_M(133)>;
31+
&flashctrl {
32+
flash0: flash@23000000 {
33+
compatible = "soc-nv-flash", "issi,is25lp128";
34+
reg = <0x23000000 (0x1000000 - 0x2000)>;
35+
write-block-size = <256>;
36+
erase-block-size = <DT_SIZE_K(4)>;
37+
/* jedec-id = [96 60 18]; */
38+
39+
partitions {
40+
compatible = "fixed-partitions";
41+
#address-cells = <1>;
42+
#size-cells = <1>;
43+
44+
slot0_partition: partition@0 {
45+
label = "image-0";
46+
reg = <0x00000000 0x100000>;
47+
read-only;
48+
};
49+
50+
storage_partition: partition@100000 {
51+
label = "storage";
52+
reg = <0x00100000 (0xF00000 - 0x2000)>;
53+
};
54+
};
4255
};
4356
};
4457

0 commit comments

Comments
 (0)