Skip to content

Commit 1d9af41

Browse files
lucasdietrichcarlescufi
authored andcommitted
dts: stm32l4: Update AES node for stm32l4 series
The stm32l4 devices were previously assigned the generic STM32 AES driver, which turned out to be incompatible with the stm32l4 series. This commit updates the nodes to use the new driver specifically designed for this series. Add missing node for stm32l4a6, stm32l4q5, stm32l4s5 and stm32l486 socs. It appears stm32l4p5 and stm32l496 socs do not have the AES accelerator present, so the nodes are removed from the dts files. Signed-off-by: Lucas Dietrich <[email protected]>
1 parent 11abb5e commit 1d9af41

File tree

8 files changed

+42
-22
lines changed

8 files changed

+42
-22
lines changed

dts/arm/st/l4/stm32l422.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
compatible = "st,stm32l422", "st,stm32l4", "simple-bus";
1212

1313
aes: aes@50060000 {
14-
compatible = "st,stm32-aes";
14+
compatible = "st,stm32l4-aes", "st,stm32-aes";
1515
reg = <0x50060000 0x400>;
1616
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
1717
resets = <&rctl STM32_RESET(AHB2, 16U)>;

dts/arm/st/l4/stm32l462.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
compatible = "st,stm32l462", "st,stm32l4", "simple-bus";
1212

1313
aes: aes@50060000 {
14-
compatible = "st,stm32-aes";
14+
compatible = "st,stm32l4-aes", "st,stm32-aes";
1515
reg = <0x50060000 0x400>;
1616
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
1717
resets = <&rctl STM32_RESET(AHB2, 16U)>;

dts/arm/st/l4/stm32l486.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@
99
/ {
1010
soc {
1111
compatible = "st,stm32l486", "st,stm32l4", "simple-bus";
12+
13+
aes: aes@50060000 {
14+
compatible = "st,stm32l4-aes", "st,stm32-aes";
15+
reg = <0x50060000 0x400>;
16+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
17+
resets = <&rctl STM32_RESET(AHB2, 16U)>;
18+
interrupts = <79 0>;
19+
interrupt-names = "aes";
20+
status = "disabled";
21+
};
1222
};
1323
};

dts/arm/st/l4/stm32l496.dtsi

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,6 @@
6060
status = "disabled";
6161
};
6262

63-
aes: aes@50060000 {
64-
compatible = "st,stm32-aes";
65-
reg = <0x50060000 0x400>;
66-
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
67-
resets = <&rctl STM32_RESET(AHB2, 16U)>;
68-
interrupts = <79 0>;
69-
interrupt-names = "aes";
70-
status = "disabled";
71-
};
72-
7363
usbotg_fs: otgfs@50000000 {
7464
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00001000>,
7565
<&rcc STM32_SRC_HSI48 CLK48_SEL(0)>;

dts/arm/st/l4/stm32l4a6.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@
99
/ {
1010
soc {
1111
compatible = "st,stm32l4a6", "st,stm32l4", "simple-bus";
12+
13+
aes: aes@50060000 {
14+
compatible = "st,stm32l4-aes", "st,stm32-aes";
15+
reg = <0x50060000 0x400>;
16+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
17+
resets = <&rctl STM32_RESET(AHB2, 16U)>;
18+
interrupts = <79 0>;
19+
interrupt-names = "aes";
20+
status = "disabled";
21+
};
1222
};
1323
};

dts/arm/st/l4/stm32l4p5.dtsi

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,6 @@
294294
status = "disabled";
295295
};
296296

297-
aes: aes@50060000 {
298-
compatible = "st,stm32-aes";
299-
reg = <0x50060000 0x400>;
300-
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
301-
resets = <&rctl STM32_RESET(AHB2, 16U)>;
302-
interrupts = <79 0>;
303-
interrupt-names = "aes";
304-
status = "disabled";
305-
};
306-
307297
usbotg_fs: otgfs@50000000 {
308298
compatible = "st,stm32-otgfs";
309299
reg = <0x50000000 0x40000>;

dts/arm/st/l4/stm32l4q5.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@
99
/ {
1010
soc {
1111
compatible = "st,stm32l4q5", "st,stm32l4", "simple-bus";
12+
13+
aes: aes@50060000 {
14+
compatible = "st,stm32l4-aes", "st,stm32-aes";
15+
reg = <0x50060000 0x400>;
16+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
17+
resets = <&rctl STM32_RESET(AHB2, 16U)>;
18+
interrupts = <79 0>;
19+
interrupt-names = "aes";
20+
status = "disabled";
21+
};
1222
};
1323
};

dts/arm/st/l4/stm32l4s5.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@
99
/ {
1010
soc {
1111
compatible = "st,stm32l4s5", "st,stm32l4", "simple-bus";
12+
13+
aes: aes@50060000 {
14+
compatible = "st,stm32l4-aes", "st,stm32-aes";
15+
reg = <0x50060000 0x400>;
16+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
17+
resets = <&rctl STM32_RESET(AHB2, 16U)>;
18+
interrupts = <79 0>;
19+
interrupt-names = "aes";
20+
status = "disabled";
21+
};
1222
};
1323
};

0 commit comments

Comments
 (0)