From patchwork Tue Nov 26 09:46:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3663 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BF8A83F214 for ; Tue, 26 Nov 2024 10:46:46 +0100 (CET) Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-53de5d603dcsf12608e87.0 for ; Tue, 26 Nov 2024 01:46:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1732614406; cv=pass; d=google.com; s=arc-20240605; b=YovOGIwsVtLcml5rrKMO5k++GigQx7F9XPFAD22wjiBG4vgqVXdup9wEtgkafqLh44 BRr9DnqXKsSw2ev54Ef/UsuUkQ5jjA6woPTlNm5p7w/WO3zdg/py9BPb/IOKjn8HvZ0M LUduxAEj8+3pP4tAK+gnLea6jaRKFcjRTPvL9mL8fk/z7ZhIcz/mnaIpC/SJHL/08fIs Ufmm5hAU8mu5fnXJDSc3GkJq6hvGxkedlGlK875F2un5amDRuRUQaxAZwq8a1VXrhNQ9 tKLXHc6TQZzq1TsU9GCijXTR9ZMj3HZk6lPBvvYyv6eqfyXBDZy1z6O2ZH7ya3lqCttH wtXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZWI5JEh5L6EKj/2WDDiWs+mXjROQ4Le4MT2W/sOAtoA=; fh=WZS+iPXKPnOidycnUPFAQmy8nmBAttjCqMyx24R7Fj0=; b=k2FFuwLmCWVX2LmhLW0S6Rl1ngpDqmHQMEC/p3p4oUL1eXxbl5R28RDbLKm59xQ6cZ eOmHqWRaeJR3x9Y6H7o7ymIChPeW1bZb2aVvHD6X+cq9Q1W1A61a2N0KPoBoEb+uFr0c TmHu0LbpAOjbwVC9j2zKT8dNmnCJjI23DfQPx/ya/537bd4AHxY5IrQoRYFHkgFVkch2 26OWaUJgdjMLQ2CxGPwUWQTpnxwWksyLpwzL1yvB6iv7LYqDf7zvHUAfmuxi9+a4CfM3 p2DN0mPf68/nz7wCFlljFdeiDHwOZT5Zl/ywjCfiHV2U+nLaP57z+YhB1e6XMGtFi9XB SYcA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EJcldBeE; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1732614406; x=1733219206; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZWI5JEh5L6EKj/2WDDiWs+mXjROQ4Le4MT2W/sOAtoA=; b=SKjIey/TkDt8bjX8He/Y4GS0liDr7brxmwpDybPv5p/QqaET7+lotQ743Gr1EXL5uG qUuye5FlC1XYv/WQFhEMpijbposNUy8PCtFp3iKqzO4KO747T2nlCKrHsaZW/ZdCcZFb XUqxWzmuKoGuP4NNveW65LPGzB+oObGdn93zQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732614406; x=1733219206; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZWI5JEh5L6EKj/2WDDiWs+mXjROQ4Le4MT2W/sOAtoA=; b=PgnztkmP3QMMQVAsYnuo+CMyZd15Mwem4s1V9DJShdkgQYDXboJpgT9cdYnthZtxYd ZoZS4FPXQKcIPPP59nHV1rdimqzIpJHpJSwk136xJIZ7oXLg4MVAitsi9E1eG3ehBWvu 9YCsrPsN1Yzdpo+8G55FON9qxfl27lwBPsDvAII8vvLb54vQmDQ8NBgVOQm36y/7e0Us cFGe/Zpb/eZvu3l4zdGcW3K9Rf6E5gV7eIC+qwOO8tOdxB5LYZkNXb/5w+A1DhsqeaID 0h2f9kcH4mPZb3XmQeu0L4ZE60n9f8U4OEC9ZeqtWTKYzC1vwx7lSVqTwoNKRv2mn8ap 4Xjw== X-Forwarded-Encrypted: i=2; AJvYcCVAQLG1WeVhfNcA6VGmBhEs6hhnZkoKSAWuSvCcqhihD+ei2luLUI0iJZv677fYCKZ4R+TykkSabXEGL+xj@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yw70dYrWNDqST9kkIBNcjZR1m8u3cOjH8QKL5XdsFjKpEeygUFK kos3hnSUgkAxRS3jKFPRsI2JghmQWlLFArbXQlXoX2sEg1Om6Rt39pf3zSaqc5FOrA== X-Google-Smtp-Source: AGHT+IFp7bP7owA0VsoheDiMSUh9vcaZ0M8BB6FiB1c29kvHOm++Xh0IzRdK0HmIT/bzJ0z2s+l+7w== X-Received: by 2002:a05:6512:158f:b0:53d:ed69:b744 with SMTP id 2adb3069b0e04-53ded69b760mr724738e87.9.1732614406014; Tue, 26 Nov 2024 01:46:46 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:220f:b0:53d:e5e8:80a4 with SMTP id 2adb3069b0e04-53de5e8823cls419524e87.1.-pod-prod-05-eu; Tue, 26 Nov 2024 01:46:44 -0800 (PST) X-Received: by 2002:a05:651c:2103:b0:2fb:cff:b535 with SMTP id 38308e7fff4ca-2ffa710693amr108286321fa.13.1732614404001; Tue, 26 Nov 2024 01:46:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732614403; cv=none; d=google.com; s=arc-20240605; b=CUnS6A/kmwVCVfF1d8qFAlWE1Mh2wSztBF4lm4aArp46Cy29Ra6fkEBgc5T0j+AK1j Q2q98T9DgXrwhbwQ4PRkMEpO1qfiR7LMBpLE05ZDXKaTfO+xGNT26w560J1ZakJWYvlf ZPgTiGJSeONbFPFEsw7PJMJlCEdMn/tVwwFYcaa3TsfDLwupueeAAnJXophKBUIPDM4p geG9Jx8Ksa4qIUkRmSA06goUB9iXCwb5gGR2XNSxIXWsiN1bOybvbXovxCRxEXqF/0lZ 3i2z7IYGCM/qJuIzNMiv5A66ePIBVFfZSOyFQWDdJUJrYQ2QzqpgSplPgFMk4Fn74Nnk nFEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NCZ9lIa4LYXK/UC3xFdRnIueweE8wKTMO4+Y/ThbFSY=; fh=Wa4YzhDtEm3BVJYdi47pY1HEnT8nfsMPDl0G7mIh1uU=; b=HEneCpDaBX23KeUwz8pRt4VPbUIdOXrP+wV5b5EoIQccbCv+ni5frYlbZliMKigx0C jOUuOFa6Hb1eaDYLaIPOVs9y3Pc0od8Su++CcHhz3jNJp42aiGMcNUhgIa4lTjSnGk3N MNbPSxopzO1btptaL+9Hx0uoXNwoyMH1g64DIk+fMg2jg0QuuPWJxpWX7QwX9dIU0NWN Wdu2jEYc7Xa7nVflVqdUCGVC43aCV0OkU9RJeuBp9ZOwVaz/o2TZcd8etC4awmKfRR10 UdPO41CqqOKzXYTrrsbFLiWz4o48CgRInwkO/nZ1petYnYemT0fdMVSaa/LPzOSCcUwX sH6w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EJcldBeE; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 38308e7fff4ca-2ffca39356csor5486491fa.12.2024.11.26.01.46.43 for (Google Transport Security); Tue, 26 Nov 2024 01:46:43 -0800 (PST) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: ASbGncscUUB8JdU4n5JQlO8ST5i6AJwioea28Cq6MODq1gx9NbO4cp6BHg3nZ21UJnq Q/xPBvdjHIxRU0aMtDkawlXLPps5FJXOfIA66JRYTxq6ud2jDcDt67E82vv2oPWFBjwcCprma3h jUOsUZOrl7r7sMxi5omH6U91PcSjdNiNr+RyEQL7LXXkuQYtgs7w+Z5u4GYMM4XXqQNs02y2Mz2 x5lTD81mibsj8n+f7G2oW1xoxMAPTmP5YNjQcd40sf3QJ41FLSL X-Received: by 2002:a2e:b88f:0:b0:2ff:5c17:d57d with SMTP id 38308e7fff4ca-2ffa70f1a17mr124984631fa.2.1732614402470; Tue, 26 Nov 2024 01:46:42 -0800 (PST) Received: from thinkpad.. ([151.37.190.149]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa51a449c24sm537671966b.178.2024.11.26.01.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2024 01:46:42 -0800 (PST) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: dario.binacchi@amarulasolutions.com, patrick.barsanti@amarulasolutions.com Subject: [PATCH 04/11] arm64: dts: freescale: Add Engicam i.Core MX8M Plus family Date: Tue, 26 Nov 2024 10:46:28 +0100 Message-ID: <20241126094635.881134-5-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241126094635.881134-1-patrick.barsanti@amarulasolutions.com> References: <20241126094635.881134-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EJcldBeE; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add Engicam i.Core MX8M Plus, i.Core MX8M Plus 2GbE and i.Core MX8M Plus Fast Ethernet. Signed-off-by: Patrick Barsanti --- .../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 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 = <ðphy0>; + 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 = <ðphy0>; + 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>; + }; + }; +};