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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6A0F606A31C for ; Sun, 29 Nov 2026 09:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=3OdFi73P; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=rNFLasE7 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=NoPLGyYRu3YKtoAi3auVAgKIQzJ2DMvrebkr1ZpuXo8=; b=3OdFi73PziF7gVPGcVMhxQ4ayF 2Sm6Fi14LjCg35k4rf4i/nAZwGV8WmP+6lpgVPD4MMOTKtz7pk4hFFoz5CpoCXu8HszlRAY57Il0T vfXlMUjmifsSnsc4EkSKc6mvE7ZK4MaMX12e/cbgY01bX/FllKihwd1HleS2y6znTSmc4DzExkZIO jiC1OhBu17uJVczToYorpQkCIIX7fPT+xNf1tI9fPK/Lg2jAd21FN7FiLR/hCrNTO14X2ubw8KCmy MghVjPOUx8LwYCu4WsjqRpIMSb1AWdlprZLjHBS2qYChQhHPY5pHDkKpisqrmVZqhAxITetxLd+Fl 0nPGFAQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbDi-00000001kQY-2JG6; Sun, 29 Nov 2026 09:29:18 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCr-00000001jr9-3Bpz for linux-amlogic@bombadil.infradead.org; Sun, 29 Nov 2026 09:28:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=2fVRrTCThMafC/EgxJNfZalmiOC8vzz3qqPmi34QV6s=; b=rNFLasE7ZY4ilmtneLUqQF/12K eozGIAPhz194HJGDMTmE3m2rrQ1hlJJr0fsXvBmltDb7Wsxj/bntmbXeErVth2bkcaRAgjX6K7Zhz zYGfNl4HHXsbNGP90wsurgZekElUEql9m7PpF57vJL6PlOXlwH9jIiFRm/K2zNatWczhneJJ5LY4o B18Aixkyk0KzmOltuHurp0XWu9tEtn4LBGuDNoLQb15w5VtqWQSILULXR9mSVFJPqzfVDXD/Gylgi DTgKHXPE6GlMi6ekT2SYkkNX2lKpflYet9jeC7pln9fkCGL0snFDvfXmyg0kbJ0Wr/7/aePEsqhr7 ntgGF83Q==; Received: from mail-wr1-f54.google.com ([209.85.221.54]) by desiato.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCn-00000008wNj-2dDa for linux-amlogic@lists.infradead.org; Sun, 29 Nov 2026 09:28:24 +0000 Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-498f5fa5103so5538829f8f.2 for ; Sun, 29 Nov 2026 01:28:17 -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=TGookEPJQNoECYOGQcU442r7t22rKEcRTVLFGvGC6YbANvX4CJTBflWeyYFt2rkQCI 0ebtPmvFDu7/210u+be5JZvChLYzNEXPAHWCtsKvCs9ipDjhdwCvUzi2E6kZZ82EZ4Ga gyeD93yZWQvrM/U7kIzDfL0masNJPakH/6WY9xra86ztqaSqqmL/HYItU3oLbJPCpEKC YbU8mgZFVU/+7/7LNEhcH9WeWMX2q6GOfJb5TzNaJR1Hqm7DnDbqqLBuURE7gmLqN7rO DqggL8/GrKvJ+lfOTWRSuqHZU5zrPOpXgiEIVTHZGJA4NsOQnjHm1RCWfmkt2dmf7OJQ GGqQ== X-Forwarded-Encrypted: i=1; AL+hErHr6sgJc8oITYI4bDkvbgbWleJUvy5xk6kJBAl/2i13aQv+b4QKXsyeySA+akvzYd1XAhzlTRvThnaWSAy1@lists.infradead.org X-Gm-Message-State: APuU4Z+eG9/b7pfmPGuXQr5S5WEVIoWL4L7/7qXwois1WHrAeI5iURzb SR2gEqZ9HY/uCyk7slSrYCFoajdjY3a0og4XR+Qaf/LOGF0phQvRzi4a X-Gm-Gg: AZFdTZfzHXrEXsK1SU/X8rg+eNCegLm9dVpzEsqqExqX0pHjle58NOS9qyXZceMsDz3 wQqitqlMP8NSBgtthpmw8jfbKYhdC/XAzW+G/Do2CsVyfw+NVOpOwj32ZEHYSG3fQ5SPcbiJX7B 4G5FH2PJw+WI+uM/vOzoQLrPkTKSg88zjOUJQmaVDiYMJCioh7zgwGCtiEIA3SxjrRxYgJAxdCt 8UbbTQ7Q4IFntS3tlsXCBI0WLvrFnF18XlIiKRezfHI0k+RMOrzEF4pIt+PusTBqF7pGDRGeUEA K5LievOwstmMX/q1z0laFarpzqgKjzCRRjUyRK8x6A9CeIMMyavfNQoJRvLtaoXEQxXPiL1e3cQ NmeZngUPtZgpY1zFFQjQzgi97xSutSFGwWl4sZpxmcN++djrJc1yKeBmxM1EHIzAIFWFu0Xv2hC vNFp9ab+nZgJI86dX/7varar5hM8opAZLqBJyBAJ58WQKbbJ5b+g8I/piJqbgpDXPKqb8no/0ZS y7fYlHVSkSHRqajE/8BtXuauvwOzuEMwUW3fUjCQICGMEmMUsYYMNlNLjsK/nnafSLtQAfz3tPE zwCh2X8dpSMYfEZlIHPTYhm7s4XpZrSrvj18YZsQinUMjTYRRqvjBpJH/fUAyPxeowRgj4Y2whC qcBxGDgOXGMF0pmxdxcDwv6YS 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-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_092821_979255_A77F2B61 X-CRM114-Status: GOOD ( 11.48 ) X-Spam-Score: 1.1 (+) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28DD0606A31C for ; Sun, 29 Nov 2026 09:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=NMvdCYsM; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=rNFLasE7 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=VUnwn+iuIKCL9hVTmQZDmYuDQL3KzGDtP2kOdFrbem8=; b=NMvdCYsMi6gsLHqHx+uGXSQnwM JN0ily24CC0/JDEKX4lnUblWkwJ4UcJ6bNQ0EVOIQn8kQk6G7DuwIz60ijTFgSfiNteH0fhnT/Dbi WXjGp9HqQtuTZk1dBeWjyBLCbfgGuekIwNKaeW3y2Q2+Tlpk3MU7d/OlJYUqY8Qc8HH5aWT6PSEV+ sD5HLGW/k14fU+TVGitx/PcBgTDJVA8pWYkyU4dwMJL3dE+bLyzQZkgVImMzWWSSRm2Hb1mPSHdf/ tsxUcZ+egmPqq/3b9RWX1mu2GT/AooqTsNln60VCW0mVDiQF4PX3zczQkCtRRVMTLHxz8fbs0wzCQ rCznCSDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbDs-00000001kY5-3hiB; Sun, 29 Nov 2026 09:29:28 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCr-00000001jr8-2pW4 for linux-phy@bombadil.infradead.org; Sun, 29 Nov 2026 09:28:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=2fVRrTCThMafC/EgxJNfZalmiOC8vzz3qqPmi34QV6s=; b=rNFLasE7ZY4ilmtneLUqQF/12K eozGIAPhz194HJGDMTmE3m2rrQ1hlJJr0fsXvBmltDb7Wsxj/bntmbXeErVth2bkcaRAgjX6K7Zhz zYGfNl4HHXsbNGP90wsurgZekElUEql9m7PpF57vJL6PlOXlwH9jIiFRm/K2zNatWczhneJJ5LY4o B18Aixkyk0KzmOltuHurp0XWu9tEtn4LBGuDNoLQb15w5VtqWQSILULXR9mSVFJPqzfVDXD/Gylgi DTgKHXPE6GlMi6ekT2SYkkNX2lKpflYet9jeC7pln9fkCGL0snFDvfXmyg0kbJ0Wr/7/aePEsqhr7 ntgGF83Q==; Received: from mail-wr1-f41.google.com ([209.85.221.41]) by desiato.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCn-00000008wNk-1sM9 for linux-phy@lists.infradead.org; Sun, 29 Nov 2026 09:28:24 +0000 Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-4c4b8e58c9aso131815f8f.0 for ; Sun, 29 Nov 2026 01:28:17 -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=xc6fcq57/uDbem2p8+7xHz7bkaW9pRWAGQfTrBug5PDlQw4OwiCFDGT9L9L8QjHamC Zr2bMKS+Ii62hv9p8azN8QVQzTujSfh4K5NTE49LpmVWEg8DsIkputu8sen4TkkJveV8 10bhczAjPoIeygnlSvcXer5JBSmF5tvD1ds2jszbUwlgrWviBM4vACCMkj3pgG1SpT+3 GkidbuSzva5lDWR7NNOsJv+4ojBtQmcWBFHT4cIsS5FBDuaQ9mNProjdeduvqvyLbuNz b/+AhnyUqQUjYoINF0Y3NuiqGfFdKV4uCQHV2MyLWn0yujdkbVVvQaDDKHkFLWJq/48w 1hlg== X-Forwarded-Encrypted: i=1; AL+hErFJO0xVqVFWCUnyYHg/Sy+Way28sns2wcrRG0HqaiuOUi3V/1UpNUiOJ6dL724fV90fZe7S2FSEvLw=@lists.infradead.org X-Gm-Message-State: APuU4Z94YYq5VW+2b47AWal/QvY7L8lhaIMGBC+G6ZbYikrZlRWpm/lf 8XMIw3au0xGMCUzYA67EkVOPbXQDhk5cup+fMb2mYOY6+nT99z2w1yUx X-Gm-Gg: AZFdTZdSkr/Q9gTDUPDxBONBewuNQGQv10Qdmj36NMYw5Yi/bEh+PX0aA8UWHMIzXEo BDvkFHOiwBb0Es/d3Oluy2fVxUJ5/yMUxqnESZZwpaq+rROJBlrhR6uhqxvJPUobDNglhjFei4S PX8V9QCfy9pSi4k0U2kuRqkjt9l1fxxZySNnhgyEdIgSB2MVjwJ7aH69g8o5IRxbfG/ljEPZHCF 1CUBVv+LyD2R0J6JTlr4dKp/KB+WJt7/XadgTgsGAAc2DyWNIm0K1V6sugID2yg+OH/OCg5KKoa 33GPTT6328A1eTHsZpsE+b9iJnL5a2IxZHpYB3hF+7JxB/jS028QMTSPTi9i1awRR3+N6cT/i4c otywYYLnvTGcY3ABskqOZrlNg/qRx2mi9MQQe4x3P30xnPUC086i/J2o8dJm6pnyQ6DNdu8qnoK p7WSDEq7n00/oP1LsBCIN+41Q+2hHDKhORWhEgclecuy2iXdT1YVxeWRznhjZp0A/2U+BtM7rkT mlu2zPBec8qmwli4cVfW/wH5Xa0v8QUokF3L/kaT5pXjNRZzlBt+6DzPLKnH3iJ8NOQV5HuAqLb ze6Vru9j3ZMbjAYX1gt3bMaHdTkImDP4LD0j3wiqUXiH/qZvjREBCWy2it8ASdpEz+GD7AhS3cq /WiMvc8R9/G0TI4h4agI6oMgI 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-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_092821_842639_07B9D64C X-CRM114-Status: GOOD ( 11.48 ) X-Spam-Score: 1.1 (+) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy