Skip to content

Commit cb93c20

Browse files
ozersakartben
authored andcommitted
dts: arm: adi: Enable TRNG
Add MAX32657 TRNG device node Add TRNG in MAX32657 board file Signed-off-by: Sadik Ozer <[email protected]>
1 parent 84ec336 commit cb93c20

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

boards/adi/max32657evkit/max32657evkit_max32657.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@
4646
};
4747
};
4848
};
49+
50+
&trng {
51+
status = "okay";
52+
};

boards/adi/max32657evkit/max32657evkit_max32657.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ toolchain:
99
supported:
1010
- serial
1111
- gpio
12+
- trng
1213
ram: 256
1314
flash: 960

dts/arm/adi/max32/max32657_common.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/ {
1212
chosen {
13+
zephyr,entropy = &trng;
1314
zephyr,flash-controller = &flc0;
1415
};
1516

@@ -136,6 +137,13 @@
136137
interrupts = <11 0>;
137138
status = "disabled";
138139
};
140+
141+
trng: trng@4d000 {
142+
compatible = "adi,max32-trng";
143+
reg = <0x4d000 0x1000>;
144+
clocks = <&gcr ADI_MAX32_CLOCK_BUS1 2>;
145+
status = "disabled";
146+
};
139147
};
140148

141149
&nvic {

0 commit comments

Comments
 (0)