From patchwork Mon Dec 21 11:31:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1604 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D5B873F0D3 for ; Mon, 21 Dec 2020 12:32:30 +0100 (CET) Received: by mail-pl1-f199.google.com with SMTP id p19sf5550138plr.22 for ; Mon, 21 Dec 2020 03:32:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608550349; cv=pass; d=google.com; s=arc-20160816; b=qyLBeuJmcwYDr8Oq8Z0Ep9VO4z6l2rvoiMH1wlEveGwRN5cnyrY4AixxSUhCOOjExd 2K0jqSCGClLf6aUiT0VP5r4ClisZ9TzbYhUtNql0yIJQWihVDyhILbqYcH1TFfNUY7oD BEnUj+7rGYK7nCRbvL6EOrzcfOm0XPG17hU3fYliUhLZywoES4TrZIdlq71ncTdsrmc6 yfyOXzaZMk/a88tubl4Q0AhncnR8v86357DNrn3OaSwPWgK4TeOdkMJ6xiADYFfUbZ6y uPfFJXRroTeS+f9NHkTRblRVrFx4Aj0Y1kEc4EJjonKyB0YAGR6fU8kyOVutTQ4oK0GW GGlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=O+Yan1+OmiWV0LAA65SzOpujTBRyqQZrBg83WppIQXs=; b=HeqjkAnzfDvwVUYA12pAlYbil6/lBldX1Xob6378dSTjIzkUhddJUY1xcasloVXPyE Idm7ocIu08BWnyU/OD1wPWYTJAPab4JsYTknD31EHRnDDIOAEWJIjZprt2T9eqtSoS9P BCVzdOqCUODc3nXKWCNfNEqGAXhIfPOeZdcozX1DBHDOK0BnjeLHhwicSWix0eLlqrTB LZL7JwLv6NWSY2phsOQknoNiX6qGycurOONCOnxjYGasSNwvjxU91rWMgpzZ14iMssak NN4IirPSrpFlMXDp/nUAySfy1hdm7n42dU29gBCut6HW7jXHz1J5lJF8a7ZYlwWAQWqy 17Iw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=R9FXXNW3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=O+Yan1+OmiWV0LAA65SzOpujTBRyqQZrBg83WppIQXs=; b=GgKqRFxBtSUOS1MldbZtLkqF/1sYNjEVXS++ZjZKKLNdu2G+nI53c3BiC762YwrHqW /nsypJ2FZVLOXT9k7r0P7ORPq4zIM+2LJWD1AGMB27LMeOiMnA06sFFy5oopVtwqK/9g kW8zTJ1CiRNo+mR3WPVwV/TmuVspAPEjHj7v0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=O+Yan1+OmiWV0LAA65SzOpujTBRyqQZrBg83WppIQXs=; b=BaHxdlIbc904//EKp7uBILDTGiTqlteWhij0AjQk8rxeE5fpfpnai0YgHZYPFN5ME9 G62O4vSJZ3Ss0mASbDHioArAbokQw+TQH/I4LNJaYKkF+x+Xs0a9jc0/gcVw6TrkFCmr X89QcbfTazLWmn0Srnr/wZFfiltjJ0VC9u+Z2l7dAIyiIQUxf++CxKmRwIdcMhjGDXDZ Ll1ogxhIM9xFhXsF8rBkpy+rO5d3YDXh3sXUxO2A4z++11UkhoMs88Z9dzTdisc8KVkB M+gE4iPqmwE1TMeE8jb6XxK+Z6uKJWp6RVnlRLn8Vn7PrEgAmYjm6xGrJASC/+eGOemQ lBHQ== X-Gm-Message-State: AOAM530Z+/qOIqMYLn7Gui/qbl1G387p2aCmat3yO/Q2o/9a4mbwh2gt dhZI2C7jAasY6307xFz70Aus+5jG X-Google-Smtp-Source: ABdhPJzQei9vdp9ZDioDnE9jeXg5Zblu9RvwehMmWit4UoHSk0aSSARIZ3Z9K2kGSGOVb7fujWZTmg== X-Received: by 2002:a17:902:ba8d:b029:dc:bc0:4d5 with SMTP id k13-20020a170902ba8db02900dc0bc004d5mr16222530pls.75.1608550349683; Mon, 21 Dec 2020 03:32:29 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:b897:: with SMTP id o23ls9054216pjr.1.gmail; Mon, 21 Dec 2020 03:32:29 -0800 (PST) X-Received: by 2002:a17:90b:203:: with SMTP id fy3mr17339368pjb.231.1608550349067; Mon, 21 Dec 2020 03:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608550349; cv=none; d=google.com; s=arc-20160816; b=zoDKRU9HtvmsgyRcDdnkH5EHBDPjrbwrfYicQNU5ULNejmmhi81mig5RVipPLyGQRl mgl40OMo/EyTmAaxDCpE8hc5qfQe+APyb+Ve5neoSimcXDbkUUw03UAGiHlrG7d0XxDV 1tpVjZwW+UqexoccvHr+FrJNSuvo0zprkMQ1XfsGooy5H0pbYPxpQ2QhykEzEAAa7dgp eQbjADPgJ7KPwjUeVpSQ3EEbZnD1fSsQRJLOC37phOnPHqj0q27F/m/LsTZxUH+OfzSs Ir8Pn6XQX8mZmITn3UcPD/Jp+W0Io2fcI7LFvIM4G65y/vw10Uxpj/s2rWzAAFnF7V0r BOJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=UKdlQ3V1hZUict9vjwjzfE9Tv12t/Zmb8p1y78rJO2M=; b=ghfnd1k3WY+6mfU/0KtLD4ufUzEcx4661qIghAUSSqmDyzAY0Pbm8ytKrLE6RHuMjN xayowozpFX+w/j6WIa57ZF95mD3iAdktC6KB0daJKGcqtFAXy/FVvelklWZ8QAkSf+El JVBNuPvk0UqCJsV/GgvuVL9X4HzBU7XLgUntbZgkKX0ErQSzsX7HeBDMIkYsEa3IbvFl UlYXi6PeRNW9UVetR9KIdrOsR7lk2A9XUP5netnc+bwoomk/toekmUS5qHOmWuE48eel dBq5YvMLUl0m+vvcAFnkWCRdRfHiE7gzvTL3B2NjCGdLqU/MZzQ0O6f+p7y91pJ3pGRd b+qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=R9FXXNW3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@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 n21sor2140029pgk.64.2020.12.21.03.32.29 for (Google Transport Security); Mon, 21 Dec 2020 03:32:29 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:d846:: with SMTP id k6mr14951139pgj.167.1608550348772; Mon, 21 Dec 2020 03:32:28 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a884:b9d4:ed90:a69c:2530]) by smtp.gmail.com with ESMTPSA id 197sm16714859pgd.69.2020.12.21.03.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 03:32:28 -0800 (PST) From: Jagan Teki To: Rob Herring , Shawn Guo , Li Yang , Fabio Estevam , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula@amarulasolutions.com, Jagan Teki , Catalin Marinas , Will Deacon , Matteo Lisi Subject: [PATCH v2 4/6] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0 Date: Mon, 21 Dec 2020 17:01:49 +0530 Message-Id: <20201221113151.94515-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201221113151.94515-1-jagan@amarulasolutions.com> References: <20201221113151.94515-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=R9FXXNW3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@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: , Engicam C.TOUCH 2.0 is an EDIMM compliant general purpose Carrier board. Genaral features: - Ethernet 10/100 - Wifi/BT - USB Type A/OTG - Audio Out - CAN - LVDS panel connector i.Core MX8M Mini is an EDIMM SoM based on NXP i.MX8M Mini from Engicam. i.Core MX8M Mini needs to mount on top of this Carrier board for creating complete i.Core MX8M Mini C.TOUCH 2.0 board. Add support for it. Signed-off-by: Matteo Lisi Signed-off-by: Jagan Teki --- Changes for v2: - enabled fec1 node - updated commit message - dropped engicam from filename since it aligned with imx6 engicam dts files naming conventions. - add i2c nodes - fixed v1 comments arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx8mm-engicam-common.dtsi | 82 +++++++++++++++++++ .../dts/freescale/imx8mm-engicam-ctouch2.dtsi | 7 ++ .../freescale/imx8mm-icore-mx8mm-ctouch2.dts | 21 +++++ 4 files changed, 111 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-engicam-common.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-engicam-ctouch2.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-ctouch2.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 6f0777ee6cd6..8d49a2c74604 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -32,6 +32,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2162a-qds.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-icore-mx8mm-ctouch2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-kontron-n801x-s.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mm-engicam-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-engicam-common.dtsi new file mode 100644 index 000000000000..f7870efd9dab --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-engicam-common.dtsi @@ -0,0 +1,82 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 Engicam srl + * Copyright (c) 2020 Amarula Solutions(India) + */ + +&fec1 { + status = "okay"; +}; + +&i2c2 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; +}; + +&i2c4 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4>; + status = "okay"; +}; + +&iomuxc { + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3 + MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3 + >; + }; + + pinctrl_i2c4: i2c4grp { + fsl,pins = < + MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001c3 + MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c3 + >; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = < + MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 + MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140 + >; + }; + + pinctrl_usdhc1_gpio: usdhc1gpiogrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x41 + >; + }; + + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x190 + MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d0 + MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d0 + MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d0 + MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d0 + MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0 + >; + }; +}; + +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + status = "okay"; +}; + +/* SD */ +&usdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_usdhc1_gpio>; + cd-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + max-frequency = <50000000>; + bus-width = <4>; + no-1-8-v; + pm-ignore-notify; + keep-power-in-suspend; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-engicam-ctouch2.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-engicam-ctouch2.dtsi new file mode 100644 index 000000000000..294df07289a2 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-engicam-ctouch2.dtsi @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 Engicam srl + * Copyright (c) 2020 Amarula Solutions(India) + */ + +#include "imx8mm-engicam-common.dtsi" diff --git a/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-ctouch2.dts b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-ctouch2.dts new file mode 100644 index 000000000000..8eb01b1f882a --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-ctouch2.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 NXP + * Copyright (c) 2019 Engicam srl + * Copyright (c) 2020 Amarula Solutions(India) + */ + +/dts-v1/; +#include "imx8mm.dtsi" +#include "imx8mm-engicam-ctouch2.dtsi" +#include "imx8mm-icore-mx8mm.dtsi" + +/ { + model = "Engicam i.Core MX8M Mini C.TOUCH 2.0"; + compatible = "engicam,icore-mx8mm-ctouch2", "engicam,icore-mx8mm", + "fsl,imx8mm"; + + chosen { + stdout-path = &uart2; + }; +};