usb: dwc3: exynos: Add support for Exynos850 variant
authorSam Protsenko <semen.protsenko@linaro.org>
Sat, 19 Aug 2023 03:17:26 +0000 (22:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 12:47:22 +0000 (14:47 +0200)
Add Exynos850 compatible string and associated driver data. Only two
clocks are needed for this SoC:
  - bus_early: bus clock needed for registers access
  - ref: USB 2.0 DRD reference clock (50 MHz)

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230819031731.22618-4-semen.protsenko@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-exynos.c

index f882dd6..5d365ca 100644 (file)
@@ -163,6 +163,12 @@ static const struct dwc3_exynos_driverdata exynos7_drvdata = {
        .suspend_clk_idx = 1,
 };
 
+static const struct dwc3_exynos_driverdata exynos850_drvdata = {
+       .clk_names = { "bus_early", "ref" },
+       .num_clks = 2,
+       .suspend_clk_idx = -1,
+};
+
 static const struct of_device_id exynos_dwc3_match[] = {
        {
                .compatible = "samsung,exynos5250-dwusb3",
@@ -174,6 +180,9 @@ static const struct of_device_id exynos_dwc3_match[] = {
                .compatible = "samsung,exynos7-dwusb3",
                .data = &exynos7_drvdata,
        }, {
+               .compatible = "samsung,exynos850-dwusb3",
+               .data = &exynos850_drvdata,
+       }, {
        }
 };
 MODULE_DEVICE_TABLE(of, exynos_dwc3_match);