Skip to contentSkip to conversation

usb: dwc3: exynos: add support for Exynos2200 variant

PATCH Superseded Ivaylo Ivanov 1 participant 3 messages Mar 21, 2025

Subsystems (4)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover usb: dwc3: exynos: add support for Exynos2200 variant

Hey folks,

This patchset adds support for the Exynos 2200 to the exynos-dwc3 glue code. It takes one clock - the link_aclk, and the dwc3 refclk is passed to the dwc3 subnode, as with gs101.

Best regards,
Ivaylo

Changes in v2:
- add sob and r-b tags
- drop minitems from binding patch

Ivaylo Ivanov (2):
dt-bindings: usb: samsung,exynos-dwc3: add exynos2200 compatible
usb: dwc3: exynos: add support for Exynos2200 variant

 .../bindings/usb/samsung,exynos-dwc3.yaml          | 14 ++++++++++++++
 drivers/usb/dwc3/dwc3-exynos.c                     |  9 +++++++++
 2 files changed, 23 insertions(+)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/2 dt-bindings: usb: samsung,exynos-dwc3: add exynos2200 compatible

The Exynos2200 SoC has a DWC3 compatible USB controller and can reuse the existing Exynos glue. Update the dt schema to include the samsung,exynos2200-dwusb3 compatible for it.

Krzysztof Kozlowski <[email protected]>

---
 .../bindings/usb/samsung,exynos-dwc3.yaml          | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml +14 -0
index 2b3430ceb..679088c91 100644
@@ -13,6 +13,7 @@ properties:
   compatible:
     enum:
       - google,gs101-dwusb3
+      - samsung,exynos2200-dwusb3
       - samsung,exynos5250-dwusb3
       - samsung,exynos5433-dwusb3
       - samsung,exynos7-dwusb3
@@ -73,6 +74,19 @@ allOf:
             - const: link_aclk
             - const: link_pclk
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: samsung,exynos2200-dwusb3
+    then:
+      properties:
+        clocks:
+          maxItems: 1
+        clock-names:
+          items:
+            - const: link_aclk
+
   - if:
       properties:
         compatible:
Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 2/2 usb: dwc3: exynos: add support for Exynos2200 variant

In reply to Ivaylo Ivanov

Add Exynos2200 compatible string and associated driver data. This SoC requires a Link interface AXI clock.

---
 drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/usb/dwc3/dwc3-exynos.c +9 -0
index f5d963fae..aa22265c7 100644
@@ -145,6 +145,12 @@ static void dwc3_exynos_remove(struct platform_device *pdev)
 	regulator_disable(exynos->vdd10);
 }
 
+static const struct dwc3_exynos_driverdata exynos2200_drvdata = {
+	.clk_names = { "link_aclk" },
+	.num_clks = 1,
+	.suspend_clk_idx = -1,
+};
+
 static const struct dwc3_exynos_driverdata exynos5250_drvdata = {
 	.clk_names = { "usbdrd30" },
 	.num_clks = 1,
@@ -177,6 +183,9 @@ static const struct dwc3_exynos_driverdata gs101_drvdata = {
 
 static const struct of_device_id exynos_dwc3_match[] = {
 	{
+		.compatible = "samsung,exynos2200-dwusb3",
+		.data = &exynos2200_drvdata,
+	}, {
 		.compatible = "samsung,exynos5250-dwusb3",
 		.data = &exynos5250_drvdata,
 	}, {
Signature · 1 line
2.43.0