Skip to content

Commit 8a901ed

Browse files
bayrem-gharsellaouijhedberg
authored andcommitted
boards: stm32: Enable HASH peripheral for nucleo_u575zi_q
Add device tree support for STM32 HASH peripheral on the nucleo_u575zi_q Signed-off-by: Bayrem Gharsellaoui <[email protected]>
1 parent 95934d2 commit 8a901ed

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

boards/st/nucleo_u575zi_q/nucleo_u575zi_q-common.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@
176176
status = "okay";
177177
};
178178

179+
&hash {
180+
status = "okay";
181+
};
182+
179183
zephyr_udc0: &usbotg_fs {
180184
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
181185
pinctrl-names = "default";

dts/arm/st/u5/stm32u575.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <st/u5/stm32u5_usbotg_fs.dtsi>
99
#include <zephyr/dt-bindings/memory-controller/stm32-fmc-nor-psram.h>
10+
#include <st/u5/stm32u5_crypt.dtsi>
1011

1112
/ {
1213
sram0: memory@20000000 {

dts/arm/st/u5/stm32u5_crypt.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,13 @@
1414
interrupts = <93 0>;
1515
status = "disabled";
1616
};
17+
18+
hash: hash@420c0400 {
19+
compatible = "st,stm32-hash";
20+
reg = <0x420c0400 0x400>;
21+
clocks = <&rcc STM32_CLOCK(AHB2, 17)>;
22+
resets = <&rctl STM32_RESET(AHB2L, 17)>;
23+
status = "disabled";
24+
};
1725
};
1826
};

0 commit comments

Comments
 (0)