Now that u-boot gained DSA support, and it is already enabled for the
kontron_sl28 board, add the last missing piece and enable the
corresponding devices it in the device tree.

Signed-off-by: Michael Walle <[email protected]>
---
 .../arm/dts/fsl-ls1028a-kontron-sl28-var2.dts | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dts 
b/arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dts
index 1ea1265bcf..39280cd1c7 100644
--- a/arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dts
+++ b/arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dts
@@ -15,6 +15,12 @@
 / {
        model = "Kontron SMARC-sAL28 (TSN-on-module)";
        compatible = "kontron,sl28-var2", "kontron,sl28", "fsl,ls1028a";
+
+       aliases {
+               eth0 = &mscc_felix_port0;
+               eth1 = &mscc_felix_port1;
+               eth2 = &enetc2;
+       };
 };
 
 &enetc0 {
@@ -22,4 +28,44 @@
        /delete-property/ phy-handle;
 };
 
+&enetc2 {
+       status = "okay";
+};
+
+&mscc_felix {
+       status = "okay";
+};
+
+&mscc_felix_port0 {
+       label = "gbe0";
+       phy-handle = <&phy0>;
+       phy-mode = "sgmii";
+       status = "okay";
+};
+
+&mscc_felix_port1 {
+       label = "gbe1";
+       phy-handle = <&phy1>;
+       phy-mode = "sgmii";
+       status = "okay";
+};
+
+&mscc_felix_port4 {
+       ethernet = <&enetc2>;
+       status = "okay";
+};
+
 /delete-node/ &phy0;
+&mdio0 {
+       phy0: ethernet-phy@5 {
+               reg = <0x5>;
+               eee-broken-1000t;
+               eee-broken-100tx;
+       };
+
+       phy1: ethernet-phy@4 {
+               reg = <0x4>;
+               eee-broken-1000t;
+               eee-broken-100tx;
+       };
+};
-- 
2.20.1

Reply via email to