arm64: dts: ti: k3-am642-main: fix ports mac properties
authorGrygorii Strashko <grygorii.strashko@ti.com>
Tue, 8 Jun 2021 18:49:40 +0000 (21:49 +0300)
committerNishanth Menon <nm@ti.com>
Mon, 14 Jun 2021 14:29:56 +0000 (09:29 -0500)
commit50c9bfca1bfe9ffd56d8c5deecf9204d14e20bfd
tree9b918f3c81fbead5c73525ea3a45b58afe950f0c
parentf1f55c6b77b6e88f8b9a95b7cb491bb619a1e6bc
arm64: dts: ti: k3-am642-main: fix ports mac properties

The current device tree CPSW3g node adds non-zero "mac-address" property to
the ports, which prevents random MAC address assignment to network devices
if bootloader failed to update DT. This may cause more then one host to
have the same MAC in the network.

 mac-address = [00 00 de ad be ef];
 mac-address = [00 01 de ad be ef];

In addition, there is one MAC address available in eFuse registers which
can be used for default port 1.

Hence, fix ports MAC properties by:
- resetting "mac-address" property to 0
- adding ti,syscon-efuse = <&main_conf 0x200> to Port 1

Fixes: 3753b12877b6 ("arm64: dts: ti: k3-am64-main: Add CPSW DT node")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20210608184940.25934-1-grygorii.strashko@ti.com
arch/arm64/boot/dts/ti/k3-am64-main.dtsi