Skip to content

Commit 1cc4070

Browse files
boards: renesas: Add support MCUBoot for ek_ra8p1 and mck_ra8t2
Add support MCUBoot for ek_ra8p1 and mck_ra8t2 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 2548275 commit 1cc4070

File tree

4 files changed

+106
-1
lines changed

4 files changed

+106
-1
lines changed

boards/renesas/ek_ra8p1/ek_ra8p1_r7ka8p1kflcac_cm33.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
chosen {
1616
zephyr,sram = &sram1;
1717
zephyr,flash = &code_mram_cm33;
18+
zephyr,flash-controller = &mram_ctrl;
19+
zephyr,code-partition = &slot0_partition;
1820
zephyr,console = &uart9;
1921
zephyr,shell-uart = &uart9;
2022
};
@@ -105,4 +107,37 @@
105107
};
106108
};
107109

110+
&code_mram_cm33 {
111+
partitions {
112+
compatible = "fixed-partitions";
113+
#address-cells = <1>;
114+
#size-cells = <1>;
115+
116+
boot_partition: partition@0 {
117+
label = "mcuboot";
118+
reg = <0x0 DT_SIZE_K(44)>;
119+
};
120+
121+
slot0_partition: partition@b000 {
122+
label = "image-0";
123+
reg = <0xb000 DT_SIZE_K(98)>;
124+
};
125+
126+
slot1_partition: partition@23800 {
127+
label = "image-1";
128+
reg = <0x23800 DT_SIZE_K(98)>;
129+
};
130+
131+
scratch_partition: partition@3c000 {
132+
label = "image-scratch";
133+
reg = <0x3c000 DT_SIZE_K(8)>;
134+
};
135+
136+
storage_partition: partition@3e000 {
137+
label = "storage";
138+
reg = <0x3e000 DT_SIZE_K(8)>;
139+
};
140+
};
141+
};
142+
108143
pmod_sd_shield: &sdhc0 {};

boards/renesas/ek_ra8p1/ek_ra8p1_r7ka8p1kflcac_cm85.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
chosen {
1717
zephyr,sram = &sram0;
1818
zephyr,flash = &code_mram_cm85;
19+
zephyr,flash-controller = &mram_ctrl;
20+
zephyr,code-partition = &slot0_partition;
1921
zephyr,console = &uart8;
2022
zephyr,shell-uart = &uart8;
2123
};
@@ -130,6 +132,39 @@
130132
burst-transfer = <256>;
131133
};
132134

135+
&code_mram_cm85 {
136+
partitions {
137+
compatible = "fixed-partitions";
138+
#address-cells = <1>;
139+
#size-cells = <1>;
140+
141+
boot_partition: partition@0 {
142+
label = "mcuboot";
143+
reg = <0x0 DT_SIZE_K(64)>;
144+
};
145+
146+
slot0_partition: partition@10000 {
147+
label = "image-0";
148+
reg = <0x10000 DT_SIZE_K(272)>;
149+
};
150+
151+
slot1_partition: partition@54000 {
152+
label = "image-1";
153+
reg = <0x54000 DT_SIZE_K(272)>;
154+
};
155+
156+
scratch_partition: partition@98000 {
157+
label = "image-scratch";
158+
reg = <0x98000 DT_SIZE_K(16)>;
159+
};
160+
161+
storage_partition: partition@9c000 {
162+
label = "storage";
163+
reg = <0x9c000 DT_SIZE_K(16)>;
164+
};
165+
};
166+
};
167+
133168
zephyr_lcdif: &lcdif {};
134169

135170
pmod_sd_shield: &sdhc0 {};

boards/renesas/mck_ra8t2/mck_ra8t2_r7ka8t2lfecac_cm85.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
chosen {
1616
zephyr,sram = &sram0;
1717
zephyr,flash = &code_mram_cm85;
18+
zephyr,flash-controller = &mram_ctrl;
19+
zephyr,code-partition = &slot0_partition;
1820
zephyr,console = &uart9;
1921
zephyr,shell-uart = &uart9;
2022
};
@@ -91,3 +93,36 @@
9193
status = "okay";
9294
};
9395
};
96+
97+
&code_mram_cm85 {
98+
partitions {
99+
compatible = "fixed-partitions";
100+
#address-cells = <1>;
101+
#size-cells = <1>;
102+
103+
boot_partition: partition@0 {
104+
label = "mcuboot";
105+
reg = <0x0 DT_SIZE_K(64)>;
106+
};
107+
108+
slot0_partition: partition@10000 {
109+
label = "image-0";
110+
reg = <0x10000 DT_SIZE_K(448)>;
111+
};
112+
113+
slot1_partition: partition@80000 {
114+
label = "image-1";
115+
reg = <0x80000 DT_SIZE_K(448)>;
116+
};
117+
118+
scratch_partition: partition@f0000 {
119+
label = "image-scratch";
120+
reg = <0xf0000 DT_SIZE_K(32)>;
121+
};
122+
123+
storage_partition: partition@f8000 {
124+
label = "storage";
125+
reg = <0xf8000 DT_SIZE_K(32)>;
126+
};
127+
};
128+
};

dts/arm/renesas/ra/ra8/ra8x2.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
status = "okay";
7474
};
7575

76-
mram: mram-controller@4013c000 {
76+
mram_ctrl: mram-controller@4013c000 {
7777
compatible = "renesas,ra-mram-controller";
7878
reg = <0x4013c000 0x4000>;
7979
#address-cells = <1>;

0 commit comments

Comments
 (0)