Skip to contentSkip to conversation

usb: dwc3: exynos: add support for Exynos2200 variant

PATCH New Ivaylo Ivanov 1 participant 3 messages Apr 12, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v4 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 v4:
- rebase on next

Changes in v3:
- fix partial r-b tag from the dt bindings commit message

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 v4 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.

---
 .../bindings/usb/samsung,exynos-dwc3.yaml          | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml +14 -0
index 256bee2a0..892545b47 100644
@@ -14,6 +14,7 @@ properties:
     oneOf:
       - enum:
           - google,gs101-dwusb3
+          - samsung,exynos2200-dwusb3
           - samsung,exynos5250-dwusb3
           - samsung,exynos5433-dwusb3
           - samsung,exynos7-dwusb3
@@ -79,6 +80,19 @@ allOf:
       required:
         - vdd10-supply
 
+  - 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 v4 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 de686b9e6..20abc6a4e 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,
@@ -183,6 +189,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