Skip to content

Commit c4b53d5

Browse files
erwangocarlescufi
authored andcommitted
dts: stm32f4: stm32f437 is a variant of stm32f427
stm32f427 + crypto = stm32f437 Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 7c147ef commit c4b53d5

File tree

3 files changed

+10
-95
lines changed

3 files changed

+10
-95
lines changed

dts/arm/st/f4/stm32f427.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
status = "disabled";
5959
};
6060

61-
/* spi5 is present on all STM32F429XX SoCs except
62-
* STM32F429vX SoCs. Delete node in stm32f429vX.dtsi.
61+
/* spi5 is present on all STM32F427XX and derivates SoCs except
62+
* some vX variants. Delete node in vX.dtsi.
6363
*/
6464
spi5: spi@40015000 {
6565
compatible = "st,stm32-spi";
@@ -71,8 +71,8 @@
7171
status = "disabled";
7272
};
7373

74-
/* spi6 is present on all STM32F429XX SoCs except
75-
* STM32F429vX SoCs. Delete node in stm32f429vX.dtsi.
74+
/* spi6 is present on all STM32F427XX and derivates SoCs except
75+
* some vX variants. Delete node in vX.dtsi.
7676
*/
7777
spi6: spi@40015400 {
7878
compatible = "st,stm32-spi";

dts/arm/st/f4/stm32f437.dtsi

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -4,97 +4,11 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <st/f4/stm32f407.dtsi>
8-
#include <zephyr/dt-bindings/clock/stm32f427_clock.h>
7+
#include <st/f4/stm32f427.dtsi>
98
#include <zephyr/dt-bindings/memory-controller/stm32-fmc-sdram.h>
109

1110
/ {
1211
soc {
13-
pinctrl: pin-controller@40020000 {
14-
reg = <0x40020000 0x2C00>;
15-
16-
gpioj: gpio@40022400 {
17-
compatible = "st,stm32-gpio";
18-
gpio-controller;
19-
#gpio-cells = <2>;
20-
reg = <0x40022400 0x400>;
21-
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x00000200>;
22-
};
23-
24-
gpiok: gpio@40022800 {
25-
compatible = "st,stm32-gpio";
26-
gpio-controller;
27-
#gpio-cells = <2>;
28-
reg = <0x40022800 0x400>;
29-
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x00000400>;
30-
};
31-
};
32-
33-
uart7: serial@40007800 {
34-
compatible = "st,stm32-uart";
35-
reg = <0x40007800 0x400>;
36-
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x40000000>;
37-
resets = <&rctl STM32_RESET(APB1, 30U)>;
38-
interrupts = <82 0>;
39-
status = "disabled";
40-
};
41-
42-
uart8: serial@40007c00 {
43-
compatible = "st,stm32-uart";
44-
reg = <0x40007c00 0x400>;
45-
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x80000000>;
46-
resets = <&rctl STM32_RESET(APB1, 31U)>;
47-
interrupts = <83 0>;
48-
status = "disabled";
49-
};
50-
51-
spi4: spi@40013400 {
52-
compatible = "st,stm32-spi";
53-
#address-cells = <1>;
54-
#size-cells = <0>;
55-
reg = <0x40013400 0x400>;
56-
interrupts = <84 5>;
57-
status = "disabled";
58-
};
59-
60-
/* spi5 is present on all STM32F437XX SoCs except
61-
* STM32F437vX SoCs. Delete node in stm32f437vX.dtsi.
62-
*/
63-
spi5: spi@40015000 {
64-
compatible = "st,stm32-spi";
65-
#address-cells = <1>;
66-
#size-cells = <0>;
67-
reg = <0x40015000 0x400>;
68-
interrupts = <85 5>;
69-
status = "disabled";
70-
};
71-
72-
/* spi6 is present on all STM32F437XX SoCs except
73-
* STM32F437vX SoCs. Delete node in stm32f437vX.dtsi.
74-
*/
75-
spi6: spi@40015400 {
76-
compatible = "st,stm32-spi";
77-
#address-cells = <1>;
78-
#size-cells = <0>;
79-
reg = <0x40015400 0x400>;
80-
interrupts = <86 5>;
81-
status = "disabled";
82-
};
83-
84-
fmc: memory-controller@a0000000 {
85-
compatible = "st,stm32-fmc";
86-
reg = <0xa0000000 0x400>;
87-
clocks = <&rcc STM32_CLOCK_BUS_AHB3 0x00000001>;
88-
status = "disabled";
89-
90-
sdram: sdram {
91-
compatible = "st,stm32-fmc-sdram";
92-
#address-cells = <1>;
93-
#size-cells = <0>;
94-
status = "disabled";
95-
};
96-
};
97-
9812
cryp: cryp@50060000 {
9913
compatible = "st,stm32-cryp";
10014
reg = <0x50060000 0x400>;
@@ -103,8 +17,4 @@
10317
status = "disabled";
10418
};
10519
};
106-
107-
die_temp: dietemp {
108-
io-channels = <&adc1 18>;
109-
};
11020
};

dts/arm/st/f4/stm32f437vX.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
#include <st/f4/stm32f437.dtsi>
88

9+
/* spi5 and spi6 are present on all STM32F437XX SoCs except
10+
* STM32F437vX SoCs, so they are defined in stm32f429.dtsi and deleted
11+
* here.
12+
*/
13+
914
/delete-node/ &spi5;
1015

1116
/delete-node/ &spi6;

0 commit comments

Comments
 (0)