[openwrt/openwrt] lantiq: add rgmii delays on BT Home Hub 5A

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 21 04:45:48 PDT 2022


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/069bda0adb5cb97c78ad9ea2561512ced487fa59

commit 069bda0adb5cb97c78ad9ea2561512ced487fa59
Author: Aleksander Jan Bajkowski <olek2 at wp.pl>
AuthorDate: Sun Oct 16 20:05:26 2022 +0200

    lantiq: add rgmii delays on BT Home Hub 5A
    
    This comit fixes warnings that occur on kernel 5.15:
    ...
    [    2.269736] Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6 1e108000.switch-mii:00:
                   PHY has delays (e.g. via pin strapping), but phy-mode = 'rgmii'
    [    2.269736] Should be 'rgmii-id' to use internal delays txskew:1500 ps rxskew:1500 ps
    ...
    
    Ref: https://github.com/torvalds/linux/commit/be393dd685d215d44a43f5c5dcb8f7e57668d00e
    Signed-off-by: Aleksander Jan Bajkowski <olek2 at wp.pl>
---
 .../files/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts   | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts
index 1cd0f2c6b6..be44cb7161 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts
@@ -174,13 +174,17 @@
 	port at 0 {
 		reg = <0>;
 		label = "lan3";
-		phy-mode = "rgmii";
+		phy-mode = "rgmii-id";
+		tx-internal-delay-ps = <1500>;
+		rx-internal-delay-ps = <1500>;
 		phy-handle = <&phy0>;
 	};
 	port at 1 {
 		reg = <1>;
 		label = "lan4";
-		phy-mode = "rgmii";
+		phy-mode = "rgmii-id";
+		tx-internal-delay-ps = <1500>;
+		rx-internal-delay-ps = <1500>;
 		phy-handle = <&phy1>;
 	};
 	port at 2 {
@@ -198,7 +202,9 @@
 	port at 5 {
 		reg = <5>;
 		label = "wan";
-		phy-mode = "rgmii";
+		phy-mode = "rgmii-id";
+		tx-internal-delay-ps = <1500>;
+		rx-internal-delay-ps = <1500>;
 		phy-handle = <&phy5>;
 	};
 };




More information about the lede-commits mailing list