From 05079f35de4bdd5c0341687de4d5dce55ee15485 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Wed, 21 Feb 2024 17:17:16 +0100 Subject: [PATCH] UPSTREAM: arm64: tegra: Add AXI configuration for Tegra234 MGBE The MGBE devices found on Tegra234 need their AXI interface configured to operate at peak performance. Ideally we would do this in the driver based off the compatible string, but the DT bindings already specify a separate mechanism, so reuse that. Bug 3820445 Bug 4293378 Signed-off-by: Thierry Reding Signed-off-by: Jon Hunter Change-Id: I206b4f47b0243b21064df1dedcad05e9f316507f Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3082845 (cherry picked from commit e8a5ee3d34777658bddfcf2e2ffc1f77be73c189) Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3083874 Reviewed-by: Brad Griffis GVS: Gerrit_Virtual_Submit --- tegra234.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tegra234.dtsi b/tegra234.dtsi index 3f16595..84c7415 100644 --- a/tegra234.dtsi +++ b/tegra234.dtsi @@ -1461,6 +1461,14 @@ iommus = <&smmu_niso0 TEGRA234_SID_MGBE>; power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEA>; status = "disabled"; + + snps,axi-config = <&mgbe0_axi_setup>; + + mgbe0_axi_setup: stmmac-axi-config { + snps,blen = <256 128 64 32>; + snps,rd_osr_lmt = <63>; + snps,wr_osr_lmt = <63>; + }; }; ethernet@6900000 { @@ -1495,6 +1503,14 @@ iommus = <&smmu_niso0 TEGRA234_SID_MGBE_VF1>; power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEB>; status = "disabled"; + + snps,axi-config = <&mgbe1_axi_setup>; + + mgbe1_axi_setup: stmmac-axi-config { + snps,blen = <256 128 64 32>; + snps,rd_osr_lmt = <63>; + snps,wr_osr_lmt = <63>; + }; }; ethernet@6a00000 { @@ -1529,6 +1545,14 @@ iommus = <&smmu_niso0 TEGRA234_SID_MGBE_VF2>; power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEC>; status = "disabled"; + + snps,axi-config = <&mgbe2_axi_setup>; + + mgbe2_axi_setup: stmmac-axi-config { + snps,blen = <256 128 64 32>; + snps,rd_osr_lmt = <63>; + snps,wr_osr_lmt = <63>; + }; }; ethernet@6b00000 {