🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11652

Re: [PATCH v5 2/7] dt-bindings: net: amlogic,meson-dwmac: add amlogic,t7-dwmac

#11652
From: Krzysztof Kozlowski
Date: Thu, 05 Nov 2026 11:57
110 lines
12037 bytes
On Tue, Nov 03, 2026 at 04:37:10PM +0000, Lucas Tanure wrote:
> 
> Assisted-by: LLM

Drop this one.

> Signed-off-by: Lucas Tanure <tanure@linux.com>
> ---
>  .../bindings/net/amlogic,meson-dwmac.yaml     | 59 +++++++++++++++++++
>  1 file changed, 59 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
> index e769c9bb70d8..6de013e3e8f6 100644
> --- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
> +++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
> @@ -23,6 +23,7 @@ select:
>            - amlogic,meson-gxbb-dwmac
>            - amlogic,meson-axg-dwmac
>            - amlogic,meson-g12a-dwmac
> +          - amlogic,t7-dwmac
>    required:
>      - compatible
>  
> @@ -57,6 +58,59 @@ allOf:
>              - const: clkin1
>              - const: timing-adjustment
>  
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: amlogic,t7-dwmac
> +    then:
> +      properties:
> +        clocks:
> +          items:
> +            - description: GMAC main clock
> +            - description: First parent clock of the internal mux
> +            - description: Second parent clock of the internal mux
> +            - description:
> +                clock of the pipeline stage inserted in the bus path between
> +                the controller and the DRAM. Without it, the controller cannot
> +                complete DMA transfers.
> +            - description:
> +                clock of the register block holding PRG_ETH0 and PRG_ETH1.
> +                Without it, the block reads as zero and ignores writes.

This sounds like you take clock from other block. That's wrong, that
device should take its own clock.


> +
> +        clock-names:
> +          items:
> +            - const: stmmaceth
> +            - const: clkin0
> +            - const: clkin1
> +            - const: pipeline
> +            - const: pclk
> +
> +        # The PHY adds the 2ns RGMII delays, see ethernet-controller.yaml.
> +        # The RX delay line of this glue is fine tuning in 200ps steps,
> +        # added on top of what phy-mode describes. The TX side has no fine
> +        # tuning: its only step is a quarter of the clock period, the full
> +        # 2ns at 1Gbit/s, so the TX property is not accepted.
> +        tx-internal-delay-ps: false
> +
> +        # Deprecated: new SoCs use the standard *-internal-delay-ps
> +        # properties instead.
> +        amlogic,tx-delay-ns: false
> +        amlogic,rx-delay-ns: false
> +
> +  # Delay definitions for Meson8b and newer
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - amlogic,meson8b-dwmac
> +              - amlogic,meson8m2-dwmac
> +              - amlogic,meson-gxbb-dwmac
> +              - amlogic,meson-axg-dwmac
> +              - amlogic,meson-g12a-dwmac
> +    then:
> +      properties:
>          amlogic,tx-delay-ns:
>            enum: [0, 2, 4, 6]
>            default: 2
> @@ -106,6 +160,7 @@ allOf:
>            contains:
>              enum:
>                - amlogic,meson-g12a-dwmac
> +              - amlogic,t7-dwmac
>      then:
>        properties:
>          rx-internal-delay-ps:
> @@ -142,6 +197,10 @@ properties:
>        - items:
>            - const: amlogic,meson6-dwmac
>            - const: snps,dwmac
> +      - items:
> +          - const: amlogic,t7-dwmac
> +          - const: snps,dwmac-5.10a
> +          - const: snps,dwmac

I see no such hunk in the code, so not sure how to review this.

Best regards,
Krzysztof
Technical Details
Message-ID: <20261105-stoic-cricket-of-tolerance-cb3014@quoll>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357284-linux-kernel-netdev=dewy.ru
References: <20261103163715.385394-1-tanure@linux.com> <20261103163715.385394-3-tanure@linux.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357284-linux-kernel-netdev=dewy.ru
From: krzk@kernel.org (Krzysztof Kozlowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v5 2/7] dt-bindings: net: amlogic,meson-dwmac: add
 amlogic,t7-dwmac
