Skip to content

Commit 6af80f4

Browse files
ikmdaninashif
authored andcommitted
dts/arm: STM32: Move i2s1 to right dtsi files in stm32f4 series.
i2s1 is not present in all stm32f4 series. So moving the i2s1 node from the top level stm32f4 dtsi file to the stm32fxx specific dtsi files. Also in stm32f429zi, the sequence starts from i2s2, this commit helps in having the right channel number. Signed-off-by: Krishna Mohan Dani <[email protected]>
1 parent d364062 commit 6af80f4

File tree

4 files changed

+42
-14
lines changed

4 files changed

+42
-14
lines changed

dts/arm/st/f4/stm32f4.dtsi

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -216,20 +216,6 @@
216216
label = "SPI_1";
217217
};
218218

219-
i2s1: i2s@40013000 {
220-
compatible = "st,stm32-i2s";
221-
#address-cells = <1>;
222-
#size-cells = <0>;
223-
reg = <0x40013000 0x400>;
224-
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00001000>;
225-
interrupts = <35 5>;
226-
dmas = <&dma2 3 3 0x400 0x3
227-
&dma2 2 3 0x400 0x3>;
228-
dma-names = "tx", "rx";
229-
status = "disabled";
230-
label = "I2S_1";
231-
};
232-
233219
usbotg_fs: usb@50000000 {
234220
compatible = "st,stm32-otgfs";
235221
reg = <0x50000000 0x40000>;

dts/arm/st/f4/stm32f410.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@
2929
label = "SPI_5";
3030
};
3131

32+
i2s1: i2s@40013000 {
33+
compatible = "st,stm32-i2s";
34+
#address-cells = <1>;
35+
#size-cells = <0>;
36+
reg = <0x40013000 0x400>;
37+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00001000>;
38+
interrupts = <35 5>;
39+
dmas = <&dma2 3 3 0x400 0x3
40+
&dma2 2 3 0x400 0x3>;
41+
dma-names = "tx", "rx";
42+
status = "disabled";
43+
label = "I2S_1";
44+
};
45+
3246
i2s2: i2s@40003800 {
3347
compatible = "st,stm32-i2s";
3448
#address-cells = <1>;

dts/arm/st/f4/stm32f411.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@
2828
label = "SPI_5";
2929
};
3030

31+
i2s1: i2s@40013000 {
32+
compatible = "st,stm32-i2s";
33+
#address-cells = <1>;
34+
#size-cells = <0>;
35+
reg = <0x40013000 0x400>;
36+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00001000>;
37+
interrupts = <35 5>;
38+
dmas = <&dma2 3 3 0x400 0x3
39+
&dma2 2 3 0x400 0x3>;
40+
dma-names = "tx", "rx";
41+
status = "disabled";
42+
label = "I2S_1";
43+
};
44+
3145
i2s4: i2s@40013400 {
3246
compatible = "st,stm32-i2s";
3347
#address-cells = <1>;

dts/arm/st/f4/stm32f446.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88

99
/ {
1010
soc {
11+
i2s1: i2s@40013000 {
12+
compatible = "st,stm32-i2s";
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
reg = <0x40013000 0x400>;
16+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00001000>;
17+
interrupts = <35 5>;
18+
dmas = <&dma2 3 3 0x400 0x3
19+
&dma2 2 3 0x400 0x3>;
20+
dma-names = "tx", "rx";
21+
status = "disabled";
22+
label = "I2S_1";
23+
};
24+
1125
usart3: serial@40004800 {
1226
compatible = "st,stm32-usart", "st,stm32-uart";
1327
reg = <0x40004800 0x400>;

0 commit comments

Comments
 (0)