]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: Add nvmem-cells to ethernet nodes for constant mac-addresses
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 28 Mar 2025 17:14:05 +0000 (18:14 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 4 Jul 2025 07:07:22 +0000 (09:07 +0200)
The efuse device tree description already has the two labels pointing to
the efuse nodes that specify the mac-addresses to be used. Wire them up
to the ethernet nodes. This is enough to make barebox pick the right
mac-addresses and pass them to Linux.

Suggested-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20250328171406.3307778-2-u.kleine-koenig@baylibre.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp131.dtsi
arch/arm/boot/dts/st/stm32mp133.dtsi

index 492bcf586361c487208439ed71a93c2bf83d5eb2..ace9495b9b062e9f96437681cc526fed7f9eac5e 100644 (file)
                                snps,axi-config = <&stmmac_axi_config_1>;
                                snps,tso;
                                access-controllers = <&etzpc 48>;
+                               nvmem-cells = <&ethernet_mac1_address>;
+                               nvmem-cell-names = "mac-address";
                                status = "disabled";
 
                                stmmac_axi_config_1: stmmac-axi-config {
index e48838374f0df4e003aee5046e45b49986c1daea..49583137b5972572d1feaa699c0c3a822a1b6f6d 100644 (file)
@@ -93,6 +93,8 @@
                snps,axi-config = <&stmmac_axi_config_2>;
                snps,tso;
                access-controllers = <&etzpc 49>;
+               nvmem-cells = <&ethernet_mac2_address>;
+               nvmem-cell-names = "mac-address";
                status = "disabled";
 
                stmmac_axi_config_2: stmmac-axi-config {