EasyManua.ls Logo

NXP Semiconductors Layerscape LS1028A BSP - 4.2.12.3 Felix Ethernet switch

NXP Semiconductors Layerscape LS1028A BSP
136 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.2.12.3 Felix Ethernet switch
4.2.12.3.1 Modules and dependencies
The driver for the LS1028A L2Switch or the Microsemi “Felix” is a two-layer driver: a common driver (shared with the Microsemi
Ocelot switch driver) and a PCI driver built on top of it.
The two driver modules are described in the following table:
Module Runtime module dependencies Description
mscc_ocelot_common.ko - Common functionalities for both Ocelot
and Felix drivers
mscc_felix.ko mscc_ocelot_common.ko The LS1028A L2Switch PCI driver
4.2.12.3.1.1 Make menuconfig path
The L2Switch driver module and its dependencies can be enabled for build using the make menuconfig command and selecting
the below options:
→ Device Drivers → Network device support → Ethernet driver support → Microsemi devices →
<*> Ocelot switch driver
< > Ocelot switch driver on Ocelot
<*> Felix switch driver
4.2.12.3.1.2
Config defines
Module Menuconfig name CONFIG Build options
mscc_ocelot_common.ko Ocelot switch driver CONFIG_MSCC_OCELOT_S
WITCH
y/m
mscc_felix.ko Felix switch driver CONFIG_MSCC_FELIX_SWI
TCH
y/m
1
1. Building options must confirm with the fact that the mscc_ocelot_common module dependency must be satisfied before load
mscc_felix.
4.2.12.3.2 Device Tree bindings
For configuring the L2Switch ports and the attached PHYs the driver uses a custom Ethernet device tree binding named port
node. These port nodes can only be defined within the L2Switch PCI device node ‘pci@0,5. The total number of available switch
ports on LS1028A is six. Depending on board design and port type (internal or external) there are two supported link modes
specified by below switch port device tree bindings.
Required properties:
reg – identifies the switch port id and can be within the range [0 ... 5]
1) The switch port is an external port connected to a MDIO configurable phy:
For this binding, the follwing properties are required, their bindings already defined in ethernet.txt, under Documentation/
devicetree/bindings/net/* in the kernel source tree.
Required:
phy-handle – reference to a PHY device node for switch ports [0 … 3]. Defined in ethernet.txt.
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
95

Table of Contents

Related product manuals