🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5550

[PATCH 2/3] clk: bcm2835: register the BCM2711 GISB clock

#5550
From: Nicolai Buchwitz
Date: Tue, 20 Oct 2026 14:58
55 lines
10228 bytes
The generator at CM offset 0x1d8 is not in any documentation I could
find, but the firmware calls it gisb and runs it at 200 MHz off
PLLD_PER with a 3.75 divider. GISB is the register bus of the STB
peripherals, and on BCM2711 the GENET MDIO controller clocks its MDC
from it. mdio-bcm-unimac wants that rate to work out the MDC period.

Mark it critical. The firmware enables it at boot and nothing in Linux
owns it, so it must never be gated.

Checked on a Raspberry Pi CM4 by moving the divider at runtime, the
MDIO busy time follows it.

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
---
 drivers/clk/bcm/clk-bcm2835.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c
index 118df86d717c6..bc1de20c7e00e 100644
--- a/drivers/clk/bcm/clk-bcm2835.c
+++ b/drivers/clk/bcm/clk-bcm2835.c
@@ -117,6 +117,8 @@
 #define CM_EMMCDIV		0x1c4
 #define CM_EMMC2CTL		0x1d0
 #define CM_EMMC2DIV		0x1d4
+#define CM_GISBCTL		0x1d8
+#define CM_GISBDIV		0x1dc
 
 /* General bits for the CM_*CTL regs */
 # define CM_ENABLE			BIT(4)
@@ -2097,6 +2099,20 @@ static const struct bcm2835_clk_desc clk_desc_array[] = {
 		.frac_bits = 8,
 		.tcnt_mux = 42),
 
