lantiq: add rgmii delays on BT Home Hub 5A
authorAleksander Jan Bajkowski <olek2@wp.pl>
Sun, 16 Oct 2022 18:05:26 +0000 (20:05 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 21 Oct 2022 11:45:37 +0000 (13:45 +0200)
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@wp.pl>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts

index 1cd0f2c6b6cea4b685e283124b2320084707dda2..be44cb716197e2bc1aeace1746721c280eaa6139 100644 (file)
        port@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@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@2 {
        port@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>;
        };
 };