Skip to content

Commit 093b5ab

Browse files
Danh Doankartben
authored andcommitted
boards: renesas: add board support entropy driver using TRNG
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]>
1 parent 9792abb commit 093b5ab

File tree

11 files changed

+43
-0
lines changed

11 files changed

+43
-0
lines changed

boards/renesas/ek_ra2a1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ hardware features:
8484
+-----------+------------+-------------------------------+
8585
| PWM | on-chip | pwm |
8686
+-----------+------------+-------------------------------+
87+
| ENTROPY | on-chip | entropy |
88+
+-----------+------------+-------------------------------+
8789

8890
The default configuration can be found in
8991
:zephyr_file:`boards/renesas/ek_ra2a1/ek_ra2a1_defconfig`

boards/renesas/ek_ra2a1/ek_ra2a1.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,flash = &flash0;
2121
zephyr,console = &uart0;
2222
zephyr,shell-uart = &uart0;
23+
zephyr,entropy = &trng;
2324
};
2425

2526
leds {
@@ -93,3 +94,7 @@
9394
interrupt-names = "gtioca", "overflow";
9495
status = "okay";
9596
};
97+
98+
&trng {
99+
status = "okay";
100+
};

boards/renesas/ek_ra4e2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA4E2 board:
104104
+-----------+------------+----------------------+
105105
| PWM | on-chip | pwm |
106106
+-----------+------------+----------------------+
107+
| ENTROPY | on-chip | entropy |
108+
+-----------+------------+----------------------+
107109

108110
Other hardware features are currently not supported by the port.
109111

boards/renesas/ek_ra4e2/ek_ra4e2.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
zephyr,console = &uart0;
2222
zephyr,shell-uart = &uart0;
2323
zephyr,canbus = &canfd0;
24+
zephyr,entropy = &trng;
2425
};
2526

2627
leds {
@@ -162,3 +163,7 @@
162163
divider = <RA_PWM_SOURCE_DIV_256>;
163164
status = "okay";
164165
};
166+
167+
&trng {
168+
status = "okay";
169+
};

boards/renesas/ek_ra6e2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA6E2 board:
104104
+-----------+------------+----------------------+
105105
| PWM | on-chip | pwm |
106106
+-----------+------------+----------------------+
107+
| ENTROPY | on-chip | entropy |
108+
+-----------+------------+----------------------+
107109

108110
Other hardware features are currently not supported by the port.
109111

boards/renesas/ek_ra6e2/ek_ra6e2.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
zephyr,console = &uart0;
2323
zephyr,shell-uart = &uart0;
2424
zephyr,canbus = &canfd0;
25+
zephyr,entropy = &trng;
2526
};
2627

2728
leds {
@@ -177,3 +178,7 @@
177178
divider = <RA_PWM_SOURCE_DIV_256>;
178179
status = "okay";
179180
};
181+
182+
&trng {
183+
status ="okay";
184+
};

boards/renesas/fpb_ra6e2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E2 board:
9191
+-----------+------------+----------------------+
9292
| PWM | on-chip | pwm |
9393
+-----------+------------+----------------------+
94+
| ENTROPY | on-chip | entropy |
95+
+-----------+------------+----------------------+
9496

9597
Other hardware features are currently not supported by the port.
9698

boards/renesas/fpb_ra6e2/fpb_ra6e2.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
zephyr,flash = &flash0;
2222
zephyr,console = &uart0;
2323
zephyr,shell-uart = &uart0;
24+
zephyr,entropy = &trng;
2425
};
2526

2627
leds {
@@ -123,3 +124,7 @@
123124
divider = <RA_PWM_SOURCE_DIV_256>;
124125
status = "okay";
125126
};
127+
128+
&trng {
129+
status ="okay";
130+
};

dts/arm/renesas/ra/ra2/r7fa2a1xh.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
#pwm-cells = <3>;
8787
status = "disabled";
8888
};
89+
90+
trng: trng {
91+
compatible = "renesas,ra-trng";
92+
status = "disabled";
93+
};
8994
};
9095

9196
clocks: clocks {

dts/arm/renesas/ra/ra4/r7fa4e2b93cfm.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
status = "disabled";
7575
};
7676
};
77+
78+
trng: trng {
79+
compatible = "renesas,ra-trng";
80+
status = "disabled";
81+
};
7782
};
7883

7984
clocks: clocks {

0 commit comments

Comments
 (0)