[PATCH v2] ARM: i.MX8MP: skov: add MAC address assignment support

Oleksij Rempel o.rempel at pengutronix.de
Tue Mar 12 07:27:08 PDT 2024


Assign MAC address to the switch ports.

Signed-off-by: Oleksij Rempel <o.rempel at pengutronix.de>
---
 arch/arm/dts/imx8mp-skov.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/imx8mp-skov.dts b/arch/arm/dts/imx8mp-skov.dts
index 3243a41697..254e68feca 100644
--- a/arch/arm/dts/imx8mp-skov.dts
+++ b/arch/arm/dts/imx8mp-skov.dts
@@ -342,12 +342,16 @@ lan1: port at 0 {
 				reg = <0>;
 				phy-mode = "internal";
 				label = "lan1";
+				nvmem-cells = <&eth_mac1>;
+				nvmem-cell-names = "mac-address";
 			};
 
 			lan2: port at 1 {
 				reg = <1>;
 				phy-mode = "internal";
 				label = "lan2";
+				nvmem-cells = <&eth_mac2>;
+				nvmem-cell-names = "mac-address";
 			};
 
 			port at 2 {
-- 
2.39.2




More information about the barebox mailing list