Re: [PATCH 2/2] imx6qdl.dtsi: use MAC-address from nvmem

Shawn Guo
2023-01-01T02:19:50Z

On Sat, Dec 31, 2022 at 06:08:41PM +0100, Andrew Lunn wrote:
> > > @@ -1053,6 +1053,8 @@ fec: ethernet@2188000 {
> > > <&clks IMX6QDL_CLK_ENET_REF>;
> > > clock-names = "ipg", "ahb", "ptp", "enet_out";
> > > fsl,stop-mode = <&gpr 0x34 27>;
> > > + nvmem-cells = <&fec_mac_addr>;
> > > + nvmem-cell-names = "mac-address";
> >
> > May I ask where is the support of FEC driver for this?
>
> The fec uses of_get_mac_address() which calls
> of_get_mac_address_nvmem() as its last place to look for the MAC
> address.

Ah, of_get_mac_address() gets extended to call of_get_mac_address_nvmem()
nowadays. Thanks, Andrew!

Shawn