1*4882a593Smuzhiyun// SPDX-License-Identifier: GPL-2.0+ 2*4882a593Smuzhiyun/* 3*4882a593Smuzhiyun * Device Tree file for the Kontron SMARC-sAL28 board. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * This is for the network variant 2 which has two ethernet ports. These 6*4882a593Smuzhiyun * ports are connected to the internal switch. 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Copyright (C) 2020 Michael Walle <michael@walle.cc> 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun */ 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun/dts-v1/; 13*4882a593Smuzhiyun#include "fsl-ls1028a-kontron-sl28.dts" 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun/ { 16*4882a593Smuzhiyun model = "Kontron SMARC-sAL28 (TSN-on-module)"; 17*4882a593Smuzhiyun compatible = "kontron,sl28-var2", "kontron,sl28", "fsl,ls1028a"; 18*4882a593Smuzhiyun}; 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun&enetc_mdio_pf3 { 21*4882a593Smuzhiyun phy0: ethernet-phy@5 { 22*4882a593Smuzhiyun reg = <0x5>; 23*4882a593Smuzhiyun eee-broken-1000t; 24*4882a593Smuzhiyun eee-broken-100tx; 25*4882a593Smuzhiyun }; 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun phy1: ethernet-phy@4 { 28*4882a593Smuzhiyun reg = <0x4>; 29*4882a593Smuzhiyun eee-broken-1000t; 30*4882a593Smuzhiyun eee-broken-100tx; 31*4882a593Smuzhiyun }; 32*4882a593Smuzhiyun}; 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun&enetc_port0 { 35*4882a593Smuzhiyun status = "disabled"; 36*4882a593Smuzhiyun /* 37*4882a593Smuzhiyun * In the base device tree the PHY was registered in the mdio 38*4882a593Smuzhiyun * subnode as it is PHY for this port. On this module this PHY 39*4882a593Smuzhiyun * is connected to a switch port instead and registered above. 40*4882a593Smuzhiyun * Therefore, delete the mdio subnode as well as the phy-handle 41*4882a593Smuzhiyun * property here. 42*4882a593Smuzhiyun */ 43*4882a593Smuzhiyun /delete-property/ phy-handle; 44*4882a593Smuzhiyun /delete-node/ mdio; 45*4882a593Smuzhiyun}; 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun&enetc_port2 { 48*4882a593Smuzhiyun status = "okay"; 49*4882a593Smuzhiyun}; 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun&mscc_felix { 52*4882a593Smuzhiyun status = "okay"; 53*4882a593Smuzhiyun}; 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun&mscc_felix_port0 { 56*4882a593Smuzhiyun label = "swp0"; 57*4882a593Smuzhiyun managed = "in-band-status"; 58*4882a593Smuzhiyun phy-handle = <&phy0>; 59*4882a593Smuzhiyun phy-mode = "sgmii"; 60*4882a593Smuzhiyun status = "okay"; 61*4882a593Smuzhiyun}; 62*4882a593Smuzhiyun 63*4882a593Smuzhiyun&mscc_felix_port1 { 64*4882a593Smuzhiyun label = "swp1"; 65*4882a593Smuzhiyun managed = "in-band-status"; 66*4882a593Smuzhiyun phy-handle = <&phy1>; 67*4882a593Smuzhiyun phy-mode = "sgmii"; 68*4882a593Smuzhiyun status = "okay"; 69*4882a593Smuzhiyun}; 70*4882a593Smuzhiyun 71*4882a593Smuzhiyun&mscc_felix_port4 { 72*4882a593Smuzhiyun ethernet = <&enetc_port2>; 73*4882a593Smuzhiyun status = "okay"; 74*4882a593Smuzhiyun}; 75