Skip to content

Conversation

pdgendt
Copy link
Contributor

@pdgendt pdgendt commented Sep 26, 2025

A proof-of-concept using PR #96379 as an alternative for #74835.

Note that this loads the MAC address during driver initialization. A more complete (but complex) solution would be to move it to the network interface initialization.

@pdgendt pdgendt mentioned this pull request Sep 29, 2025
@pdgendt pdgendt force-pushed the nvmem-mac-address branch 2 times, most recently from 9afd50b to 8241eb8 Compare September 30, 2025 13:01
@pdgendt pdgendt changed the title [PoC] drivers: ethernet: sam_gmac: Use NVMEM cell to get MAC address [PoC] drivers: ethernet/wifi: Use NVMEM cell to get MAC address Sep 30, 2025
Given an ethernet MAC configuration struct, load a MAC address into a
provided array.

Signed-off-by: Pieter De Gendt <[email protected]>
Turn ethernet controller devicetree nodes into NVMEM consumers. Allow
passing mac-address cells.

Signed-off-by: Pieter De Gendt <[email protected]>
Rework the Atmel SAM GMAC driver to read a MAC address from the provided
NVMEM cell instead of using I2C commands directly.

Signed-off-by: Pieter De Gendt <[email protected]>
Create a generic Wi-Fi interface binding file which includes the
ethernet-controller.yaml bindings and include it in Nordic's WLAN
interface binding.

Signed-off-by: Pieter De Gendt <[email protected]>
Allow setting the MAC address for the nRF Wi-Fi interface with a
configuration derived from the devicetree.
This allows to use an NVMEM cell as MAC address storage.

Signed-off-by: Pieter De Gendt <[email protected]>
@pdgendt pdgendt force-pushed the nvmem-mac-address branch from 8241eb8 to 8ac0a2f Compare October 6, 2025 19:12
Copy link

sonarqubecloud bot commented Oct 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant