From nobody Sun Oct 5 20:17:11 2025 Received: from azure-sdnproxy.icoremail.net (azure-sdnproxy.icoremail.net [13.76.142.27]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D65EB156CA; Wed, 30 Jul 2025 07:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.76.142.27 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753861296; cv=none; b=a65XvP8lK2Np+Kb/UIe1kcnn7/GpBK7w7OQmtYVAJiy6M/KzC/lg3jZgFyCjrBhOxFzQUM/7oTkV+bgMHFD6dz18NGU4SbCSXYz17eGkw584HD/q84ixvzQIgqGxpfSgUR8egT+zcjTeonKiNDQfo6iZ9eanuxQF2EIcJwvtOH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753861296; c=relaxed/simple; bh=aXJZfYvSp54nqYbFpDzltlGne5k7sdyesh4BH8wBPYE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Kz9kff69uMi66TzB6u+xWZniV61OzWqZ4TRHc+9ADfB24Kvakb2QhmQW36w6nd0Dn37+oQSMSZKmsn7S7w934Yl1YZpVgedJ1s7+mpIUlULo1+lQTvCfGrvvl7nf3eI1l7FucQ0MqQJE6lvHOMuSF2Aq/zssqgqwBavjviU3ZiY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com; spf=pass smtp.mailfrom=eswincomputing.com; arc=none smtp.client-ip=13.76.142.27 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=eswincomputing.com Received: from E0004758DT.eswin.cn (unknown [10.12.96.83]) by app1 (Coremail) with SMTP id TAJkCgAnSxGXzIloMuG4AA--.52766S2; Wed, 30 Jul 2025 15:41:13 +0800 (CST) From: zhangsenchuan@eswincomputing.com To: gregkh@linuxfoundation.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thinh.Nguyen@synopsys.com, p.zabel@pengutronix.de Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com, yangwei1@eswincomputing.com, pinkesh.vaghela@einfochips.com, Senchuan Zhang Subject: [PATCH v2 1/2] dt-bindings: usb: Add Eswin EIC7700 USB controller Date: Wed, 30 Jul 2025 15:40:57 +0800 Message-ID: <20250730074058.2004-1-zhangsenchuan@eswincomputing.com> X-Mailer: git-send-email 2.49.0.windows.1 In-Reply-To: <20250730073953.1623-1-zhangsenchuan@eswincomputing.com> References: <20250730073953.1623-1-zhangsenchuan@eswincomputing.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: TAJkCgAnSxGXzIloMuG4AA--.52766S2 X-Coremail-Antispam: 1UD129KBjvJXoWxZw1kWr45Kr4kKF1UCFyfJFb_yoW5trWfpa 97CrW8Jr4fXr1fXa1rXF10kFsxJ3Z7CF10kr97Xr13trnaga40qw4akF15Ga4UCr1xZ34Y gFWYv3ySyw47C3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBv14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2 Y2ka0xkIwI1lw4CEc2x0rVAKj4xxMxkF7I0En4kS14v26r1q6r43MxkIecxEwVCm-wCF04 k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18 MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr4 1lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l IxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUXJ5wUUUUU= X-CM-SenderInfo: x2kd0wpvhquxxxdqqvxvzl0uprps33xlqjhudrp/ Content-Type: text/plain; charset="utf-8" From: Senchuan Zhang Add Device Tree binding documentation for the ESWIN EIC7700 USB controller module. Co-developed-by: Wei Yang Signed-off-by: Wei Yang Signed-off-by: Senchuan Zhang --- .../bindings/usb/eswin,eic7700-usb.yaml | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/eswin,eic7700-usb= .yaml diff --git a/Documentation/devicetree/bindings/usb/eswin,eic7700-usb.yaml b= /Documentation/devicetree/bindings/usb/eswin,eic7700-usb.yaml new file mode 100644 index 000000000000..c5a545d0ef49 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/eswin,eic7700-usb.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/eswin,eic7700-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Eswin EIC7700 SoC Usb Controller + +maintainers: + - Wei Yang + - Senchuan Zhang + +description: + The Usb controller on EIC7700 SoC. + +properties: + compatible: + const: eswin,eic7700-usb + + reg: + maxItems: 1 + + '#address-cells': + const: 2 + + '#size-cells': + const: 2 + + interrupts: + maxItems: 1 + + interrupt-names: + items: + - const: peripheral + + clocks: + maxItems: 3 + + clock-names: + items: + - const: suspend + - const: aclk + - const: cfg + + resets: + maxItems: 1 + + reset-names: + items: + - const: vaux + + ranges: true + + eswin,hsp-sp-csr: + description: + The phandle to HSP(High-Speed Peripheral) Register Controller hsp_sp= _csr node + and the offset of HSP register for USB. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to HSP Register Controller hsp_sp_csr nod= e. + - description: usb bus register offset. + - description: axi low power register offset. + - description: vbus frequency register offset. + - description: mpll register offset. + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + description: Required child node + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + - ranges + - eswin,hsp-sp-csr + +additionalProperties: false + +examples: + - | + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + + usb { + compatible =3D "eswin,eic7700-dwc3"; + clocks =3D <&fixed_factor_u_clk_1m_div24>, + <&gate_clk_hsp_aclk>, + <&gate_clk_hsp_cfgclk>; + clock-names =3D "suspend","aclk", "cfg"; + eswin,hsp-sp-csr =3D <&hsp_sp_csr 0x800 0x808 0x83c 0x840>; + resets =3D <&reset 84>; + reset-names =3D "vaux"; + ranges; + #address-cells =3D <2>; + #size-cells =3D <2>; + + usb@50480000 { + compatible =3D "snps,dwc3"; + reg =3D <0x0 0x50480000 0x0 0x10000>; + interrupt-parent =3D <&plic>; + interrupts =3D <85>; + interrupt-names =3D "peripheral"; + dr_mode =3D "peripheral"; + phy_type =3D "utmi"; + maximum-speed =3D "high-speed"; + snps,dis_enblslpm_quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,dis_u2_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + snps,parkmode-disable-ss-quirk; + }; + }; + }; -- 2.25.1 From nobody Sun Oct 5 20:17:11 2025 Received: from azure-sdnproxy.icoremail.net (azure-sdnproxy.icoremail.net [4.193.249.245]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E4181E7C27; Wed, 30 Jul 2025 07:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=4.193.249.245 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753861337; cv=none; b=FwWeyOF/QROMmzbI8qqtsB0JxlvDVeFRHFlfcAaShEXudl4IDizNv6cnRu6IXXGwLtwuU1IhO1boV05uUKAdknPtKB72dMHOlt89qDxF/U4AUGj8UEVhDwLQ47IxiJx3m3dcHal4sJrVYzi2ZRQ7d4ZMXmC6/mfIfSWKiJpv3iw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753861337; c=relaxed/simple; bh=Jy5buhfNQWEdoYecamEiCJwtPxunZbYDYXWlN6ah0AE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pO/4D1NV5uV6TloEUqPSzHC1+vlYCnhMOlEETE2QB6V5ianSFkhJXRiV1QB9eR2VsvCuIq5/gqR/QOUqXNcqn+IEZL7SAvqWvp8IgSXkLTkhqjj+/ZDpWqw3yoWjEXxM5+zO+A420FMtangNtOJUXKKYMu7CR383QrwxGL7PKso= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com; spf=pass smtp.mailfrom=eswincomputing.com; arc=none smtp.client-ip=4.193.249.245 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=eswincomputing.com Received: from E0004758DT.eswin.cn (unknown [10.12.96.83]) by app2 (Coremail) with SMTP id TQJkCgBn+ZLGzIlo8OC4AA--.27051S2; Wed, 30 Jul 2025 15:41:59 +0800 (CST) From: zhangsenchuan@eswincomputing.com To: gregkh@linuxfoundation.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Thinh.Nguyen@synopsys.com, p.zabel@pengutronix.de Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com, yangwei1@eswincomputing.com, pinkesh.vaghela@einfochips.com, Senchuan Zhang Subject: [PATCH v2 2/2] usb: dwc3: eic7700: Add EIC7700 USB driver Date: Wed, 30 Jul 2025 15:41:55 +0800 Message-ID: <20250730074156.1600-1-zhangsenchuan@eswincomputing.com> X-Mailer: git-send-email 2.49.0.windows.1 In-Reply-To: <20250730073953.1623-1-zhangsenchuan@eswincomputing.com> References: <20250730073953.1623-1-zhangsenchuan@eswincomputing.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: TQJkCgBn+ZLGzIlo8OC4AA--.27051S2 X-Coremail-Antispam: 1UD129KBjvJXoWxuFW8Jw47Xw1rWryrWw4fGrg_yoW3JFy3pF 4UJFy5KrZ3Gr4xXw4fAF1v9F4rJw40gFy8JrWIg3Zruw18tas7XF1kKFyYgFn8AFn8JFy5 JF4DKayFkF4Y9rJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBv14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2 Y2ka0xkIwI1lw4CEc2x0rVAKj4xxMxkF7I0En4kS14v26r1q6r43MxkIecxEwVCm-wCF04 k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18 MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr4 1lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l IxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUHCJQUUUUU= X-CM-SenderInfo: x2kd0wpvhquxxxdqqvxvzl0uprps33xlqjhudrp/ Content-Type: text/plain; charset="utf-8" From: Senchuan Zhang Add the eic7700 usb driver, which is responsible for identifying,configuring and connecting usb devices. Co-developed-by: Wei Yang Signed-off-by: Wei Yang Signed-off-by: Senchuan Zhang --- drivers/usb/dwc3/Kconfig | 11 ++ drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-eic7700.c | 207 ++++++++++++++++++++++++++++++++ 3 files changed, 219 insertions(+) create mode 100644 drivers/usb/dwc3/dwc3-eic7700.c diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index 310d182e10b5..19657cfb5d08 100644 --- a/drivers/usb/dwc3/Kconfig +++ b/drivers/usb/dwc3/Kconfig @@ -189,4 +189,15 @@ config USB_DWC3_RTK or dual-role mode. Say 'Y' or 'M' if you have such device. =20 +config USB_DWC3_EIC7700 + tristate "Eswin Platforms" + depends on OF + depends on USB=3Dy || USB=3DUSB_DWC3 + default USB_DWC3 + help + The usb controller on eic7700 SoC. + support of USB2/3 functionality + in Eswin platforms. + say 'Y' or 'M' if you have one such device. + endif diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index 830e6c9e5fe0..05f582103f8b 100644 --- a/drivers/usb/dwc3/Makefile +++ b/drivers/usb/dwc3/Makefile @@ -57,3 +57,4 @@ obj-$(CONFIG_USB_DWC3_IMX8MP) +=3D dwc3-imx8mp.o obj-$(CONFIG_USB_DWC3_XILINX) +=3D dwc3-xilinx.o obj-$(CONFIG_USB_DWC3_OCTEON) +=3D dwc3-octeon.o obj-$(CONFIG_USB_DWC3_RTK) +=3D dwc3-rtk.o +obj-$(CONFIG_USB_DWC3_EIC7700) +=3D dwc3-eic7700.o diff --git a/drivers/usb/dwc3/dwc3-eic7700.c b/drivers/usb/dwc3/dwc3-eic770= 0.c new file mode 100644 index 000000000000..337f6c1cbe66 --- /dev/null +++ b/drivers/usb/dwc3/dwc3-eic7700.c @@ -0,0 +1,207 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Eswin Specific Glue layer + * + * Copyright 2025, Beijing ESWIN Computing Technology Co., Ltd. + * + * Authors: Wei Yang + * Senchuan Zhang + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define HSP_USB_VBUS_FSEL 0x2a +#define HSP_USB_MPLL_DEFAULT 0x0 + +#define HSP_USB_BUS_FILTER_EN (0x1 << 0) +#define HSP_USB_BUS_CLKEN_GM (0x1 << 9) +#define HSP_USB_BUS_CLKEN_GS (0x1 << 16) +#define HSP_USB_BUS_SW_RST (0x1 << 24) +#define HSP_USB_BUS_CLK_EN (0x1 << 28) + +#define HSP_USB_AXI_LP_XM_CSYSREQ (0x1 << 0) +#define HSP_USB_AXI_LP_XS_CSYSREQ (0x1 << 16) + +struct dwc3_eswin { + int num_clks; + struct device *dev; + struct clk_bulk_data *clks; + struct reset_control *vaux_rst; +}; + +static int dwc_usb_clk_init(struct device *dev) +{ + struct regmap *regmap; + u32 hsp_usb_bus; + u32 hsp_usb_axi_lp; + u32 hsp_usb_vbus_freq; + u32 hsp_usb_mpll; + u32 args[4]; + + regmap =3D syscon_regmap_lookup_by_phandle_args(dev->of_node, + "eswin,hsp-sp-csr", 4, + args); + if (IS_ERR(regmap)) { + dev_err(dev, "No hsp-sp-csr phandle specified\n"); + return PTR_ERR(regmap); + } + + hsp_usb_bus =3D args[0]; + hsp_usb_axi_lp =3D args[1]; + hsp_usb_vbus_freq =3D args[2]; + hsp_usb_mpll =3D args[3]; + + /* + * usb clock init + * ref clock is 24M, below need to be set to satisfy + * usb phy requirement(125M) + */ + regmap_write(regmap, hsp_usb_vbus_freq, HSP_USB_VBUS_FSEL); + regmap_write(regmap, hsp_usb_mpll, HSP_USB_MPLL_DEFAULT); + /* + * reset usb core and usb phy + */ + regmap_write(regmap, hsp_usb_bus, HSP_USB_BUS_FILTER_EN | + HSP_USB_BUS_CLKEN_GM | HSP_USB_BUS_CLKEN_GS | + HSP_USB_BUS_SW_RST | HSP_USB_BUS_CLK_EN); + regmap_write(regmap, hsp_usb_axi_lp, HSP_USB_AXI_LP_XM_CSYSREQ | + HSP_USB_AXI_LP_XS_CSYSREQ); + + return 0; +} + +static int dwc3_eswin_probe(struct platform_device *pdev) +{ + struct dwc3_eswin *eswin; + struct device *dev =3D &pdev->dev; + struct device_node *np =3D dev->of_node; + int ret; + + eswin =3D devm_kzalloc(dev, sizeof(*eswin), GFP_KERNEL); + if (!eswin) + return -ENOMEM; + + eswin->dev =3D dev; + platform_set_drvdata(pdev, eswin); + + eswin->num_clks =3D devm_clk_bulk_get_all_enabled(dev, &eswin->clks); + if (eswin->num_clks < 0) + return dev_err_probe(dev, eswin->num_clks, + "Failed to get usb clocks\n"); + + eswin->vaux_rst =3D devm_reset_control_get(dev, "vaux"); + if (IS_ERR(eswin->vaux_rst)) + return dev_err_probe(dev, PTR_ERR(eswin->vaux_rst), + "Failed to get vaux reset\n"); + + ret =3D reset_control_deassert(eswin->vaux_rst); + if (ret) + return dev_err_probe(eswin->dev, ret, + "Failed to deassert reset\n"); + + ret =3D dwc_usb_clk_init(dev); + if (ret) { + dev_err(eswin->dev, "Failed to clk init: %d\n", ret); + goto reset_assert; + } + + pm_runtime_set_active(dev); + pm_runtime_enable(dev); + + ret =3D pm_runtime_get_sync(dev); + if (ret < 0) { + dev_err(dev, "get_sync failed with err %d\n", ret); + goto disable_pm; + } + + /* Allocate and initialize the core */ + ret =3D of_platform_populate(np, NULL, NULL, dev); + if (ret) { + dev_err(dev, "failed to create dwc3 core: %d\n", ret); + goto put_pm; + } + + return ret; + +put_pm: + pm_runtime_put_sync(dev); +disable_pm: + pm_runtime_disable(dev); +reset_assert: + reset_control_assert(eswin->vaux_rst); + + return ret; +} + +static void dwc3_eswin_remove(struct platform_device *pdev) +{ + struct dwc3_eswin *eswin =3D platform_get_drvdata(pdev); + struct device *dev =3D &pdev->dev; + + of_platform_depopulate(dev); + + pm_runtime_put_sync(dev); + pm_runtime_disable(dev); + reset_control_assert(eswin->vaux_rst); +} + +static int __maybe_unused dwc3_eswin_runtime_suspend(struct device *dev) +{ + struct dwc3_eswin *eswin =3D dev_get_drvdata(dev); + + clk_bulk_disable_unprepare(eswin->num_clks, eswin->clks); + + return 0; +} + +static int __maybe_unused dwc3_eswin_runtime_resume(struct device *dev) +{ + struct dwc3_eswin *eswin =3D dev_get_drvdata(dev); + int ret; + + ret =3D clk_bulk_prepare_enable(eswin->num_clks, eswin->clks); + if (ret) { + dev_err(dev, "failed to enable clocks: %d\n", ret); + return ret; + } + + return ret; +} + +static const struct dev_pm_ops dwc3_eswin_dev_pm_ops =3D { + SET_RUNTIME_PM_OPS(dwc3_eswin_runtime_suspend, + dwc3_eswin_runtime_resume, NULL) +}; + +static const struct of_device_id eswin_dwc3_match[] =3D { + { .compatible =3D "eswin,eic7700-dwc3" }, + {}, +}; + +MODULE_DEVICE_TABLE(of, eswin_dwc3_match); + +static struct platform_driver dwc3_eswin_driver =3D { + .probe =3D dwc3_eswin_probe, + .remove =3D dwc3_eswin_remove, + .driver =3D { + .name =3D "eic7700-dwc3", + .pm =3D &dwc3_eswin_dev_pm_ops, + .of_match_table =3D eswin_dwc3_match, + }, +}; + +module_platform_driver(dwc3_eswin_driver); + +MODULE_AUTHOR("Wei Yang