2021-01-07 23:08:58 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Device Tree file for the Kontron SMARC-sAL28 board.
|
|
|
|
*
|
2021-10-13 16:14:27 +00:00
|
|
|
* This is for the network variant 2 which has two ethernet ports. These
|
|
|
|
* ports are connected to the internal switch.
|
2021-01-07 23:08:58 +00:00
|
|
|
*
|
2021-10-13 16:14:27 +00:00
|
|
|
* Copyright (C) 2021 Michael Walle <michael@walle.cc>
|
2021-01-07 23:08:58 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include "fsl-ls1028a-kontron-sl28.dts"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Kontron SMARC-sAL28 (TSN-on-module)";
|
|
|
|
compatible = "kontron,sl28-var2", "kontron,sl28", "fsl,ls1028a";
|
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:27 +00:00
|
|
|
&enetc_mdio_pf3 {
|
|
|
|
phy1: ethernet-phy@4 {
|
|
|
|
reg = <0x4>;
|
|
|
|
eee-broken-1000t;
|
|
|
|
eee-broken-100tx;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:15 +00:00
|
|
|
&enetc_port0 {
|
2021-01-07 23:08:58 +00:00
|
|
|
status = "disabled";
|
2021-10-13 16:14:27 +00:00
|
|
|
/*
|
|
|
|
* In the base device tree the PHY at address 5 was assigned for
|
|
|
|
* this port. On this module this PHY is connected to a switch
|
|
|
|
* port instead. Therefore, delete the phy-handle property here.
|
|
|
|
*/
|
2021-01-07 23:08:58 +00:00
|
|
|
/delete-property/ phy-handle;
|
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:15 +00:00
|
|
|
&enetc_port2 {
|
2021-06-23 11:56:02 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix_port0 {
|
2021-10-13 16:14:27 +00:00
|
|
|
label = "swp0";
|
|
|
|
managed = "in-band-status";
|
2021-06-23 11:56:02 +00:00
|
|
|
phy-handle = <&phy0>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix_port1 {
|
2021-10-13 16:14:27 +00:00
|
|
|
label = "swp1";
|
|
|
|
managed = "in-band-status";
|
2021-06-23 11:56:02 +00:00
|
|
|
phy-handle = <&phy1>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix_port4 {
|
2021-10-13 16:14:15 +00:00
|
|
|
ethernet = <&enetc_port2>;
|
2021-06-23 11:56:02 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|