From: Shawn Guo <shawnguo@kernel.org>
To: Joakim Zhang <qiangqing.zhang@nxp.com>
Cc: s.hauer@pengutronix.de, festevam@gmail.com,
devicetree@vger.kernel.org, linux-imx@nxp.com,
fugang.duan@nxp.com
Subject: Re: [PATCH 4/5] arch: arm64: dts: imx8mq/m/n/p: add mac address for FEC
Date: Tue, 5 Jan 2021 08:35:12 +0800 [thread overview]
Message-ID: <20210105003511.GD4142@dragon> (raw)
In-Reply-To: <20201119095249.25911-5-qiangqing.zhang@nxp.com>
On Thu, Nov 19, 2020 at 05:52:48PM +0800, Joakim Zhang wrote:
> Add mac address in efuse, so that FEC driver can parse it from nvmem
> cell.
>
> Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
> ---
> arch/arm64/boot/dts/freescale/imx8mm.dtsi | 7 +++++++
> arch/arm64/boot/dts/freescale/imx8mn.dtsi | 7 +++++++
> arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++++
> arch/arm64/boot/dts/freescale/imx8mq.dtsi | 7 +++++++
> 4 files changed, 28 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> index 367174031a90..0fbff13a9629 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
> @@ -521,6 +521,10 @@
> cpu_speed_grade: speed-grade@10 {
> reg = <0x10 4>;
> };
> +
> + fec_mac_address: mac-address@640 {
Shouldn't the unit-address be @90 rather than @640?
Shawn
> + reg = <0x90 6>;
> + };
> };
>
> anatop: anatop@30360000 {
> @@ -917,6 +921,9 @@
> assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
> fsl,num-tx-queues = <3>;
> fsl,num-rx-queues = <3>;
> + nvmem-cells = <&fec_mac_address>;
> + nvmem-cell-names = "mac-address";
> + nvmem_macaddr_swap;
> status = "disabled";
> };
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
> index 7556b24b6467..6c16d09e47a5 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
> @@ -391,6 +391,10 @@
> cpu_speed_grade: speed-grade@10 {
> reg = <0x10 4>;
> };
> +
> + fec_mac_address: mac-address@640 {
> + reg = <0x90 6>;
> + };
> };
>
> anatop: anatop@30360000 {
> @@ -768,6 +772,9 @@
> assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
> fsl,num-tx-queues = <3>;
> fsl,num-rx-queues = <3>;
> + nvmem-cells = <&fec_mac_address>;
> + nvmem-cell-names = "mac-address";
> + nvmem_macaddr_swap;
> status = "disabled";
> };
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> index 3d9f5010769d..14176ee9a19c 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> @@ -331,6 +331,10 @@
> cpu_speed_grade: speed-grade@10 {
> reg = <0x10 4>;
> };
> +
> + eth_mac1: mac-address@640 {
> + reg = <0x90 6>;
> + };
> };
>
> anatop: anatop@30360000 {
> @@ -770,6 +774,9 @@
> assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
> fsl,num-tx-queues = <3>;
> fsl,num-rx-queues = <3>;
> + nvmem-cells = <ð_mac1>;
> + nvmem-cell-names = "mac-address";
> + nvmem_macaddr_swap;
> status = "disabled";
> };
> };
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> index 8682a484dea5..6eb773fe6cec 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> @@ -558,6 +558,10 @@
> cpu_speed_grade: speed-grade@10 {
> reg = <0x10 4>;
> };
> +
> + fec_mac_address: mac-address@640 {
> + reg = <0x90 6>;
> + };
> };
>
> anatop: syscon@30360000 {
> @@ -1163,6 +1167,9 @@
> assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
> fsl,num-tx-queues = <3>;
> fsl,num-rx-queues = <3>;
> + nvmem-cells = <&fec_mac_address>;
> + nvmem-cell-names = "mac-address";
> + nvmem_macaddr_swap;
> status = "disabled";
> };
> };
> --
> 2.17.1
>
next prev parent reply other threads:[~2021-01-05 0:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 9:52 [PATCH 0/5] arch: arm64: imx:patches for FEC Joakim Zhang
2020-11-19 9:52 ` [PATCH 1/5] arch: arm64: imx6ul/sx/qdl: add wakeup support via magic packet Joakim Zhang
2021-01-05 0:33 ` Shawn Guo
2020-11-19 9:52 ` [PATCH 2/5] arch: arm64: imx8mm/n/p: correct assigned clocks for FEC Joakim Zhang
2021-01-05 0:34 ` Shawn Guo
2020-11-19 9:52 ` [PATCH 3/5] arch: arm64: dts: imx8mq: assign clock parents " Joakim Zhang
2020-11-19 9:52 ` [PATCH 4/5] arch: arm64: dts: imx8mq/m/n/p: add mac address " Joakim Zhang
2021-01-05 0:35 ` Shawn Guo [this message]
2021-01-12 10:42 ` Joakim Zhang
2021-01-15 9:18 ` Shawn Guo
2020-11-19 9:52 ` [PATCH 5/5] arch: arm64: dts: imx8mq/m/n/p: add fsl,stop-mode property " Joakim Zhang
2020-12-03 10:54 ` [PATCH 0/5] arch: arm64: imx:patches " 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=20210105003511.GD4142@dragon \
--to=shawnguo@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=fugang.duan@nxp.com \
--cc=linux-imx@nxp.com \
--cc=qiangqing.zhang@nxp.com \
--cc=s.hauer@pengutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.