From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795944498; b=tGfl9IbBO/cBe7EXgTThiWULeEWmhlIYRPmLoeb8kZzaAfc7XvTzGTid+AzRz9DmjThS ImJOxLg9QmSusm/km1neVHKFXahFvF5n306rYR5SWrevGFjVh2r2cDvwJzTNM7oMCVubb o6eULz1MvjhnnrHLEmI57A+IYDZA+sFBiRoDmFxBnc9TxflodP7UlebTjnSgjI9Dk1yhF 0Y4/De1Kzy5tbx4pvjl76WS3+ephDhpIXNvwmxzvXvQ2q2NlrsOWRwUrHb62uHVJZB6gD FwP2bFZroA19GrHj53GuD66HmJUu+GRCcTUcs6sCFzWsJcVqtjFQILc4hmICFJ76grA== 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=Y9b6cIC7omboS/hsIhB+BpkraX3H0RyWNQuW/F/QlwHgYozmdQw7dGghxcCldkQmgyhf h5GPOliR3o2uQP9ltk1C2rQv+3LuviGPhtgYTDW3mNKHXd79mIxLXQ66WaxG0riVEOxwr rYjr7ddqES10mzY/RhEfgvdqaCWRYPksLC7i3aikQFZbAMb8R3ihTB2SUC1t21sLl4BrU 8D00EwP+/+0GsKwcmFYeuGuafjGFi5siO31cPFnfKTJs/gzoSETPvPJAmgU7zP/tcMd3a e427FugEIFAiSJTwa5KdU6mJ1swrpzLZmarxURpFgkbx49CCT2ijdFOAViGRwxosgWg== 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.49 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 87E8B60A2618 for ; Sun, 29 Nov 2026 09:28:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 87E8B60A2618 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-f49.google.com with SMTP id ffacd0b85a97d-48e47347279so5731602f8f.1 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=h8iP32pM/8IFMwLCY1Cs4sk2+Bt3gbKp+YJS/jHrCMxiO0tnt8gdhjADelyN34eM4B n8fJFwdOidL48kAGjUumjm3JunamRcSbm2iRoxB/WwyZCXzPu3NqQuS1OhQfdbJ19UdB +NxOBhodlVogh5taaNPofhr2/x1lfbfCAX8ZkPpdWQXiHfP/0Cw//Gp48p+xK8Grwnih 9+iy7U721X9Wu7Y8WdAC3bqLquVnHn6FrFt/Y669bnbKYS+ILj6A7HxOEGYNapnfZJMv 9TtxsIFnr91xc5ZBh9dDSvkPx/dJfgPlLha5n7WNRryhtm46EjMJJM9IO62uxZfP8H51 s3OQ== X-Forwarded-Encrypted: i=1; AL+hErFTnEvQhkzccjt9ohGCgc4DKuUwYDuiFrhdamnRftF1JHfYKy9o6ExWXolu267BIpckhj2risDkeXI=@vger.kernel.org X-Gm-Message-State: APuU4Z9did0RezmuKophUq1n/N7nVIKynSeMC8rm4U2VlaDPfk0W+F8o PnQkxvVgc4BKXMO2KZpgqQ13TR9kc6T8ALm9flb1enUWiBBUXfeTvA5b X-Gm-Gg: AZFdTZfX1ISosT+C9R1r4YckSMhF8YWpzY7KncZ9iFgkD7nBzo1VUDbfKMJN1/tL2E0 L8HuO8o2ypCHfZe0UlBNQw/lvQ7RKZ6lmHcLQEa9Kzn5r6267CB7LhsGvmQ/yGbLkREFhYxLNUa BP2Caj6h55JPapFZcEYWl2aoNKgq3NuDJt1eSuqL7s4FUyJI2koZoSrTBi3jr3DhsnkwKizbsJG P6FNjn2LJxTpxgXPQpjDvCWesKpTmsw1jakyzJA2I2Ac3/MI1LvFwMCp2yeQyr81sCDYbQ/zw+3 pVtUBEE6G0taCGtA+QpLrguIqXmzeYdvKfleOHzqbJlVoM3eh0eJiHeQ/xHpKF6aCvJ+Uu+oLLU m/lmTpUPQGuNDchIqmwGgrpgMscQkEnP3a0rmh0Q1EsCF2fuf+I73db/etuR+Xe8y1AvGbOdjEj IICj3nLS1b6YjSnadN+N57/07VVtTpRoCOfzttronb/ng0fpb4jWZN+O8LhukMCkdPWN36IEEP2 v0IJqh7orsAshifBZQqk08RdW5RKGJWUx/sSnS1u0U0rl43YpmHg5nNbJFPr1V43NewTkOMwTNo Is5bsYSFG+gfBzemE+VMNr/7A/OyUGmobjK7Gc2WI9qJ1SikQTyM0OBe58GDTTKMDwjPz4eiwx6 xCaqo50VxsKTnI+1oMFdB9RA6 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: linux-usb@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