]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: broadcom: Assign clock rates in eth node for RPi5
authorAndrea della Porta <andrea.porta@suse.com>
Tue, 21 Oct 2025 13:55:33 +0000 (15:55 +0200)
committerFlorian Fainelli <florian.fainelli@broadcom.com>
Wed, 5 Nov 2025 18:28:09 +0000 (10:28 -0800)
In Raspberry Pi 5 DTS, the Ethernet clock rates must be assigned
as the default clock register values are not valid for the
Ethernet interface to function.
This can be done either in rp1_clocks node or in rp1_eth node.

Define the rates in rp1_eth node, as those clocks are 'leaf' clocks
used specifically by the Ethernet device only.

Fixes: 43456fdfc014 ("arm64: dts: broadcom: Enable RP1 ethernet for Raspberry Pi 5")
Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
Link: https://lore.kernel.org/r/20251021135533.5517-1-andrea.porta@suse.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts

index b8f2565450222ce20bc97cf4ebcf96ed8acbeb90..09a849dd09b1a1f1ba6fcb3aa070c22fc19e5d32 100644 (file)
 };
 
 &rp1_eth {
+       assigned-clocks = <&rp1_clocks RP1_CLK_ETH_TSU>,
+                         <&rp1_clocks RP1_CLK_ETH>;
+       assigned-clock-rates = <50000000>,
+                              <125000000>;
        status = "okay";
        phy-mode = "rgmii-id";
        phy-handle = <&phy1>;