]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx: kontron-sl-mx6ul: Enable second ethernet interface
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 25 Aug 2025 13:54:28 +0000 (15:54 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 5 Sep 2025 12:03:28 +0000 (09:03 -0300)
This ensures both interfaces can be used in U-Boot and both MAC addresses
are exported to the Linux kernel devicetree.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
arch/arm/dts/imx6ul-kontron-bl-common-u-boot.dtsi

index 39cc6d05d3f6ff65f12c2f6aefe146bc08f9f0b3..042bda7462aa8f0e68a0ea8236b3536a3bcfb1b0 100644 (file)
@@ -30,9 +30,6 @@
  * in Linux we can't assign the shared reset GPIO to the PHYs, as this
  * would cause Linux to reset both PHYs every time one of them gets
  * reinitialized.
- *
- * Also we disable the second ethernet as it currently doesn't work with
- * the devicetree setup in U-Boot.
  */
 
 &fec1 {
                        clocks = <&clks IMX6UL_CLK_ENET_REF>;
                        clock-names = "rmii-ref";
                };
+
+               ethphy2: ethernet-phy@2 {
+                       reg = <2>;
+                       micrel,led-mode = <0>;
+                       clocks = <&clks IMX6UL_CLK_ENET2_REF>;
+                       clock-names = "rmii-ref";
+               };
        };
 };
 
 &fec2 {
-       status = "disabled";
-       /delete-property/ phy-handle;
        /delete-node/ mdio;
 };