From 985c2fd600b4fb877cce744633ff1bec23d329ed Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Mon, 27 Nov 2023 16:16:48 +0100 Subject: [PATCH] board/aarch64: alder: Disable EEE Empirical studies shows that the surge protection on the alder board is not compatible with Energy Efficient Ethernet. Root cause has not yet been determined. --- board/aarch64/dts/alder/alder.dtsi | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/board/aarch64/dts/alder/alder.dtsi b/board/aarch64/dts/alder/alder.dtsi index ee3ef461..9f6655e7 100644 --- a/board/aarch64/dts/alder/alder.dtsi +++ b/board/aarch64/dts/alder/alder.dtsi @@ -442,14 +442,24 @@ mdio { #address-cells = <1>; #size-cells = <0>; - swphy1: ethernet-phy@1 { reg = <0x1>; }; - swphy2: ethernet-phy@2 { reg = <0x2>; }; - swphy3: ethernet-phy@3 { reg = <0x3>; }; - swphy4: ethernet-phy@4 { reg = <0x4>; }; - swphy5: ethernet-phy@5 { reg = <0x5>; }; - swphy6: ethernet-phy@6 { reg = <0x6>; }; - swphy7: ethernet-phy@7 { reg = <0x7>; }; - swphy8: ethernet-phy@8 { reg = <0x8>; }; + +#define SWPHY(_n) \ + ethernet-phy@_n { \ + compatible = "ethernet-phy-ieee802.3-c22"; \ + reg = <_n>; \ + eee-broken-100tx; \ + eee-broken-1000t; \ + } + + swphy1: SWPHY(1); + swphy2: SWPHY(2); + swphy3: SWPHY(3); + swphy4: SWPHY(4); + swphy5: SWPHY(5); + swphy6: SWPHY(6); + swphy7: SWPHY(7); + swphy8: SWPHY(8); +#undef SWPHY }; }; };