Skip to content

Commit e359cc6

Browse files
kbidanikartben
authored andcommitted
dts: arm: st: add property maximum-speed
On STM32 USB, there are currently four types of maximum-speed: "super-speed", "high-speed", "full-speed" and "low-speed" (if present). To simplify the driver, add maximum-speed if not present as a dts property. Signed-off-by: Khaoula Bidani <[email protected]>
1 parent 43b6db1 commit e359cc6

14 files changed

+14
-0
lines changed

dts/arm/st/f0/stm32f042.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
interrupt-names = "usb";
7373
num-bidir-endpoints = <8>;
7474
ram-size = <1024>;
75+
maximum-speed = "full-speed";
7576
phys = <&usb_fs_phy>;
7677
clocks = <&rcc STM32_CLOCK(APB1, 23U)>,
7778
<&rcc STM32_SRC_PLLCLK USB_SEL(1)>;

dts/arm/st/f0/stm32f070.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
interrupt-names = "usb";
4444
num-bidir-endpoints = <8>;
4545
ram-size = <1024>;
46+
maximum-speed = "full-speed";
4647
phys = <&usb_fs_phy>;
4748
clocks = <&rcc STM32_CLOCK(APB1, 23U)>,
4849
<&rcc STM32_SRC_PLLCLK USB_SEL(1)>;

dts/arm/st/f0/stm32f072.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
interrupt-names = "usb";
2626
num-bidir-endpoints = <8>;
2727
ram-size = <1024>;
28+
maximum-speed = "full-speed";
2829
phys = <&usb_fs_phy>;
2930
clocks = <&rcc STM32_CLOCK(APB1, 23U)>,
3031
<&rcc STM32_SRC_PLLCLK USB_SEL(1)>;

dts/arm/st/f1/stm32f103X8.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
interrupt-names = "usb";
4343
num-bidir-endpoints = <8>;
4444
ram-size = <512>;
45+
maximum-speed = "full-speed";
4546
status = "disabled";
4647
clocks = <&rcc STM32_CLOCK(APB1, 23U)>;
4748
phys = <&usb_fs_phy>;

dts/arm/st/f1/stm32f105.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
num-bidir-endpoints = <4>;
147147
ram-size = <1280>;
148148
clocks = <&rcc STM32_CLOCK(AHB1, 12U)>;
149+
maximum-speed = "full-speed";
149150
phys = <&otgfs_phy>;
150151
status = "disabled";
151152
};

dts/arm/st/f3/stm32f3.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@
258258
interrupt-names = "usb";
259259
num-bidir-endpoints = <8>;
260260
ram-size = <512>;
261+
maximum-speed = "full-speed";
261262
phys = <&usb_fs_phy>;
262263
clocks = <&rcc STM32_CLOCK(APB1, 23U)>;
263264
status = "disabled";

dts/arm/st/g0/stm32g0b0.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
interrupt-names = "usb";
100100
num-bidir-endpoints = <8>;
101101
ram-size = <2048>;
102+
maximum-speed = "full-speed";
102103
phys = <&usb_fs_phy>;
103104
clocks = <&rcc STM32_CLOCK(APB1, 13U)>,
104105
<&rcc STM32_SRC_HSI48 USB_SEL(0)>;

dts/arm/st/g0/stm32g0b1.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
interrupt-names = "usb";
144144
num-bidir-endpoints = <8>;
145145
ram-size = <2048>;
146+
maximum-speed = "full-speed";
146147
phys = <&usb_fs_phy>;
147148
clocks = <&rcc STM32_CLOCK(APB1, 13U)>,
148149
<&rcc STM32_SRC_HSI48 USB_SEL(0)>;

dts/arm/st/g4/stm32g4.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@
621621
interrupt-names = "usb", "usbhp";
622622
num-bidir-endpoints = <8>;
623623
ram-size = <1024>;
624+
maximum-speed = "full-speed";
624625
phys = <&usb_fs_phy>;
625626
clocks = <&rcc STM32_CLOCK(APB1, 23U)>,
626627
<&rcc STM32_SRC_HSI48 CLK48_SEL(0)>;

dts/arm/st/h5/stm32h5.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@
640640
interrupt-names = "usb";
641641
num-bidir-endpoints = <8>;
642642
ram-size = <2048>;
643+
maximum-speed = "full-speed";
643644
phys = <&usb_fs_phy>;
644645
clocks = <&rcc STM32_CLOCK(APB2, 24U)>,
645646
<&rcc STM32_SRC_HSI48 USB_SEL(3)>;

0 commit comments

Comments
 (0)