Skip to content

Instantly share code, notes, and snippets.

@a3f
Created September 24, 2025 08:32
Show Gist options
  • Save a3f/f364667ac3590e92d66d5408de5717c1 to your computer and use it in GitHub Desktop.
Save a3f/f364667ac3590e92d66d5408de5717c1 to your computer and use it in GitHub Desktop.
&gmac0 { /* Ethernet MAC node */
nvmem-cells = <&gmac0_address>;
nvmem-cell-names = "mac-address";
};
&eeprom { /* or some other device with NVMEM driver */
#address-cells = <1>;
#size-cells = <1>;
gmac0_address: mac-addr@0 {
reg = <0x0 6>; /* adapt to actual offset */
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment