From patchwork Tue Jul 30 09:16:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Swathi K S X-Patchwork-Id: 815573 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA9E5197A72 for ; Tue, 30 Jul 2024 09:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722331744; cv=none; b=cJbbysXsLC+MLVO3mHXnJesSFLbD9SgQe26dIUjGSOzUpyW/F7i1r5Su576CosaIlewEeiy6NCPwiBiAqLaMayO9CsDPgzlZiW1C9mXxNrWfZa1wXnTKv0Msaa4qQ/kZS4qEdqI7fvgK4JAiJCr+6cgIAkPeA5INAvsZMej3414= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722331744; c=relaxed/simple; bh=JDLf/B1OE0QEgQa2cfvHIESoELxOae1ZNLLxvUK7XeM=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:References; b=D14zq7Uzs8+YwfMj3sW3+vDDAAXtRZy11Tup4rBbdpk5P7fEky22bKINc61tp7tIJxbgXXIR84HNqAUEh44A5ei2g45GjF+J1g2U2j08TjiTZoMuBD5nLafjzOWtR94/qcV9xjS7oS7gyEMFDr/ldav1G/rsGUxHUBoAy39E2XU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=PcBq0Fec; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="PcBq0Fec" Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240730092859epoutp031264c3d9b5de91ef7a7ea5133a84a089~m85d_rk7q1189211892epoutp03g for ; Tue, 30 Jul 2024 09:28:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240730092859epoutp031264c3d9b5de91ef7a7ea5133a84a089~m85d_rk7q1189211892epoutp03g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1722331739; bh=31+GD5vlbAkLCC/Q9DsLEnRj4m6as6wHHp1x9BJD0mk=; h=From:To:Cc:Subject:Date:References:From; b=PcBq0Fecjtn0O4hwi2da6wg60AmrDGUx5tD3Lkkf8IiM/JBCOCnb7RDQZxZQm3PX3 t9h0UL+f1U+1Spwrz4f9f/3e3y7dvfrI4AqjTw5sR1Ae2pm/flSutSHLF6OP+usbIo /A6StV2NDugiKHrrxcx7Q61mZvYgQH6C91wYQUdU= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20240730092857epcas5p28420822b48605bdd7743175d2c0d0da3~m85cgr7BM2897228972epcas5p2D; Tue, 30 Jul 2024 09:28:57 +0000 (GMT) Received: from epsmgec5p1-new.samsung.com (unknown [182.195.38.182]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4WY9076dkmz4x9Pw; Tue, 30 Jul 2024 09:28:55 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmgec5p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id F4.5E.19863.752B8A66; Tue, 30 Jul 2024 18:28:55 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20240730092847epcas5p1338397b0ec01a4f0c8387704fb390a40~m85Sffr1Z0679006790epcas5p1m; Tue, 30 Jul 2024 09:28:47 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240730092847epsmtrp2075aa4b1b9e9d9e476b59f01d603d559~m85Sd9Lfo2616126161epsmtrp2_; Tue, 30 Jul 2024 09:28:47 +0000 (GMT) X-AuditID: b6c32a50-ef5fe70000004d97-d9-66a8b257e3a3 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id 01.7D.19367.E42B8A66; Tue, 30 Jul 2024 18:28:47 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240730092843epsmtip257c05d2c5cb84342721117943a0c3902~m85O572Vm2110121101epsmtip2P; Tue, 30 Jul 2024 09:28:43 +0000 (GMT) From: Swathi K S To: krzk@kernel.org, robh@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, richardcochran@gmail.com, mcoquelin.stm32@gmail.com, andrew@lunn.ch, alim.akhtar@samsung.com, linux-fsd@tesla.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, alexandre.torgue@foss.st.com, peppe.cavallaro@st.com, joabreu@synopsys.com, swathi.ks@samsung.com, rcsekar@samsung.com, ssiddha@tesla.com, jayati.sahu@samsung.com, pankaj.dubey@samsung.com, ravi.patel@samsung.com, gost.dev@samsung.com Subject: [PATCH v4 0/4] net: stmmac: dwc-qos: Add FSD EQoS support Date: Tue, 30 Jul 2024 14:46:44 +0530 Message-Id: <20240730091648.72322-1-swathi.ks@samsung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VIID2xJDU7NbUgtQgmy8TBKdXAlJnZf6dALtd+ZmC6+uas kvOa602f+C1Nfit/ZnrBjXeeLKr3Vtxi3GU+76BijtPXhdeOzjcTNFmz2CD6Rb30tPhufpn6 s1ISJ/OuHt0ya7e0T37TrZL7GSuu87+ZX8phYSJyKjq5vF5W/r1HZ92WqYcv7Hmt7y31zvZW YmxO7XP/Rerrma2af3hPdfnkIBT1K3nSl6rtEy6Z/bj3/oX/Ab2nASYf+3qPbo285bza9Pl3 9mkS65esst/YtmHesew1Z0/pxnk/qdliXNu0c+nGD8FLA6tffeNZd0iruF0tM+qW+rGvFazt c5RO/T/ZEhceaPTp1N8/y/5v3tu8fs1Pq/MXmux7bdZdjMg/+UDtq6YSS3FGoqEWc1FxIgBs IvW7IAMAAA== X-CMS-MailID: 20240730092847epcas5p1338397b0ec01a4f0c8387704fb390a40 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240730092847epcas5p1338397b0ec01a4f0c8387704fb390a40 References: Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: SD platform has two instances of EQoS IP, one is in FSYS0 block and another one is in PERIC block. This patch series add required DT binding, DT file modifications and platform driver specific changes for the same. Changes since v3: 1. Avoided using alias-id to configure the HW. 2. Addressed the review cooments on DT files given by Krzysztof 3. Modified the clock implementation. Here is the link to v3 patches for reference: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20230814112539.70453-2-sriranjani.p@samsung.com/ https://patchwork.kernel.org/project/linux-arm-kernel/patch/20230814112539.70453-3-sriranjani.p@samsung.com/ https://patchwork.kernel.org/project/linux-arm-kernel/patch/20230814112539.70453-4-sriranjani.p@samsung.com/ https://patchwork.kernel.org/project/linux-arm-kernel/patch/20230814112539.70453-5-sriranjani.p@samsung.com/ Swathi K S (4): dt-bindings: net: Add FSD EQoS device tree bindings net: stmmac: dwc-qos: Add FSD EQoS support arm64: dts: fsd: Add Ethernet support for FSYS0 Block of FSD SoC arm64: dts: fsd: Add Ethernet support for PERIC Block of FSD SoC .../devicetree/bindings/net/snps,dwmac.yaml | 5 +- .../devicetree/bindings/net/tesla,ethqos.yaml | 91 ++++++++++++++ arch/arm64/boot/dts/tesla/fsd-evb.dts | 18 +++ arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 112 ++++++++++++++++++ arch/arm64/boot/dts/tesla/fsd.dtsi | 47 ++++++++ .../stmicro/stmmac/dwmac-dwc-qos-eth.c | 90 ++++++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 28 ++++- include/linux/stmmac.h | 1 + 8 files changed, 388 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/tesla,ethqos.yaml