xref: /openbmc/linux/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var2.dts (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1ab43f030SMichael Walle// SPDX-License-Identifier: GPL-2.0+
2ab43f030SMichael Walle/*
3ab43f030SMichael Walle * Device Tree file for the Kontron SMARC-sAL28 board.
4ab43f030SMichael Walle *
5ab43f030SMichael Walle * This is for the network variant 2 which has two ethernet ports. These
6ab43f030SMichael Walle * ports are connected to the internal switch.
7ab43f030SMichael Walle *
867833805SMichael Walle * Copyright (C) 2021 Michael Walle <michael@walle.cc>
9ab43f030SMichael Walle *
10ab43f030SMichael Walle */
11ab43f030SMichael Walle
12ab43f030SMichael Walle/dts-v1/;
13ab43f030SMichael Walle#include "fsl-ls1028a-kontron-sl28.dts"
14ab43f030SMichael Walle
15ab43f030SMichael Walle/ {
16ab43f030SMichael Walle	model = "Kontron SMARC-sAL28 (TSN-on-module)";
17ab43f030SMichael Walle	compatible = "kontron,sl28-var2", "kontron,sl28", "fsl,ls1028a";
18ab43f030SMichael Walle};
19ab43f030SMichael Walle
20ab43f030SMichael Walle&enetc_mdio_pf3 {
21ab43f030SMichael Walle	phy1: ethernet-phy@4 {
22ab43f030SMichael Walle		reg = <0x4>;
23ab43f030SMichael Walle		eee-broken-1000t;
24ab43f030SMichael Walle		eee-broken-100tx;
25ab43f030SMichael Walle	};
26ab43f030SMichael Walle};
27ab43f030SMichael Walle
28ab43f030SMichael Walle&enetc_port0 {
29ab43f030SMichael Walle	status = "disabled";
30ab43f030SMichael Walle	/*
3167833805SMichael Walle	 * In the base device tree the PHY at address 5 was assigned for
3267833805SMichael Walle	 * this port. On this module this PHY is connected to a switch
3367833805SMichael Walle	 * port instead. Therefore, delete the phy-handle property here.
34ab43f030SMichael Walle	 */
35ab43f030SMichael Walle	/delete-property/ phy-handle;
36ab43f030SMichael Walle};
37ab43f030SMichael Walle
38ab43f030SMichael Walle&enetc_port2 {
39*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 2>;
40*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
41ab43f030SMichael Walle	status = "okay";
42ab43f030SMichael Walle};
43ab43f030SMichael Walle
4468ad0821SVladimir Oltean&enetc_port3 {
45*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 3>;
46*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
4768ad0821SVladimir Oltean	status = "okay";
4868ad0821SVladimir Oltean};
4968ad0821SVladimir Oltean
50630952e1SMichael Walle&mscc_felix {
51630952e1SMichael Walle	status = "okay";
52630952e1SMichael Walle};
53630952e1SMichael Walle
54ab43f030SMichael Walle&mscc_felix_port0 {
550d99633fSMichael Walle	label = "swp0";
5629f6a20cSMichael Walle	managed = "in-band-status";
57ab43f030SMichael Walle	phy-handle = <&phy0>;
58ab43f030SMichael Walle	phy-mode = "sgmii";
59*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 0>;
60*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
61ab43f030SMichael Walle	status = "okay";
62ab43f030SMichael Walle};
63ab43f030SMichael Walle
64ab43f030SMichael Walle&mscc_felix_port1 {
650d99633fSMichael Walle	label = "swp1";
6629f6a20cSMichael Walle	managed = "in-band-status";
67ab43f030SMichael Walle	phy-handle = <&phy1>;
68ab43f030SMichael Walle	phy-mode = "sgmii";
69*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 1>;
70*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
71ab43f030SMichael Walle	status = "okay";
72ab43f030SMichael Walle};
73ab43f030SMichael Walle
74ab43f030SMichael Walle&mscc_felix_port4 {
75ab43f030SMichael Walle	status = "okay";
76ab43f030SMichael Walle};
7768ad0821SVladimir Oltean
7868ad0821SVladimir Oltean&mscc_felix_port5 {
7968ad0821SVladimir Oltean	status = "okay";
8068ad0821SVladimir Oltean};
81