diff mbox series

[v1,2/2] usb: dwc3: exynos: add support for Exynos2200 variant

Message ID 20250215123453.163434-3-ivo.ivanov.ivanov1@gmail.com
State New
Headers show
Series usb: dwc3: exynos: add support for Exynos2200 variant | expand

Commit Message

Ivaylo Ivanov Feb. 15, 2025, 12:34 p.m. UTC
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>
---
 drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Thinh Nguyen Feb. 19, 2025, 10:37 p.m. UTC | #1
On Sat, Feb 15, 2025, Ivaylo Ivanov wrote:
> 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>
> ---
>  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 f5d963fae..aa22265c7 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,
> @@ -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,
>  	}, {
> -- 
> 2.43.0
> 

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>

Thanks
Thinh
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index f5d963fae..aa22265c7 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,
@@ -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,
 	}, {