mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: freescale: imx8mp-phycore: Add no-eth overlay
@ 2024-07-03 12:35 Benjamin Hahn
  2024-07-04  6:31 ` [Upstream] " Teresa Remmet
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Hahn @ 2024-07-03 12:35 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: upstream, imx, linux-arm-kernel, devicetree, linux-kernel, Benjamin Hahn

Add a devicetree overlay to disable ethernet for boards where it is not
populated.

Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
---
 arch/arm64/boot/dts/freescale/Makefile               |  2 ++
 .../boot/dts/freescale/imx8mp-phycore-no-eth.dtso    | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
index 2cb0212b63c6..16e06e6f055c 100644
--- a/arch/arm64/boot/dts/freescale/Makefile
+++ b/arch/arm64/boot/dts/freescale/Makefile
@@ -164,6 +164,8 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb
+imx8mp-phyboard-pollux-rdk-no-eth-dtbs += imx8mp-phyboard-pollux-rdk.dtb imx8mp-phycore-no-eth.dtbo
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk-no-eth.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-hdmi.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-lt6.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-mi1010ait-1cp1.dtb
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phycore-no-eth.dtso b/arch/arm64/boot/dts/freescale/imx8mp-phycore-no-eth.dtso
new file mode 100644
index 000000000000..2a9fe1d6db9d
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mp-phycore-no-eth.dtso
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2024 PHYTEC Messtechnik GmbH
+ * Author: Cem Tenruh <c.tenruh@phytec.de>
+ */
+
+/dts-v1/;
+/plugin/;
+
+&{/} {
+	compatible = "phytec,imx8mp-phycore-som";
+};
+
+&ethphy1 {
+	status = "disabled";
+};
+
+&fec {
+	status = "disabled";
+};

---
base-commit: e8f897f4afef0031fe618a8e94127a0934896aba
change-id: 20240617-bspimx8m-3180-47bed184a854

Best regards,
-- 
Benjamin Hahn <B.Hahn@phytec.de>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Upstream] [PATCH] arm64: dts: freescale: imx8mp-phycore: Add no-eth overlay
  2024-07-03 12:35 [PATCH] arm64: dts: freescale: imx8mp-phycore: Add no-eth overlay Benjamin Hahn
@ 2024-07-04  6:31 ` Teresa Remmet
  0 siblings, 0 replies; 2+ messages in thread
From: Teresa Remmet @ 2024-07-04  6:31 UTC (permalink / raw)
  To: Benjamin Hahn, kernel, s.hauer, festevam, shawnguo, conor+dt,
	krzysztof.kozlowski+dt, robh+dt
  Cc: imx, PHYTEC Upstream, devicetree, linux-kernel, linux-arm-kernel

Hello Benjamin,

Am Mittwoch, dem 03.07.2024 um 14:35 +0200 schrieb Benjamin Hahn:
> Add a devicetree overlay to disable ethernet for boards where it is
> not
> populated.
> 
> Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
>  arch/arm64/boot/dts/freescale/Makefile               |  2 ++
>  .../boot/dts/freescale/imx8mp-phycore-no-eth.dtso    | 20
> ++++++++++++++++++++
>  2 files changed, 22 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/Makefile
> b/arch/arm64/boot/dts/freescale/Makefile
> index 2cb0212b63c6..16e06e6f055c 100644
> --- a/arch/arm64/boot/dts/freescale/Makefile
> +++ b/arch/arm64/boot/dts/freescale/Makefile
> @@ -164,6 +164,8 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb
> +imx8mp-phyboard-pollux-rdk-no-eth-dtbs += imx8mp-phyboard-pollux-
> rdk.dtb imx8mp-phycore-no-eth.dtbo
> +dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk-no-eth.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-hdmi.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-lt6.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-mi1010ait-1cp1.dtb
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phycore-no-eth.dtso
> b/arch/arm64/boot/dts/freescale/imx8mp-phycore-no-eth.dtso
> new file mode 100644
> index 000000000000..2a9fe1d6db9d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-phycore-no-eth.dtso
> @@ -0,0 +1,20 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Copyright (C) 2024 PHYTEC Messtechnik GmbH
> + * Author: Cem Tenruh <c.tenruh@phytec.de>
> + */
> +
> +/dts-v1/;
> +/plugin/;
> +
> +&{/} {
> +       compatible = "phytec,imx8mp-phycore-som";
> +};

as understood from recent patches of Fabio the compatible should be
removed.

Thanks,
Teresa

> +
> +&ethphy1 {
> +       status = "disabled";
> +};
> +
> +&fec {
> +       status = "disabled";
> +};
> 
> ---
> base-commit: e8f897f4afef0031fe618a8e94127a0934896aba
> change-id: 20240617-bspimx8m-3180-47bed184a854
> 
> Best regards,

-- 
PHYTEC Messtechnik GmbH | Barcelona-Allee 1 | 55129 Mainz, Germany

Geschäftsführer: Dipl.-Ing. Michael Mitezki, Dipl.-Ing. Bodo Huber,
Dipl.-Ing. (FH) Markus Lickes | Handelsregister Mainz HRB 4656 |
Finanzamt Mainz | St.Nr. 266500608, DE 149059855

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-04  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-03 12:35 [PATCH] arm64: dts: freescale: imx8mp-phycore: Add no-eth overlay Benjamin Hahn
2024-07-04  6:31 ` [Upstream] " Teresa Remmet

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®