From 95783abdd774d797e1ce6a229762be2210b7acae Mon Sep 17 00:00:00 2001
From: Nicolai Buchwitz <nb@tipi-net.de>
Date: Mon, 9 Mar 2026 12:31:58 +0100
Subject: [PATCH] ARM: dts: bcm2712: add eee dtparam for Pi5 and CM5

Add an eee dtparam to allow users to disable EEE on the BCM54213PE PHY
without recompiling the device tree. Setting dtparam=eee=off adds the
eee-broken-1000t and eee-broken-100tx properties to the PHY node which
prevents EEE advertisement and negotiation.

EEE is enabled by default (dtparam=eee=on).

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
---
 arch/arm/boot/dts/overlays/README             | 2 +-
 arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -234,7 +234,7 @@ Params:
 
         eee                     Enable Energy Efficient Ethernet support for
                                 compatible devices (default "on"). See also
-                                "tx_lpi_timer". Pi3B+, Pi4 and CM4 only.
+                                "tx_lpi_timer". Pi3B+, Pi4, CM4, Pi5 and CM5.
 
         enable_eeprom           Set to "on" to enable the onboard bootloader
                                 EEPROM by driving GPIO 57 low
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi
@@ -189,6 +189,8 @@ watchdog: &pm {};
 		drm_fb2_rp1_dsi0 = <&aliases>, "drm-fb2=",&dsi0;
 		drm_fb2_rp1_dsi1 = <&aliases>, "drm-fb2=",&dsi1;
 		drm_fb2_vc4 = <&aliases>, "drm-fb2=",&vc4;
+		eee = <&phy1>,"eee-broken-1000t!",
+		      <&phy1>,"eee-broken-100tx!";
 		eth_led0 = <&phy1>,"led-modes:0";
 		eth_led1 = <&phy1>,"led-modes:4";
 		eth_max_speed = <&phy1>,"max-speed:0";
