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 <danh.doan.ue@bp.renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
  • Loading branch information
Danh Doan authored and kartben committed Dec 23, 2024
1 parent 9792abb commit 093b5ab
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 @@ -84,6 +84,8 @@ hardware features:
+-----------+------------+-------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------+
| 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 @@ -20,6 +20,7 @@
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -93,3 +94,7 @@
interrupt-names = "gtioca", "overflow";
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 @@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA4E2 board:
+-----------+------------+----------------------+
| PWM | on-chip | pwm |
+-----------+------------+----------------------+
| 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 @@ -21,6 +21,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,canbus = &canfd0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -162,3 +163,7 @@
divider = <RA_PWM_SOURCE_DIV_256>;
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 @@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA6E2 board:
+-----------+------------+----------------------+
| PWM | on-chip | pwm |
+-----------+------------+----------------------+
| 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 @@ -22,6 +22,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,canbus = &canfd0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -177,3 +178,7 @@
divider = <RA_PWM_SOURCE_DIV_256>;
status = "okay";
};

&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 @@ -91,6 +91,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E2 board:
+-----------+------------+----------------------+
| PWM | on-chip | pwm |
+-----------+------------+----------------------+
| 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 @@ -21,6 +21,7 @@
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,entropy = &trng;
};

leds {
Expand Down Expand Up @@ -123,3 +124,7 @@
divider = <RA_PWM_SOURCE_DIV_256>;
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 @@ -86,6 +86,11 @@
#pwm-cells = <3>;
status = "disabled";
};

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 @@ -74,6 +74,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 @@ -85,6 +85,11 @@
#pwm-cells = <3>;
status = "disabled";
};

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

clocks: clocks {
Expand Down

0 comments on commit 093b5ab

Please sign in to comment.