From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA787D2CE0C for ; Fri, 5 Dec 2025 02:27:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oVsk9a4aQdQP/c0wiqQ2Q1y0yBOFK98goZ8NXwTr67U=; b=x7Dp8UDDRmoKP/pOkoXMOhPlxA g1ZvZEHDW81Ud34v5MUThMRPUZ39LcJ+YRhTgT2TEILJfTpdSCptA2LZhcR8keiI4UxUqyeDNiP6a OchiqJayfE6RKOF0se4S62SCE2B5Az7Njm6w/0BJoq+9EvOv7ypUat3AGDzBFzP30KxlG+o9d1SAS zTi1OI/V0sKe2j9uWRIDgFQHjENuogZT6tGTUJAIta6y+ZkbLLLfIrV6fkDTDRuws3sWvERAzyyrP H3eygKkt3Jj3R5RhxFgtbcWtTk0astz7p2nxGyshPaefYzM2TyeQfKGcSAuLhPHRX4Iq6bgozo2Uk 1dvczTGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vRLXP-00000008upj-0wZQ; Fri, 05 Dec 2025 02:27:15 +0000 Received: from mail-pg1-x549.google.com ([2607:f8b0:4864:20::549]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vRLXN-00000008uoK-127b for linux-arm-kernel@lists.infradead.org; Fri, 05 Dec 2025 02:27:14 +0000 Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-bdf47c10220so2603561a12.3 for ; Thu, 04 Dec 2025 18:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1764901632; x=1765506432; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=oVsk9a4aQdQP/c0wiqQ2Q1y0yBOFK98goZ8NXwTr67U=; b=D8rkTq+5wX5NUH9K27Q3Wh661sbbyOHmXxVv1AU+VPqJtFx4hzD082/zGQ3EAgUguH 1AcLiaPyrRk4SyxCvaSityJ2FgaMo/NlEuWuHvwDzqZm1cfle/bKI4CIZxEgy6DspzWF rWzo6V09bOulVs2tYu3LzpkeMBIi6d+TeI8IarITBSBsjKmwHj+3j7NqSJt0bIf+EIRo rOpirRLd/AGbIcqbjvH0LeuJF28GsBxluDrDvuk0UUEhZGDuaFkjjG4zNewxFoV9Crw5 0OHD0aN9r7UJw4Vk1mdN0qFH6FkxcVPoaG019qCCEDji7nj5e8Fmwm5PV6NJVPmaqIZ4 kjXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764901632; x=1765506432; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oVsk9a4aQdQP/c0wiqQ2Q1y0yBOFK98goZ8NXwTr67U=; b=jlsGz2Z+mOKWfStJzNgoDsvlaamKVK5oF8uwsMfvJxdtBfmYgBezsHg43jItyg6qUQ J+e/PCLZQX2UAi/d+pky2mCTXw85Rq8aovcVk1J8R5xWX751sVtpZa2eWg8v3Bb0+lZP XGKP5J/YI7wVGoGDR3rFWn+H2GMyOhANah9sEU5NquDEmPqwCeCaJzUhtJn8yvxuMokg 9S5R9Rr8GrM16H2SoWMlBb5g8DxkVS1sc4+NEbkp9qJqDNej+qL4u/z4uCxIS4MEJFD7 Dst6LMa8DqBHw0rppsxYgBBO+tJnrFiCBuXWKaQU5VG9kqBy+XWeaFtily9wXSpA78vn Wc6w== X-Forwarded-Encrypted: i=1; AJvYcCWTL+pFXn4W6cRBVu1iREdFUhJWRSzCFFTxqznUZfDDJ7DsAv7Br4bAVlcqzqOOEitdlNXOPJItqaKVo6UylfzL@lists.infradead.org X-Gm-Message-State: AOJu0YxyL1Qy0yAOUoqRIvktL0nBNunDtwou8toQqamIBiHTYtomR3kx 8xAFPyL9+RlU7civOf66EwgaRbw9g6tIu77EZYh2SVF8QY0LDUTyAeINE1PHekgC2pQw56LArLj tAzyn5g== X-Google-Smtp-Source: AGHT+IEPujoJ3nijE+UqlwXNbstczzvGNxfQoJRnqNmmihX0qo9/DsjtAnrBM7LUxRhHcAfRSSm82bbjemA= X-Received: from dycez10.prod.google.com ([2002:a05:7301:578a:b0:2a4:6419:6f8f]) (user=royluo job=prod-delivery.src-stubby-dispatcher) by 2002:a05:693c:2488:b0:2a4:3594:d53f with SMTP id 5a478bee46e88-2ab92d8f85emr4542702eec.12.1764901631556; Thu, 04 Dec 2025 18:27:11 -0800 (PST) Date: Fri, 05 Dec 2025 02:26:37 +0000 In-Reply-To: <20251205-controller-v9-0-9f158b18f979@google.com> Mime-Version: 1.0 References: <20251205-controller-v9-0-9f158b18f979@google.com> X-Developer-Key: i=royluo@google.com; a=ed25519; pk=nTq1n8WcJActRWe1s8jdcy+TzpTK4a+IYRCIWvQfq5k= X-Developer-Signature: v=1; a=ed25519-sha256; t=1764901627; l=6281; i=royluo@google.com; s=20251120; h=from:subject:message-id; bh=3hhHYv63VxhT7YPcfGEaAxZVxTD9R5oA1GqPr8KMQc4=; b=X+Mmk4FeGOhfMhy3L7+g85WOJSOD525U7Su4modzWcFDzTegotJtp3xSt9mi3WcADxbzW85m5 eqOouITL98UC6XLEJNdo4Pn0qHmM7OAHu23OXf8iZtI3UO9QC2CS0Pr X-Mailer: b4 0.14.2 Message-ID: <20251205-controller-v9-1-9f158b18f979@google.com> Subject: [PATCH v9 1/2] dt-bindings: usb: dwc3: Add Google Tensor G5 DWC3 From: Roy Luo To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , "=?utf-8?q?Andr=C3=A9_Draszik?=" , Tudor Ambarus , Thinh Nguyen , Philipp Zabel Cc: Badhri Jagan Sridharan , Doug Anderson , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Joy Chakraborty , Naveen Kumar , Roy Luo Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251204_182713_290494_F15A6C8F X-CRM114-Status: GOOD ( 17.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Document the device tree bindings for the DWC3 USB controller found in Google Tensor SoCs, starting with the G5 generation (codename: laguna). The Tensor G5 silicon represents a complete architectural departure from previous generations (like gs101), including entirely new clock/reset schemes, top-level wrapper and register interface. Consequently, existing Samsung/Exynos DWC3 USB bindings are incompatible, necessitating this new device tree binding. The USB controller on Tensor G5 is based on Synopsys DWC3 IP and features Dual-Role Device single port with hibernation support. Signed-off-by: Roy Luo --- .../devicetree/bindings/usb/google,lga-dwc3.yaml | 140 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 141 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/google,lga-dwc3.yaml b/Documentation/devicetree/bindings/usb/google,lga-dwc3.yaml new file mode 100644 index 0000000000000000000000000000000000000000..95be84c843f5da0e80ef5ef1ac9193019b5eb2a0 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/google,lga-dwc3.yaml @@ -0,0 +1,140 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (c) 2025, Google LLC +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/google,lga-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Tensor Series G5 (Laguna) DWC3 USB SoC Controller + +maintainers: + - Roy Luo + +description: + Describes the DWC3 USB controller block implemented on Google Tensor SoCs, + starting with the G5 generation (laguna). Based on Synopsys DWC3 IP, the + controller features Dual-Role Device single port with hibernation add-on. + +properties: + compatible: + const: google,lga-dwc3 + + reg: + items: + - description: Core DWC3 IP registers. + + interrupts: + items: + - description: Core DWC3 interrupt. + - description: High speed power management event for remote wakeup. + - description: Super speed power management event for remote wakeup. + + interrupt-names: + items: + - const: core + - const: hs_pme + - const: ss_pme + + clocks: + items: + - description: Non-sticky module clock. + - description: Sticky module clock. + + clock-names: + items: + - const: non_sticky + - const: sticky + + resets: + items: + - description: Non-sticky module reset. + - description: Sticky module reset. + - description: DRD bus reset. + - description: Top-level reset. + + reset-names: + items: + - const: non_sticky + - const: sticky + - const: drd_bus + - const: top + + power-domains: + items: + - description: Power switchable domain, the child of top domain. + Turning it on puts the controller into full power state, + turning it off puts the controller into power gated state. + - description: Top domain, the parent of power switchable domain. + Turning it on puts the controller into power gated state, + turning it off completely shuts off the controller. + + power-domain-names: + items: + - const: psw + - const: top + + iommus: + maxItems: 1 + + google,usb-cfg-csr: + description: + A phandle to a syscon node used to access the USB configuration + registers. These registers are the top-level wrapper of the USB + subsystem and provide control and status for the integrated USB + controller and USB PHY. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the syscon node. + - description: USB host controller configuration register offset. + - description: USB custom interrrupts control register offset. + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + - power-domains + - power-domain-names + - google,usb-cfg-csr + +allOf: + - $ref: snps,dwc3-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + + usb@c400000 { + compatible = "google,lga-dwc3"; + reg = <0 0x0c400000 0 0xd060>; + interrupts = , + , + ; + interrupt-names = "core", "hs_pme", "ss_pme"; + clocks = <&hsion_usbc_non_sticky_clk>, <&hsion_usbc_sticky_clk>; + clock-names = "non_sticky", "sticky"; + resets = <&hsion_resets_usbc_non_sticky>, <&hsion_resets_usbc_sticky>, + <&hsion_resets_usb_drd_bus>, <&hsion_resets_usb_top>; + reset-names = "non_sticky", "sticky", "drd_bus", "top"; + power-domains = <&hsio_n_usb_psw>, <&hsio_n_usb>; + power-domain-names = "psw", "top"; + phys = <&usb_phy 0>; + phy-names = "usb2-phy"; + snps,quirk-frame-length-adjustment = <0x20>; + snps,gfladj-refclk-lpm-sel-quirk; + snps,incr-burst-type-adjustment = <4>; + google,usb-cfg-csr = <&usb_cfg_csr 0x0 0x20>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 772af0072fff0921000c6fe27c018666c1579e48..61f5768b31ae31cd72f4c2a3b74398f9473e192b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10662,6 +10662,7 @@ P: Documentation/process/maintainer-soc-clean-dts.rst C: irc://irc.oftc.net/pixel6-kernel-dev F: Documentation/devicetree/bindings/clock/google,gs101-clock.yaml F: Documentation/devicetree/bindings/soc/google/google,gs101-pmu-intr-gen.yaml +F: Documentation/devicetree/bindings/usb/google,lga-dwc3.yaml F: arch/arm64/boot/dts/exynos/google/ F: drivers/clk/samsung/clk-gs101.c F: drivers/phy/samsung/phy-gs101-ufs.c -- 2.52.0.223.gf5cc29aaa4-goog