From patchwork Sun Feb 11 13:55:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13552456 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53A21C4829A for ; Sun, 11 Feb 2024 13:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CzDjk0MSZi6+JqiMxcAp7Sz+v5AYjAiCu6/9vAQada4=; b=sJIKJsEI5/jaPG 6djfwLu+q5viUmoJ6u6ci7C1DasO5njM+Pw2LzVY61N+0aQJY8xn+4rW7MZn3wIebjrciwAkqrnD+ PaADTWwpZvrn9TG/0X3ECcXttsS4n5JGqrI2Qcx+aIhD0LzalGjKesqp1AeuBAzeApvG9mLydjo5V 88HrLOtgRiiBgPWxc4JKVnnS0os/w6FwS79gq33PzhUwL0LYRu7imDe+geZBeyH4LIxaRXAF1wx/T RaM/Ste6pCD9aTKA2jNWecXPqhteVm/I4EHbyFNyjVBQe4TNmWV51hzuEMTYpO/l1liZLKF04Y60g wyXhIGat/jJykLk9P26Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZAJA-00000002oS0-2Sny; Sun, 11 Feb 2024 13:55:48 +0000 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZAJ8-00000002oRd-0b9s for linux-arm-kernel@lists.infradead.org; Sun, 11 Feb 2024 13:55:47 +0000 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-6861538916cso13877476d6.3 for ; Sun, 11 Feb 2024 05:55:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707659744; x=1708264544; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gHezDecZCr8/1EVo1Tr1y30b1k/XQnc+ccR9wgFs+vM=; b=YLVQPYOLdig7ThafIwddbVIKDHt2Hqxk61MvL6GUhDThLXOLmDXiiFYDRLVcmQLwhl SnK4i5d4U1y2cDsLxKTJDeqtQ39lfvxEDjtSwGZgkaGkXCnDo2dnOKJMh84spFeqd/tu Dd55MsKZI9PYSDBOX1LIzZf7SeJ6/q22fQloAniWlh943WUNpf9N68nrDFHPm/MCAuzF lb/06AIlvDx1jF/qKkLFhaMVkD/X5spXMHP3bvGqfPX1O/pupecj5hDRVkSL0tK6887b IR51b8Rx6sks8nYmh32uuu/g62TobsPxhzHUDkUo2IPGrCKJVfDM0oSWDV6qnj12P5OI ehCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707659744; x=1708264544; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gHezDecZCr8/1EVo1Tr1y30b1k/XQnc+ccR9wgFs+vM=; b=G6wOAzdWIIrJgRWlk+tGnD+wbNwgtS0J31fh61ijvb0/Q4JqSUcdm+Ixv9NiNhL/Sa lXbrUNYoCM4/s5VVv//t5MQCtCkwQHi2pddRfLbB3UjgOZG9Zqcw7f18TIp4hn3RfJjQ OjtWw7lVepWzg+mSucAZ3iFtRMglR11leK9p3r5E4sTudam2Heql7YFnrrI1BQv1z4Hn z9BBB9hqNpkV5KncCSSSxA60g5tHWigLpCTPg/ambckaN0vNxV5baLIpgnTMROeKjjrq jk+0PsgIlLxWt29roGYCjd3jp3zfL1ovRhQzjE2bGIlYnxC3voc5tklltXmvItmGFwlU Knnw== X-Gm-Message-State: AOJu0YzrlMglLPqLCDA5OOs2GduXe1O6Bo1u0VzdlU95dgDYEoe2KNlv Wap6w/wPfyvnoAd714z/zMvofxn1RaLGk8UrqlJEYqeE/UcHYL1vJigMTKo1 X-Google-Smtp-Source: AGHT+IF6GSK5ddTlqsM9+t2Oe465rwkV8tBFzprzS4PpRTI3dizThB6L0Ca5HwCPbVRE/G8fVbDNQw== X-Received: by 2002:a0c:e28d:0:b0:68c:cd52:967e with SMTP id r13-20020a0ce28d000000b0068ccd52967emr4155841qvl.38.1707659743882; Sun, 11 Feb 2024 05:55:43 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVjEpSkevZY0QXGN39PD9q2XxycynkMr1r0oIF3Aaq6hVFxTEq+bMCRksBtjl9ouyhbqcOpfMxgZ/MfWHlfRsvxIn6xaMZkaLGeYlatBGzC3PVWEcWWKaR26Eu4Tmhp+iwb8rkMSYXVrRLGQt+kfOCyAuJtLhYpvizShP8Ey64E7m28LX/iI2T4UR0NRK4SJziSAxhZ/oySUBaDZcgb7SoW5LxMvVgkfCqmGZmRJIsXUlOprfg7T/ali0vG/Qg3g5QpPFXRLut7FuRIP6k+gg8RshDiausUnDsvakFNq6HfvQaPtJhlJXrwGVsjjzl0DMwCGNhgjKahWBahPbsBcSyueATD1Ianw48FYAFLMw4ERxi2yzBOZALgDa5DH32J1402HMFUKNLm14SJaz/xOJ9a Received: from aford-System-Version.lan ([2601:447:d002:5be:c8c7:5c6f:e011:4867]) by smtp.gmail.com with ESMTPSA id pj11-20020a0562144b0b00b0068cdbdb8af8sm1823912qvb.119.2024.02.11.05.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 05:55:43 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mp-beacon: Configure multiple queues on eqos Date: Sun, 11 Feb 2024 07:55:34 -0600 Message-ID: <20240211135535.68516-1-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_055546_206929_6D4181A1 X-CRM114-Status: UNSURE ( 8.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The imx8mp-beacon SOM has an integrated PHY connected to the EQOS ethernet controller which can support up to five queues. Configure these queues in the same manor as done on the imx8mp-evk. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi index 2ec282b91c42..8be251b69378 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi @@ -50,6 +50,8 @@ &eqos { phy-mode = "rgmii-id"; phy-handle = <ðphy0>; snps,force_thresh_dma_mode; + snps,mtl-rx-config = <&mtl_rx_setup>; + snps,mtl-tx-config = <&mtl_tx_setup>; status = "okay"; mdio { @@ -66,6 +68,71 @@ ethphy0: ethernet-phy@3 { interrupts = <10 IRQ_TYPE_LEVEL_LOW>; }; }; + + mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use = <5>; + snps,rx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,priority = <0x1>; + snps,map-to-dma-channel = <0>; + }; + + queue1 { + snps,dcb-algorithm; + snps,priority = <0x2>; + snps,map-to-dma-channel = <1>; + }; + + queue2 { + snps,dcb-algorithm; + snps,priority = <0x4>; + snps,map-to-dma-channel = <2>; + }; + + queue3 { + snps,dcb-algorithm; + snps,priority = <0x8>; + snps,map-to-dma-channel = <3>; + }; + + queue4 { + snps,dcb-algorithm; + snps,priority = <0xf0>; + snps,map-to-dma-channel = <4>; + }; + }; + + mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use = <5>; + snps,tx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,priority = <0x1>; + }; + + queue1 { + snps,dcb-algorithm; + snps,priority = <0x2>; + }; + + queue2 { + snps,dcb-algorithm; + snps,priority = <0x4>; + }; + + queue3 { + snps,dcb-algorithm; + snps,priority = <0x8>; + }; + + queue4 { + snps,dcb-algorithm; + snps,priority = <0xf0>; + }; + }; }; &flexspi {