Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * Device Tree file for the Kontron SMARC-sAL28 board.
0004  *
0005  * This is for the network variant 2 which has two ethernet ports. These
0006  * ports are connected to the internal switch.
0007  *
0008  * Copyright (C) 2021 Michael Walle <michael@walle.cc>
0009  *
0010  */
0011 
0012 /dts-v1/;
0013 #include "fsl-ls1028a-kontron-sl28.dts"
0014 
0015 / {
0016         model = "Kontron SMARC-sAL28 (TSN-on-module)";
0017         compatible = "kontron,sl28-var2", "kontron,sl28", "fsl,ls1028a";
0018 };
0019 
0020 &enetc_mdio_pf3 {
0021         phy1: ethernet-phy@4 {
0022                 reg = <0x4>;
0023                 eee-broken-1000t;
0024                 eee-broken-100tx;
0025         };
0026 };
0027 
0028 &enetc_port0 {
0029         status = "disabled";
0030         /*
0031          * In the base device tree the PHY at address 5 was assigned for
0032          * this port. On this module this PHY is connected to a switch
0033          * port instead. Therefore, delete the phy-handle property here.
0034          */
0035         /delete-property/ phy-handle;
0036 };
0037 
0038 &enetc_port2 {
0039         status = "okay";
0040 };
0041 
0042 &mscc_felix {
0043         status = "okay";
0044 };
0045 
0046 &mscc_felix_port0 {
0047         label = "swp0";
0048         managed = "in-band-status";
0049         phy-handle = <&phy0>;
0050         phy-mode = "sgmii";
0051         status = "okay";
0052 };
0053 
0054 &mscc_felix_port1 {
0055         label = "swp1";
0056         managed = "in-band-status";
0057         phy-handle = <&phy1>;
0058         phy-mode = "sgmii";
0059         status = "okay";
0060 };
0061 
0062 &mscc_felix_port4 {
0063         ethernet = <&enetc_port2>;
0064         status = "okay";
0065 };