# \[PATCH AUTOSEL 5.13 05/14\] riscv: dts: microchip: Use 'local-mac-address' for emac1

- Subsystems: RISC-V ARCHITECTURE, RISC-V MICROCHIP SUPPORT, THE REST
- Maintainers: Paul Walmsley, Palmer Dabbelt, Albert Ou, Conor Dooley, Linus Torvalds
- Status: REVIEWED · 2 reviews, 2 by maintainers (M conor dooley M Geert Uytterhoeven)
- Reviewed.
- 2 review trailers (1 from subsystem maintainers).
- List: linux-devicetree
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-devicetree/2021/08/1492066/t

## \[PATCH AUTOSEL 5.13 05/14\] riscv: dts: microchip: Use 'local-mac-address' for emac1

- From: Sasha Levin \<sashal@kernel.org\>
- Date: 2021-08-30 12:00:00 
- Message: https://ratatoskr.run/linux-devicetree/2021/08/1492066.md

```text
From: Bin Meng <redacted>

[ Upstream commit 719588dee26bac0d5979c122bc530c43dc5d07c7 ]

Per the DT spec, 'local-mac-address' is used to specify MAC address
that was assigned to the network device, while 'mac-address' is used
to specify the MAC address that was last used by the boot program,
and shall be used only if the value differs from 'local-mac-address'
property value.

Signed-off-by: Bin Meng <redacted>
Reviewed-by: conor dooley <conor.dooley@microchip.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Palmer Dabbelt <redacted>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi b/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi
index b9819570a7d1..9d2fbbc1f777 100644
--- a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi
+++ b/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi
@@ -317,7 +317,7 @@ emac1: ethernet@20112000 {
 			reg = <0x0 0x20112000 0x0 0x2000>;
 			interrupt-parent = <&plic>;
 			interrupts = <70 71 72 73>;
-			mac-address = [00 00 00 00 00 00];
+			local-mac-address = [00 00 00 00 00 00];
 			clocks = <&clkcfg 5>, <&clkcfg 2>;
 			status = "disabled";
 			clock-names = "pclk", "hclk";
-- 
2.30.2

```
