xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/fsl-ls1028a-kontron-sl28-var2.dts (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
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 {
52	status = "okay";
53};
54
55&mscc_felix_port0 {
56	label = "swp0";
57	phy-handle = <&phy0>;
58	phy-mode = "sgmii";
59	status = "okay";
60};
61
62&mscc_felix_port1 {
63	label = "swp1";
64	phy-handle = <&phy1>;
65	phy-mode = "sgmii";
66	status = "okay";
67};
68
69&mscc_felix_port4 {
70	ethernet = <&enetc_port2>;
71	status = "okay";
72};
73