zephyr,native-tap

Description

Native Sim TAP Ethernet

This binding describes a TAP Ethernet interface for use with native_sim.
It provides network connectivity between the host and Zephyr through a Linux
TAP interface, which can be used for testing and development purposes without
requiring actual hardware.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

host-interface

string

Name of the host TAP network interface to use (e.g. zeth). It can be
overridden from the command line using the per-instance "<node>_eth-if"
option (or the "eth-if" option for the first interface).

phy-handle

phandle

Specifies a reference to a node representing a PHY device.

phy-connection-type

string

Specifies the interface connection type between ethernet MAC and PHY.

Legal values: mii, rmii, gmii, rgmii, rgmii-id, rgmii-txid, rgmii-rxid, tbi, rtbi, smii, sgmii, rev-mii, xgmii, moca, qsgmii, trgmii, internal

ptp-clock

phandle

Corresponding ptp clock device.

local-mac-address

uint8-array

Specifies the MAC address that was assigned to the network device

zephyr,random-mac-address

boolean

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.

zephyr,mac-address-prefix

uint8-array

A statically assigned MAC address prefix.
Can be combined with zephyr,random-mac-address or an NVMEM cell, for
example to set the OUI.

nvmem-cell-names

string-array

Names for each nvmem-cells specified.

nvmem-cells

phandle-array

List of phandles to the nvmem data cells.