mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: robh+dt@kernel.org, aisheng.dong@nxp.com,
	qiangqing.zhang@nxp.com, davem@davemloft.net, kuba@kernel.org,
	shawnguo@kernel.org, s.hauer@pengutronix.de
Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com>
Subject: [PATCH 3/4] arm64: dts: imx8ulp: add fec node
Date: Sat, 20 Nov 2021 19:58:24 +0800	[thread overview]
Message-ID: <20211120115825.851798-4-peng.fan@oss.nxp.com> (raw)
In-Reply-To: <20211120115825.851798-1-peng.fan@oss.nxp.com>

From: Peng Fan <peng.fan@nxp.com>

Add ethernet node and its alias

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
index edac63cf3668..e3c658b45ae6 100644
--- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
@@ -16,6 +16,7 @@ / {
 	#size-cells = <2>;
 
 	aliases {
+		ethernet0 = &fec;
 		gpio0 = &gpiod;
 		gpio1 = &gpioe;
 		gpio2 = &gpiof;
@@ -365,6 +366,23 @@ usdhc2: mmc@298f0000 {
 				bus-width = <4>;
 				status = "disabled";
 			};
+
+			fec: ethernet@29950000 {
+				compatible = "fsl,imx8ulp-fec", "fsl,imx6ul-fec";
+				reg = <0x29950000 0x10000>;
+				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+				interrupt-names = "int0";
+				clocks = <&pcc4 IMX8ULP_CLK_ENET>,
+					 <&pcc4 IMX8ULP_CLK_ENET>,
+					 <&cgc1 IMX8ULP_CLK_ENET_TS_SEL>;
+				clock-names = "ipg", "ahb", "ptp";
+				assigned-clocks = <&cgc1 IMX8ULP_CLK_ENET_TS_SEL>;
+				assigned-clock-parents = <&sosc>;
+				assigned-clock-rates = <24000000>;
+				fsl,num-tx-queues = <1>;
+				fsl,num-rx-queues = <1>;
+				status = "disabled";
+			};
 		};
 
 		gpioe: gpio@2d000000 {
-- 
2.25.1


  parent reply	other threads:[~2021-11-20 11:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-20 11:58 [PATCH 0/4] dt-bindings/dts: add i.MX8ULP FEC Peng Fan (OSS)
2021-11-20 11:58 ` [PATCH 1/4] dt-bindings: net: fec: simplify yaml Peng Fan (OSS)
2021-11-22  2:07   ` Joakim Zhang
2021-11-23  9:29     ` Peng Fan
2021-11-23 10:39       ` Joakim Zhang
2021-11-30  2:03   ` Rob Herring
2021-11-20 11:58 ` [PATCH 2/4] dt-bindings: net: fec: Add imx8ulp compatible string Peng Fan (OSS)
2021-11-30  2:04   ` Rob Herring
2021-11-20 11:58 ` Peng Fan (OSS) [this message]
2021-11-22  2:07   ` [PATCH 3/4] arm64: dts: imx8ulp: add fec node Joakim Zhang
2021-11-20 11:58 ` [PATCH 4/4] arm64: dts: imx8ulp-evk: enable fec Peng Fan (OSS)
2021-11-20 15:26   ` Andrew Lunn
2021-11-22  1:04     ` Peng Fan
2021-11-22  2:08       ` Joakim Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211120115825.851798-4-peng.fan@oss.nxp.com \
    --to=peng.fan@oss.nxp.com \
    --cc=aisheng.dong@nxp.com \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=qiangqing.zhang@nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®