Skip to content

Commit 3128edb

Browse files
glneor-vignesh
authored andcommitted
arm64: dts: ti: k3-j7200: Add cpsw-mac-efuse node to mcu_conf
The MCU 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. This makes it so the system controller memory area does not need to be one big syscon area, describe this bus address area as the simple-bus it is. Signed-off-by: Andrew Davis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vignesh Raghavendra <[email protected]>
1 parent 0ab18ce commit 3128edb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,16 @@
164164
ti,timer-pwm;
165165
};
166166

167-
mcu_conf: syscon@40f00000 {
168-
compatible = "syscon", "simple-mfd";
169-
reg = <0x00 0x40f00000 0x00 0x20000>;
167+
mcu_conf: bus@40f00000 {
168+
compatible = "simple-bus";
170169
#address-cells = <1>;
171170
#size-cells = <1>;
172-
ranges = <0x00 0x00 0x40f00000 0x20000>;
171+
ranges = <0x0 0x0 0x40f00000 0x20000>;
172+
173+
cpsw_mac_syscon: ethernet-mac-syscon@200 {
174+
compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
175+
reg = <0x200 0x8>;
176+
};
173177

174178
phy_gmii_sel: phy@4040 {
175179
compatible = "ti,am654-phy-gmii-sel";
@@ -420,7 +424,7 @@
420424
reg = <1>;
421425
ti,mac-only;
422426
label = "port1";
423-
ti,syscon-efuse = <&mcu_conf 0x200>;
427+
ti,syscon-efuse = <&cpsw_mac_syscon 0x0>;
424428
phys = <&phy_gmii_sel 1>;
425429
};
426430
};

0 commit comments

Comments
 (0)