]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
arm64: dts: ls1028a: sl28: add support for variant 2
authorMichael Walle <michael@walle.cc>
Wed, 11 Mar 2020 07:49:29 +0000 (08:49 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 16 Mar 2020 08:16:00 +0000 (16:16 +0800)
Now that there is support for the Felix switch this variant can also be
added. It features two external ports ethernet ports which are connected
to the internal switch core. No direct connection to any of the enetc's
is supported.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var2.dts [new file with mode: 0644]

index a6d70b73d69b43ce443c298683b2461a202a8d52..a39f0a1723e026b752bd8d40e6c3e8cb345a2475 100644 (file)
@@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-rdb.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-kbox-a-230-ls.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28.dtb
+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var2.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var3-ads2.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var4.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds.dtb
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var2.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var2.dts
new file mode 100644 (file)
index 0000000..0a34ff6
--- /dev/null
@@ -0,0 +1,68 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Device Tree file for the Kontron SMARC-sAL28 board.
+ *
+ * This is for the network variant 2 which has two ethernet ports. These
+ * ports are connected to the internal switch.
+ *
+ * Copyright (C) 2020 Michael Walle <michael@walle.cc>
+ *
+ */
+
+/dts-v1/;
+#include "fsl-ls1028a-kontron-sl28.dts"
+
+/ {
+       model = "Kontron SMARC-sAL28 (TSN-on-module)";
+       compatible = "kontron,sl28-var2", "kontron,sl28", "fsl,ls1028a";
+};
+
+&enetc_mdio_pf3 {
+       phy0: ethernet-phy@5 {
+               reg = <0x5>;
+               eee-broken-1000t;
+               eee-broken-100tx;
+       };
+
+       phy1: ethernet-phy@4 {
+               reg = <0x4>;
+               eee-broken-1000t;
+               eee-broken-100tx;
+       };
+};
+
+&enetc_port0 {
+       status = "disabled";
+       /*
+        * In the base device tree the PHY was registered in the mdio
+        * subnode as it is PHY for this port. On this module this PHY
+        * is connected to a switch port instead and registered above.
+        * Therefore, delete the mdio subnode as well as the phy-handle
+        * property here.
+        */
+       /delete-property/ phy-handle;
+       /delete-node/ mdio;
+};
+
+&enetc_port2 {
+       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 = <&enetc_port2>;
+       status = "okay";
+};