From patchwork Thu Feb 25 19:24:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1643 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 55D453FA3B for ; Thu, 25 Feb 2021 20:25:31 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id v16sf4537574pgl.23 for ; Thu, 25 Feb 2021 11:25:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614281130; cv=pass; d=google.com; s=arc-20160816; b=WOua6LOaWIRCcvQDH6SozTWNdBTA0COr3sJdNUOF760rk1MuaXvseT/8vFIvJqNjjH yXpfmqyyAOt9uh0LfnVrsNdlwBi1F99U1M9P2C4H2m6+VKRA0dsAo2NSoJLWZQGqwazL MchGTrHd35qSNK/icv2wlbWlDagORUwI0xk3dF0vMsW9Q9L399pG4/Gz1KWvHqddL66m Ti+r/eWLA2EdkLCUHpEfj6atV8m2uKeQSPuTr+YUNEv52ugWhs2H64TGH4OnQ3t/v/L9 nQS+zFV1naB9qyfL6lZFhnqePwS34G8mIYy4WCum9FC/trEN+O1Zj1L0GXn1MiggpFgU HKpA== 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=AYDay7XAEwbn6XkthztGRELaSjm3dmDDdwHN+NwXlhs=; b=xikpt6xFSJi4Nog+X+FZvJvqkSYEvpsfPVYHe94UXCpcIHKDMsEnGU3lMahpF1diQS HTipfTiRx5p4iLtlBhoNFLHiR+51znUSxfpZfBDo+qtnNNA+57WGu8wiK2+DtAGPtbvV vSc7aRJWgksVUQ007yvDVEEcndB8LEzuhMhQsoeq+N4EuRF5qu0qwk9VLV2AIbqWjnCs Yc+TvdhaoEOGiW/en4LVqGivGB2C2u1sfTlRhF+LbWWKyaAqTRl6Kurp/sdM+XqM64iG uRFsX/P+q0YcJoNiodvR81U6PAlwGzHJrfK4lDdqkHV3L0DpPWAma8tnZlkLCOsdI9Hf +Xwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VhVhgDe7; 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=AYDay7XAEwbn6XkthztGRELaSjm3dmDDdwHN+NwXlhs=; b=popeZLtLgOJkKGfb4xqLC8PZle5jwZzl35PD631OVjEpNl2kTmZUzUfGCWbUu0Ufr2 RrGToFd3nGPWttzWngYHRiXH7U71bmFOUwokSEaoqkyNKXRhSshptmAaNGFWB3g8ue4k 4ScfpfotPUzuFkGYm3jJOkgg0ou0B4T9nl1QY= 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=AYDay7XAEwbn6XkthztGRELaSjm3dmDDdwHN+NwXlhs=; b=KFZY63ZdiMm4h3rAG7ZoPWqMtnJC4g3r+D1BvlFkO12Wifso3wCC0wESYqzSTXtj7N hRUPgWUAvgsKQDNYmvMItLKEUwZ/LorVy0cceh6rbv2j9Wtv4Ye16WqAIIQjtBMY8w87 5/DYG13hUs+49poIuNZ27kITu1Xw1KmTI9mNuVkUfSKRgpXtjWO3p2iNGis+p7pRyoaf QR/x9MmYnnEEEQkKfe7S5qv7Q3UfSIKAftzZPi9fADXr9iFJMqnGM3DW8PpcSFN1PRl6 YUbtZ4cXKvyRQmSew+YdCeccW/pZITnTcbVehSijSmAel+VzEOCK1CcTQT17BNzzh2EG TOKw== X-Gm-Message-State: AOAM533QEsOmqCXAkvtbU1Ls/UNSM7LqHXEsmB/SWELiz+oppG6U3NiS C+oFhEZkvILb4MH4SxkAxyKFJP5B X-Google-Smtp-Source: ABdhPJxgwIzx5pJLiD55ZxfKYpXFD9vRMOzFK5za0CmB4o21hfVnuWM1Nd49KMkIbj7e/YVqkc7eQA== X-Received: by 2002:a63:1d4d:: with SMTP id d13mr4277142pgm.103.1614281130042; Thu, 25 Feb 2021 11:25:30 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:58d:: with SMTP id 135ls2565698pgf.3.gmail; Thu, 25 Feb 2021 11:25:29 -0800 (PST) X-Received: by 2002:a65:5b87:: with SMTP id i7mr4272959pgr.278.1614281129302; Thu, 25 Feb 2021 11:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614281129; cv=none; d=google.com; s=arc-20160816; b=QQU5JX5OCweBlQEZDFHJTubGzmzo4gE1wmFoDS0IfIHWL8AajZ3ascTjOx5zROm8BB a5i5ZolyrH0TCi0T99yqU5ks98N2wFqK1j4c7OG6C9kSXwry3xQ9e0lhX6oT570zydN0 zj7SmS6p9uTpsxkSlMoD3bNgYl8HAPOVPnC1D6wltLy3oEiM0gb8WCU1zF/e3ZddcJGs hKFiJxh5miwYPHFreYtlDxtI84UFGHTQ/8mcebKSAvgNQCiQ9hOigH2G/hx8bajH4uf7 +X4uHvv/ImxiIPK0OxUQYK+iiL1JQJg5OuLnuBamkTPHoGtsQNftpIgrnyXPQh7+gqSe CMqA== 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=7UEDw7hub9O5FdRrcuOTG3Nt7HEZCPDzv5ic2BSyKn0=; b=BAZCJal8TpjdiIF/7GjJOrNY0pE1Q2okXzTgZVlG5IimuAa4fnbNTcW140xNsSGFj2 iGR3hAZux7OA0ZXY6iPSuWWjO28rIzIUJFwrHDX6CgdKuBO4VFER7Q3GaGuiVADHSVwH yI6QFQLKGX3Yhw+Y515usYf1de1hJg3c2dXRFZi24IFTTSACQ81fx8+ob5zUngHcxsgU BbLfitjeaPPTL3Z0+foX6hUCOeKMzN8vIi4swsWOOMsHNbxqWgxn80N4Vi529Iver9bP K7HOBNJ8WnlKfKSda+5OzjgFZr6F3x4AYV8J7uj9F/McQxPbr7H/lJSQU8hWvzC6m0ZQ 1dXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VhVhgDe7; 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 x6sor3325243pfr.84.2021.02.25.11.25.29 for (Google Transport Security); Thu, 25 Feb 2021 11:25: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:a62:62c2:0:b029:1ee:1e3f:1b68 with SMTP id w185-20020a6262c20000b02901ee1e3f1b68mr2890758pfb.25.1614281129041; Thu, 25 Feb 2021 11:25:29 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 11:25: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 v4 5/5] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit Date: Fri, 26 Feb 2021 00:54:04 +0530 Message-Id: <20210225192404.262453-6-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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VhVhgDe7; 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 EDIMM2.2 Starter Kit is an EDIMM 2.2 Form Factor Capacitive Evaluation Board. Genaral features: - LCD 7" C.Touch - microSD slot - Ethernet 1Gb - Wifi/BT - 2x LVDS Full HD interfaces - 3x USB 2.0 - 1x USB 3.0 - HDMI Out - Mini PCIe - MIPI CSI - 2x CAN - Audio Out 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 Evaluation board for creating complete i.Core MX8M Mini EDIMM2.2 Starter Kit. PCIe, DSI, CSI nodes will add it into imx8mm-engicam-edimm2.2.dtsi once Mainline Linux supported. 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-edimm2.2.dts | 97 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 3b5957ff1606..d68ffa77b761 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -34,6 +34,7 @@ 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-icore-mx8mm-edimm2.2.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-edimm2.2.dts b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.dts new file mode 100644 index 000000000000..a4a2ada14835 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.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 EDIMM2.2 Starter Kit"; + compatible = "engicam,icore-mx8mm-edimm2.2", "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"; +};