From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from azure-sdnproxy.icoremail.net (azure-sdnproxy.icoremail.net [52.229.205.26]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F86228FFE1; Wed, 30 Jul 2025 07:40:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.229.205.26 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753861251; cv=none; b=fHuyVCBL2QJQ23ifvU/wOB0VVhYQIACVhYcP7916fzGhGfHnZDmBpWfDXMxCpsRGKIxokUEgH7TB+YlmZzCQbhkCeMH0i19Avsq6BnVFDQE6FS87uw1h9AYws6q4cX4hc5TVSARlRNuRmMEbQMJQhZ/313K/Pu7U401bNBYWaC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753861251; c=relaxed/simple; bh=Vjgyv0vio/XxiQftbyHH5EbYgqW3oWS0rXvCgbzlhvI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TY2q7UBF6P6pfY+1bDOmijl+i5JNqjSaXN+JxZDItpndcEHu6e4B4KNMhdi78t3pDawN0MEmZWT1hEbxhJn0Yd+1HePbJYfTM1dm+EN6JGZPaZ2nf8KvQzPrRq/F49rBuIjKocKSmMXYpHsbXpzvmj5yMb9O7EFpRSxGD06VNVg= 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=52.229.205.26 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 TAJkCgC3zg9ozIloIuG4AA--.19210S2; Wed, 30 Jul 2025 15:40:26 +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 0/2] Add driver support for Eswin eic7700 SoC USB controller Date: Wed, 30 Jul 2025 15:39:53 +0800 Message-ID: <20250730073953.1623-1-zhangsenchuan@eswincomputing.com> X-Mailer: git-send-email 2.49.0.windows.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:TAJkCgC3zg9ozIloIuG4AA--.19210S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Kr1xKFWrtryUAw47Ar15CFg_yoW8KrWkpa yDGFW5G398JryxKa1fJF10yF4fJan7JFW5Gr4Iqw12qr4q93ZrJryxKF1ay34DCr93Zr1Y yFW3W39YkFyDArJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBv14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2 Y2ka0xkIwI1lw4CEc2x0rVAKj4xxMxkF7I0En4kS14v26r1q6r43MxkIecxEwVCm-wCF04 k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18 MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr4 1lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l IxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUmjgxUUUUU= X-CM-SenderInfo: x2kd0wpvhquxxxdqqvxvzl0uprps33xlqjhudrp/ From: Senchuan Zhang Changes in v2: - Updates: eswin,eic7700-usb.yaml - Drop the redundant descriptions. - Supplement the constraints of resets. - Replace "eswin,hsp_sp_csr" with "eswin,hsp-sp-csr" and add items description. - Drop numa-node-id, This is not necessary. - Add patternProperties and match the rules defined in the "snps,dwc3.yaml" file. - Add "#address-cells" "#size-cells". - Update the space indentation, remove the redundant labels, and sort the attributes according to the DTS encoding style. - Drop the "status = "disabled" attribute. - Update the common usb node names and fold the child nodes into the parent nodes. - The warning detected by the robot has been resolved. - Link to V1: https://lore.kernel.org/lkml/20250516095237.1516-1-zhangsenchuan@eswincomputing.com/ - Updates: dwc3-eic7700.c - Remove dwc3_mode_show dwc3_mode_store dwc3_eswin_get_extcon_dev, dwc3_eswin_device_notifier and dwc3_eswin_host_notifier, usb role detection and switching are not supported. - Remove the hub-rst attribute, remove the dwc3_hub_rst_show and dwc3_hub_rst_store functions, this feature is not supported. - Use syscon_regmap_lookup_by_phandle_args instead of the syscon_regmap_lookup_by_phandle function. - Use dev_err_probe in probe function. - Drop mutex_lock, which is not required. - Remove clk_prepare_enable and of_clk_get, and manage multiple clocks using devm_clk_bulk_get_all_enabled. - Remove the device_init_wakeup related functions, which were used incorrectly. - Remove MODULE_ALIAS, which is used incorrectly. - The warning detected by the robot has been resolved. - Link to V1: https://lore.kernel.org/lkml/20250516095237.1516-1-zhangsenchuan@eswincomputing.com/ Senchuan Zhang (2): dt-bindings: usb: Add Eswin EIC7700 USB controller usb: dwc3: eic7700: Add EIC7700 USB driver .../bindings/usb/eswin,eic7700-usb.yaml | 123 +++++++++++ drivers/usb/dwc3/Kconfig | 11 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-eic7700.c | 207 ++++++++++++++++++ 4 files changed, 342 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/eswin,eic7700-usb.yaml create mode 100644 drivers/usb/dwc3/dwc3-eic7700.c -- 2.25.1