Skip to contentSkip to conversation

net: ti: am65-cpsw-nuss: Drop custom property "mac_efuse"

PATCH Superseded Roger Quadros 2 participants 4 messages Jul 20, 2023 – Jul 21, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover net: ti: am65-cpsw-nuss: Drop custom property "mac_efuse"

Hi,

We need to track the Device tree in Linux.
The approved property for MAC address EFUSE is "ti,syscon-efuse".

Use that and drop custom property "mac_efuse".

cheers,
-roger

Roger Quadros (2):
net: ti: am65-cpsw-nuss: Use approved property to get efuse address
arm: dts: k3-am625-sk-u-boot.dtsi: drop mac_efuse

 arch/arm/dts/k3-am625-sk-u-boot.dtsi |  3 --
 configs/am62x_evm_a53_defconfig      |  1 +
 drivers/net/ti/am65-cpsw-nuss.c      | 52 +++++++++++++++++++---------
 3 files changed, 37 insertions(+), 19 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 net: ti: am65-cpsw-nuss: Use approved property to get efuse address

The approved DT property for MAC efuse (ROM) address is "ti,syscon-efuse".

Use that and drop custom property "mac_efuse".

---
 configs/am62x_evm_a53_defconfig |  1 +
 drivers/net/ti/am65-cpsw-nuss.c | 52 +++++++++++++++++++++++----------
 2 files changed, 37 insertions(+), 16 deletions(-)
configs/am62x_evm_a53_defconfig +1 -0
index 7c3bc184cf..6757fe662d 100644
@@ -102,3 +102,4 @@ CONFIG_SYSRESET=y
 CONFIG_SPL_SYSRESET=y
 CONFIG_SYSRESET_TI_SCI=y
 CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
+CONFIG_SYSCON=y
drivers/net/ti/am65-cpsw-nuss.c +36 -16

82 lines not on this page · raw message

Signature · 1 line
2.34.1
#2 lore raw

RFC PATCH 2/2 arm: dts: k3-am625-sk-u-boot.dtsi: drop mac_efuse

In reply to Roger Quadros

This was a custom property and we don't need it anymore. We are now using the standard property "ti,syscon-efuse".

---

RFC because Nishanth can squash this into his DT sync series.

The /delete-property/ ranges also needs to be deleted along with the duplicate cpsw-phy-sel@04044. But first will need to teach
the driver to deal with the syscon node properly. phys = <&phy_gmii_sel n>;

Will send a follow up patch for that soon.

 arch/arm/dts/k3-am625-sk-u-boot.dtsi | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/dts/k3-am625-sk-u-boot.dtsi +0 -3
index 249155733a..54fdabdb8e 100644
@@ -128,9 +128,6 @@
 };
 
 &cpsw3g {
-	reg = <0x0 0x8000000 0x0 0x200000>,
-	      <0x0 0x43000200 0x0 0x8>;
-	reg-names = "cpsw_nuss", "mac_efuse";
 	/delete-property/ ranges;
 	bootph-pre-ram;
 
Signature · 1 line
2.34.1