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 D4CFC606A31C for ; Sun, 29 Nov 2026 09:29:24 +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=t98hqZW3 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=2fVRrTCThMafC/EgxJNfZalmiOC8vzz3qqPmi34QV6s=; b=t98hqZW3AqAOc9 6hjmb3ya0M0S6eMiRtUG2MvEw4lPGF0QvXbkg0iWHgiexa9A5yE0k4unpJ2Y9y/mteXLX/dbTh7Zo bn0TeulqqoyBF8nksHg28Irb3fWIVJT2+smRZT69RzL/z4CiGZ3dZx+K+GgxohZYwowHEjSK2Rdsl DMwO20E4dsdpMxF11s99xtlcrGLrj8EB5kP1nUaMCTLMukQKOqC2+aNNBzqG9+ILOdER3+r2s4vHu 2mWmcwWCObM3xyUEp7wAzzU1hEgcG7Kf3R0x4hALKV+Xn5mpYH3Xjc2FJQJk0eIh5DbMCwFsaASWI HOENUOBL0YycRGHGZT6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbDX-00000001kGA-3fnF; Sun, 29 Nov 2026 09:29:07 +0000 Received: from mail-wr1-f54.google.com ([209.85.221.54]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCk-00000001jgD-3uTF for linux-arm-kernel@lists.infradead.org; Sun, 29 Nov 2026 09:28:22 +0000 Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-4c4b8e58c9aso131813f8f.0 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=A1t4g8GrbrBJoxZbTWxmyWjEAb92r/v3oAWgqGoexVm/0+8ilY1YHXey33Z8CVnfOi a9jB+djwTOQA9MbXT6CQdDQAtKvtTZVoa42GY7VNLc2yfz8/bQsx8VNuhYMNrMwr2lzY F4QHtUNq9nl8X4siyqBKcHt+bPfWWwj15Fb/hZDQzGRHa3FVOMmDJhwBGEN40HPrZwVz MrQZwyINN6qXjO58F47jdfPWXpGERcKCZmflCyWu3O/lyIU8PUYlDNnHUnLzAgqCLjpS lJZof4fAjM+zmK3JPV3agYwKENDiifCQb1s+Q3V24vInPAHPQ4B+1tuKDZKuuR4i+ZSI 0SyQ== X-Forwarded-Encrypted: i=1; AL+hErFFTiJOF98WOiIdMT28e40ASYpsxyizDAVUQMPdtU+bjzaltwhCmhYtWd8aXmFSlX320IOoD/apxaboS043AGGN@lists.infradead.org X-Gm-Message-State: APuU4Z/B0OWoLHg/IgwVMZpMigpTOoprG355fWG8wmx39RyyaRQJsVfq T0K8hNANNzL4kYDnxowBRcki8NegvksLdJ3pUIaCEudh78ZaEQB0d15P X-Gm-Gg: AZFdTZc5qhvXpT2AuQakgaQXEw8WYjyLGIuk9WWyn2CP3HFGOvz5OlwBeMjyPozCKyU AgWg+1A3REVJwvYOBYmZMWUoHEhUKDptOj73hyF5JglUVlObofvPz8R17u2N662E378dFhmjDLC 268I4jvQewUxDoziHLD33XtfgtLzxLYP7z/suCknUhwM3UTNVk7yc8+vXzwmaYszgQsNpATmN8W b4lD2PkKavPmTnPQ7btICxIlJCAsZ3NjL830/nEDdPHeYxOLTqbD1hYuMP5ZWHGSuwsdy5af1+O wWeL7yyTqpnMrCKmWQero5qMKbZzJVQympclJVznEAlsRzcfu8EdVtY+5AhDrLE6p1sqMyNpxII iJQSG+kV+15AXzlyyTErdKYiCwJ1KtvW5R3nrtH7EgeFA5harPYh9XXxxVAeHo26nGlPypV/axc e4xOjdx434C3phVOM5qRcebOpc2/AKxetRatvn+n/G2QqlXQdHuLEtfy7RMM6fw4zoTMwbBpbk2 WOtePeTCCRjf878AUeGQcSYwRfWHBFbsS3RgXkc9acf1ky3O1N+CngjXDtbwGjEKlPw2CANrZxI a9Z/MoE4N3ECItT5Xyu5QT3sO5uWIkgGfBLlV2KpUBVW2YzhoCk5XNVPS9GF4X/xCUX7BUa8Y6K BeZtZl+yZyfqwDjvbAtFRW/RU 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 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_012819_068806_1CBCCEEA X-CRM114-Status: GOOD ( 11.78 ) X-Spam-Score: -0.8 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" 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