Skip to content

Commit c870321

Browse files
glneor-vignesh
authored andcommitted
arm64: dts: ti: k3-am62: Add cpsw-mac-efuse node to wkup_conf
The WKUP system controller address region contains an eFuse block with MAC addresses to be used by the Ethernet controller. The property “ti,syscon-efuse” contains a phandle to a syscon region and an offset into this region where the MAC addresses can be found. Currently "ti,syscon-efuse" points to the entire system controller address space node with an offset to the eFuse IP address. Instead add a cpsw-mac-efuse node to describe the exact eFuse area. Then point the Ethernet controller directly to this region, no offset needed. Signed-off-by: Andrew Davis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vignesh Raghavendra <[email protected]>
1 parent 00d2011 commit c870321

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arch/arm64/boot/dts/ti/k3-am62-main.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@
735735
label = "port1";
736736
phys = <&phy_gmii_sel 1>;
737737
mac-address = [00 00 00 00 00 00];
738-
ti,syscon-efuse = <&wkup_conf 0x200>;
738+
ti,syscon-efuse = <&cpsw_mac_syscon 0x0>;
739739
};
740740

741741
cpsw_port2: port@2 {

arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
reg = <0x14 0x4>;
2323
};
2424

25+
cpsw_mac_syscon: ethernet-mac-syscon@200 {
26+
compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
27+
reg = <0x200 0x8>;
28+
};
29+
2530
usb0_phy_ctrl: syscon@4008 {
2631
compatible = "ti,am62-usb-phy-ctrl", "syscon";
2732
reg = <0x4008 0x4>;

0 commit comments

Comments
 (0)