Date: Thu, 5 Nov 2026 12:57:12 +0100
Organization: Usenet Network
Message-ID: <20261105-stoic-cricket-of-tolerance-cb3014@quoll>
References: <20261103163715.385394-1-tanure@linux.com>
 <20261103163715.385394-3-tanure@linux.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="3631542"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:lP+xx61NrQtV3J8SLhG3YZVs/q8= sha256:AFXOSe5FKVocfEKO08OkmnX75bFvqZ8o5CXPvd6KzgU=
	sha1:HVjHaa53+i4vZB7m4JWHxTok3bo= sha256:auPN1iTbgph0wx0Qc6kOJuN3nxhBX0VkTJGXrEka0Y8=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 0F400112F59; Thu,  5 Nov 2026 15:06:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ggA3lKZJeDis;
	Thu,  5 Nov 2026 15:06:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357284-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C8D19112F54; Thu,  5 Nov 2026 15:06:15 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 96CC53AD24; Thu,  5 Nov 2026 11:58:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793879857;
	b=Mu4ZuHw8wdc1hRtDNUNHB2jqJx8umslb9/zH/vQimZUq0r40gDv+1qCW1xZIuXYz4Xjd
	 9pH1rKCr3c2cEyLp+3GelxOJ9L1RCfp0oaUTFudKo9WQ0t1WmhVi4uNwDSvYevi5FWoP+
	 kdMuUjLJw6OV0eNhaSipy/4tsjGZIqx8UdT1g1T4DCVLXpzqsOgrRRvV3qj3SRC52hYL6
	 Wsa/lXI/F0vI80yX6ll3jTZmC2+fe+4ij9ZhAa5ArDvfI5N0j9y/qML3XhHmF3on5ETHo
	 CZB9yCmabzSgIN+Ew+ljGNVi+5b3pDOw37vN87OHM8q9CgkVQRRmC0CvS4ndsR9g5rg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793879857;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=r6Zmr2w7yD8Ip+j9uCT09/R1QkyDYQmRF/et5N9k+lg=;
	b=fymVxMT88hZuJcQLBxg9s5fVT7jds6rKqwkuKmd7R6sO7o/MoFbro/M1FyR4yU4kmRk2
	 U3sBfQI9BzVFA6dje7cWBAFufaVtWFpuX4ASfkoTfQAP+QcMSx8FT+Qy7BtxYkfv2N6U9
	 fAzUPja06EWyS3IjPLJBCbZ6YUnGYlNXv+zk8HhfTtiYV8vf8AAae44HAwyaESkyx4o04
	 ayTHDDfb4T3HeLsSTAgZmbIW7nE3SjtZT/YBb5+ameLc8Z99/geeCmShtS//tNaRNdbLx
	 cDprPtJ7lvxHf1+l2HCusVZ6ZhFYwLZTkMFFhbMp5fO68tsgENyamufEcFLpqStihrw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MTkmDUel;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 29B94606D816;
	Thu,  5 Nov 2026 11:57:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MTkmDUel
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793879836;
	b=MOlnyHjhCuAb5pSvVLx7d8cKhlGC71r9E8HbiR1e8e1p3xixLCsdohJwIgPclTl3o0w7
	 6hF31YyFOyoXMh6SyR70Sx7YjUmRFxcJECvKtXlEp0GJJIIjH9qSHaRw7yCHWlZIGiTwZ
	 PlR4zGQHA4qf5lm8ay8X/Rroe8hLjMyliksJscBbYiWKnBR1rOwITe0BDmBh08ATEapKF
	 ejy/d/Bp9yk3Ry8W9ytx0S2FPYW3UIMlTBLyFC3GG8puHPG2kpUMIvVQqJfZGGZytHRrv
	 TY4SkbDDmu/v0D+1eOQpbribDXETH4eVDIGhr70hwjMBZW7F0nkwdk1ugDjzrujALRg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793879836;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=r6Zmr2w7yD8Ip+j9uCT09/R1QkyDYQmRF/et5N9k+lg=;
	b=sRz2CwF+UjY+5SjmBJRTbbPR6gQ63rPtbWjbPpyX9x8Bw6lTQrIRCrHoh/Cmcce4wfcS
	 u0WJNaTtZNhV7/kd0D+m45wNaRiAb0jkbPE/x2FbFlc1AlgstJtyAaA8d2SV4KtJGGzV2
	 qBuLYHet18Fq0jQJqonMEc/UteECtTYlsibvCroFYqIECKor2r8Qk+A/+ccrFQjjCnly/
	 JR4maYkJMs59UP1Yof/071VA7gRAIGG5WiLELlJtDfHekcEH3dqcxOdgSkQtE9Gt1oUJr
	 HBAxU2B9Z4G5kM7raVTV8VbYhqNRjvWbyi2+EhY75Fhii2urSTxxBLeHdbRQ1nRl+hw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MTkmDUel;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(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 06461606A33B;
	Thu,  5 Nov 2026 11:57:15 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D883C1F00919;
	Thu,  5 Nov 2026 11:57:14 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793879835;
	bh=r6Zmr2w7yD8Ip+j9uCT09/R1QkyDYQmRF/et5N9k+lg=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=MTkmDUel1hF5mX4WG1FDvygwC/sBvJsmKJkN64N5mS8ZMC5a+f8oTJ3ISN3ZVOWL4
	 mTwQMwzNLuNL7ibPktJ939U+6EknlJPb0RQVm9fvpkbNjMuxnqCH7Z+5s3SKedkLpT
	 tswdGkv5+25IksudFLaP9sdC1WSzb8JDtPh7MzFwtmHvzKcXsA1dA8Ay8B8ABMhFWG
	 SBQloVwIXjSJYDGz//5Ki3wtQ1USwZTIyRLvva27DNrEnEtZbQdtOQyP1+Ys7fKuq5
	 odxSGWc/CcDNvfIH+EqM0668iEdTHRVt8TUj1HyDVWyCpAIp4XxyD68l97DnZ8xdfK
	 kovsJbSrlHQGw==
X-Cc: xianwei.zhao@amlogic.com, Andrew Lunn <andrew+netdev@lunn.ch>, 
	davem@davemloft.net, Eric Dumazet <edumazet@kernel.org>, 
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, 
	Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, 
	Neil Armstrong <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, 
	Jerome Brunet <jbrunet@baylibre.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com>, 
	Maxime Chevallier <maxime.chevallier@bootlin.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, 
	Alexandre Torgue <alexandre.torgue@foss.st.com>, netdev@vger.kernel.org, devicetree@vger.kernel.org, 
	linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261103163715.385394-3-tanure@linux.com>