Skip to content

Commit 74e074d

Browse files
glneor-vignesh
authored andcommitted
arm64: dts: ti: k3-j784s4: 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 418291e commit 74e074d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,16 @@
145145
status = "reserved";
146146
};
147147

148-
mcu_conf: syscon@40f00000 {
149-
compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
150-
reg = <0x00 0x40f00000 0x00 0x20000>;
148+
mcu_conf: bus@40f00000 {
149+
compatible = "simple-bus";
151150
#address-cells = <1>;
152151
#size-cells = <1>;
153-
ranges = <0x00 0x00 0x40f00000 0x20000>;
152+
ranges = <0x0 0x0 0x40f00000 0x20000>;
153+
154+
cpsw_mac_syscon: ethernet-mac-syscon@200 {
155+
compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
156+
reg = <0x200 0x8>;
157+
};
154158

155159
phy_gmii_sel: phy@4040 {
156160
compatible = "ti,am654-phy-gmii-sel";
@@ -553,7 +557,7 @@
553557
reg = <1>;
554558
ti,mac-only;
555559
label = "port1";
556-
ti,syscon-efuse = <&mcu_conf 0x200>;
560+
ti,syscon-efuse = <&cpsw_mac_syscon 0x0>;
557561
phys = <&phy_gmii_sel 1>;
558562
};
559563
};

0 commit comments

Comments
 (0)