mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Oleksij Rempel <o.rempel@pengutronix.de>
Subject: [PATCH v2] ARM: i.MX8MP: skov: add MAC address assignment support
Date: Tue, 12 Mar 2024 15:27:08 +0100	[thread overview]
Message-ID: <20240312142708.3766405-1-o.rempel@pengutronix.de> (raw)

Assign MAC address to the switch ports.

Signed-off-by: Oleksij Rempel <o.rempel@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@0 {
 				reg = <0>;
 				phy-mode = "internal";
 				label = "lan1";
+				nvmem-cells = <&eth_mac1>;
+				nvmem-cell-names = "mac-address";
 			};
 
 			lan2: port@1 {
 				reg = <1>;
 				phy-mode = "internal";
 				label = "lan2";
+				nvmem-cells = <&eth_mac2>;
+				nvmem-cell-names = "mac-address";
 			};
 
 			port@2 {
-- 
2.39.2




             reply	other threads:[~2024-03-12 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12 14:27 Oleksij Rempel [this message]
2024-03-13  6:31 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240312142708.3766405-1-o.rempel@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox