From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795944494; b=iTXBUK0SsQ36pz5p0W684fqgFRHD0XmJn1wV2nYJWYUHAhGrKEGp2t8+ry8TMGrcjeBv YdTQOo06G5UOnFuR1k6Q/F8dtus54uKuW83Sd/UgSXh2CnM6RIfwd+9fkkhkE4cvhjbuC R+Sn7lL9RvCtSFrMgD2j4mysxtpPC1imFgrzlfjdrK0RQmMe1XWOaqc14ywq3Ej91DzUI GkKobjVTQg3cJPYyXIm8Zzqq7N/WKLtkNOWpHJDZ8rxOr43lxN3srQ+uZ8+98gZBgQ819 WmULxfQor4qBexAwXflufVRg0T4+VCUaf2TSUOQ0s4ptONcNI0lxMlgqcW4vDzjDzWw== 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=iCXroml/3xZ4jkAIIj7thEmocDXLn9h9ULg4qgMJwcaMxM/p9iSzk7qlth4iDpU+YJrW D2XqBbXdOSI4jCT5kQ+xtkaFDqYSvjj3WUasZOOsUsL6Y1i3NKYxLX7dXhOR4zLsCbP+9 4sWCT6TM0tALV6GPWyqfkAFbIWnGPGIQp0FtYnbdJfNlfRV4T1juwmrLxt8zU2OMw3DgZ pEja6hgKuof5PVEkdq/z4gYTxbcvsvxFdPMvw+cfzjGiJu7r5Qr3q/BMy/HaULUfySffu ZPGqtOTr238DXoKSLwQ3wfrRzb0ay1v8NWYqe9Y6FWH4DyNcJoza7D3vA68Rhjl5AJA== 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.47 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 E8269606A32E for ; Sun, 29 Nov 2026 09:28:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E8269606A32E 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-f47.google.com with SMTP id ffacd0b85a97d-48e09aa5264so5513532f8f.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=NPvbnV0XISo/dfstDYcCMMCkbKYW04tVbsUNUhxZRKpNiWpKERz62/xWZc/7GiS7Bg AvOWVDJdKCS2KitIyVkXHEtId4tqxEcLvF67c23ZRe26qLl8ALS81GArsfWBC/copNAM hxtGgSrnB02AttWf8f/1n3apERKsHzyTase8rnkIclWlIRjTNZoEKgQguvTnbOxR1ncx q4P63Y5yn5vzWM0+nOwfVsyskm+jdr1J6yK4WjuQQWTGKqv3b8zxW7/QCVFl+FBbUfFj CTxQDjif8EHU2sIgrGlSM7u4s1sy3NV3d433C14fZXiavZkyOuIqMBZnnLjANOuC/Ix4 K9vg== X-Forwarded-Encrypted: i=1; AL+hErHC/sPfY2vkWICh0JoAFW0QNFCpyQ0ZR1WLu9jXMKBtXFiyakUKFR+bEmKXaS9efnHmRaxfhkOPT07OkzA=@vger.kernel.org X-Gm-Message-State: APuU4Z+3IZhga2gWQ6x2VrYTNonHwPTsBsqMTgPlSc737jgWwl9tHBnS WroVaUIUQeaQ+n/ve5OOmTcbkXJpuumwtVwlPcd2ATIG6Qc+AQIo/p6z X-Gm-Gg: AZFdTZdMc648gAUraB5MtfqrJlyMhXJ3i3qpN2PcXJDxUd+00p+ApyXkdgItJnX1CmO drw+Sbj9v6fNXdKS078KMRxXtQ2zapt9lpHWI9yzE8/AO0Eycmi7gSvPX+kmzvpvjtYTVdsk6mZ MPdAsqcdlnknt4tbI88yzwspH22dXqm9wO5HaO2hEElh6DerYEspKsoOSh8JzxJ53opNluRtMLZ 58dhHuR+0GwOypE1L5msIcXs5CipTJgfiCGFSpGJuL5RlBYyL5v3s5mWYNI5N67k94AbXeTiVW6 2Fod9ymRvQZ76up4EySbabTR9vydMo/wJkhGOh8ZaFQ22syZO1Y/E6eLM5a1dVp9WigzU4590zw ctTVqFDHp5GpDmE3pbTRIk9KGTcLHIbFH/Hof1hZ+ALXBU8qIMjS4hf8+PQBHXXAk4m7tu9Vz6a lwo5gp1JyaTTH1+lQkmx+cHKnjp/ir9hR5K47mChyK6Fh+uWNLuzvjwTqpH6mGQKiZFf1Gqhkzv +MZPEU3nSO+TU1EEPFAuUxoztJtDnCd7xC8rnHqsOMCTBx0pycb6VFVn/vWZ5lMWQBkbSK9v19Y 4KR9jzfBknz2c3Qy++/sdYBvv5dngxgNo2uzJoMMTqbER46DG1UaAU24h4JILjlL5nn8V/3cAXn E4jhzHd2i0M/VwG/oK2uupCbm 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-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 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