zephyr,native-sim-wifi

Description

Native sim Wi-Fi driver.

Presents a Wi-Fi station interface in Zephyr that is
backed by a Linux host network interface (AF_PACKET + nl80211, typically a
mac80211_hwsim radio). The presence of a node with this compatible enables the
driver; without one the driver is not built.
The MAC address is taken from the standard "local-mac-address" /
"zephyr,random-mac-address" properties. Note the driver overrides it at init
with the host interface's MAC (the station must share the host radio MAC), so
these properties only act as a fallback when the host MAC cannot be read.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

host-interface

string

Name of the Linux host network interface the driver binds to with
AF_PACKET and nl80211 (e.g. "zwifi"). It must already exist on the host.

This property is required.

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.