Skip to contentSkip to conversation

ARM: dts: i.MX6: drop OCOTP MAC address provider

PATCH Applied Jonas Rebmann 2 participants 2 messages Dec 13, 2024 – Dec 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: i.MX6: drop OCOTP MAC address provider

Now that the MAC address can be read properly through the NVMEM framework, there is no need for the custom Barebox MAC address provider anymore. As <0x20 0x6> is defined in the nvmem-layout for imx6 to hold the mac, the definitions in the legacy format can safely be dropped.

---
 arch/arm/dts/imx6dl-advantech-rom-7421.dts   | 4 ----
 arch/arm/dts/imx6dl-hummingboard.dts         | 4 ----
 arch/arm/dts/imx6dl-hummingboard2.dts        | 4 ----
 arch/arm/dts/imx6dl-wandboard.dts            | 4 ----
 arch/arm/dts/imx6q-h100.dts                  | 4 ----
 arch/arm/dts/imx6q-hummingboard.dts          | 4 ----
 arch/arm/dts/imx6q-hummingboard2.dts         | 4 ----
 arch/arm/dts/imx6q-wandboard.dts             | 4 ----
 arch/arm/dts/imx6qdl-dfi-fs700-m60.dtsi      | 4 ----
 arch/arm/dts/imx6qdl-nitrogen6x.dtsi         | 4 ----
 arch/arm/dts/imx6qdl-phytec-pfla02.dtsi      | 4 ----
 arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi | 4 ----
 arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 4 ----
 arch/arm/dts/imx6qdl-sabrelite.dtsi          | 4 ----
 arch/arm/dts/imx6qdl-sabresd.dtsi            | 4 ----
 arch/arm/dts/imx6qdl-tqma6x.dtsi             | 4 ----
 arch/arm/dts/imx6qdl-tx6x.dtsi               | 4 ----
 arch/arm/dts/imx6s-riotboard.dts             | 4 ----
 18 files changed, 72 deletions(-)
arch/arm/dts/imx6dl-advantech-rom-7421.dts +0 -4
index 9a1f3a2bf8cf8e6eeed8ce378a4d0e7e251340d9..9bb17441ae6e58ae1d2009af90f4126ec9927c7b 100755
@@ -86,10 +86,6 @@ &i2c1 {
 	status = "okay";
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart1>;
arch/arm/dts/imx6dl-hummingboard.dts +0 -4
index a0e8ac84c630752f765dc2cc957e3bbcd4c4eccd..d3de326273554a523c80c685bef60d27c79bca42 100644
@@ -19,10 +19,6 @@ environment {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc2 {
 	#address-cells = <1>;
 	#size-cells = <1>;
arch/arm/dts/imx6dl-hummingboard2.dts +0 -4
index c8ac4cb8eb0bff963ae78c9e3336870abb4b5f1c..2530a8da602c550b38aaee6c7d9692f77a54e3d9 100644
@@ -51,10 +51,6 @@ / {
 	compatible = "solidrun,hummingboard2/dl", "fsl,imx6dl";
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc3 {
 	#address-cells = <1>;
 	#size-cells = <1>;
arch/arm/dts/imx6dl-wandboard.dts +0 -4
index e8d4a9003261ecdd53c6a046fa30f339a45c4ee3..391d118869b88536b629d7521ffe0b896079085b 100644
@@ -17,10 +17,6 @@ environment {
 	reg = <0x10000000 0x0>;
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc3 {
 	#address-cells = <1>;
 	#size-cells = <1>;
arch/arm/dts/imx6q-h100.dts +0 -4
index 7fda9f1222485f4dd6d77ccc2990f390ecf0b832..2cf8fb23d067357441658ff5b2ba4adc806db5a9 100644
@@ -50,10 +50,6 @@ environment {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc2 {
 	#address-cells = <1>;
 	#size-cells = <1>;
arch/arm/dts/imx6q-hummingboard.dts +0 -4
index 0bb4a6b48e3bfad024890fbede0dba7088a2f45e..e4d8cab6d834cca23b34540f19a48d5487e8364e 100644
@@ -19,10 +19,6 @@ environment {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc2 {
 	#address-cells = <1>;
 	#size-cells = <1>;
arch/arm/dts/imx6q-hummingboard2.dts +0 -4
index 6ef7f935e30e3cd16f1b28473bf9a0b2371f7b75..5144395094ced99d5801f87c42e38ce4a9ae695c 100644
@@ -67,10 +67,6 @@ &sata {
 	fsl,no-spread-spectrum;
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc3 {
 	#address-cells = <1>;
 	#size-cells = <1>;
arch/arm/dts/imx6q-wandboard.dts +0 -4
index 2cbaa8d8308173e82e0a44bd318cbf57f08f0338..77b1cf63cd577925efd7ee8b9bd6dff8e4e8b722 100644
@@ -17,10 +17,6 @@ environment {
 	reg = <0x10000000 0x0>;
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc3 {
 	#address-cells = <1>;
 	#size-cells = <1>;
arch/arm/dts/imx6qdl-dfi-fs700-m60.dtsi +0 -4
index 3ce8d0a5347c56e007f8c0f17df093c52fc1249a..0b46f2a9f3b24d91a36f6d2556d6539348a13c1a 100644
@@ -11,10 +11,6 @@ environment-emmc {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usbh1 {
 	phy_type = "utmi";
 	dr_mode = "host";
arch/arm/dts/imx6qdl-nitrogen6x.dtsi +0 -4
index 4411e89dedf6be0116944620eb27f9bd94beb70a..3b71a80a98faac4a748878c5f10122f24049ded4 100644
@@ -41,10 +41,6 @@ env_nor: partition@e0000 {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usbh1 {
 	phy_type = "utmi";
 	dr_mode = "host";
arch/arm/dts/imx6qdl-phytec-pfla02.dtsi +0 -4
index 56b42cd1ef49e4b414ccad31eb04453613915756..4ba6d90de0d58a6416c26827bf1074456488748a 100644
@@ -103,10 +103,6 @@ MX6QDL_PAD_SD4_DAT7__GPIO2_IO15	0x80000000
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &som_eeprom {
 	pagesize = <32>;
 };
arch/arm/dts/imx6qdl-phytec-phycard-som.dtsi +0 -4
index 5d287258bb6c491a500ac7ba5137e3dd7c744b04..6cdf82e2cdbf94e7259b8f48499f357de9a6f121 100644
@@ -144,10 +144,6 @@ MX6QDL_PAD_CSI0_DAT4__GPIO5_IO22	0x80000000 /* CD */
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &uart3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart3>;
arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi +0 -4
index c66a6a529dad5e40f40cb3456e6b2625cc5f0297..f244a82270f07bc2f6b506a2b59dc9cd15421154 100644
@@ -107,10 +107,6 @@ partition@140000 {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc4 {
 	partitions {
 		compatible = "fixed-partitions";
arch/arm/dts/imx6qdl-sabrelite.dtsi +0 -4
index 07e3879d85f1639fd523db09dada95e8d2750d5a..b01fbf9e1758284b1dc63f8f727a82f98c5ced55 100644
@@ -40,10 +40,6 @@ env_nor: partition@e0000 {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usbh1 {
 	phy_type = "utmi";
 	dr_mode = "host";
arch/arm/dts/imx6qdl-sabresd.dtsi +0 -4
index 4e3366f4feedd5b0fdea2b982f11aed85d6f3f42..b536a16db26b14d61780fc98172e96f6ccea3160 100644
@@ -12,10 +12,6 @@
 
 #include <arm/nxp/imx/imx6qdl-sabresd.dtsi>
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usbh1 {
 	phy_type = "utmi";
 	dr_mode = "host";
arch/arm/dts/imx6qdl-tqma6x.dtsi +0 -4
index 3bcd7ebf29df8ba132c41a46b2fda8166bb1b8c4..4e9a9c02882cda63f10cdce6d878fd5e370543b4 100644
@@ -91,10 +91,6 @@ MX6QDL_PAD_SD3_DAT7__SD3_DATA7		0x17059
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &i2c1 {
 	status = "okay";
 	clock-frequency = <100000>;
arch/arm/dts/imx6qdl-tx6x.dtsi +0 -4
index 139b735b6d4cfee75371311f237968e0b90f54e0..02dfc645c9140ed2f75f3413da46c4a5d1a2f16a 100644
@@ -79,10 +79,6 @@ MX6QDL_PAD_NANDF_ALE__SD4_RESET		0x0b0b1
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &usdhc4 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usdhc4>;
arch/arm/dts/imx6s-riotboard.dts +0 -4
index 5ddd30fb96d6a44bdc9295a5c955f5d3bbd609d6..57817c1197a71497abdf3c4b2024d12d6fe7a551 100644
@@ -38,10 +38,6 @@ environment_usdhc4: partition@e0000 {
 	};
 };
 
-&ocotp {
-	barebox,provide-mac-address = <&fec 0x620>;
-};
-
 &clks {
 	fsl,pmic-stby-poweroff;
 };

---
base-commit: a7ae043343c89e8b75904a41174b9b4cf2df35a0
change-id: 20241213-mx6-remove-mac-a8bdc5a657f7

Best regards,

Signature · 1 line
Jonas Rebmann <[email protected]>
maintainer Applied
#1 lore raw
Quoted 6 lines · Jonas Rebmann

Now that the MAC address can be read properly through the NVMEM framework, there is no need for the custom Barebox MAC address provider anymore. As <0x20 0x6> is defined in the nvmem-layout for imx6 to hold the mac, the definitions in the legacy format can safely be dropped.

Applied, thanks!

[1/1] ARM: dts: i.MX6: drop OCOTP MAC address provider
https://git.pengutronix.de/cgit/barebox/commit/?id=c7ecc80c9fe5 (link may not be stable)

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>