From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f74.google.com (mail-yx1-f74.google.com [74.125.224.74]) (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 877672EAD19 for ; Wed, 8 Oct 2025 06:00:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759903222; cv=none; b=U/26V8vgBMBTtAQXMyzf9FtQcI+WEvxeiTsqo5Vn6d7Yxs1iHMFp4Ybq76NrzS1UQeZyL4kNEmwmqzQ6FkQ4XDZQE4B6Um9373uN7eyx5AOSRA/cJfvPyZdYUjkhoCtkFbAGWn72T0W50C7elqskNgJ0vif9zgam961E1FrQmgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759903222; c=relaxed/simple; bh=Di7zMVisYFTvAZ4tqhXBgQXgnhe5lS7Mu/ogKUkXSzY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MJbqOoGx1QJ8r6OY2EyBdN+Gxu1Mb3HmsfoTRzXucKhMRW/DryRsOVocB6vWBj37QoDqKcfrDaIHz1qKBjvYEIRULu/mgA4ti+Sy9t5d9so7SgVMQCrenXncDD5zECuOlr+3O8o8fAG20doA9XzSe3af1DVChDh6o08uQwNzp9I= 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=1SWKruen; arc=none smtp.client-ip=74.125.224.74 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="1SWKruen" Received: by mail-yx1-f74.google.com with SMTP id 956f58d0204a3-6352a642093so7551533d50.3 for ; Tue, 07 Oct 2025 23:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1759903219; x=1760508019; darn=vger.kernel.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=O3nQ2IBXVlqup3yhiw/z2ZC4B8Uznh8ZXWkNRIY9DZ0=; b=1SWKruenBTdy/NBtIGE0N0srkQ4Qpf0gO31eklbsrylxzwLpUFnD9h0WkPl6wQLGtq Z9fykvEiaiYYHjGP775gWyhAkhk4x7YZ8fSMvdS4ndRqdRFQWADZCuniHoqNCJew7p4V YYf0Z9WRChdnqxUMp8je7E1h45fcFahzc7GsdKHHkH3ZhqSH4gJSS9lmNia3XTHLxYlV lfp4Z/4TDGVbLMNZCqBQI6dlFwt6CiZxsVSLP3dQVbtLeA1wRatn5tP430Xd4lPGrnN4 eHpOoRLqI6Zl4/rW3Busxp2GE8veilXQK90hqzQhiPu/Acy8sGyuBtJXUY/MS4ZUcAb1 jKlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759903219; x=1760508019; 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=O3nQ2IBXVlqup3yhiw/z2ZC4B8Uznh8ZXWkNRIY9DZ0=; b=DHopqJh9AKbjAR1rlvNuD7+8gZg5ENqXcDqdps5UX3PQgGOyz3LA0lGNUrlYNDQ+Jz nSHO0+ljUKxBIlLaC82TPB+H1GjAd9atzeuoJw/Peu21UcjNikjOPBEQI//i49WmTfyw lqG9Y7rQq5QS/UdfwdMrziOBLZJftGcRIbhI/7suFQ8ZLijZw/utizWQ3WYTEFHif4XY UowYbNX0lZlwnL6jSpbsg+hHUzRHPj7yt3X4HaZp9IjWxf1OBLM11Qto9l5c5IWBZnNC WMd6vJTwo+VikW1FPTdzI84pN3kSuIqGjdJiWf3U9o4ABgA6k1PIpydgwmkk+cesHq5o K7cg== X-Forwarded-Encrypted: i=1; AJvYcCVf8biL2t/d9JJMulcNmMXByr/3nNxBImrNOIU6puX4+wdai/jR5lZc+vPGptx+d6IEn1AqwKywLQI=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8EfopohBSluFG6R/b1iMjUkjohnd1XmHw/q6wyM1CVpvYZvns WXaC+oItJJbNLHPKSW/91cIKKjWKw4/2XL8lTnryymdy5EaRKDp3rsiVwLD+3JlMwfgeKq8eb05 jKL9T4w== X-Google-Smtp-Source: AGHT+IHkVcxa2pum021wuuoLs2okLrcMUb66ABXH6XTGYhxmFAHtMt5/klv2Td06QQp5AMBpCeX1Xhqxjbw= X-Received: from ybbch13.prod.google.com ([2002:a05:6902:b0d:b0:eb5:2c5e:6965]) (user=royluo job=prod-delivery.src-stubby-dispatcher) by 2002:a05:690c:6c08:b0:77f:667f:61f6 with SMTP id 00721157ae682-780e155533dmr45405427b3.15.1759903219488; Tue, 07 Oct 2025 23:00:19 -0700 (PDT) Date: Wed, 8 Oct 2025 05:59:59 +0000 In-Reply-To: <20251008060000.3136021-1-royluo@google.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251008060000.3136021-1-royluo@google.com> X-Mailer: git-send-email 2.51.0.710.ga91ca5db03-goog Message-ID: <20251008060000.3136021-4-royluo@google.com> Subject: [PATCH v2 3/4] dt-bindings: phy: google: Add Google Tensor G5 USB PHY From: Roy Luo To: Vinod Koul , Kishon Vijay Abraham I , 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 , linux-phy@lists.infradead.org, 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" Document the device tree bindings for the USB PHY interfaces integrated with the DWC3 controller on Google Tensor SoCs, starting with G5 generation. Due to a complete architectural overhaul in the Google Tensor G5, the existing Samsung/Exynos USB PHY driver and binding for older generations of Google silicons such as gs101 are no longer compatible. The USB PHY on Tensor G5 includes two integrated Synopsys PHY IPs: the eUSB 2.0 PHY IP and the USB 3.2/DisplayPort combo PHY IP. Currently only USB high-speed is described and supported. Signed-off-by: Roy Luo --- .../bindings/phy/google,gs-usb-phy.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/google,gs-usb-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/google,gs-usb-phy.yaml b/Documentation/devicetree/bindings/phy/google,gs-usb-phy.yaml new file mode 100644 index 000000000000..22961e2da6ef --- /dev/null +++ b/Documentation/devicetree/bindings/phy/google,gs-usb-phy.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2025, Google LLC +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/google,gs-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Tensor Series (G5+) USB PHY + +maintainers: + - Roy Luo + +description: | + Describes the USB PHY interfaces integrated with the DWC3 USB controller on + Google Tensor SoCs, starting with the G5 generation. + Two specific PHY IPs from Synopsys are integrated, including eUSB 2.0 PHY IP + and USB 3.2/DisplayPort combo PHY IP. + The first phandle argument within the PHY specifier is used to identify the + desired PHY. The currently supported value is:: + 0 - USB high-speed. + +properties: + compatible: + items: + - enum: + - google,gs5-usb-phy + + reg: + minItems: 3 + maxItems: 3 + + reg-names: + items: + - const: usb2_cfg_csr + - const: dp_top_csr + - const: usb_top_cfg_csr + + "#phy-cells": + const: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: usb2_phy_clk + + resets: + maxItems: 1 + + reset-names: + items: + - const: usb2_phy_reset + + power-domains: + maxItems: 1 + + orientation-switch: + type: boolean + description: + Indicates the PHY as a handler of USB Type-C orientation changes + +required: + - compatible + - reg + - reg-names + - "#phy-cells" + - clocks + - clock-names + - resets + - reset-names + +unevaluatedProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + usb_phy: usb_phy@c410000 { + compatible = "google,gs5-usb-phy"; + reg = <0 0x0c450014 0 0xc>, + <0 0x0c637000 0 0xa0>, + <0 0x0c45002c 0 0x4>; + reg-names = "usb2_cfg_csr", "dp_top_csr", "usb_top_cfg_csr"; + #phy-cells = <1>; + clocks = <&hsion_usb2_phy_reset_clk>; + clock-names = "usb2_phy_clk"; + resets = <&hsion_resets_usb2_phy>; + reset-names = "usb2_phy_reset"; + power-domains = <&hsio_n_usb_pd>; + orientation-switch; + }; + }; +... -- 2.51.0.710.ga91ca5db03-goog