From patchwork Thu Feb 20 07:35:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Swathi K S X-Patchwork-Id: 13983527 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 373B71EE00D for ; Thu, 20 Feb 2025 09:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740042814; cv=none; b=tuMIN/VWWh2nvl5lwwgl304Lf5EkZ/KQSpC86K0Y/mCY1T8j+SYeIGGKV7FTCWIF8fwST4tLvJgDua7XPbiWGndGCBFClbaRoEMtW58HcTYAuyHrcxiaUEs6cb8FQasdkSojhwa7NxuW85BfmJWoJLeQIz/PH+i6jx6QqehPP18= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740042814; c=relaxed/simple; bh=xsdLHXSw3mdQ7eea7plNyi0z/9AFEsVX5RtC1AnHU6k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=S200tbDlLvMHpPQxK9vM9/MOpv09O31pXiTt/WrYLxceG6P8Y3V+XVXHDpEjKa+AmkRbI6tmsBktG3bFoI1L5VCq4MMEw8cukEOOHSySZD1JC7+CA42y6cMsJujoovBxyNYMQy9bKEThxrTds3w6lm5A3LQf/P+5OViiRWE8cT8= 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=ISWJ+jGq; arc=none smtp.client-ip=203.254.224.34 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="ISWJ+jGq" Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20250220091330epoutp04d3138973dd91c783fc03fecf0369a0a5~l37eKSmvh1734017340epoutp04k for ; Thu, 20 Feb 2025 09:13:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20250220091330epoutp04d3138973dd91c783fc03fecf0369a0a5~l37eKSmvh1734017340epoutp04k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1740042810; bh=S357BBwJWVMXtJUDbTDbqvLbzmfGEzzrnbOin0HIOq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ISWJ+jGqph4UbWt7Dq3XKpJa7O+BeBYu7HGICb9ONGZeHSswwk64iNfgF5dLM9bwM pGv9JvV59jtjFfauXU60ZjznXbRv9y7dcuDK94NYue6U0UtflsBvt+UAt+9VJ2WJfB u8r5hSxO7FbN0X/PIEdd8z3f4hNX4AOPOjMbPpNo= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20250220091329epcas5p3cb87aba204387db1f99f3c74e8650c3a~l37du3C_V2116321163epcas5p3w; Thu, 20 Feb 2025 09:13:29 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.175]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Yz6xh0dQjz4x9QB; Thu, 20 Feb 2025 09:13:28 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 11.9F.19933.732F6B76; Thu, 20 Feb 2025 18:13:28 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20250220073944epcas5p495ee305ca577a7e1be51ff916f20fc53~l2pmVGhdr3017430174epcas5p4J; Thu, 20 Feb 2025 07:39:44 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20250220073944epsmtrp2897d904f4e9cb2c09cca0c67f46a70e4~l2pmT618j1308313083epsmtrp2J; Thu, 20 Feb 2025 07:39:44 +0000 (GMT) X-AuditID: b6c32a4a-b87c770000004ddd-fe-67b6f2371a88 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id F2.65.33707.04CD6B76; Thu, 20 Feb 2025 16:39:44 +0900 (KST) Received: from cheetah.samsungds.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250220073941epsmtip267bc747019e436c85163dec09917fd26~l2pkKVDFj3266832668epsmtip2t; Thu, 20 Feb 2025 07:39:41 +0000 (GMT) From: Swathi K S To: krzk+dt@kernel.org, linux-fsd@tesla.com, robh@kernel.org, conor+dt@kernel.org, richardcochran@gmail.com, alim.akhtar@samsung.com Cc: jayati.sahu@samsung.com, swathi.ks@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pankaj.dubey@samsung.com, ravi.patel@samsung.com, gost.dev@samsung.com Subject: [PATCH v7 1/2] arm64: dts: fsd: Add Ethernet support for FSYS0 Block of FSD SoC Date: Thu, 20 Feb 2025 13:05:26 +0530 Message-Id: <20250220073527.22233-2-swathi.ks@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250220073527.22233-1-swathi.ks@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmlq7Fp23pBjubGC0ezNvGZrFm7zkm i/lHz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lV2Vtw8ma+yTbqvhrz+TX3J9dPXe//Of7535mgs1G51unIg7RT jsdVvFyij9pNU2Ipzkg01GIuKk4EABypPmjVAgAA X-CMS-MailID: 20250220073944epcas5p495ee305ca577a7e1be51ff916f20fc53 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20250220073944epcas5p495ee305ca577a7e1be51ff916f20fc53 References: <20250220073527.22233-1-swathi.ks@samsung.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The FSD SoC contains two instances of Synopsys DWC QoS Ethernet IP, one in FSYS0 block and other in PERIC block. The ethernet interface is managed by a switch which is not managed by Linux. Adds device tree node for Ethernet in FSYS0 Block and enables the same for FSD platform. Signed-off-by: Pankaj Dubey Signed-off-by: Jayati Sahu Signed-off-by: Swathi K S --- arch/arm64/boot/dts/tesla/fsd-evb.dts | 10 ++++ arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 56 ++++++++++++++++++++++ arch/arm64/boot/dts/tesla/fsd.dtsi | 20 ++++++++ 3 files changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts index 8d7794642900..321270a07651 100644 --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts @@ -64,6 +64,16 @@ }; }; +ðernet0 { + status = "okay"; + + phy-mode = "rgmii-id"; + fixed-link { + speed = <1000>; + full-duplex; + }; +}; + &fin_pll { clock-frequency = <24000000>; }; diff --git a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi index 3f898cf4874c..cb437483ff6e 100644 --- a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi @@ -64,6 +64,62 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + eth0_tx_clk: eth0-tx-clk-pins { + samsung,pins = "gpf0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth0_tx_data: eth0-tx-data-pins { + samsung,pins = "gpf0-1", "gpf0-2", "gpf0-3", "gpf0-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth0_tx_ctrl: eth0-tx-ctrl-pins { + samsung,pins = "gpf0-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth0_phy_intr: eth0-phy-intr-pins { + samsung,pins = "gpf0-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth0_rx_clk: eth0-rx-clk-pins { + samsung,pins = "gpf1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth0_rx_data: eth0-rx-data-pins { + samsung,pins = "gpf1-1", "gpf1-2", "gpf1-3", "gpf1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth0_rx_ctrl: eth0-rx-ctrl-pins { + samsung,pins = "gpf1-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth0_mdio: eth0-mdio-pins { + samsung,pins = "gpf1-6", "gpf1-7"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_peric { diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index 690b4ed9c29b..01850fbf761f 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -1007,6 +1007,26 @@ clocks = <&clock_fsys0 UFS0_MPHY_REFCLK_IXTAL26>; clock-names = "ref_clk"; }; + + ethernet0: ethernet@15300000 { + compatible = "tesla,fsd-ethqos"; + reg = <0x0 0x15300000 0x0 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&clock_fsys0 FSYS0_EQOS_TOP0_IPCLKPORT_CLK_PTP_REF_I>, + <&clock_fsys0 FSYS0_EQOS_TOP0_IPCLKPORT_ACLK_I>, + <&clock_fsys0 FSYS0_EQOS_TOP0_IPCLKPORT_HCLK_I>, + <&clock_fsys0 FSYS0_EQOS_TOP0_IPCLKPORT_RGMII_CLK_I>, + <&clock_fsys0 FSYS0_EQOS_TOP0_IPCLKPORT_CLK_RX_I>; + clock-names = "ptp_ref", "master_bus", "slave_bus", "tx", "rx"; + pinctrl-names = "default"; + pinctrl-0 = <ð0_tx_clk>, <ð0_tx_data>, <ð0_tx_ctrl>, + <ð0_phy_intr>, <ð0_rx_clk>, <ð0_rx_data>, + <ð0_rx_ctrl>, <ð0_mdio>; + local-mac-address = [00 00 00 00 00 00]; + iommus = <&smmu_fsys0 0x0 0x1>; + status = "disabled"; + }; }; }; From patchwork Thu Feb 20 07:35:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Swathi K S X-Patchwork-Id: 13983528 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (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 2C1751EEA35 for ; Thu, 20 Feb 2025 09:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740042819; cv=none; b=GfPrMXjZcGCXB7dzogCyHt+xLYyk3oX9+3Unt31srLCqx2ECuSD6WwEae5N/pMVgEiJvAQCqhmsrsAFqgusu/pGVTX143G624C/mTD16nGrMotzlBTVV1b2wVxfJUVwHUv+aOo+D/bGodIIYZN3XZt+Lkn3RTH/Y//fIRr8z784= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740042819; c=relaxed/simple; bh=5ibUdrZykS/rvzLD79d3jUQ535b7mLcp6jwQ/GUUCKI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=B9D+vEWsyQdZlgw7uS+20uOod5EPO8xfslby38XU7vUo3rXAFUI3D5+iMZNvrfq+oHZYY1HLmmqaSxUxu/u5s0g3nbKPLcu1/xSNpt6D3wH3qhRyCBzMeD7/yo2sb5HENBuDDo6V5YrGHKSUpQJHXJXO1YPzsvcwD0Y/Fs11rcg= 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=oZodfa6/; arc=none smtp.client-ip=203.254.224.24 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="oZodfa6/" Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20250220091335epoutp018f7521345e6b3f285016086afac12986~l37i3Tg8r0265002650epoutp01R for ; Thu, 20 Feb 2025 09:13:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20250220091335epoutp018f7521345e6b3f285016086afac12986~l37i3Tg8r0265002650epoutp01R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1740042815; bh=KtlAFheXTf0FyYerM+ptw8UEXD/JdHDfFRdfuDQNIG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oZodfa6/FYXQXQ2ll3M7ZYSFII4sthaBh90G0+WcygL0YNgmUpydlH2kE3gLAa6M8 ek0fIjcCtp7vMIIuqUWZvn6jjXrWL2xvpk5J0+WmGIowvivlHYWTqjNyHTppf/krJj zeOz28JQ7X/mWhmVbcBBeXnSH/g0oh6tqjoQtyrs= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20250220091334epcas5p25de5f2a47e2a158203a39f66252b16af~l37h3EAM41861518615epcas5p2J; Thu, 20 Feb 2025 09:13:34 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.182]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Yz6xl5dqXz4x9Q3; Thu, 20 Feb 2025 09:13:31 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C2.9F.19933.B32F6B76; Thu, 20 Feb 2025 18:13:31 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20250220073948epcas5p1d90c5111fda1ccc4395dbe918066caca~l2pp4ifXc1846718467epcas5p1b; Thu, 20 Feb 2025 07:39:48 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20250220073948epsmtrp1a4fee4634f8407d3ea5496e38fa5cd16~l2pp3lCzC2536525365epsmtrp1z; Thu, 20 Feb 2025 07:39:48 +0000 (GMT) X-AuditID: b6c32a4a-c1fda70000004ddd-05-67b6f23b530f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 8E.DC.23488.34CD6B76; Thu, 20 Feb 2025 16:39:47 +0900 (KST) Received: from cheetah.samsungds.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250220073945epsmtip2c91087019405c5a6c934b83eed0b4e48~l2pnwvZ953267832678epsmtip2k; Thu, 20 Feb 2025 07:39:45 +0000 (GMT) From: Swathi K S To: krzk+dt@kernel.org, linux-fsd@tesla.com, robh@kernel.org, conor+dt@kernel.org, richardcochran@gmail.com, alim.akhtar@samsung.com Cc: jayati.sahu@samsung.com, swathi.ks@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pankaj.dubey@samsung.com, ravi.patel@samsung.com, gost.dev@samsung.com Subject: [PATCH v7 2/2] arm64: dts: fsd: Add Ethernet support for PERIC Block of FSD SoC Date: Thu, 20 Feb 2025 13:05:27 +0530 Message-Id: <20250220073527.22233-3-swathi.ks@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250220073527.22233-1-swathi.ks@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmuq71p23pBgf3aVo8mLeNzWLN3nNM FvOPnGO1uHlgJ5PFkVNLmCxezrrHZrHp8TVWi4evwi0u75rDZjHj/D4mi2MLxCwWbf3CbvHw wx52iyNnXjBb/N+zg93iy8ab7A4CHjtn3WX32LSqk81j85J6j74tqxg9/jXNZff4vEkugC0q 2yYjNTEltUghNS85PyUzL91WyTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMH6GolhbLE nFKgUEBicbGSvp1NUX5pSapCRn5xia1SakFKToFJgV5xYm5xaV66Xl5qiZWhgYGRKVBhQnbG 8w1rWAreqVYc3bmetYFxg3wXIyeHhICJxIYrs5m6GLk4hAR2M0o8WvaZBcL5xCixce4bRgjn G6PEt9997DAtVzo/sUMk9jJK/Fywjw3C+cIosWj6f0aQKjYBDYnrK7aDVYkItDFKHHvaCOYw C8xlklh1cBsbSJWwQJTEhVtPmEBsFgFViUPrvoF18wpYSezp/s8GsU9eYvWGA8wgNqeAtcTp RSeh7ujlkPi4w7iLkQPIdpGY01IAERaWeHV8C1SJlMTL/jYoO15idd9VFgg7Q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PxvECnmJ1RsOMIPYnALWEqcXnWQHsYWA ao6cvsc+gZFvASPDKkbJ1ILi3PTcZMMCw7zUcr3ixNzi0rx0veT83E2M4MDW0tjB+O5bk/4h RiYOxkOMEhzMSiK8bfVb0oV4UxIrq1KL8uOLSnNSiw8xSnOwKInzrjSMSBcSSE8sSc1OTS1I LYLJMnFwSjUwOUaZ84bLyDheslJdr8x8utHYJGSL0aUZZd6rIr3euv2pZGFXsLCK0XV24xJ4 tKHpzJdbZw8ed/5b8e2G8rRSw68JC1R939Vb3eC2f3ghvXTh+/i06I6uJSb29XZsM89PXBuc 9WQu064NP/Lk+i9tPHRPblv9celjccfSNrYsTRbfWstpsrDK6seEmZE92Tku6m8EzpvHlx78 pNyY9HXOTK0f7Ile5YE7d858KqcgsmDV38Pznu5tsjY2/vW4R6ZVfEfHaa8yBYb58p9fvfjL yyKyWm67I/v1gIVSPydN3ui30bz3Qmh2z5OgyN/FgVc22J89aNXuOG03r/MV53cyRg21zGeZ Ly75JxL4JUteiaU4I9FQi7moOBEA6ti4N9sCAAA= X-CMS-MailID: 20250220073948epcas5p1d90c5111fda1ccc4395dbe918066caca X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20250220073948epcas5p1d90c5111fda1ccc4395dbe918066caca References: <20250220073527.22233-1-swathi.ks@samsung.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The FSD SoC contains two instances of Synopsys DWC QoS Ethernet IP, one in FSYS0 block and other in PERIC block. The ethernet interface is connected to a switch which is not managed by Linux. Adds device tree node for Ethernet in PERIC Block and enables the same for FSD platform. Signed-off-by: Pankaj Dubey Signed-off-by: Jayati Sahu Signed-off-by: Swathi K S --- arch/arm64/boot/dts/tesla/fsd-evb.dts | 10 ++++ arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 56 ++++++++++++++++++++++ arch/arm64/boot/dts/tesla/fsd.dtsi | 27 +++++++++++ 3 files changed, 93 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts index 321270a07651..9ff22e1c8723 100644 --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts @@ -74,6 +74,16 @@ }; }; +ðernet1 { + status = "okay"; + + phy-mode = "rgmii-id"; + fixed-link { + speed = <1000>; + full-duplex; + }; +}; + &fin_pll { clock-frequency = <24000000>; }; diff --git a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi index cb437483ff6e..6f4658f57453 100644 --- a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi @@ -437,6 +437,62 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + eth1_tx_clk: eth1-tx-clk-pins { + samsung,pins = "gpf2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth1_tx_data: eth1-tx-data-pins { + samsung,pins = "gpf2-1", "gpf2-2", "gpf2-3", "gpf2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth1_tx_ctrl: eth1-tx-ctrl-pins { + samsung,pins = "gpf2-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth1_phy_intr: eth1-phy-intr-pins { + samsung,pins = "gpf2-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth1_rx_clk: eth1-rx-clk-pins { + samsung,pins = "gpf3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth1_rx_data: eth1-rx-data-pins { + samsung,pins = "gpf3-1", "gpf3-2", "gpf3-3", "gpf3-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth1_rx_ctrl: eth1-rx-ctrl-pins { + samsung,pins = "gpf3-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + eth1_mdio: eth1-mdio-pins { + samsung,pins = "gpf3-6", "gpf3-7"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_pmu { diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index 01850fbf761f..f96a69e25156 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -979,6 +979,33 @@ memory-region = <&mfc_left>; }; + ethernet1: ethernet@14300000 { + compatible = "tesla,fsd-ethqos"; + reg = <0x0 0x14300000 0x0 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_PTP_REF_I>, + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_ACLK_I>, + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_HCLK_I>, + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_RGMII_CLK_I>, + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_RX_I>, + <&clock_peric PERIC_BUS_D_PERIC_IPCLKPORT_EQOSCLK>, + <&clock_peric PERIC_BUS_P_PERIC_IPCLKPORT_EQOSCLK>, + <&clock_peric PERIC_EQOS_PHYRXCLK_MUX>, + <&clock_peric PERIC_EQOS_PHYRXCLK>, + <&clock_peric PERIC_DOUT_RGMII_CLK>; + clock-names = "ptp_ref", "master_bus", "slave_bus", "tx", "rx", + "master2_bus", "slave2_bus", "eqos_rxclk_mux", + "eqos_phyrxclk", "dout_peric_rgmii_clk"; + pinctrl-names = "default"; + pinctrl-0 = <ð1_tx_clk>, <ð1_tx_data>, <ð1_tx_ctrl>, + <ð1_phy_intr>, <ð1_rx_clk>, <ð1_rx_data>, + <ð1_rx_ctrl>, <ð1_mdio>; + local-mac-address = [00 00 00 00 00 00]; + iommus = <&smmu_peric 0x0 0x1>; + status = "disabled"; + }; + ufs: ufs@15120000 { compatible = "tesla,fsd-ufs"; reg = <0x0 0x15120000 0x0 0x200>, /* 0: HCI standard */