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=PmQtN+t+IHSvxYAtjB8l6Vv/pAG5SJuzlkZQmLr4ixtzjtk3IeLh0OQpmsytDPaiKZ4X dcYBJaF7QtQ7zomgEq1G/T/XvK+41F8XpJEcYjXjML7Rg5yOh2i5ckIlHuXT3WskaGGWv 7kT/qjN0H5OMlJfFNpHUIiAA5he/ss6K9J7spQ+ueYRcGJRyDfs6Sv+R+9pJC6ZN7G9A+ Y7HfSzqx1a/ITOsxxqTUJFw3apkpzLn6N3F0qfKLGsEzOkNH0SD/ehiVmKdW7pX8bnTty /6uEdg/GUpBce/48BoD3Wk/Wq35y6ErGktDjdbK1z/hIL0TMPB5UedjmFN0pvJsXEHw== 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=N3gDvMU+4xYWA2Bi/Sgdbo5cxOLs9JXdN1tomBlSTJUYvBV7ey+x5W8zKqic9+d+aPY6 XaN0omQtt/wH4RdJ+dlEzprGzZk8vACodyfftdd6pORggN42zX7n4wAoIU0zqed/yQVjr VVlwFF+ee4iCkPiQFpNXHUMhh3tBDvMGeNW6K41kXELa2tU8CaIX239YuA54twxKUq4PH LO/uJiqUAso1rMKQ1ZJsVaN+NOVXi3pUYgCzCagsbgfKp1OFKxp2t/VbqwXlCy/7x+3SC WWH1wucA2TgbozyMAH4wGunLlM9qElA3kqxuy/s7mUj0khmIHOg6WzCQrz8sBowMoIQ== 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 DC14B606A32C for ; Sun, 29 Nov 2026 09:28:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC14B606A32C 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-4a34ffd3e39so5142624f8f.0 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=m4+3AXpjARU8GXtbid6pScMWnIiylYxH3LCD4k8ubCo3KiVom9Wg5Mwea5KxTcoJuI SlnrcXuaebar6OXIXMsV2x/9axpD37yORInss/6mz9bU7oTfewv/VWDsxUIZtGGryMgM rgfLiiXJi/F/JRuoU6Wml/kbF4hG9J8hKaVyYpGBvz/5YrSRm53HlpkjYGD+wu89hGo8 7TrOyD1O9jWJgCsmCZoZOL47R/1b6H+KVwL9/20LNMHzXdGh2Rr428gKOG14jUqOVq45 2iy2+jdkSXRsnMYBSuiDIZ3yMPvdWVLV32mXh0eZURcb9/eoMzS12IUbYe6y8U0834kT fCkA== X-Forwarded-Encrypted: i=1; AL+hErHgqWLSV7nEboo99Ldp/WALcfalUuyy6uOIeqofn1T4wfin2j+UYjH5fbtZiF9km7KaRAjv4712JzQT@vger.kernel.org X-Gm-Message-State: APuU4Z/LR0ozGPsAYj852WBvob07C484iOKBblBHHoYvoh/SWwXeoUoz zpgAfQCzODvVExWgw++Nz0j9pULBLRM2gcL70S31d0x/vbjyloem+QX3 X-Gm-Gg: AZFdTZfcBIkzOMVUQEBGg+ZWdnWP/4YoCemFOzpkwI8EOQlfXnuFAcifNY+0Fdj3cAp t/rfzkA59gRTSXy67mJSvhCn2v43j1CMF3cJFrcls32Wwdd38P4RDGuTdUPNU2czexFrrIZc3L4 KQluC1+t73pS2RadUvUjxCiVtI2L/cakGTCSBnZKNeqDMrVL7VYpKZpeW42Gt3syqio23aWI9GW epj/HCplaYwiPqmVpZGWPk+6yMA06vd3C1ZAd/lJTXu6DZHln2h7JIgGi/2WhiSjxUeu10lz1az AQuiZUU86hrTf+bOQBfLh4IcYFt7kTcDTBjgB0yDLYxVCXn7JHc4sJXq50S9boUmA4p9v0r1nO4 A7Ko6sVxgu76UYH1wW5p7cfLLLJmg82cUAWa5p2sfI2AEyJlodeVJEc7/31GHrpds1xJJvyglvA QI5XPgHM3EDexd4EN4gIK1Z72s1sjhBnluN4rnkEDnE9MTM4Q4IpW4NGpXXFNLG88Y/5lHFwRXk P/hLgKMywa9QeoQHZsGPQeFw4aMRxGG+LBSC+O5W/8MDKmBoDm+devPDjDFXLH5ES36eDuCXPYL uAY7krtIS55fpnyvyEzxXf4ro14Qr4OYtxl9GhW9CoLg67rKN3wmdzdZN6qrghZwiQDG4mKU92h H6ADxAcyoZHEs7AzxWgKVo/Ql 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: 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 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