From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795944498; b=CrXmdr40tIxSGYO4B0hxzh9AU0oxqpqbj9p9+eN2onmWKGmOC/TyvskRQnI9i21O1thj eON7racSi6hzcYDG7OBxww0mmXqEwidgHpKSYVHpsjSL0USwZRKoX5aKg+dXcajzy6bUr fN7/x5jkV95sIR/v1GlFTL8O5TY39YS62PESGUMTdTza3/FtXicrAE9V+zx/0BE5wxCj+ 9t1DT0tmZ25wAEoa65r2N2JA98WsoaZGFMaFXmBb2c3MMaz5TX33tqe8Ms5dgHJFbv/QX +6F5nLz6UknJe7mS79C9wgdyxHfp/aYg8DpnrH8FHbGb6N40v9znnrbuuq/oUciTjTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795944498; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=2fVRrTCThMafC/EgxJNfZalmiOC8vzz3qqPmi34QV6s=; b=VEAAjELB5apJVO1iLFWrKS3DaBH7loqMm7JbzI/1cX1q1cdxRyKU9fr8cr/yUFUIQigK Ub/WdLJNB5zrH+xENFv9CzOmgnGmVRTyWXFmwoVSyW57i/s/KL8u/6eCB6VHnLxCdYbXl +Is/9bQ/tX0FzRqqliR3nXuOpNhXtW7W6E5GzIaLhKrm8ggpZq6+ZWV9cfwxkOurDyjjh 538yWz35PU7/qfsOUBMHFUifue8kOckb6XouBERwFsZm/LOAZBt7Hz5f3EaQujWm+BaZM PBjufwYA1EOMukMEipR4PAVwjbBnw1YuJPT/S5/HbeZCJqrqNO++SikpEKQQSiNo4IQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.remote-ip=209.85.221.48 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78B0960A2616 for ; Sun, 29 Nov 2026 09:28:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 78B0960A2616 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-498f5fa5103so5538830f8f.2 for ; Sun, 29 Nov 2026 01:28:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795944497; x=1796549297; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=2fVRrTCThMafC/EgxJNfZalmiOC8vzz3qqPmi34QV6s=; b=a9J1FbVJ1HYjc9AeBJOylbrGzLWaoNXezQxji2JiJDJKq0jYWqu/3ujow/OqSIVrX9 62sGaJyfGqxa/zN1ODGw5gsrfpnipoD0PxCljCyFVmfjN0fpcR1o2CZIMVxonYxM3a1S bjDNAojvd54VVWwbTM/4nIZG4qQ7GxBmOkSbVHsyYh+SI5tKE4inWj+Cx5psYM0W/BVX 3e0qFCrx4Nzo1gd++Xm75CLlDIJqn6Lict0k0NLCTowZZ7nyAeCBA2xEXNNVU+2MjuNV wQcnTMe16zp7nqY2z3RRlzEDkI3DxSmp3SB3VtKR1yMLj9TdnX7mPCTTS0c8sCByzbs9 SXAQ== X-Forwarded-Encrypted: i=1; AL+hErFgEhIV+ZfDkSvLfV4JlmSTfgDiFTSgb6SxDQuDD9T1YYIrWnBbIZKXVjMAe+n1cKFVKeZkXqLTOqtm@vger.kernel.org X-Gm-Message-State: APuU4Z9ObmLoKVUGCDAXgHjdE22wEcK32FU4PYwPi3x8hebbvoeSMveJ E9IzbELZY9FdKshMMzRb1WOxCMxUmlEZ8DWuqaJ/qn0ivedeeX1MPd+z X-Gm-Gg: AZFdTZfJcDwdy33eINQg1/J4LhTwTV987zJ2cRSIDeCqZhwgHfsxHKf8LllAOboahNF ycRogC3CWJHcKKvwhOiB8Hj12SagtB/2mKYRdHF5aFzVzQOgYeglOdWhjK1muJsB+Q8d9tKjWJx tBBvRiqVjE2JkmPG2wjFQuFUyhEMzDatu93byWyjtcNR8PQD2hOiYAXTCDC3KxaOis8fUpLxHqP 7PWLh8J9hg7B7vbZdDnX3Ub1R/YCrXXNmEek99rcpND0hBN/N/g6E63+mAVClX4sACbOr/pfMa7 McuR0hxD5q3PB5GVXijCGc+KS++dAc1vQOEfL/8x/evG1vsJ3x7unfjkQ759hdtoQqZy9Arlt4n ZcYh626Q1AcRAxelCQqZZIQ7bGXFHVudcz/3jU5Jl5+g9v0Wd9w/P89qeIdmZpwshPSyZUGnQkp jZo27uzQ88yG6x12znXDhswogK4jNGZqtUNDtCBObun7OudvJUE2eQEHg2Xm5f0LEuJvCXbkLiQ +io7eb+ouu2WlcEZy0PU0IXQfRXxGL1P+7FBKfhbU5dgaVp4JsoWS1Wyb3P5u+OEAqPl1uucV1V Nm05m/HK7VzGtSvYA36//fYPvyCA9v7NBjJ32spHQc/wXqhD2gA6TeqoWfRb4AhBOpC35NZEeFL lhPsR4vTksCJfBgjqeS2ll/jB X-Received: by 2002:a05:6000:184d:b0:48c:7386:af18 with SMTP id ffacd0b85a97d-4abacfea55cmr64083369f8f.8.1795944496932; Sun, 29 Nov 2026 01:28:16 -0800 (PST) Received: from threads.localdomain ([84.68.176.78]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf61e8sm60210765f8f.11.2026.11.29.01.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 01:28:16 -0800 (PST) From: Lucas Tanure To: Neil Armstrong , Kevin Hilman , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Mathias Nyman Cc: Jerome Brunet , Martin Blumenstingl , Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/9] dt-bindings: phy: amlogic,g12a-usb3-pcie-phy: add the T7 compatible Date: Sun, 29 Nov 2026 09:28:08 +0000 Message-ID: <20261129092810.146043-8-tanure@linux.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261129092810.146043-1-tanure@linux.com> References: <20261129092810.146043-1-tanure@linux.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Amlogic T7 has the G12A USB3 + PCIe combo PHY, but it is not described, so its USB ports cannot run at SuperSpeed. The T7 PHY needs different settings, so it needs its own compatible. It also has a second reset, for its register interface. Its USB 3 lane is tuned through USB control registers outside the PHY range, so it takes them as a second register range. Signed-off-by: Lucas Tanure --- .../phy/amlogic,g12a-usb3-pcie-phy.yaml | 46 ++++++++++++++++++- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml index 1a5a12adb72b..63ac68fe0efe 100644 --- a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml +++ b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml @@ -14,9 +14,13 @@ properties: compatible: enum: - amlogic,g12a-usb3-pcie-phy + - amlogic,t7-usb3-pcie-phy reg: - maxItems: 1 + minItems: 1 + items: + - description: PHY registers + - description: USB control registers clocks: maxItems: 1 @@ -26,11 +30,16 @@ properties: - const: ref_clk resets: - maxItems: 1 + minItems: 1 + items: + - description: PHY reset + - description: PHY register interface reset reset-names: + minItems: 1 items: - const: phy + - const: apb "#phy-cells": const: 1 @@ -49,6 +58,29 @@ required: - reset-names - "#phy-cells" +allOf: + - if: + properties: + compatible: + contains: + const: amlogic,t7-usb3-pcie-phy + then: + properties: + reg: + minItems: 2 + resets: + minItems: 2 + reset-names: + minItems: 2 + else: + properties: + reg: + maxItems: 1 + resets: + maxItems: 1 + reset-names: + maxItems: 1 + additionalProperties: false examples: @@ -62,3 +94,13 @@ examples: reset-names = "phy"; #phy-cells = <1>; }; + - | + phy@62000 { + compatible = "amlogic,t7-usb3-pcie-phy"; + reg = <0x62000 0x2000>, <0x3a080 0x20>; + clocks = <&ref_clk>; + clock-names = "ref_clk"; + resets = <&phy_reset>, <&apb_reset>; + reset-names = "phy", "apb"; + #phy-cells = <1>; + }; -- 2.56.1