Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6qdl: use MAC-address from nvmem

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>

authored by

Nikolaus Voss and committed by
Shawn Guo
4ac665df a5c75aa3

+6
+6
arch/arm/boot/dts/imx6qdl.dtsi
··· 1053 1053 <&clks IMX6QDL_CLK_ENET_REF>; 1054 1054 clock-names = "ipg", "ahb", "ptp", "enet_out"; 1055 1055 fsl,stop-mode = <&gpr 0x34 27>; 1056 + nvmem-cells = <&fec_mac_addr>; 1057 + nvmem-cell-names = "mac-address"; 1056 1058 status = "disabled"; 1057 1059 }; 1058 1060 ··· 1187 1185 1188 1186 tempmon_temp_grade: temp-grade@20 { 1189 1187 reg = <0x20 4>; 1188 + }; 1189 + 1190 + fec_mac_addr: mac-addr@88 { 1191 + reg = <0x88 6>; 1190 1192 }; 1191 1193 }; 1192 1194