From patchwork Wed Dec 23 11:03:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1613 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 80AC43F086 for ; Wed, 23 Dec 2020 12:06:34 +0100 (CET) Received: by mail-pl1-f199.google.com with SMTP id bg11sf6317887plb.16 for ; Wed, 23 Dec 2020 03:06:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608721593; cv=pass; d=google.com; s=arc-20160816; b=Cl5EX2hLLAjr94TclfcntpyYKy/c+Ej5gzRhJVXycW+1XfgF7sB46+TWZ8weW287Bc K84/2L8rjBBDaGMefGBjiX+VHlsvk0ZJLvJbTLfazMbZBFSw42U+I9QaMx0QzokMJHB3 SVDY0D1msl84jU0n8VlntBvPZI+zkYSHHReuEz401+gW5zsKHLbDDf4fFclCH2yCH4+T Stx4003StISEY8GYkHn6TwH9HDGjxpEfckcggvU09YQqzXw1xsGsMQJOMkjfmZCicBhO svRV1rT8WDdXuMMoVZcx/dGUJb7Xfhlm3SAees6aOoSPnN+z/s2F9FRKjFQq8QxRl0iv /YLw== 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=F95KjLDTU4DQUKtTxvWovXHtShwnVeu90HDmZ1DGVkY=; b=NuBg6267j9MqNfq35LSCcTtqnnGVPTLMVYeG2DcGN5dZWWrenmYL/WwAe1aKLhbWY9 4QhFVp4LMJpNA94mg6NTE4Fv/8T++4cOvvx211tLs5dCnhCiXb1qR3IwIE6hBsBhc0QL mprIGtBSQil5gVbquRIpnDHS6MvWnTlxMjP9vMIs8KTzst+NiurIo0kaV0E5EgH1+Qa3 vgI6BCLOm1L0Wvfyqg4OFNZGRnNSEoLqNaI9zm+8aNbzxeLAyupuJs+d7fdRfpiQurCh e4P2KoQTJ8zdq4KlNWe3PLfqUrTWMo1T9DxaCnWK5UQUpBNLXhJYgiXR2oY9/Tz9yH3e wkDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p3zJlQz9; 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=F95KjLDTU4DQUKtTxvWovXHtShwnVeu90HDmZ1DGVkY=; b=RGGBSYDlaQQw6C8zIZP7Q+gEjn45gb0kTyXrkRPTdKXhuJukiWyknPwXXBIOQ+YfEN Qa3bLKqH+C0Q9eZOdJLXfed4Z15Js+r5zTGfV9nAO1OsKedE2shscyI4AWQ4rjuZPchs r82RpKbpfPqChJ16Gc+kwZ1bN0imf5e8MDzPA= 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=F95KjLDTU4DQUKtTxvWovXHtShwnVeu90HDmZ1DGVkY=; b=RH4b1uFXxY0XUoUfxxaKSPVzzjO4epRHbt7zBMbbY12Kr+mVmFWYrdDWJI90VmM62v sm30TMlqtyn6G4i0TQF2TGZn1idc+2Qs9ZsGhj8ivPAdgKBEreQYsqbdecyL/gjtVfR0 YWd8fLy/OZ5lJ8ShOHTzraoe8BRQdGcsFaWjmTspZeA2HMQYNqm1M9DXZhO1uEQxAj8O TvaUzSL92drW7jOzmzcITkseCzGnPdo8FXLrfzgqwlbgYYAArKzJMDlxvhvOKydXoTFz w/AlbwM4fRe2mU22m1DIUA6OjDrBVpYTnS7ESYfvVxREPzp6h/1gQOhKKyVQ+VxEYbRO oWGQ== X-Gm-Message-State: AOAM532QAX0y9WgiWsGR7AXrppESsOMLFYEnC/3YDU+4t3kbmZmCaUBJ 1hO3pPfitlAJAN80+AQWl8h9xyRx X-Google-Smtp-Source: ABdhPJxMcJNdqSgv6dhJqhaSYIwSDFphqNtQs2JhaZwr/cU1566JwWTwHWEQxGY0O7avk8heft+RqA== X-Received: by 2002:aa7:8d86:0:b029:19e:cb57:2849 with SMTP id i6-20020aa78d860000b029019ecb572849mr23735608pfr.54.1608721593103; Wed, 23 Dec 2020 03:06:33 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4f4b:: with SMTP id p11ls18036605pgl.10.gmail; Wed, 23 Dec 2020 03:06:32 -0800 (PST) X-Received: by 2002:aa7:9813:0:b029:19d:c82a:92e7 with SMTP id e19-20020aa798130000b029019dc82a92e7mr23448474pfl.71.1608721592387; Wed, 23 Dec 2020 03:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608721592; cv=none; d=google.com; s=arc-20160816; b=yCEmP/t0z/AElaJWCuaJMA0l/bjVQxV6fRjcXQt5ORGlPwWkLj3uMPrMhb6XpTddKh hg5sTowpEaCd+zY4d83NGgtaaasrQ4T/aNrJP8EuDFZyHslzarAV5TkwKPnfivKFqJaz zkcXTtL04CKb06dRtee3VPkvr+iC86lOiHUR+FIZX0bEjz1Uh3eTcZCI51cncAYY8wa7 9bkC0VoHrH+JCZIBMT3lNDIUtWhyaEcgyqumDngfCkOz+DZBs7M5q2xjGOAg6w/pay5K 3Ws8KG/KRei5M+Dg/lFw5qpgwAvnU6B/1lwqzG6t3sSJLfyMn2/wXC8XvDg9kaOxereC 8p8g== 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=WOYP5E3jVy3ELBPtvkaJkjlrVuze1hWdvp4c36IdX2U=; b=PWOzv3pio50ASb29qVC0f3RWkgBM3ntz3o7xmylWMt5UvduU5mYOGmnbdsM6QsB/uC /Moi5+FQPZLk2zxBSXM3TjLe6K5ycI52QjwBuGvrmX+ekUmH7bBocY6WNnbW2ExrVAGs nyOVfjAny+lD1tIE074GZSws/Q17XYHUCv8VuoRo/G4Z6MxyseP99KNAZDhxTsRRJ7yJ j9uQKZITF0M5m3Vum2aTAHTxT739GqA7jCwVVyJpshE6NI0gtcyfyqAMhazmQx8gDRqb BM8o3XNp3XKeWONf0Lwr0shEvOLs8ig0NeIZFpBV1o+vEbm5b1J3dOg4te5dIgMcDMz3 nM6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p3zJlQz9; 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 iq22sor10521852pjb.38.2020.12.23.03.06.32 for (Google Transport Security); Wed, 23 Dec 2020 03:06:32 -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:a17:90a:cc0a:: with SMTP id b10mr25930062pju.59.1608721592088; Wed, 23 Dec 2020 03:06:32 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a884:eca4:40c1:8784:571c]) by smtp.gmail.com with ESMTPSA id 3sm23275909pfv.92.2020.12.23.03.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 03:06:31 -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 v3 6/6] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit Date: Wed, 23 Dec 2020 16:33:43 +0530 Message-Id: <20201223110343.126638-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201223110343.126638-1-jagan@amarulasolutions.com> References: <20201223110343.126638-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=p3zJlQz9; 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 v3: - don't maintain common nodes and include it, if no feature diff Changes for v2: - updated commit message - dropped engicam from filename since it aligned with imx6 engicam dts files naming conventions. arch/arm64/boot/dts/freescale/Makefile | 1 + .../freescale/imx8mm-engicam-edimm2.2.dtsi | 82 +++++++++++++++++++ .../freescale/imx8mm-icore-mx8mm-edimm2.2.dts | 21 +++++ 3 files changed, 104 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-engicam-edimm2.2.dtsi 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 8d49a2c74604..43783076f856 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -33,6 +33,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-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mm-engicam-edimm2.2.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-engicam-edimm2.2.dtsi new file mode 100644 index 000000000000..f7870efd9dab --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-engicam-edimm2.2.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-icore-mx8mm-edimm2.2.dts b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.dts new file mode 100644 index 000000000000..672aee1800c4 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.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-edimm2.2.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; + }; +};