[04/11] arm64: dts: freescale: Add Engicam i.Core MX8M Plus family

Message ID 20241126094635.881134-5-patrick.barsanti@amarulasolutions.com
State New
Headers show
Series
  • WIP: Refactor Engicam IMX8MP and add C.TOUCH 2.0 10.1"
Related show

Commit Message

Patrick Barsanti Nov. 26, 2024, 9:46 a.m. UTC
Add Engicam i.Core MX8M Plus, i.Core MX8M Plus 2GbE and i.Core MX8M Plus
Fast Ethernet.

Signed-off-by: Patrick Barsanti <patrick.barsanti@amarulasolutions.com>
---
 .../boot/dts/freescale/imx8mp-icore-2gbe.dtsi | 17 +++++++
 .../dts/freescale/imx8mp-icore-fasteth.dtsi   | 45 +++++++++++++++++++
 .../boot/dts/freescale/imx8mp-icore.dtsi      | 38 ++++++++++++++++
 3 files changed, 100 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-icore-2gbe.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-icore-fasteth.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-icore.dtsi

Patch

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore-2gbe.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-icore-2gbe.dtsi
new file mode 100644
index 000000000000..65928988b758
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-2gbe.dtsi
@@ -0,0 +1,17 @@ 
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 NXP
+ * Copyright (c) 2019 Engicam srl
+ * Copyright (c) 2024 Amarula Solutions
+ */
+
+/dts-v1/;
+
+#include "imx8mp-icore-mx8mp.dtsi"
+
+/ {
+	model = "Engicam i.Core MX8M Plus 2GbE";
+	compatible = "engicam,icore-mx8mp-2gbe",
+		     "engicam,icore-mx8mp-base",
+		     "fsl,imx8mp";
+};
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore-fasteth.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-icore-fasteth.dtsi
new file mode 100644
index 000000000000..7e4024288851
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-fasteth.dtsi
@@ -0,0 +1,45 @@ 
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 NXP
+ * Copyright (c) 2019 Engicam srl
+ * Copyright (c) 2024 Amarula Solutions
+ */
+
+/dts-v1/;
+
+#include "imx8mp-icore-mx8mp.dtsi"
+
+/ {
+	model = "Engicam i.Core MX8M Plus Fast Ethernet";
+	compatible = "engicam,icore-mx8mp-fasteth",
+		     "engicam,icore-mx8mp-base",
+		     "fsl,imx8mp";
+};
+
+/* Ethernet */
+&eqos {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_eqos>;
+	phy-handle = <&ethphy0>;
+	phy-mode = "rmii";
+	snps,rmii_refclk_ext;
+	snps,force_thresh_dma_mode;
+	status = "okay";
+
+	mdio {
+		compatible = "snps,dwmac-mdio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethphy0: ethernet-phy@0 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			pinctrl-0 = <&pinctrl_ethphy0>;
+			pinctrl-names = "default";
+			reg = <0>;
+			reset-assert-us = <500>;
+			reset-deassert-us = <500>;
+			reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
+			smsc,disable-energy-detect;
+		};
+	};
+};
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-icore.dtsi
new file mode 100644
index 000000000000..eda9a84a5d91
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mp-icore.dtsi
@@ -0,0 +1,38 @@ 
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 NXP
+ * Copyright (c) 2019 Engicam srl
+ * Copyright (c) 2024 Amarula Solutions
+ */
+
+/dts-v1/;
+
+#include "imx8mp-icore-mx8mp.dtsi"
+
+/ {
+	model = "Engicam i.Core MX8M Plus";
+	compatible = "engicam,icore-mx8mp",
+		     "engicam,icore-mx8mp-base",
+		     "fsl,imx8mp";
+};
+
+/* Ethernet */
+&eqos {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_eqos>;
+	phy-handle = <&ethphy0>;
+	phy-mode = "rgmii-id";
+	status = "okay";
+
+	mdio {
+		compatible = "snps,dwmac-mdio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethphy0: ethernet-phy@7 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			micrel,led-mode = <0>;
+			reg = <7>;
+		};
+	};
+};