]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: tegra: Add AXI configuration for Tegra234 MGBE
authorThierry Reding <treding@nvidia.com>
Wed, 21 Feb 2024 16:17:16 +0000 (17:17 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 23 Feb 2024 17:19:46 +0000 (18:19 +0100)
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.

Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra234.dtsi

index 3f16595d099c5620b0d2dde77f0e2c6491c4a576..84c74155a5ca1b7b2958ae33ca99779d0872e44d 100644 (file)
                        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 {
                        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 {
                        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 {