]> git.baikalelectronics.ru Git - uboot.git/commitdiff
board: sl28: add DSA support for variant 2
authorMichael Walle <michael@walle.cc>
Wed, 23 Jun 2021 11:56:02 +0000 (13:56 +0200)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 6 Jul 2021 02:22:41 +0000 (05:22 +0300)
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 <michael@walle.cc>
arch/arm/dts/fsl-ls1028a-kontron-sl28-var2-u-boot.dtsi
arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dts

index 79b771e0746e276feeb850cd23da02aba003086d..4e0ce3f77d395426ff118932ac8d8e76eb0a9973 100644 (file)
@@ -1,2 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0+
 #include "fsl-ls1028a-kontron-sl28-u-boot.dtsi"
+
+/ {
+       aliases {
+               ethernet0 = &mscc_felix_port0;
+               ethernet1 = &mscc_felix_port1;
+       };
+};
index 1ea1265bcf5f62fb1e64c3823b732635f4ecef13..7a3aa21408ef0d1166d30822e47feea0a9a1d9df 100644 (file)
        /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;
+       };
+};