Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2cb4b198 authored by Sunil Paidimarri's avatar Sunil Paidimarri
Browse files

ARM: dts: msm: Add multi queue support for sdx55



Add multi queue support in stmmac driver to
enable Avb and IPA offload data paths.

Change-Id: Ie7b77ce8c453bc94cadfeb4b185878a15e603a98
Acked-by: default avatarRahul Kawadgave <rahulak@qti.qualcomm.com>
Signed-off-by: default avatarSunil Paidimarri <hisunil@codeaurora.org>
parent 518d81ee
Loading
Loading
Loading
Loading
+63 −2
Original line number Diff line number Diff line
@@ -1406,6 +1406,65 @@
		status = "disabled";
	};

	mtl_rx_setup: rx-queues-config {
		snps,rx-queues-to-use = <4>;
		snps,rx-sched-sp;

		queue0 {
			snps,dcb-algorithm;
			snps,map-to-dma-channel = <0x0>;
			snps,route-up;
			snps,route-ptp;
			snps,route-dcbcp;
		};

		queue1 {
			snps,dcb-algorithm;
			snps,map-to-dma-channel = <0x1>;
			snps,route-avcp;
			snps,route-multi-broad;
		};

		queue2 {
			snps,avb-algorithm;
			snps,map-to-dma-channel = <0x2>;
		};

		queue3 {
			snps,avb-algorithm;
			snps,map-to-dma-channel = <0x3>;
			snps,priority = <0x0C>;
		};
	};

	mtl_tx_setup: tx-queues-config {
		snps,tx-queues-to-use = <5>;
		snps,tx-sched-sp;
		queue0 {
			snps,dcb-algorithm;
		};

		queue1 {
			snps,dcb-algorithm;
		};

		queue2 {
			snps,avb-algorithm;
			snps,send_slope = <0x1000>;
			snps,idle_slope = <0x1000>;
			snps,high_credit = <0x3E800>;
			snps,low_credit = <0xFFC18000>;
		};

		queue3 {
			snps,avb-algorithm;
			snps,send_slope = <0x1000>;
			snps,idle_slope = <0x1000>;
			snps,high_credit = <0x3E800>;
			snps,low_credit = <0xFFC18000>;
		};
	};

	ethqos_hw: qcom,ethernet@00020000 {
		compatible = "qcom,sdxprairie-ethqos";
		qcom,arm-smmu;
@@ -1424,8 +1483,10 @@
			"phy-intr",	"ptp_pps_irq_0", "ptp_pps_irq_1";

		snps,tso;
		rx-fifo-depth = <4096>;
		tx-fifo-depth = <4096>;
		rx-fifo-depth = <16384>;
		tx-fifo-depth = <16384>;
		snps,mtl-rx-config = <&mtl_rx_setup>;
		snps,mtl-tx-config = <&mtl_tx_setup>;

		vreg_rgmii-supply = <&pmxprairie_vref_rgmii>;
		vreg_emac_phy-supply =  <&vreg_emac_phy>;