From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794312544; b=JXJjDbmH3nwANj+6D+JYyNocN+PDpyVAcUdweT3B8rqwrSVpNUwuQrK6kWyLcLzracVl wT/1JfQsiQRQuHfHieQZ8Vu/T0y/27fuoVrNADIGJ1hRXU7esvI0x1lAI9YHmWNXXLzu5 nf9MZicPv78qoCIoeZHqIHXJK3IgWOr27aSKDZsxuJGoY6BG23Je0Xqy0dga+UbmpTppI EfDiMsO2NMEH68djDomfM2MTqVOXu+rvyTEuXm6RYo9txQGXc/bHj4zgYIm18EPMV3XEx HmlzFSDhfoxw6Hfirrsym6OE2Ehk6kzm4eu4SIo175OR7viKFWkLHeDE5tDwjVr/Yxg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794312544; h=DMARC-Filter:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key; bh=vvyshln4Nk2oCzJJycPahgRiRb/8nxOl+ecx6GfDDis=; b=ZEp2OSjkOHX7cH9f4RPVpndrAf8XMQjepbZ61RNItf868L6fqqmLZ/1nB3JM30p1coqY 61Slc4F+MJ2tSwxYLqgvkVFdWRjKpm9GaAF0jt23jMK29HIscY1vRUVzKBYefTrDRkIT4 ftZqCO9mjGCTK4WmHAbV93XWMF7VRPoGTPnlNUFiWziK5T6y+rqh0vBRdvSg4yFsTujCh Q8kGgaINw0op6y+AtoTyD5DDnRry8GF0f4wtiW1FIk5sJBVTxkzOQ8sBWkEEB3GU6Xb5V jnxwZ3RQzEMr3cakaBMoQPghDqCbOZqB7aHcez7QjoMg9vlKTHMfvIQBJf1b2iuUN+g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=XcisTUGC; arc=none smtp.remote-ip=148.251.105.195 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6DE260A2624; Tue, 10 Nov 2026 12:09:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A6DE260A2624 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=XcisTUGC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1794312542; bh=9K9sXXoGwZDaQhqpoKp0M6uimXR3twUbTzzWH0p9FYE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XcisTUGCiwZfvbySX3RbHtgOBA2e6Q5tl140a990TYroy+GW9BBZbgvo1AorRG7SU AZVsIsynfz/VSWpu48oi52R495bArvJb43D/+PmGgE51lfoOPMRwCJrBCEwnx8h4O6 2R+2Be+8g7kO3UXKQpI8CZ5MCKrcEfERF9x9PpiwRZ3jmt4n0JcgMdQxW3phYoEB7p liZ5BJdc369vhK+wnKIf+NLy74Og0BHVOSsDSv7Bo1IttJ1EDTXnWZpPSc9w3jwIpr 4hogTd+vyLZuk6XAe1c5fIVmc+vEFCPYvqr0Zru9GX8mJMdbRD0UxkKV6BBwyOhzBR fiGObikkvRMXQ== Received: from yukiji.home (unknown [100.64.0.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: laeyraud) by bali.collaboradmins.com (Postfix) with ESMTPSA id 2C8E917E0ABE; Tue, 10 Nov 2026 13:09:01 +0100 (CET) From: Louis-Alexis Eyraud Date: Tue, 10 Nov 2026 13:08:50 +0100 Subject: [PATCH net-next v5 03/10] dt-bindings: net: mediatek-dwmac: add support for MT8189 SoC 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261110-dwmac-mediatek-mt8189-v5-3-7d99d6292962@collabora.com> References: <20261110-dwmac-mediatek-mt8189-v5-0-7d99d6292962@collabora.com> In-Reply-To: <20261110-dwmac-mediatek-mt8189-v5-0-7d99d6292962@collabora.com> To: Andrew Lunn , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Matthias Brugger , AngeloGioacchino Del Regno , Biao Huang , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue , Eric Dumazet , Eric Dumazet Cc: kernel@collabora.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Krzysztof Kozlowski , Louis-Alexis Eyraud X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794312537; l=3310; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=9K9sXXoGwZDaQhqpoKp0M6uimXR3twUbTzzWH0p9FYE=; b=4N1c6BCRS++s2LzcxVgCISdnD4Bq72bHumH9b7OBWiQ0y12VLXebgXXa9nYo86hBdutJ9Jbs7 8mUESiREWbrBerdrQf8mN4i2XGT/BkPuUQfwd87NsptjRY7IAwEPBmP X-Developer-Key: i=louisalexis.eyraud@collabora.com; a=ed25519; pk=CHFBDB2Kqh4EHc6JIqFn69GhxJJAzc0Zr4e8QxtumuM= Add new compatible string and clock definitions for the Ethernet MAC IP found in MT8189 SoC. Regarding the required clocks, the MT8189 datasheets list in the paragraph related to this IP clocks the mac main and ptp reference clocks as the ones to turn on. No specific peripheral clock for Ethernet MAC is described in the SoC clock list. But at the same time, the Ethernet MAC block diagram, present in the datasheets, shows this IP is interconnected to the rest of SoC with AXI and APB interfaces (and in MT8188 datasheet too). There is no APB related clock, that is specific to the IP in MT8189, contrary to MT8188 or MT8195 that have one. But since it is on an APB bus (likely shared between multiple IPs), then there is a bus clock for peripheral access. Describing the IP having it makes sense, same thing for AXI too, so the clock lists for this compatible are reflecting that. Also, don't allow mediatek,rmii-clk-from-mac property for MT8189 compatible. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Louis-Alexis Eyraud --- .../devicetree/bindings/net/mediatek-dwmac.yaml | 42 +++++++++++++++++++--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml b/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml index 956240616638..0fc2eed06646 100644 --- a/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml @@ -20,13 +20,11 @@ select: enum: - mediatek,mt2712-gmac - mediatek,mt8188-gmac + - mediatek,mt8189-gmac - mediatek,mt8195-gmac required: - compatible -allOf: - - $ref: snps,dwmac.yaml# - properties: compatible: oneOf: @@ -36,6 +34,7 @@ properties: - const: snps,dwmac-4.20a - items: - enum: + - mediatek,mt8189-gmac - mediatek,mt8195-gmac - const: snps,dwmac-5.10a - items: @@ -45,7 +44,7 @@ properties: - const: snps,dwmac-5.10a clocks: - minItems: 5 + minItems: 4 items: - description: AXI clock - description: APB clock @@ -55,7 +54,7 @@ properties: - description: MAC clock gate clock-names: - minItems: 5 + minItems: 4 items: - const: axi - const: apb @@ -153,6 +152,39 @@ required: - phy-mode - mediatek,pericfg +allOf: + - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt2712-gmac + - mediatek,mt8188-gmac + - mediatek,mt8195-gmac + then: + properties: + clocks: + minItems: 5 + + clock-names: + minItems: 5 + + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8189-gmac + then: + properties: + clocks: + maxItems: 4 + clock-names: + maxItems: 4 + + mediatek,rmii-clk-from-mac: false + unevaluatedProperties: false examples: -- 2.56.0