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 managed = "in-band-status"; 58 phy-handle = <&phy0>; 59 phy-mode = "sgmii"; 60 status = "okay"; 61}; 62 63&mscc_felix_port1 { 64 label = "swp1"; 65 managed = "in-band-status"; 66 phy-handle = <&phy1>; 67 phy-mode = "sgmii"; 68 status = "okay"; 69}; 70 71&mscc_felix_port4 { 72 ethernet = <&enetc_port2>; 73 status = "okay"; 74}; 75