]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: ti: k3-am62p: use eFuse MAC Address for CPSW3G Port 1
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Tue, 4 Jun 2024 10:44:25 +0000 (16:14 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 12 Jun 2024 16:01:28 +0000 (21:31 +0530)
Add the "ethernet-mac-syscon" node within "wkup_conf" node corresponding to
the CTRLMMR_MAC_IDx registers within the CTRL_MMR space. Assign the
compatible "ti,am62p-cpsw-mac-efuse" to enable "syscon_regmap" operations
on these registers. The MAC Address programmed in the eFuse is accessible
through the CTRLMMR_MAC_IDx registers. The "ti,syscon-efuse" device-tree
property points to the CTRLMMR_MAC_IDx registers, allowing the CPSW driver
to fetch the MAC Address and assign it to the network interface associated
with CPSW3G MAC Port 1.

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240604104425.3770037-1-s-vadapalli@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi
arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi

index 2b9bc77a054045ce744d077202c3c883c4856d1b..eed06506f617bccad3ea65b5bda0af128a05d5b1 100644 (file)
                                label = "port1";
                                phys = <&phy_gmii_sel 1>;
                                mac-address = [00 00 00 00 00 00];
+                               ti,syscon-efuse = <&cpsw_mac_syscon 0x0>;
                                status = "disabled";
                        };
 
index c71d9624ea27712c6034679d0ea8fe31395bdc20..71784e10b4f1fc27208ea1686757aa68752d9b83 100644 (file)
                        bootph-all;
                };
 
+               cpsw_mac_syscon: ethernet-mac-syscon@200 {
+                       compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
+                       reg = <0x200 0x8>;
+               };
+
                usb0_phy_ctrl: syscon@4008 {
                        compatible = "ti,am62-usb-phy-ctrl", "syscon";
                        reg = <0x4008 0x4>;