Skip to contentSkip to conversation

dt-bindings: usb: generic-ehci: Document ST STM32MP1 SoC compatibles

PATCH Superseded Marek Vasut 2 participants 4 messages Aug 28

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 dt-bindings: usb: generic-ehci: Document ST STM32MP1 SoC compatibles

Document SoC compatibles for ST STM32MP13xx and STM32MP15xx series of SoC, so they can be used as more accurate compatible in SoC DTSI. The SoC DTSI currently use plain "generic-ehci" which is not future proof.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/usb/generic-ehci.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +2 -0
index ae9fb70d0212c..fb6d6b312ab2f 100644
@@ -54,6 +54,8 @@ properties:
               - qca,ar7100-ehci
               - rockchip,rk3588-ehci
               - snps,hsdk-v1.0-ehci
+              - st,stm32mp13-ehci
+              - st,stm32mp15-ehci
               - socionext,uniphier-ehci
           - const: generic-ehci
       - items:
Signature · 1 line
2.53.0
#1 lore raw

PATCH 2/3 ARM: dts: stm32: Use STM32MP13xx compatible string for EHCI USB controller

Use accurate STM32MP13xx compatible string for EHCI USB controller in addition to "generic-ehci" fallback compatible string. This is future proof, and drivers can match on the accurate compatible string in case they need to discern this controller from the generic-ehci one.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp131.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/st/stm32mp131.dtsi +1 -1
index d1c5afb5f89aa..ae45c2023afeb 100644
@@ -1137,7 +1137,7 @@ usbh_ohci: usb@5800c000 {
 		};
 
 		usbh_ehci: usb@5800d000 {
-			compatible = "generic-ehci";
+			compatible = "st,stm32mp13-ehci", "generic-ehci";
 			reg = <0x5800d000 0x1000>;
 			clocks = <&usbphyc>, <&rcc USBH>;
 			resets = <&rcc USBH_R>;
Signature · 1 line
2.53.0
#2 lore raw

PATCH 3/3 ARM: dts: stm32: Use STM32MP15xx compatible string for EHCI USB controller

In reply to Marek Vasut

Use accurate STM32MP15xx compatible string for EHCI USB controller in addition to "generic-ehci" fallback compatible string. This is future proof, and drivers can match on the accurate compatible string in case they need to discern this controller from the generic-ehci one.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp151.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/st/stm32mp151.dtsi +1 -1
index c37005c00ad65..ae31883732388 100644
@@ -515,7 +515,7 @@ usbh_ohci: usb@5800c000 {
 		};
 
 		usbh_ehci: usb@5800d000 {
-			compatible = "generic-ehci";
+			compatible = "st,stm32mp15-ehci", "generic-ehci";
 			reg = <0x5800d000 0x1000>;
 			clocks = <&usbphyc>, <&rcc USBH>;
 			resets = <&rcc USBH_R>;
Signature · 1 line
2.53.0
#3 lore raw
In reply to Marek Vasut
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] Alphabetical ordering violation in compatible strings list. --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Alphabetical ordering violation in compatible strings list.
--

commit 02866cad5ea0e6cf3b7ff32996fc2ff6f326adb3
Author: Marek Vasut <[email protected]>

dt-bindings: usb: generic-ehci: Document ST STM32MP1 SoC compatibles

This commit adds SoC-specific compatible strings for the ST STM32MP13xx and STM32MP15xx series to the generic-ehci device tree binding. This allows for more accurate compatible matching in the SoC DTSI files.

Documentation/devicetree/bindings/usb/generic-ehci.yaml properties: · line 59

Quoted 11 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +2 -0
index 55a5aa7d7a54e..408f9860d8079 100644
@@ -54,6 +54,8 @@ properties:
               - qca,ar7100-ehci
               - rockchip,rk3588-ehci
               - snps,hsdk-v1.0-ehci
+              - st,stm32mp13-ehci
+              - st,stm32mp15-ehci
               - socionext,uniphier-ehci

[Severity: Low]
This isn't a bug, but should these compatible strings be sorted alphabetically? Since st comes after socionext, it looks like the st,stm32 compatibles should be placed after the socionext,uniphier-ehci entry to maintain the standard alphabetical ordering.

Quoted 2 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +0 -0
           - const: generic-ehci
       - items:
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1