From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f201.google.com (mail-dy1-f201.google.com [74.125.82.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C150133C1BB for ; Wed, 19 Nov 2025 09:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763545079; cv=none; b=uX0b1Uepqknyc/pFhqKIAhdavLzfk/Fvf8L9KEP24l2TJILPabFntAOyCj0A5UdSZ3Xl2cnCMBnhmzJH/7JlkM4jfWzmM/prKx/pizXJEKfXd6u/OQRpyGPFoqHReRajWxHb8+bk6I5q50z9PHlMCIQj4rHpLsmx+lHjjdfKCDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763545079; c=relaxed/simple; bh=oGFn4T6uBdDTDl7k5+SUdvNHhOilGuNgXAul+y5alzw=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=hbjdYfldSGisvbvKQms4lwJxc2PjWgkpZaF8UmbsbncXslN+lOOPnYlRQHjBH/yv/6cyFl1EqdWjK8XtBHb+0hsaUqBISMdfnpnLKV2fNlERCO/K9alLwLy0cJUiZUN1vZ9aN+OcyzyoI7NUghmP9e1ljw3y0XwLia9MuN8rKx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--royluo.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hvb3h2Vy; arc=none smtp.client-ip=74.125.82.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--royluo.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hvb3h2Vy" Received: by mail-dy1-f201.google.com with SMTP id 5a478bee46e88-2a467c4e74bso979eec.1 for ; Wed, 19 Nov 2025 01:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1763545077; x=1764149877; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=mAVQG061YW725q/wmjUYBgy0COgl5nGBRM+6s0kYZuo=; b=hvb3h2VyMXmJ+9bi62a4CGY9xsG7MhSBGBUfERNKNw15xkWs5Ado9dbNmMPP6tkACV yiCmYgE8dnfQYUgdfLiJaoOJCKp73bm9kVIJmgTBsK0vcDpwED2AscuDk+fhMg60BkMb IUVwgu8YjS4DQ96p5H6kvhleh2g5S0H5CgRfWsQA3UxK9T+YYpcSKWmBfV92/wWYTXL1 fBapZGmBoq1UwJJpIUcWpdhxJOTfTzfhLMreSxWHgDCdHBCY6n8B6Gy5alUkU11cec36 i9n+0arm3ZO7XFW9vKN10e8UtcRJLuUS16oaevt7YVLP2Q2CdOCGR7gMcffixL8ZNQaC n/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763545077; x=1764149877; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mAVQG061YW725q/wmjUYBgy0COgl5nGBRM+6s0kYZuo=; b=C+MqjUwDAIO/EPR7e+ln94av8OkXzZVG+yZUW+gsBx73LMSGt3LCUWLRBFaL6YTOKM Fmk0Sm7+PKRKEZrMdep+SegUCJoQNDEs3HiGQ6ryZEQGYTL4z2T+Od3YidHRLUtxv8Oc 7Ft7uMTr0sqoi+lhr2Fz5EEElCGFW0bAUAgVQNwrXK0Z0mVFAYX3XY6fZWEBFeaMeqFR ih9OIAIwL3etAPOLAwndVrsgy4FxCN25/5BcYeCfdltdpSl3rIc9e8/lwa9Pe5MoeAta u1tId/ITZafMNBX4kfUnzoPetEcB2Suy5J35ks8VbvZUIZo+5APz2bVSOhdbzTKRMi5V A5EQ== X-Forwarded-Encrypted: i=1; AJvYcCWZu+Lkzhb1ZX2tyeaHQaZNr4VFEPnycaim6i6+FgmSnjedh2NQ9fKswuZ+s4YxfkmWacZFVa4aZVJs@vger.kernel.org X-Gm-Message-State: AOJu0YzdQQv/4MyZWPzLjc2J0oeq4yHJart8osKR/VSTz29R2wjIjMLo LHSkxkejF3onc5dSzVS8Xf2IWbWPEABV8je8Ifud4x7OLBwr+84+bdCVVDUiWHD67+aN+zORCRe 9Tt3d6A== X-Google-Smtp-Source: AGHT+IEjF6sLuOZO6K6uO5uOpAxqm66tBkwkp0GiH/cYEmkoiS90zBFbVK08yLSxq9hgLXgfWB6Zs/rO4SQ= X-Received: from dlbdm33.prod.google.com ([2002:a05:7022:6ba1:b0:119:49ca:6ba1]) (user=royluo job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:ff42:b0:11b:b6f7:563b with SMTP id a92af1059eb24-11c8dd1e72cmr683912c88.1.1763545076721; Wed, 19 Nov 2025 01:37:56 -0800 (PST) Date: Wed, 19 Nov 2025 09:37:46 +0000 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.52.0.rc1.455.g30608eb744-goog Message-ID: <20251119093749.292926-1-royluo@google.com> Subject: [PATCH v7 0/2] Add Google Tensor SoC USB controller support From: Roy Luo To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Thinh Nguyen , Philipp Zabel , Peter Griffin , "=?UTF-8?q?Andr=C3=A9=20Draszik?=" , Tudor Ambarus Cc: Joy Chakraborty , Naveen Kumar , Roy Luo , Badhri Jagan Sridharan , Doug Anderson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This series introduces USB controller support for the Google Tensor G5 SoC (codename: Laguna), a new generation of Google silicon first launched with Pixel 10 devices. The Tensor G5 represents a significant architectural overhaul compared to previous Tensor generations (e.g., gs101), which were based on Samsung Exynos IP. Although the G5 still utilizes Synopsys IP for the USB components, the custom top-level integration introduces a completely new design for clock, reset scheme, register interfaces and programming sequence, necessitating new drivers and device tree bindings. The USB subsystem on Tensor G5 integrates a Synopsys DWC3 USB 3.1 DRD-Single Port controller with hibernation support, and a custom PHY block comprising Synopsys eUSB2 and USB 3.2/DP combo PHYs. The PHY support is sent as a separate patch series. Co-developed-by: Joy Chakraborty Signed-off-by: Joy Chakraborty Co-developed-by: Naveen Kumar Signed-off-by: Naveen Kumar Signed-off-by: Roy Luo --- Changes in v7: - Follow driver naming convention and rename the driver as "dwc3-google". Link to v6: https://lore.kernel.org/linux-usb/20251112123257.3755489-1-royluo@google.com Changes in v6: - Use "lga" as SoC name instead of "gs5" to align with Tensor G5 device tree https://lore.kernel.org/lkml/20251111192422.4180216-1-dianders@chromium.org Link to v5: https://lore.kernel.org/linux-usb/20251111130624.3069704-1-royluo@google.com Changes in v5: - Use syscon to access host_cfg and usbint_cfg MMIO space per discussion in https://lore.kernel.org/linux-phy/89733ddf-8af3-42d0-b6e5-20b7a4ef588c@kernel.org - Make warn logs in dwc3_google_resume_irq() dev_dbg. Link to v4: https://lore.kernel.org/linux-usb/20251017233459.2409975-1-royluo@google.com Changes in v4: - Separate controller and phy changes into two distinct patch series. - Rename dwc3 core interrupt as "core". - Remove u2phy_apb clk/reset (moved to PHY) - Configure usb2only mode when usb3 phy is not present. - Adopt pm_ptr PM macros to fix build warnings. Link to v3: https://lore.kernel.org/linux-usb/20251010201607.1190967-1-royluo@google.com Changes in v3: - Align binding file name with the compatible string - Simplify the compatible property in binding to a single const value. - Add descriptive comments and use item list in binding. - Rename binding entries for clarity and brevity. Link to v2: https://lore.kernel.org/linux-usb/20251008060000.3136021-1-royluo@google.com Changes in v2: - Reorder patches to present bindings first. - Update dt binding compatible strings to be SoC-specific (google,gs5-*). - Better describe the hardware in dt binding commit messages and descriptions. - Adjust PHY driver commit subjects to use correct prefixes ("phy:"). - Move PHY driver from a subdirectory to drivers/phy/. Link to v1: https://lore.kernel.org/linux-usb/20251006232125.1833979-1-royluo@google.com/ --- Roy Luo (2): dt-bindings: usb: dwc3: Add Google Tensor G5 DWC3 usb: dwc3: Add Google Tensor SoC DWC3 glue driver .../bindings/usb/google,lga-dwc3.yaml | 140 ++++ drivers/usb/dwc3/Kconfig | 10 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-google.c | 628 ++++++++++++++++++ 4 files changed, 779 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/google,lga-dwc3.yaml create mode 100644 drivers/usb/dwc3/dwc3-google.c base-commit: 24172e0d79900908cf5ebf366600616d29c9b417 -- 2.52.0.rc1.455.g30608eb744-goog