From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795944498; b=tnBUOopu7wX2CajJSPXUDJOZPgKR0Y1rZwAdUtMzgarC+q4NnrjygRbEqBJK3e1uUD/x tr7oSf3FFE7d08Aj9cTrAOA4sledlJjVthTyZfnWAvI7j8xTOVpS5EiIw1w/RQm/Z2kf/ VpqBlazf4aIOGLtvK3hmhgRD3oEuG7r5eGGVYlw4NA7+ezM2JwzIMutXIGOp5du8L4ctD YNARiMtWY488tLEXUek9wg/o6Ho0+BzDvqHRYcEYVx6OFUGQkWCFrXg8LHDsm9e+OlTMp qqGQ3xtPjExs5pSrisn3Scn2fPMTdF6XRFgLrsp529lT1QBIcDfAs6I4UyBRNXjPTnQ== 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=BWyVat0OhW3RrG2BRPatcRUZD35Sh5NmL5KPISZtt7b7FkQi+RSPKnDQVQ5ZvWnvSgkO ScwThGdxlhOEvk/+4DT/OGhLcALtf+Pod522C5WRX61ZnFV5KPSYXuPeqE6E8/slkxqud RGTBjV+HE4DDQREMFHGqolDKZOiV2WOv5MKuZvZyuOCtwv36pA/pkCQi4CsechyyWF6mS 7hyuIflihNi0XQdjnrl31T318EjBavUpqikCJV3CIko8fMJTK9apRWwc+QaoToaK0ZLuV Xf+Vz9x743FpyKr1yeEWOxmtQc1ijv2q3U8ETB30+YGEMJlG2Pyu4Ph7Lnf5fzrZxYg== 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.42 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 88B6C60A2619 for ; Sun, 29 Nov 2026 09:28:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 88B6C60A2619 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-f42.google.com with SMTP id ffacd0b85a97d-4a32576da88so5422265f8f.3 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=FY/iqE//Uyuu31MNJ8/DjOtzEKYQBjCajzopQJGc8U3Nqc1cwDafziXkJe2U0nlMOz nf3gSEly9WHPWafYu8esg8SkMvIAI4IF2zN2HkmVw74rl+HVvi+bAjCLOQorxL2OZqK4 EDpljx/0Jw8kC4deQJc3iDkwqX4l/HIPaswfXwkZ5ii0od+eyYT2U6QY59ipL2CTDApr TzEMT51Bx6QJ3GfvV7dNrBPX/iLuJrmHjDRz+6+z68cyzF9vYH65tIX87PCi4hT5x7ot yQStAmGwSOqGyT9AFLWd7lmOsWZ6PRj/eWQKll+pwDYouiJ85R1CF0xAD3vDamfy30gy pBKQ== X-Forwarded-Encrypted: i=1; AL+hErHO/fhQaTh2CRPpNfn0ciUVttocKyqoeWOwTVdcerpR1PC5dFSG+bV+YjL6KW5zYuBV226pPhMwWegYTZ0=@vger.kernel.org X-Gm-Message-State: APuU4Z+p6ZlawZOBuct13eJyZUWfMh4tsjR5iNh24RYat//rhyCmjSiI 69Dwj2ea8B6K9/+Lv9KDs/xo6xh4Jr5ikK2E4njODjvM+j2WVV/Ntf/H X-Gm-Gg: AZFdTZcx5UF0d4m6n7qbT5tdmMcAU20vdOHg3fRBh/pdyxs4jlHCAAf06k2X7OyS7db 2sRMBZD4gBRRb1XAs8fLqHAyCXit04g7GiFHzIoTgO4+tCSjohaD2+PrTbqUx6SQV/llc/HbKM2 q3qiLWYfOCXc0Rm7r3QfueBBqJ409Zhhn5H7WY1hDX2SLDuVzbW7Ncs5tX5/Isxjimc5m/ilWpj +F0mqgLLwTG1wqyIhV0lLqc1zFgkZMlv84okVJQwfFxUc/RX1sv4Eo7RCYzD549YtJDZp1AUJ7O hrfQXfcG4X6tFzdHxS0OsKuLnRlPWM6D/jQERHoaXp4rOIAsnsuIjBkHaca1ACPgF7gj1TMlcEf 5OBWIVf8JE05wAVDumEXUUOaX/mkwM9gjOgxeKych3RHvzy9D3c5U9VhX/tRz3MxO1ctnQvjfLb PErI2Qt3We5UvvC5SjDRnwZhRWZt6Uu3eWFT/GnwjY6/Hr15HWv721AXAFBtFuJ/zspCNMaahiM UKbY0mQhdPm8z90vyqRfLMh9b84o9MlehZlhWARLhu27KFucmcmQvjJS+3l136QxtnA/iuuNfCJ P2clLDVnZXOGxnHWLdnGLeN6M+fnJxxC6L/7GWNjar99Nzq7x5sCk1dXA8RPFz80DnmG/Lx0/or G7gUZs9tv/PuQOusCDZDtoNhl 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-kernel@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