Skip to content

Commit 0050ad8

Browse files
erwangocarlescufi
authored andcommitted
dts: stm32f4: stm32f412 is a variant of stm32f410
In order to ease description of DCKCFG regsiters, make f412 a variant of f410 as it supposed to be. Only exception is missing DAC1. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent afd0c6f commit 0050ad8

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

dts/arm/st/f4/stm32f412.dtsi

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <st/f4/stm32f411.dtsi>
7+
#include <st/f4/stm32f410.dtsi>
88

9+
/delete-node/ &dac1;
910
/ {
1011
chosen {
1112
zephyr,entropy = &rng;
@@ -41,20 +42,27 @@
4142
status = "disabled";
4243
};
4344

44-
timers6: timers@40001000 {
45-
compatible = "st,stm32-timers";
46-
reg = <0x40001000 0x400>;
47-
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000010>;
48-
resets = <&rctl STM32_RESET(APB1, 4U)>;
49-
interrupts = <54 0>;
50-
interrupt-names = "global";
51-
st,prescaler = <0>;
45+
spi4: spi@40013400 {
46+
compatible = "st,stm32-spi";
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
reg = <0x40013400 0x400>;
50+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00002000>;
51+
interrupts = <84 5>;
5252
status = "disabled";
53+
};
5354

54-
counter {
55-
compatible = "st,stm32-counter";
56-
status = "disabled";
57-
};
55+
i2s4: i2s@40013400 {
56+
compatible = "st,stm32-i2s";
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
reg = <0x40013400 0x400>;
60+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00002000>;
61+
interrupts = <84 5>;
62+
dmas = <&dma2 1 4 0x400 0x3
63+
&dma2 0 4 0x400 0x3>;
64+
dma-names = "tx", "rx";
65+
status = "disabled";
5866
};
5967

6068
timers7: timers@40001400 {

0 commit comments

Comments
 (0)