:orphan:
.. raw:: html
.. dtcompatible:: nxp,netc-switch
.. _dtbinding_nxp_netc_switch:
nxp,netc-switch
###############
Vendor: :ref:`NXP Semiconductors N.V. `
.. note::
An implementation of a driver matching this compatible is available in
:zephyr_file:`drivers/ethernet/nxp_imx_netc/dsa_nxp_imx_netc.c`.
Description
***********
.. code-block:: none
NXP NETC ethernet switch
Properties
**********
Top level properties
====================
No top-level properties.
Child node properties
=====================
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``reg``
- ``array``
- .. code-block:: none
Port number
This property is **required**.
See :ref:`zephyr:dt-important-props` for more information.
* - ``ethernet``
- ``phandle``
- .. code-block:: none
A phandle to a valid Ethernet device node. This host device is what the switch port is connected to.
* - ``pinctrl-0``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.
* - ``pinctrl-1``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the second state. See pinctrl-0.
* - ``pinctrl-2``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the third state. See pinctrl-0.
* - ``pinctrl-3``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the fourth state. See pinctrl-0.
* - ``pinctrl-4``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the fifth state. See pinctrl-0.
* - ``pinctrl-names``
- ``string-array``
- .. code-block:: none
Names for the provided states. The number of names needs to match the
number of states.
* - ``local-mac-address``
- ``uint8-array``
- .. code-block:: none
Specifies the MAC address that was assigned to the network device
* - ``zephyr,random-mac-address``
- ``boolean``
- .. code-block:: none
Use a random MAC address generated when the driver is initialized.
Note that using this choice and rebooting a board may leave stale
MAC address in peers' ARP caches and lead to issues and delays in
communication. (Use "ip neigh flush all" on Linux peers to clear
ARP cache.)
It is driver specific how the OUI octets are handled.
If set we ignore any setting of the local-mac-address property.
* - ``phy-handle``
- ``phandle``
- .. code-block:: none
Specifies a reference to a node representing a PHY device.
* - ``phy-connection-type``
- ``string``
- .. code-block:: none
Specifies the interface connection type between ethernet MAC and PHY.
Legal values: ``'mii'``, ``'rmii'``, ``'gmii'``, ``'rgmii'``, ``'internal'``