Page MenuHomeFreeBSD

clk_fixed: quiet a warning message
Needs ReviewPublic

Authored by mhorne on Tue, Mar 31, 8:12 PM.
Tags
None
Referenced Files
F150702709: D56204.id174698.diff
Fri, Apr 3, 11:49 AM
Unknown Object (File)
Thu, Apr 2, 11:40 AM
Subscribers

Details

Reviewers
mmel
andrew
Summary

Frequently there are some unused/unspecified fixed clocks present in a
device tree. Each one emits a warning to dmesg, which results in (many)
repeated messages which are not user-actionable.

Put this warning behind the bootverbose flag.

Test Plan

For example, on RPI4:

---<<BOOT>>---
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance
Copyright (c) 1992-2026 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 16.0-CURRENT #0 main-n284626-4f8a1b4dffa8: Mon Mar 23 22:30:42 UTC 2026
    root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
WARNING: WITNESS option enabled, expect reduced performance.
VT(efifb): resolution 592x448
real memory  = 4148158464 (3955 MB)
avail memory = 4028850176 (3842 MB)
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
random: unblocking device.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
ofw_clkbus0: <OFW clocks bus> on ofwbus0
simplebus1: <Flattened device tree simple bus> on ofwbus0
simplebus2: <Flattened device tree simple bus> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
regfix1: <Fixed Regulator> on ofwbus0
regfix2: <Fixed Regulator> on ofwbus0
regfix3: <Fixed Regulator> on ofwbus0
regfix4: <Fixed Regulator> on ofwbus0
simplebus3: <Flattened device tree simple bus> on ofwbus0
simple_mfd0: <Simple MFD (Multi-Functions Device)> mem 0x7d5d2000-0x7d5d2eff on simplebus0
bcm2835_firmware0: <BCM2835 Firmware> on simplebus0
ofw_clkbus1: <OFW clocks bus> on bcm2835_firmware0
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
smccc0: <ARM SMCCC v1.0> on psci0
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
gic0: <ARM Generic Interrupt Controller> mem 0x40041000-0x40041fff,0x40042000-0x40043fff,0x40044000-0x40045fff,0x40046000-0x40047fff irq 30 on simplebus0
gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 256
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
gpio0: <BCM2708/2835 GPIO controller> mem 0x7e200000-0x7e2000b3 irq 14,15 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
gpio1: <Raspberry Pi Firmware GPIO controller> on bcm2835_firmware0
gpiobus1: <GPIO bus> on gpio1
regfix0: Cannot configure GPIO pin: 5
REGNODE_INIT failed: 6
regfix0: Cannot register regulator.
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
regfix2: Cannot set GPIO pin: 6
REGNODE_INIT failed: 6
regfix2: Cannot register regulator.
mbox0: <BCM2835 VideoCore Mailbox> mem 0x7e00b880-0x7e00b8bf irq 13 on simplebus0
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
gpioregulator0: <GPIO controlled regulator> on ofwbus0
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
generic_timer0: <ARMv8 Generic Timer> irq 4,5,6,7 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
bcm_dma0: <BCM2835 DMA Controller> mem 0x7e007000-0x7e007aff irq 31,32,33,34,35,36,37,38,39,40,41 on simplebus0
usb_nop_xceiv0: <USB NOP PHY> on ofwbus0
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
clk_fixed4: clock-fixed has no clock-frequency
smbios0: <System Management BIOS>
smbios0: Entry point: v3 (64-bit), Version: 3.7
bcm2835_clkman0: <BCM283x Clock Manager> mem 0x7e101000-0x7e102fff on simplebus0
gpioc0: <GPIO controller> at pins 0-57 on gpiobus0
uart0: <PrimeCell UART (PL011)> mem 0x7e201000-0x7e2011ff irq 16 on simplebus0
uart0: console (115200,n,8,1)
spi0: <BCM2708/2835 SPI controller> mem 0x7e204000-0x7e2041ff irq 18 on simplebus0
spibus0: <OFW SPI bus> on spi0
spibus0: <unknown card> at cs 0 mode 0
spibus0: <unknown card> at cs 1 mode 0
sdhci_bcm0: <Broadcom 2708 SDHCI controller> mem 0x7e300000-0x7e3000ff irq 24 on simplebus0
mmc0: <MMC/SD bus> on sdhci_bcm0

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71882
Build 68765: arc lint + arc unit