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=1795944494; b=qcISwjDeMh5hYMHydpRtK5eL60XVdPS/uazmgVCRt7+PHEO4PmkLzxEAlLiVtTZkpCAz DGroWouq5doDtjNAEqiXe7sBtJiGNeMqPBZuxgiiNWewRNnZCnFq91MHKSv0VjQvc52Yy U8q2/5dPEJ9XhzKXXDqzZbShyYPrbBwSS4sfMHbrA634oaHA3S8peTICMfpXiTdjDlVWq r4WgacZ8q7A46oyWe0NBQ3rn0JMHqWy2KhJH/Qjb2BjGfZ6t3PLOmbdi3iU6x3oYw8gQa HPU5yu9jQGoYU4DhXidBzQGfMg4hCL7KxoI+ylasdjInXSpYSMvP3piT6iErxWwwlqA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795944494; 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=Z9Z3fjHHlJ0blDSv+Sl8/GTMfNxhD1Pr9xRbM9ZlhP0=; b=FRAPeD9WhL2bKebg8xj789rcXsBlzIreCZWIbbwDAwQJ2d1RLeeoe+CsQrdimbjLmHP2 2qTM+953zCiV1uKkx94q/HtrwtHZof81bYUKbRMSQLP8i7wsc095fW/oz/TY4dVSYKP3w 940GqdYgIjYZJTM7i2693rmDPsAdOFrZ/FsrcFBz8RxYDyENv+Q9DBJGsDJ/lSoFAZf5z PEO6N12YhBg5fWlcLYoxkMVW4eI8eRHUc1K1Kjhmlqgf0igshwaKrWxa3zIlzLHZUKb/q EqCJFjNgc26QGUnzq2QUCcvGYvJzVQ0wTs5R66Gk7Tbc0/33AUfrAukOorBvs2vSUqA== 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 DC175606A32D for ; Sun, 29 Nov 2026 09:28:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC175606A32D 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-492fcbfaa88so6358568f8f.3 for ; Sun, 29 Nov 2026 01:28:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795944492; x=1796549292; 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=Z9Z3fjHHlJ0blDSv+Sl8/GTMfNxhD1Pr9xRbM9ZlhP0=; b=OB1+CY3I0bi6FAtJWhlBmtohFMHVfLzXfddLolvOjADcs1ljzwaip46bIQu4QsbKmW aIZRInH2fZVnPRHltiW6r9reTtrqib9njlr8U+cvl7zpy7zDyEroAKHdu/S+NFo9NT5W t+wrELEmCbKlfPcbAJe0zIKRtaDXsdPne5FqGLkIGmQyJGfU+9wL55ntZiGuFvNpkl13 aeHe7BCeNGe4RcDQdFdYEzlvL9swpiwk+hZodJfls+alSoX22FAUDnuGygSfXnn+4qKS 1LXSn1Z4aFZo6fmEj9em2VJqbFLUlmo2IeWqwxJtgrYE35LfosVXYf2zGxjL38Dhbjkm g5BA== X-Forwarded-Encrypted: i=1; AL+hErE8NErBetqivhO+FDT/XSGBxQ0iVYM1yU9mhk9TZjvawuLoxEU4h5npkORj7AUGg/fUbUOi1jFYBdE=@vger.kernel.org X-Gm-Message-State: APuU4Z+DHErgLSrpMLF/t5alRFP6AeOftDZzL8jJ+3eWTsCnJhxwm3dm IVSDB48SannVGIR1dZN5ex3CvtpMW0czz2B3bR/ieUPHc2x1zWe6+RTO X-Gm-Gg: AZFdTZcuKvRuI4vktWTMiPA4eT6kCe11f0E31Who2sHmtOtay2BmbVO/rA4rlwPQM96 Wu1HsaFJmg6XmbuVNB4GXQC+nP4yy06a/nIGavB4XMh0gBpPDl06v0bOHtFbLhQskA9EZORW/3M ETtwL0w5up7/n25MmLny0G3kuepaD7t/0fqyPW1d+MM9pbcQm5yEdjob9BEaUdclqS4z5Fq9jiq 6XtG6QuI4pGMvFbbBJivkSX3BbTX/ti0jVfzQgkdBHTc4zoI1QG+xnzqbEMvoGd9CExF4GZ7nr1 dHoWkzRRRyThXiUQL2UIJmA73zAMt6BUETcACuYv7iKtcWG2OMscWUS5g7PWN2QCrL8PkVSEY+c t3ivew+QUlzm5tDUjeIEbFb1CEGbZoTI5HuD2RKWsmhOx+CbJ+xJ8pdm0kRicN5GUSTg5l1RFJ+ B5i5sHe726uPX7kGArLppLtfkcdSWmpFWuws8dZAFXmjBfnchnzNs2JFEubTp8wkvXAgnFEPIPV abVF93bAoVyDnN5mFqW+RzlJeA6osj6amywg6o/gMI+WdkUycPpS3CVpV+DMOni662effX8pf0w wyXBCyhrE7O3w5iEEVHwxIejryit6SYKpR0MvGyaCQ/HhbmVMjsa0NwqDpnixiowmkx332jTX6k 1kbdeqQfvbdMVfguC9d52M7zx X-Received: by 2002:a05:600c:4f0d:b0:4bb:5c97:f4b1 with SMTP id 5b1f17b1804b1-4bb8881941bmr654712925e9.24.1795944492338; Sun, 29 Nov 2026 01:28:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 01:28:11 -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 1/9] dt-bindings: phy: amlogic,g12a-usb2-phy: add the T7 compatible Date: Sun, 29 Nov 2026 09:28:02 +0000 Message-ID: <20261129092810.146043-2-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 carries the G12A USB 2 PHY with different tuning values, so it needs its own compatible. On the T7 each port also has a small block of control registers that take the port out of reset and select host mode. They are per port and sit outside the PHY register range, so the T7 PHY takes them as a second register range. Signed-off-by: Lucas Tanure --- .../bindings/phy/amlogic,g12a-usb2-phy.yaml | 53 ++++++++++++++----- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml index 54058d2e6053..d80821ab8eab 100644 --- a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml @@ -16,9 +16,13 @@ properties: - amlogic,g12a-usb2-phy - amlogic,a1-usb2-phy - amlogic,s4-usb2-phy + - amlogic,t7-usb2-phy reg: - maxItems: 1 + minItems: 1 + items: + - description: PHY registers + - description: port control registers clocks: maxItems: 1 @@ -54,18 +58,31 @@ required: - reset-names - "#phy-cells" -if: - properties: - compatible: - enum: - - amlogic,meson-a1-usb-ctrl - -then: - properties: - power-domains: - maxItems: 1 - required: - - power-domains +allOf: + - if: + properties: + compatible: + enum: + - amlogic,meson-a1-usb-ctrl + then: + properties: + power-domains: + maxItems: 1 + required: + - power-domains + - if: + properties: + compatible: + contains: + const: amlogic,t7-usb2-phy + then: + properties: + reg: + minItems: 2 + else: + properties: + reg: + maxItems: 1 additionalProperties: false @@ -80,3 +97,13 @@ examples: reset-names = "phy"; #phy-cells = <0>; }; + - | + phy@3c000 { + compatible = "amlogic,t7-usb2-phy"; + reg = <0x3c000 0x2000>, <0x3a000 0x20>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&phy_reset>; + reset-names = "phy"; + #phy-cells = <0>; + }; -- 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 4228760A262C for ; Sun, 29 Nov 2026 09:28: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=x6XyR7H2 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=8/cOpyJvhrFwGLTGOo9/aTR3PNBpsOtTPPZeoMwEdoM=; b=x6XyR7H2gQGpDxlRLQESs0CJWB art6pWRXHjy5SoD/dgp8Kwqhs2n4MufdKCucM4ypc9ShheVo0JKqbOoX312ypidOnMJMS8mbD4DsT izBWvKDT6mzumCcF2jV7TG7Gi/OyC8rMiu+Pxu4lq0yJCMElVTWXkD/WFCwgokBrl2AXRpzX+a3bC d95wHOKAGS5hngYWk/BALz7YIHvjONnYORtQ/ShUJWks277Vq+yWXvGOgywvNhY8GGxz9KFDdiXMI GNkfV+XXwHdh1XrLf/SInIfwIcE+uvRAZEYuNXj3Y6ROTxM8MJ8EPcPxzdh260XyHapLoHlBLXOOs oiQf6u4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCk-00000001jhj-1R6V; Sun, 29 Nov 2026 09:28:18 +0000 Received: from mail-wm1-f45.google.com ([209.85.128.45]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCg-00000001jbD-1g0J for linux-amlogic@lists.infradead.org; Sun, 29 Nov 2026 09:28:16 +0000 Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-49d05d51553so65069355e9.2 for ; Sun, 29 Nov 2026 01:28:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795944492; x=1796549292; 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=Z9Z3fjHHlJ0blDSv+Sl8/GTMfNxhD1Pr9xRbM9ZlhP0=; b=Da1MF5oOesPbk8kS2eSdubr9RXHpMTnRnYNA+0GvqALWzoz5WHg7hWnzE360EUvLpR Ly1LAlllyNjZoDQvTzxVlpxBANmmgWYayzy6qenRUFvqljb27PxyioVa4x1HLy3VU4RG sU+HalmPNeB7v7puw73Jf/RE5SPUiybQjj0f1TwgzVqdBajxOWfXEvt2qm8VbQFAd1OS g6XP0R5nAhYzRq2jwN4ArJogB0NcRxcOteJaiW3WAP4Bzsistcyf5FoNHak8sbX5dYzi vZ2H0s3ybae9DZPv9GhEpMnO2EKFU9V/R53nz76LBy45hphF1GgEHO98zY2SiDNMNlKJ CXOA== X-Forwarded-Encrypted: i=1; AL+hErHZvWA07ggmoEkUy3DXic+RrS/jYOa3+g9wlJybXVeVnJG/bLh2Yz0GkvTlW1RYWm3Fzckd3BAljmFe6otg@lists.infradead.org X-Gm-Message-State: APuU4Z9VzRm7DFdj0z1c+PXvGeI24LjofYB1LpJFH9ym3wGJoRDYVMPc ut5t9WR64tcP8pYI6+WfogFsC+SdyR1RXhBr7jYeGeJj5Hbl6qTH79lUMLg+u1kc X-Gm-Gg: AZFdTZcnwmOsXd3Q/pH//DuoeF7X2vO3XhXulTrmUjUQLB4HGBEzLLUN/YjjKUvAhLu xnCR104EDmowMm3z5jntO8a6rC4peoczhmb3FJPWvk4oIuaodIym2n39WaXXJp0F0LsK03QvWsr rcESzBKj4dWbL9gMHbZmn6iL3nBYPIMRncqmOXcpTrhzQS1Rbj/vHQbxrKTdcYUf5GhuqTGLXaI c+nsiK27J2O4pm9jT05NV2aAeGUPG7qJWue+rh8XZ6g67MXQOBK4wDH8/4bV36pxLTMtOlbHwAL 1NiKJ+kTv9+Rlq+lvmZJURVFBp+CywN95+hs+fjpQNJRv1DDKD9eOL9zG15WYwYMg6hKY0Emrwf 2WoKa8plzpms6rtnoAFb1Fw4XlsrNKtsnYLxyQtE6fFzfKiFv8TxXaaYdTArnJ4BXXO7Jd+f3va yOKQpPIeUKHdm6BEB/6hfK6/oKch0cyB2UsLNZIWMZIwPlzmk/eniDubhaZbFsbK/OQjQ0D3IuR y/X4XgdfRgohyTVSuclAdcO53ekOX6795hs1WKsx6MvJhSgA1ODhtq0G96vQCkd2NmVrE9FBiYK adyOtCIVMvTZ6/wKsE8CJwAemQ6/4aouef2e35i48O/d0fp+/uHt9oC5YtfcUG+NrHj/uqYbJ/B UKnj46KVaEuxgAjFDMjj1z8Mz X-Received: by 2002:a05:600c:4f0d:b0:4bb:5c97:f4b1 with SMTP id 5b1f17b1804b1-4bb8881941bmr654712925e9.24.1795944492338; Sun, 29 Nov 2026 01:28:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 01:28:11 -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 1/9] dt-bindings: phy: amlogic,g12a-usb2-phy: add the T7 compatible Date: Sun, 29 Nov 2026 09:28:02 +0000 Message-ID: <20261129092810.146043-2-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_012814_469075_0686BF4B X-CRM114-Status: GOOD ( 10.16 ) X-Spam-Score: -0.8 (/) 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 carries the G12A USB 2 PHY with different tuning values, so it needs its own compatible. On the T7 each port also has a small block of control registers that take the port out of reset and select host mode. They are per port and sit outside the PHY register range, so the T7 PHY takes them as a second register range. Signed-off-by: Lucas Tanure --- .../bindings/phy/amlogic,g12a-usb2-phy.yaml | 53 ++++++++++++++----- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml index 54058d2e6053..d80821ab8eab 100644 --- a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml @@ -16,9 +16,13 @@ properties: - amlogic,g12a-usb2-phy - amlogic,a1-usb2-phy - amlogic,s4-usb2-phy + - amlogic,t7-usb2-phy reg: - maxItems: 1 + minItems: 1 + items: + - description: PHY registers + - description: port control registers clocks: maxItems: 1 @@ -54,18 +58,31 @@ required: - reset-names - "#phy-cells" -if: - properties: - compatible: - enum: - - amlogic,meson-a1-usb-ctrl - -then: - properties: - power-domains: - maxItems: 1 - required: - - power-domains +allOf: + - if: + properties: + compatible: + enum: + - amlogic,meson-a1-usb-ctrl + then: + properties: + power-domains: + maxItems: 1 + required: + - power-domains + - if: + properties: + compatible: + contains: + const: amlogic,t7-usb2-phy + then: + properties: + reg: + minItems: 2 + else: + properties: + reg: + maxItems: 1 additionalProperties: false @@ -80,3 +97,13 @@ examples: reset-names = "phy"; #phy-cells = <0>; }; + - | + phy@3c000 { + compatible = "amlogic,t7-usb2-phy"; + reg = <0x3c000 0x2000>, <0x3a000 0x20>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&phy_reset>; + reset-names = "phy"; + #phy-cells = <0>; + }; -- 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 A2EC260A261C for ; Sun, 29 Nov 2026 09:28:18 +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=d133lknE 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=6/x3hNZd5cdcG2ayAEwMZoKFZIGoHMRcLtEziychUOE=; b=d133lknEQNtbcnfItesARt65nt iFjS6rtOgS4NOiM0epPO5zstDdBdajgbi3giCYXaK7DdNVo/b69Y1aR3TfMpQh+yNfPAyOtYIf7Yw PK8LAJAfZ8MMUZeuUDFJ9WV0tJMMXqBbmhvNXOoF8GP/1iwTCHkRIZ1jJwdXQZnv8iMYewHp3/R8R uxAWrzEO8KwpJSb/KbSmyMofYYGGAguAHWwytAWHeNo4+dDCik4fDoB+gUVdagzTbk7duVb2bITcw rCQZL7YCNZHqXnCuCAIu+5NyIGsdpb2tzH44Z3gJQQ87X2FaKf9pe4dT3DRCVJXTUeAjDPjZGKwXt zzWrq91w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCk-00000001jhQ-0Vd3; Sun, 29 Nov 2026 09:28:18 +0000 Received: from mail-wm1-f45.google.com ([209.85.128.45]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCg-00000001jbC-1gQc for linux-phy@lists.infradead.org; Sun, 29 Nov 2026 09:28:16 +0000 Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4bb6ba3b244so96365225e9.3 for ; Sun, 29 Nov 2026 01:28:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795944492; x=1796549292; 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=Z9Z3fjHHlJ0blDSv+Sl8/GTMfNxhD1Pr9xRbM9ZlhP0=; b=QJp+XSZCxQt11W0xO5RoaUJrQ5oCgJnSbh1A1P270PH6oVf6gBkMF8/4LcGwVd/0BN mz7ynKGLDrE4srPS1nrpoxBJijbtyG80I/gjIGMs5o4N08svQhpod2kZddJo0PpGD3N/ PLUiIIpWYGYsceBxg6MxyAETlTStptqE0aKThun5k8SIg6yuoESSArmcD1LKuMAnbAen pk1MwggSF90j3MACwAWNxpDZrQULmKzGYNR29vv+t5aT10GSbSaQbcnVZtO4FdTZ9EP4 yDoGCaVxq0Tc0fgAvwatOud8jc0iH3cOtPJxrxJ1s/zMdcf84M7jms/+Q6pqS65kN1Xw OnHA== X-Forwarded-Encrypted: i=1; AL+hErE0tcabFrvtwgQdjsnmgANqeaoAIQzqJNTYpX7DB7NI73uOnGW7MefFGo2tJrw6n9LBJmqJF6Pjnh0=@lists.infradead.org X-Gm-Message-State: APuU4Z+kLUmGSbHtCnAVwjJD4GSswjxUok3iJ9EX5+sAU3GtWUpVIMqn 7t+pR6xK/zS4kFZh/cJcUDu4T/BXWy71Vz0xGB9cdPeZbE93FgXlUn/2 X-Gm-Gg: AZFdTZdvyLzUk38DtOlq3hTJrFTkb9HBz950o8LjRht3A9orh8B8x45oszrfhq7z1rE 9GshqPkMObQ+lK1A7byxD9QFQ2L0vJ//upysuLHZDug9aNOFvgyUkXmGiF34reO/QiQHYRD5b39 0oKhrrKnAmTe9/ceDAdK43TM2WhDObGpjyZK57v7H9SZbpNE+kXs9quL3bQi9+FZx9d2ZciSuRX fZ2PA2kl0z8ZDlzSuwSrs9de/wxn9fyYl/nbaxjxUvTUac2zRYDeuF6s+zt33B3VfzV2gKgfurx 1T/o1XSASmoeEPro/bfHkHN1187wHUSxs+uwJryMo8EtSNRy2uLQ3ZIw/tbeHuWM5wJPL0rqiX6 Og3oA4EMUWKw3H/+89JjclspgxRupf+PulhygbkyerD7CxD5MOR0OyL0svdVfPhUaJDrOAtOYpm FYQHtwr59432WX/ciBHuXMIyespaZ35lWxOKNcKnFs/RQFJgM3CbYwwhjjWTAQb5eVufgmXF6pG 8e2Hwmkc+bvgcZ/TfgWCxba3/NLhk3c+nj/APrrFEXT9Xl0VXqKnoUpuH5KfLr5/JeRIzn71/YF msmQSAjtWh0Cjzf6u1Q9dxcjAgQEm1F6i9WXhjM6Cg92MJvjQojuRwXuSvl99Wx+d+BLf105lRX f5FCV1joLSTNmc/g5afBDV3+E X-Received: by 2002:a05:600c:4f0d:b0:4bb:5c97:f4b1 with SMTP id 5b1f17b1804b1-4bb8881941bmr654712925e9.24.1795944492338; Sun, 29 Nov 2026 01:28:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 01:28:11 -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 1/9] dt-bindings: phy: amlogic,g12a-usb2-phy: add the T7 compatible Date: Sun, 29 Nov 2026 09:28:02 +0000 Message-ID: <20261129092810.146043-2-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_012814_467745_A8306BDB X-CRM114-Status: GOOD ( 10.14 ) X-Spam-Score: -0.8 (/) 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 carries the G12A USB 2 PHY with different tuning values, so it needs its own compatible. On the T7 each port also has a small block of control registers that take the port out of reset and select host mode. They are per port and sit outside the PHY register range, so the T7 PHY takes them as a second register range. Signed-off-by: Lucas Tanure --- .../bindings/phy/amlogic,g12a-usb2-phy.yaml | 53 ++++++++++++++----- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml index 54058d2e6053..d80821ab8eab 100644 --- a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml @@ -16,9 +16,13 @@ properties: - amlogic,g12a-usb2-phy - amlogic,a1-usb2-phy - amlogic,s4-usb2-phy + - amlogic,t7-usb2-phy reg: - maxItems: 1 + minItems: 1 + items: + - description: PHY registers + - description: port control registers clocks: maxItems: 1 @@ -54,18 +58,31 @@ required: - reset-names - "#phy-cells" -if: - properties: - compatible: - enum: - - amlogic,meson-a1-usb-ctrl - -then: - properties: - power-domains: - maxItems: 1 - required: - - power-domains +allOf: + - if: + properties: + compatible: + enum: + - amlogic,meson-a1-usb-ctrl + then: + properties: + power-domains: + maxItems: 1 + required: + - power-domains + - if: + properties: + compatible: + contains: + const: amlogic,t7-usb2-phy + then: + properties: + reg: + minItems: 2 + else: + properties: + reg: + maxItems: 1 additionalProperties: false @@ -80,3 +97,13 @@ examples: reset-names = "phy"; #phy-cells = <0>; }; + - | + phy@3c000 { + compatible = "amlogic,t7-usb2-phy"; + reg = <0x3c000 0x2000>, <0x3a000 0x20>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&phy_reset>; + reset-names = "phy"; + #phy-cells = <0>; + }; -- 2.56.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy