linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] usb: dwc3: exynos: add support for Exynos2200 variant
@ 2025-04-12 20:33 Ivaylo Ivanov
  2025-04-12 20:33 ` [PATCH v4 1/2] dt-bindings: usb: samsung,exynos-dwc3: add exynos2200 compatible Ivaylo Ivanov
  2025-04-12 20:33 ` [PATCH v4 2/2] usb: dwc3: exynos: add support for Exynos2200 variant Ivaylo Ivanov
  0 siblings, 2 replies; 3+ messages in thread
From: Ivaylo Ivanov @ 2025-04-12 20:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Greg Kroah-Hartman, Conor Dooley,
	Alim Akhtar, Rob Herring, Thinh Nguyen
  Cc: linux-samsung-soc, linux-usb, devicetree, linux-arm-kernel,
	linux-kernel

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(+)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v4 1/2] dt-bindings: usb: samsung,exynos-dwc3: add exynos2200 compatible
  2025-04-12 20:33 [PATCH v4 0/2] usb: dwc3: exynos: add support for Exynos2200 variant Ivaylo Ivanov
@ 2025-04-12 20:33 ` Ivaylo Ivanov
  2025-04-12 20:33 ` [PATCH v4 2/2] usb: dwc3: exynos: add support for Exynos2200 variant Ivaylo Ivanov
  1 sibling, 0 replies; 3+ messages in thread
From: Ivaylo Ivanov @ 2025-04-12 20:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Greg Kroah-Hartman, Conor Dooley,
	Alim Akhtar, Rob Herring, Thinh Nguyen
  Cc: linux-samsung-soc, linux-usb, devicetree, linux-arm-kernel,
	linux-kernel

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.

Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../bindings/usb/samsung,exynos-dwc3.yaml          | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
index 256bee2a0..892545b47 100644
--- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
@@ -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:
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v4 2/2] usb: dwc3: exynos: add support for Exynos2200 variant
  2025-04-12 20:33 [PATCH v4 0/2] usb: dwc3: exynos: add support for Exynos2200 variant Ivaylo Ivanov
  2025-04-12 20:33 ` [PATCH v4 1/2] dt-bindings: usb: samsung,exynos-dwc3: add exynos2200 compatible Ivaylo Ivanov
@ 2025-04-12 20:33 ` Ivaylo Ivanov
  1 sibling, 0 replies; 3+ messages in thread
From: Ivaylo Ivanov @ 2025-04-12 20:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Greg Kroah-Hartman, Conor Dooley,
	Alim Akhtar, Rob Herring, Thinh Nguyen
  Cc: linux-samsung-soc, linux-usb, devicetree, linux-arm-kernel,
	linux-kernel

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

Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
---
 drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index de686b9e6..20abc6a4e 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -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,
 	}, {
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-12 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-12 20:33 [PATCH v4 0/2] usb: dwc3: exynos: add support for Exynos2200 variant Ivaylo Ivanov
2025-04-12 20:33 ` [PATCH v4 1/2] dt-bindings: usb: samsung,exynos-dwc3: add exynos2200 compatible Ivaylo Ivanov
2025-04-12 20:33 ` [PATCH v4 2/2] usb: dwc3: exynos: add support for Exynos2200 variant Ivaylo Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).