Article View: linux.kernel.netdev
Article #2296Re: [PATCH net-next 5/5] net: mdio: bcm-unimac: implement timestamped MDIO writes
From: Andrew Lunn
Date: Mon, 12 Oct 2026 11:51
Date: Mon, 12 Oct 2026 11:51
27 lines
7695 bytes
7695 bytes
On Sun, Oct 11, 2026 at 03:22:04PM +0200, Nicolai Buchwitz wrote: > Hi James > > On 11.10.2026 09:20, James Clark wrote: > > On Sat, Oct 10, 2026 at 10:18 PM Nicolai Buchwitz <nb@tipi-net.de> > > wrote: > > > I dug a bit deeper on a CM4: AFAIU the MDC runs off the GISB clock, > > > which the firmware sets to 200 MHz (CPRMAN 0x1d8, PLLD_PER 750 MHz / > > > 3.75). Bumping that divider to 4.0 at runtime moves the MDIO busy time > > > by exactly the same ratio, so that's the one. The 250 MHz you have in > > > mind is genet250 / genet125, the RGMII side, a different generator. > > > > > > So instead of a fixed clock or a compatible match this could just be > > > BCM2711_CLOCK_GISB in clk-bcm2835 (critical, firmware owns it) and > > > clocks = <&clocks BCM2711_CLOCK_GISB> on the mdio node. I can send > > > that > > > if it helps. > > I've put together 3 patches, which do the clock plumbing: > https://github.com/nbuchwitz/linux/commits/devel/bcm2711-gisb-clk/ It would be nice to extend this and set the divider based on this to give 2.5Mhz, as required by 802.3, as the default. Allow boards to override this using the clock-frequency property. Andrew
Technical Details
Message-ID:
<68eeee64-7f62-459c-b53d-61ec04b4d8e3@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344941-linux-kernel-netdev=dewy.ruReferences:
<20261009143506.2507607-1-jjc@jclark.com> <20261009143506.2507607-6-jjc@jclark.com> <3b1a2994-5251-4800-8c61-b63d7a435b21@broadcom.com> <60accbd89cfaf0d4be1da5ec2fafd975@tipi-net.de> <CANz3_EYfcBopo=HgRioXkhoT6P+4WWpfFT7UeWkXd5eM_RNpSA@mail.gmail.com> <41c32f5a6f38ec9df8a79ce896912fb9@tipi-net.de>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-344941-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 5/5] net: mdio: bcm-unimac: implement timestamped MDIO writes Date: Mon, 12 Oct 2026 13:51:36 +0200 Organization: Usenet Network Message-ID: <68eeee64-7f62-459c-b53d-61ec04b4d8e3@lunn.ch> References: <20261009143506.2507607-1-jjc@jclark.com> <20261009143506.2507607-6-jjc@jclark.com> <3b1a2994-5251-4800-8c61-b63d7a435b21@broadcom.com> <60accbd89cfaf0d4be1da5ec2fafd975@tipi-net.de> <CANz3_EYfcBopo=HgRioXkhoT6P+4WWpfFT7UeWkXd5eM_RNpSA@mail.gmail.com> <41c32f5a6f38ec9df8a79ce896912fb9@tipi-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1766420"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:JMDj7wUm7U73GWrS9iRKcFtnJBY= sha256:nhXBxMSdrCN/uutY8UjPKiG8rNGywqrL1HNGVD4d5fY= sha1:rAM37D8Nte2xocYBfH4rL6zYV1Q= sha256:4tR/GMIekhFXPokC1Pa9Ky8EhPXPy/ueZlaqVQ5W6HI= 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 E8DA410FBB9; Mon, 12 Oct 2026 15:03:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.85 X-Spam-Status: No, score=-0.85 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 FQMgM7my-zId; Mon, 12 Oct 2026 15:03:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-344941-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 3739610FB66; Mon, 12 Oct 2026 15:03:27 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 5BAE560B8A2; Mon, 12 Oct 2026 11:53:56 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 000F9412BF6; Mon, 12 Oct 2026 11:51:56 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="BskqUePM" X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F28F73438A0; Mon, 12 Oct 2026 11:51:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791805916; cv=none; b=cievcEQQ7mc3brTWOXDlltgOjmU8voMvt9jnvOurUosfpODHGgFEUhDgn887MLoX8tt4z5J1uxAoMipzSn5y/F3MA1skIZqYWDIEcUwuuYHlAPSmYZ8sS6+R8m7KgpO7VOz2+s2oDOrncHvcn0/fjrpBOEhgTrnpJTSsq7KPLqE= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791805916; c=relaxed/simple; bh=RJtJANzAk6DHDx/mlpc2S7FJYP+FwI/6QcnRA5HKNdc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NXFq9kPAZyfnTa8aOUil7Y27X/s68yGDakW3Pl6PR9xRb1/KOxQw5qagk5JLssrZucr2KOa7d/Z8PrbwzXb3OYGAzFZ+QN6XG+zuDlozFwO6oZ4SOBwLekZrbkxwIE1nWw5z+Rzt0Y1BkbTnqsqKlPcuwFfSRXod6TLWS6SSwh4= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=BskqUePM; arc=none smtp.client-ip=156.67.10.101 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=4mYreJU3/9ctvW9f76EbuNSnfvvRh98Nwxnm3uacts0=; b=Bs kqUePMTC7jcHUtnJucA9TnYpbUhUKv1Uctr6KxiXAtZL0wQ/GCI1fL5cTpFII4G2tgbIQaJTXL/zw 8QqUvkJR2NggrKSgQ/uT04a08g9tnOxLIRG9h/SaOjiV8CGf5Nws2txlq3SHTc2/eS/rIXjLDrUzW i/H9MLWPECre39w=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xGEZ6-00AJcu-Et; Mon, 12 Oct 2026 13:51:36 +0200 X-Cc: James Clark <jjc@jclark.com>, Florian Fainelli <florian.fainelli@broadcom.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Andrew Lunn <andrew+netdev@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Richard Cochran <richardcochran@gmail.com>, Doug Berger <opendmb@gmail.com>, Théo Lebrun <theo.lebrun@bootlin.com>, Russell King <linux@armlinux.org.uk>, Conor Dooley <conor.dooley@microchip.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Thomas Gleixner <tglx@kernel.org>, Miroslav Lichvar <mlichvar@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <41c32f5a6f38ec9df8a79ce896912fb9@tipi-net.de>