Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp656275pxb; Thu, 25 Feb 2021 11:32:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9m7g0kM7FOZdrdZ7P5prSwRcXc0t3kWbm5QS7GRBOksz1ItWU9RVEDaKVt2QevxK00xex X-Received: by 2002:a17:906:e119:: with SMTP id gj25mr2851569ejb.509.1614281530440; Thu, 25 Feb 2021 11:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614281530; cv=none; d=google.com; s=arc-20160816; b=HQ7GIe9iryPDI0gy04wO1iftixh0eXjH2MLFBI7zJdx7g8GQ6uravpJQlV/D7ZxSe/ 571EPj6G+LWK1i1PM4EkwdulVVKW2mZoRwUUk/hHwokA7+91Xfk22/J0gwNer+scX4Hs 8zyIlAao1SvOuqI0ivveM4/SKUL3ZDtJWj/6hFVit36UHxAnO+It2bdA2cq2is8BtUi9 R1SzmgkpOBbxEH4EH2P1WkilTjdW3Z+dpgEaxxCboN4cRieJUASl52fioDS4Jcfl59TP /0YRaLeI4EQmpSjoUFepKq3AG69FNcZX763JQJvDE2kd5jU08AOLlCRNCg3z5MLSiOiz HadQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=quW3btEg2jHOXQDpALymhTw2rBxjqtf7P3lc41i5aQg=; b=0fpkJSUp1CxCc+BI9Ilf32s0eoMPZHwWsbc6dlXSJ6S+b7h9otKu/XNpOOxl7Z4tP0 +XKBiq/fQT7Zz2PKAifwk0upsmVEDpNhi5X6xjqzTmvTrBNyXCzms2E4p5AQbYDmhHTf hQR/ICqPa+2hk+NFCiCfTdaJu5d7gmll1J2yl/I+tAyOV9e5X6NQIIoInhYL4xjZIH/J GRPgzyevXr7ynIoNPhp93SXGk5jK4lISbRXDeGIIEbO5/t79k90co/jjMmPdNSYf679k zpAEf+Y6KPvFX7iba5Vd7IzdBsd5R5oFukULxQH+1Yt/srn2I1k2I3eYEQWR2HJmJZNh dtQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="c9/U8p0x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl4si4005513ejb.691.2021.02.25.11.31.46; Thu, 25 Feb 2021 11:32:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="c9/U8p0x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234912AbhBYTaZ (ORCPT + 99 others); Thu, 25 Feb 2021 14:30:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233826AbhBYTZ7 (ORCPT ); Thu, 25 Feb 2021 14:25:59 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D96BC061797 for ; Thu, 25 Feb 2021 11:25:19 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id e9so1452399pjs.2 for ; Thu, 25 Feb 2021 11:25:19 -0800 (PST) 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:content-transfer-encoding; bh=quW3btEg2jHOXQDpALymhTw2rBxjqtf7P3lc41i5aQg=; b=c9/U8p0x3UukPCnjevGbvLNPN7SUiL3uVxF41bfofteh+1dhW1A3y4MQClOdybz9gy aZgF1YKXYJx5wQiKJRb/Ip3VY6mi1enZ5biWSvuXMqMhkz8NgTIyduhjCJiVP/AOzfyW cgDKoFU9g2qJ+N5RHEC7e+/dVU2sqMkuwFz90= 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:content-transfer-encoding; bh=quW3btEg2jHOXQDpALymhTw2rBxjqtf7P3lc41i5aQg=; b=P9nJR0L8rUIdPkZXA1PwkWBZF7/ua+TferxBv3vqdQqUwc+lh9YUD4KTK2Wr4ix7dd dz7ngJ5bVdpdbrFDDZsZ8Th1WQoWKq+7VQX8lbq+q0iDJvYMzQkMYazqBkgt0TrFskIg UyUOaGcmtAdhW2ka+hDE+qJhbt2dcNhnPiVKFdeU3BhRW4ULVKd+xjw42/BtxFya6+Ch XKeTKBFDJb7VXEFEuArgZ1ng62hVWvLoU7WtLr3eLRtAmFVyxACx7Kg315wn9foEssap Fb96e7bjUDTUc/1YiATr1cthqQtcrQ1ySRnJJOEcYmY89djLVJLqhpkRPsfliqcn3GSR FwNg== X-Gm-Message-State: AOAM530UXiGEOjfjCUSGMvLnl81PqM5CaM1nTWRUKB9LrdMQD0wR2sUv UnXaWT5rOhx8TEXexnFy0KcakQ== X-Received: by 2002:a17:90a:b28a:: with SMTP id c10mr4720531pjr.39.1614281118688; Thu, 25 Feb 2021 11:25:18 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.161.30.220]) by smtp.gmail.com with ESMTPSA id c78sm7025787pfc.212.2021.02.25.11.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 11:25:18 -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 v4 3/5] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0 Date: Fri, 26 Feb 2021 00:54:02 +0530 Message-Id: <20210225192404.262453-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210225192404.262453-1-jagan@amarulasolutions.com> References: <20210225192404.262453-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v4: - don't create carrier board dtsi, move changes in final dts. Changes for v3: - don't maintain common nodes and include it, if no feature diff 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 + .../freescale/imx8mm-icore-mx8mm-ctouch2.dts | 97 +++++++++++++++++++ 2 files changed, 98 insertions(+) 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 6438db3822f8..3b5957ff1606 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -33,6 +33,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-nitrogen-r2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-var-som-symphony.dtb 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..5389d6f2beba --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-ctouch2.dts @@ -0,0 +1,97 @@ +// 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-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; + }; +}; + +&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"; +}; -- 2.25.1