Skip to content

Commit

Permalink
boards: renesas: Add Flash HP support for Renesas RA6, RA4
Browse files Browse the repository at this point in the history
- Add Flash HP support for ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4,
ek_ra6m5, ek_ra6e2, fpb_ra6e1, fpb_ra6e2, ek_ra4e2, ek_ra4m2,
ek_ra4m3
- Add doc about Flash for these boards

Signed-off-by: Khoa Nguyen <[email protected]>
Signed-off-by: Phi Tran <[email protected]>
  • Loading branch information
khoa-nguyen-18 authored and root committed Nov 25, 2024
1 parent cb8c5cc commit 6e3441e
Show file tree
Hide file tree
Showing 21 changed files with 153 additions and 34 deletions.
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra4e2/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA4E2 board:
+-----------+------------+----------------------+
| SPI | on-chip | spi |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra4e2/ek_ra4e2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
Expand Down Expand Up @@ -82,3 +83,16 @@
pinctrl-names = "default";
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(4)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra4m2/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M2 board:
+-----------+------------+----------------------+
| COUNTER | on-chip | counter |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra4m2/ek_ra4m2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
Expand Down Expand Up @@ -78,3 +79,16 @@
pinctrl-names = "default";
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(8)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra4m3/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M3 board:
+-----------+------------+----------------------+
| COUNTER | on-chip | counter |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra4m3/ek_ra4m3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
Expand Down Expand Up @@ -78,3 +79,16 @@
pinctrl-names = "default";
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(8)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra6e2/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA6E2 board:
+-----------+------------+----------------------+
| SPI | on-chip | spi |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
32 changes: 14 additions & 18 deletions boards/renesas/ek_ra6e2/ek_ra6e2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
Expand Down Expand Up @@ -70,24 +71,6 @@
status = "okay";
};

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "application";
reg = <0x00000000 DT_SIZE_K(128)>;
};

storage_partition: partition@20000 {
label = "storage";
reg = <0x20000 DT_SIZE_K(128)>;
};
};
};

&xtal {
clock-frequency = <DT_FREQ_M(20)>;
mosel = <0>;
Expand All @@ -105,3 +88,16 @@
mul = <10 0>;
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(4)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra6m1/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M1 board:
+-----------+------------+----------------------+
| COUNTER | on-chip | counter |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m1/ek_ra6m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart8;
zephyr,shell-uart = &uart8;
Expand Down Expand Up @@ -82,3 +83,16 @@
mul = <20 0>;
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(8)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra6m2/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M2 board:
+-----------+------------+----------------------+
| COUNTER | on-chip | counter |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m2/ek_ra6m2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart7;
zephyr,shell-uart = &uart7;
Expand Down Expand Up @@ -82,3 +83,16 @@
mul = <20 0>;
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(32)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra6m3/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M3 board:
+-----------+------------+----------------------+
| COUNTER | on-chip | counter |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m3/ek_ra6m3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
zephyr,sram = &sram0;
zephyr,console = &uart8;
zephyr,shell-uart = &uart8;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
};

Expand Down Expand Up @@ -94,3 +95,16 @@
mul = <20 0>;
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(64)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra6m4/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M4 board:
+-----------+------------+----------------------+
| COUNTER | on-chip | counter |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m4/ek_ra6m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
Expand Down Expand Up @@ -96,3 +97,16 @@
div = <2>;
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(8)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra6m5/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M5 board:
+-----------+------------+----------------------+
| COUNTER | on-chip | counter |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m5/ek_ra6m5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
Expand Down Expand Up @@ -90,3 +91,16 @@
mul = <25 0>;
status = "okay";
};

&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

storage_partition: partition@0 {
label = "storage";
reg = <0X0 DT_SIZE_K(8)>;
};
};
};
12 changes: 4 additions & 8 deletions boards/renesas/fpb_ra6e1/fpb_ra6e1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
zephyr,sram = &sram0;
zephyr,flash-controller = &flash1;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
Expand Down Expand Up @@ -80,20 +81,15 @@
status = "okay";
};

&flash0 {
&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "application";
reg = <0x00000000 DT_SIZE_K(512)>;
};

storage_partition: partition@80000 {
storage_partition: partition@0 {
label = "storage";
reg = <0x80000 DT_SIZE_K(512)>;
reg = <0X0 DT_SIZE_K(8)>;
};
};
};
2 changes: 2 additions & 0 deletions boards/renesas/fpb_ra6e2/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E2 board:
+-----------+------------+----------------------+
| SPI | on-chip | spi |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
11 changes: 3 additions & 8 deletions boards/renesas/fpb_ra6e2/fpb_ra6e2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,15 @@
status = "okay";
};

&flash0 {
&flash1 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "application";
reg = <0x00000000 DT_SIZE_K(128)>;
};

storage_partition: partition@20000 {
storage_partition: partition@0 {
label = "storage";
reg = <0x20000 DT_SIZE_K(128)>;
reg = <0X0 DT_SIZE_K(4)>;
};
};
};
Expand Down

0 comments on commit 6e3441e

Please sign in to comment.