Skip to content

Commit cb811ac

Browse files
committed
dts: usb: stm32: add number of host channels property
Add the "num-host-channels" property to "st,stm32-otghs" and "st,stm32-otgfs" compatible dts bindings and to dtsi files comprising such peripheral. Values are taken from AN4879 and from corresponding reference manual when missing. Signed-off-by: Johan Lafon <[email protected]>
1 parent 0d1a788 commit cb811ac

17 files changed

+31
-0
lines changed

dts/arm/st/f1/stm32f105.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
interrupts = <67 0>;
145145
interrupt-names = "otgfs";
146146
num-bidir-endpoints = <4>;
147+
num-host-channels = <8>;
147148
ram-size = <1280>;
148149
clocks = <&rcc STM32_CLOCK(AHB1, 12U)>;
149150
phys = <&otgfs_phy>;

dts/arm/st/f2/stm32f2.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@
354354
interrupts = <67 0>;
355355
interrupt-names = "otgfs";
356356
num-bidir-endpoints = <4>;
357+
num-host-channels = <8>;
357358
ram-size = <1280>;
358359
maximum-speed = "full-speed";
359360
clocks = <&rcc STM32_CLOCK(AHB2, 7U)>,

dts/arm/st/f4/stm32f4.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
interrupts = <67 0>;
314314
interrupt-names = "otgfs";
315315
num-bidir-endpoints = <4>;
316+
num-host-channels = <8>;
316317
ram-size = <1280>;
317318
maximum-speed = "full-speed";
318319
phys = <&otgfs_phy>;

dts/arm/st/f4/stm32f405.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
interrupts = <77 0>, <74 0>, <75 0>;
198198
interrupt-names = "otghs", "ep1_out", "ep1_in";
199199
num-bidir-endpoints = <6>;
200+
num-host-channels = <12>;
200201
ram-size = <4096>;
201202
maximum-speed = "full-speed";
202203
phys = <&otghs_fs_phy>;

dts/arm/st/f4/stm32f412.dtsi

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

199199
usbotg_fs: usb@50000000 {
200200
num-bidir-endpoints = <6>;
201+
num-host-channels = <12>;
201202
};
202203

203204
sdmmc1: sdmmc@40012c00 {

dts/arm/st/f4/stm32f446.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080

8181
usbotg_fs: usb@50000000 {
8282
num-bidir-endpoints = <6>;
83+
num-host-channels = <12>;
8384
clocks = <&rcc STM32_CLOCK(AHB2, 7U)>,
8485
<&rcc STM32_SRC_PLL_Q CK48M_SEL(0)>;
8586
};
@@ -90,6 +91,7 @@
9091
interrupts = <77 0>, <74 0>, <75 0>;
9192
interrupt-names = "otghs", "ep1_out", "ep1_in";
9293
num-bidir-endpoints = <9>;
94+
num-host-channels = <16>;
9395
ram-size = <4096>;
9496
maximum-speed = "full-speed";
9597
phys = <&otghs_fs_phy>;

dts/arm/st/f4/stm32f469.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717

1818
usbotg_fs: usb@50000000 {
1919
num-bidir-endpoints = <6>;
20+
num-host-channels = <12>;
2021
clocks = <&rcc STM32_CLOCK(AHB2, 7U)>,
2122
<&rcc STM32_SRC_PLL_Q CLK48M_SEL(0)>;
2223
};
2324

2425
usbotg_hs: usb@40040000 {
2526
num-bidir-endpoints = <9>;
27+
num-host-channels = <16>;
2628
};
2729
};
2830
};

dts/arm/st/f7/stm32f7.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@
710710
interrupts = <67 0>;
711711
interrupt-names = "otgfs";
712712
num-bidir-endpoints = <6>;
713+
num-host-channels = <12>;
713714
ram-size = <1280>;
714715
maximum-speed = "full-speed";
715716
phys = <&otgfs_phy>;
@@ -724,6 +725,7 @@
724725
interrupts = <77 0>, <74 0>, <75 0>;
725726
interrupt-names = "otghs", "ep1_out", "ep1_in";
726727
num-bidir-endpoints = <9>;
728+
num-host-channels = <16>;
727729
ram-size = <4096>;
728730
maximum-speed = "full-speed";
729731
clocks = <&rcc STM32_CLOCK(AHB1, 29U)>,

dts/arm/st/h7/stm32h723.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
interrupts = <77 0>, <74 0>, <75 0>;
7575
interrupt-names = "otghs", "ep1_out", "ep1_in";
7676
num-bidir-endpoints = <9>;
77+
num-host-channels = <16>;
7778
ram-size = <DT_SIZE_K(4)>;
7879
maximum-speed = "full-speed";
7980
clocks = <&rcc STM32_CLOCK(AHB1, 25U)>,

dts/arm/st/h7/stm32h743.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
interrupts = <98 0>, <99 0>, <100 0>, <101 0>;
3636
interrupt-names = "ep1_out", "ep1_in", "wkup", "otgfs";
3737
num-bidir-endpoints = <9>;
38+
num-host-channels = <16>;
3839
ram-size = <4096>;
3940
maximum-speed = "full-speed";
4041
clocks = <&rcc STM32_CLOCK(AHB1, 27U)>,

0 commit comments

Comments
 (0)