Commit 4ac665df authored by Nikolaus Voss's avatar Nikolaus Voss Committed by Shawn Guo

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: default avatarNikolaus Voss <nikolaus.voss@haag-streit.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent a5c75aa3
......@@ -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";
status = "disabled";
};
......@@ -1186,6 +1188,10 @@ tempmon_calib: calib@38 {
tempmon_temp_grade: temp-grade@20 {
reg = <0x20 4>;
};
fec_mac_addr: mac-addr@88 {
reg = <0x88 6>;
};
};
tzasc@21d0000 { /* TZASC1 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment