Skip to content

Commit 0ab18ce

Browse files
glneor-vignesh
authored andcommitted
arm64: dts: ti: k3-am65: 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 447f85b commit 0ab18ce

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
*/
77

88
&cbass_mcu {
9-
mcu_conf: scm-conf@40f00000 {
10-
compatible = "syscon", "simple-mfd";
11-
reg = <0x0 0x40f00000 0x0 0x20000>;
9+
mcu_conf: bus@40f00000 {
10+
compatible = "simple-bus";
1211
#address-cells = <1>;
1312
#size-cells = <1>;
1413
ranges = <0x0 0x0 0x40f00000 0x20000>;
1514

15+
cpsw_mac_syscon: ethernet-mac-syscon@200 {
16+
compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
17+
reg = <0x200 0x8>;
18+
};
19+
1620
phy_gmii_sel: phy@4040 {
1721
compatible = "ti,am654-phy-gmii-sel";
1822
reg = <0x4040 0x4>;
@@ -358,7 +362,7 @@
358362
reg = <1>;
359363
ti,mac-only;
360364
label = "port1";
361-
ti,syscon-efuse = <&mcu_conf 0x200>;
365+
ti,syscon-efuse = <&cpsw_mac_syscon 0x0>;
362366
phys = <&phy_gmii_sel 1>;
363367
};
364368
};

0 commit comments

Comments
 (0)