+	/*
+	 * GISB clock (only available for BCM2711): the STB peripheral
+	 * register bus, set up by the firmware. The GENET MDIO controller
+	 * derives its MDC from it.
+	 */
+	[BCM2711_CLOCK_GISB]	= REGISTER_PER_CLK(
+		SOC_BCM2711,
+		.name = "gisb",
+		.ctl_reg = CM_GISBCTL,
+		.div_reg = CM_GISBDIV,
+		.int_bits = 4,
+		.frac_bits = 8,
+		.flags = CLK_IS_CRITICAL),
+
 	/* General purpose (GPIO) clocks */
 	[BCM2835_CLOCK_GP0]	= REGISTER_PER_CLK(
 		SOC_ALL,

-- 
2.53.0
Technical Details
Message-ID: <20261020-devel-bcm2711-gisb-clk-v1-2-a1728724d0f8@tipi-net.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349349-linux-kernel-netdev=dewy.ru
References: <20261020-devel-bcm2711-gisb-clk-v1-0-a1728724d0f8@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-349349-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: [PATCH 2/3] clk: bcm2835: register the BCM2711 GISB clock
Date: Tue, 20 Oct 2026 16:58:10 +0200
Organization: Usenet Network
Message-ID: <20261020-devel-bcm2711-gisb-clk-v1-2-a1728724d0f8@tipi-net.de>
References: <20261020-devel-bcm2711-gisb-clk-v1-0-a1728724d0f8@tipi-net.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3880503"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:3gjMAOY0rimLNv5fJlvKLPoe3dk= sha256:nj6/ywgSYuSJUQfNRrXvvNwVnUcu3yoIqs3mNzGQIiU=
	sha1:mmsLccZ0MDMmn3M3n25aKKssklI= sha256:qu4GQvy8mWPD6idkDBoG0rLDkVlqZ0kZ6PoY6hAtxcQ=
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 7F190110D46; Tue, 20 Oct 2026 18:15:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	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=tipi-net.de
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 F8ysN2b9GSeW;
	Tue, 20 Oct 2026 18:14:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349349-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id B0692110D42; Tue, 20 Oct 2026 18:14:50 +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 14F6B651B9; Tue, 20 Oct 2026 14:58:57 +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=1792508315;
	b=oZoxaOylTMTzAu8Wkkn1pqrJO3NBKDe9pX8orPDl04x22zLQuzzgix2pHIPySdMwHhtJ
	 KMH7o1RGUyPHOPotBKgbbRP/c9oJa9UAX7eesMjMe2NUcuxttRIvKmdscVt6pDgU5KDyC
	 shLJ2iiFu9Qk6tCteZzoOhHYrPzyCO9OsVzvWJra8UGnTv2yTuNqJLxhJdsoZe/r8QUIn
	 xBqjVp/eL9JmoF+WXzNTMScH8HvmQcxfn7OeM+ONrY3OziWEuVAlUH4rf6ryKCUNsM/M1
	 /D85hDmYnHyWBmiD11Umq+F0kKZvo6CtWYWg5MsKJTHKRzUf9OddFBPzHKPNk5Q8PeA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792508315;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:
	 Date:Subject:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Transfer-Encoding:Message-Id:References:
	 In-Reply-To:To:Cc:X-Mailer:X-Last-TLS-Session-Version;
	bh=7MjKdc7i9F9fJcY1kYTnN/FTIKL2c56vf1h9vXuC9lY=;
	b=sJIykqoqtKfZs4lViLp2oDbD4BjLmgpnlBPfHy8s2r2tcXYTWx4P7g5qNOgpwCQtnj9v
	 T6YX4yXpzal+Y11Lg3WzT5daZcowDeAX7Ykdc8nhGNXL2nrGM0z9Lr7TiPmovE0Bi/scu
	 b+lUIvF22h0eiJ+KliQjJHf7HU+dLlw59DGIo3IjaXGYUElazWfMUKSWBRWvbrxsoGDxy
	 8pjHpDOIZanY+53RcthqHmLgUYLf8uQW9Q7Z1cJyQVsJhlFQcvbpfjGNDG2b49WoV74Zg
	 YkYlDhbQFxPfz2+JrzBgwZ3cTJTWqkFDwvlyw5F7evVNtt6EpFQ3Z/XokxHDtFFN9Bg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oyVTA7cy;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 C7D2360A3814;
	Tue, 20 Oct 2026 14:58:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oyVTA7cy
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792508304;
	b=ygEttaZUzpqGut2KJXan13Gw0lFAvy4FiXRG+G3+KsO7G+wQNiBlUlH5ibXRnotW0by7
	 3GI2y5FNGssdGxlYYEcmfb/z5C7K8ANv+m+lgK05qQvQvB35nnmDEKx92l/wyf2z3xdOP
	 J92NBQLWxLC39UzSFw7PcKP6OaMh2i51viBCB5CHPWz24J/6eK4xVB0J6upUCSJD7dIjQ
	 5/OpXtnCMmGE4DrsDJ0b21k1avMRwip3tCmt9/ZW4u/4dzG9lNq1dv/D/gCnJoomVc5iP
	 iw7HWOg8iyDI/rYSgovzoMev/8EXqovlR90GnjSWJi/iTfXLurkHjbVc+/bUp7/Ciag==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792508304;
	h=DMARC-Filter:Received:DKIM-Signature:From:Date:Subject:MIME-Version:
	 Content-Type:Content-Transfer-Encoding:Message-Id:References:
	 In-Reply-To:To:Cc:X-Mailer:X-Last-TLS-Session-Version;
	bh=7MjKdc7i9F9fJcY1kYTnN/FTIKL2c56vf1h9vXuC9lY=;
	b=kKOHIYJC1hnJebLA9P9lX+E6qRUA4kVxbUuBOGQsdWonw/9K8tnGnrLTy6twl2jblxEh
	 lWtiennwIy5NCQc+sSggoGLPMYOijKiS0jbmOYGSyTjOrlTDtrRAZ74m6asV/7fm9C0xq
	 xURgW9/J+Xx2xatY8gFlkuZdJAxagOC4gu6JQYIr6vw3Hr85qQ9/dGgdBow0Ri4FEuxj1
	 HvGT9lwsDNtE8HFpE2mhrf6mIG/ioyY76AOpEzCkWvf3I20pquW1N79AuKJNRQ+bgV6ry
	 iA9JnIICCVRTwtpA2mHAeYKGVdIub2yMwn5ki4pe0TnEx5WWLWdiCeJXLNnR+tWqXVQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=oyVTA7cy;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(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 26C8360A2609;
	Tue, 20 Oct 2026 14:58:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 26C8360A2609
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 95E08A1625;
	Tue, 20 Oct 2026 16:58:21 +0200 (CEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1792508302; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=7MjKdc7i9F9fJcY1kYTnN/FTIKL2c56vf1h9vXuC9lY=;
	b=oyVTA7cy9CHMLVVA9gkpW/4/enFIkJAtc7cohzo0PBdZDxatBae79TL22w1Mb//Gf3hbKo
	AwFgFTURY2JbxipA8eu+v+iLlz92bnKcbm4f+EPf6YqZpgRjGCIVBxd7BsFncudDF/DMzS
	hoyHBLo4OoiCtvUloMx7uqqzb9e7F2JLRR4EetWYCTCYIik9hNQtq0srpi33vo8Be4t7Z0
	j38k3jWowk3JeqIaaQGMCyCEEqIblE+b0T540S16XrbGejVMcFXp177+Nu7PwMrsCa1Pmx
	YAJxXXC7jg5ruamm0yy6BQEmvQXfeTT7gf5PF+Sw1GzHqQvdcWdErQ+zq9SmwA==
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: <20261020-devel-bcm2711-gisb-clk-v1-0-a1728724d0f8@tipi-net.de>
X-Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, 
 linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, 
 linux-kernel@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>, 
 Stefan Wahren <wahrenst@gmx.net>, Phil Elwell <phil@raspberrypi.com>, 
 netdev@vger.kernel.org, James Clark <jjc@jclark.com>, 
 Nicolai Buchwitz <nb@tipi-net.de>
X-Mailer: b4 0.16.0
X-Last-TLS-Session-Version: TLSv1.3