ARM: dts: imx6qdl: use MAC-address from nvmem
authorNikolaus Voss <nikolaus.voss@haag-streit.com>
Wed, 2 Nov 2022 14:27:19 +0000 (15:27 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sun, 1 Jan 2023 02:30:57 +0000 (10:30 +0800)
IMX6QDL has fuse locations specified for storing the MAC for the
built-in ethernet (Table 5-8 in Reference Manual).
Define the fuse location in ocotp and refer to them in fec-ethernet.

If the cells are not flashed, the driver behavior is unchanged, i.e.
other MAC sources will be probed and a random MAC will be used as a
last resort.

Signed-off-by: Nikolaus Voss <nikolaus.voss@haag-streit.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl.dtsi

index ff1e0173b39be7d7986cc5a936a3d5513b6692b6..132eba70caebc34e9d30576e61bdc75a56a64d41 100644 (file)
                                         <&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";
                                status = "disabled";
                        };
 
                                tempmon_temp_grade: temp-grade@20 {
                                        reg = <0x20 4>;
                                };
+
+                               fec_mac_addr: mac-addr@88 {
+                                       reg = <0x88 6>;
+                               };
                        };
 
                        tzasc@21d0000 { /* TZASC1 */