summaryrefslogtreecommitdiffstats
path: root/dts/src/arm64/freescale/fsl-ls1028a-kontron-sl28-var2.dts
blob: f6a79c8080d14ef8194da5e73155250cbc276baa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// 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 {
	status = "okay";
};

&mscc_felix_port0 {
	label = "swp0";
	managed = "in-band-status";
	phy-handle = <&phy0>;
	phy-mode = "sgmii";
	status = "okay";
};

&mscc_felix_port1 {
	label = "swp1";
	managed = "in-band-status";
	phy-handle = <&phy1>;
	phy-mode = "sgmii";
	status = "okay";
};

&mscc_felix_port4 {
	ethernet = <&enetc_port2>;
	status = "okay";
};