From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 39A532E4254 for ; Fri, 17 Oct 2025 23:35:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760744107; cv=none; b=B/DC1Z0piD8qfukz77UmbVMg4fL5VpllSFQBYfmxPqakfxvgfyz3e3MOj6UDXck6CMcqtyFsEzD/yowUPdPO/68O1OCL9urY6yMoly2iS+SQ2+vC/CARP4Qqim44S3XHday9oYTqoBs0d3dOCgbATEFlVuIa1SIi0L+viLXeRs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760744107; c=relaxed/simple; bh=RtIfXss6eIKXPLj3ncfE4505sTF0A4And7X+BcVgVZE=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=MTSEjY1KcMXVEsV5dBgkuEyCr4Wuo8vraaT3asEasTzNRigKjITuzYVphrKUSPfUcx4fghCA0zQ6aPl0VYGrRx7HIAVrR/57ZuHnmo//rUpSuctXAgsTPhEjtte/nArvwP6STpGfQos2n0kLLs7EoohRJkBF28WzkG2K9e1HQrI= 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=QFsWNFaY; arc=none smtp.client-ip=209.85.214.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="QFsWNFaY" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2924b3b9d47so868835ad.0 for ; Fri, 17 Oct 2025 16:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760744103; x=1761348903; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=SE2EEGb0HouxauO/aNI7gyJ7SeBT6HKDFtX26SdNI+k=; b=QFsWNFaYfmeHlULGysriKzn5ca/Jsr9d01MiJXHFgpEqXkTuZ/5vKB2kc6ZUn0uP00 ZetfR94XcEyfI/2l5T/AtlIe8eHrMpo1osI/czUEgM2umQ3pUQJ6xpFKx/jrL1ENO9Gn mydUN5M+g9LIsab6JNupi6+nOKHBXx4XqEBVmybQwkIhwcxEWrsjMQln4Ewtw63xosbx tIKoLHx1ygqAP2BoiuV9VyVqEE/5iCwmGZPHnZgWEc31lbdys9XgUp5FjEv/PL1zFARU JxUHpMvSpbd2SqiMJTr49O/PHX1yHWF8eyWkIchlT+3Z9aHqtQmchV5iVeZhe4wfSx3/ IjcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760744103; x=1761348903; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SE2EEGb0HouxauO/aNI7gyJ7SeBT6HKDFtX26SdNI+k=; b=TcZ7VM7I+9q+ZLQncxxdnv8EKDv+vYpETk1ZikoNWKXEUzpgHndfMdRfHauAXcce5h 9LgbtL5FUaxvPA0nYwaFD9hTaBCgkd8mT4vFy6wZI6Ln1/EZlGeU5RZTTGAtKZII5D3m +c/X5Ovb4wkXA6lijSxk4uW01KvtSjDl9LsQEMAvUcIi5OyChEK1w18INFhpbt8nvGuh SNm4lgyYVxuRYlwEwZLDweXfUzDzJaWS+CXkB5OWQZW9T+kjE+lxaeH9f7D38W4QVZSh ZTGkDRawmH/ddcw8f9FiHfReU1mOmIxRZpMJeai26ttOyNcrxfakxt7YmytaP+Aeu50R cSeQ== X-Forwarded-Encrypted: i=1; AJvYcCWEdBAWiEoHtVlOfWxtVtug6kdcI4/hpcVOzLuOVC//EFrMout8x28AH+8z45l7R6gtN/syLsxTCIyGGgE=@vger.kernel.org X-Gm-Message-State: AOJu0YwgJQubT4UwzAf2WuXsg1HDi4zjq1o7D+rFxaZNQX4iXLy60lcl igYTLID7OYgYk30+kvp6TqchEnTM4v41+fEqU4dwXwnMQV5Ev0ynCYUFPCrD6qnmho5wkm3zSHb 0Rnlxww== X-Google-Smtp-Source: AGHT+IFz9LrlEbh/GEOZE08yXGgYI/4R0E7gunWHRVlyUcEr6QWUdol+r9ZsCt+kLhqmYgnF5LBEIR69e4Y= X-Received: from pll21.prod.google.com ([2002:a17:902:c215:b0:290:cd84:e7c]) (user=royluo job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:22c1:b0:278:704:d6d0 with SMTP id d9443c01a7336-290c9cb2666mr71637135ad.19.1760744103403; Fri, 17 Oct 2025 16:35:03 -0700 (PDT) Date: Fri, 17 Oct 2025 23:34:57 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.51.0.858.gf9c4a03a3a-goog Message-ID: <20251017233459.2409975-1-royluo@google.com> Subject: [PATCH v4 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 , 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 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,gs5-dwc3.yaml | 135 ++++ drivers/usb/dwc3/Kconfig | 10 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-google.c | 608 ++++++++++++++++++ 4 files changed, 754 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/google,gs5-dwc3.yaml create mode 100644 drivers/usb/dwc3/dwc3-google.c base-commit: e5f0a698b34ed76002dc5cff3804a61c80233a7a -- 2.51.0.858.gf9c4a03a3a-goog