Skip to content

Commit

Permalink
boards: renesas: add board support entropy driver using TRNG
Browse files Browse the repository at this point in the history
add support entropy for board: EK_RA6E2, EK_RA4E2, EK_RA2A1

Signed-off-by: Danh Doan <[email protected]>
Signed-off-by: Khoa Nguyen <[email protected]>
  • Loading branch information
Danh Doan authored and khoa-nguyen-18 committed Dec 18, 2024
1 parent a417f88 commit d5b26b8
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/renesas/ek_ra2a1/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ hardware features:
+-----------+------------+-------------------------------+
| COUNTER | on-chip | counter |
+-----------+------------+-------------------------------+
| ENTROPY | on-chip | entropy |
+-----------+------------+-------------------------------+

The default configuration can be found in
:zephyr_file:`boards/renesas/ek_ra2a1/ek_ra2a1_defconfig`
Expand Down
5 changes: 5 additions & 0 deletions boards/renesas/ek_ra2a1/ek_ra2a1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -69,3 +70,7 @@
&ioport1 {
status = "okay";
};

&trng {
status = "okay";
};
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 |
+-----------+------------+----------------------+
| ENTROPY | on-chip | entropy |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
5 changes: 5 additions & 0 deletions boards/renesas/ek_ra4e2/ek_ra4e2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,canbus = &canfd0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -111,3 +112,7 @@
status = "okay";
};
};

&trng {
status = "okay";
};
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 |
+-----------+------------+----------------------+
| ENTROPY | on-chip | entropy |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
5 changes: 5 additions & 0 deletions boards/renesas/ek_ra6e2/ek_ra6e2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,canbus = &canfd0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -126,3 +127,7 @@
};
};
};

&trng {
status ="okay";
};
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 |
+-----------+------------+----------------------+
| ENTROPY | on-chip | entropy |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

Expand Down
5 changes: 5 additions & 0 deletions boards/renesas/fpb_ra6e2/fpb_ra6e2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -87,3 +88,7 @@
mul = <10 0>;
status = "okay";
};

&trng {
status ="okay";
};
5 changes: 5 additions & 0 deletions dts/arm/renesas/ra/ra2/r7fa2a1xh.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
interrupts = <16 1>, <17 1>, <18 1>, <19 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
};

trng: trng {
compatible = "renesas,ra-trng";
status = "disabled";
};
};

clocks: clocks {
Expand Down
5 changes: 5 additions & 0 deletions dts/arm/renesas/ra/ra4/r7fa4e2b93cfm.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
status = "disabled";
};
};

trng: trng {
compatible = "renesas,ra-trng";
status = "disabled";
};
};

clocks: clocks {
Expand Down
5 changes: 5 additions & 0 deletions dts/arm/renesas/ra/ra6/r7fa6e2bx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
status = "disabled";
};
};

trng: trng {
compatible = "renesas,ra-trng";
status = "disabled";
};
};

clocks: clocks {
Expand Down

0 comments on commit d5b26b8

Please sign in to comment.