1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Device Tree file for the Kontron SMARC-sAL28 board.
4 *
5 * This is for the network variant 2 which has two ethernet ports. These
6 * ports are connected to the internal switch.
7 *
8 * Copyright (C) 2020 Michael Walle <michael@walle.cc>
9 *
10 */
11
12/dts-v1/;
13#include "fsl-ls1028a-kontron-sl28.dts"
14
15/ {
16	model = "Kontron SMARC-sAL28 (TSN-on-module)";
17	compatible = "kontron,sl28-var2", "kontron,sl28", "fsl,ls1028a";
18};
19
20&enetc_mdio_pf3 {
21	phy0: ethernet-phy@5 {
22		reg = <0x5>;
23		eee-broken-1000t;
24		eee-broken-100tx;
25	};
26
27	phy1: ethernet-phy@4 {
28		reg = <0x4>;
29		eee-broken-1000t;
30		eee-broken-100tx;
31	};
32};
33
34&enetc_port0 {
35	status = "disabled";
36	/*
37	 * In the base device tree the PHY was registered in the mdio
38	 * subnode as it is PHY for this port. On this module this PHY
39	 * is connected to a switch port instead and registered above.
40	 * Therefore, delete the mdio subnode as well as the phy-handle
41	 * property here.
42	 */
43	/delete-property/ phy-handle;
44	/delete-node/ mdio;
45};
46
47&enetc_port2 {
48	status = "okay";
49};
50
51&mscc_felix_port0 {
52	label = "gbe0";
53	phy-handle = <&phy0>;
54	phy-mode = "sgmii";
55	status = "okay";
56};
57
58&mscc_felix_port1 {
59	label = "gbe1";
60	phy-handle = <&phy1>;
61	phy-mode = "sgmii";
62	status = "okay";
63};
64
65&mscc_felix_port4 {
66	ethernet = <&enetc_port2>;
67	status = "okay";
68};
69