From patchwork Thu Feb 25 19:24:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1641 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0100D3FA3B for ; Thu, 25 Feb 2021 20:25:21 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id jx12sf2055301pjb.1 for ; Thu, 25 Feb 2021 11:25:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614281119; cv=pass; d=google.com; s=arc-20160816; b=VqlM7QOZ+I3atc87fqJV+0YjpBjJLKYnI5eKKe4q3l4a7lt1KXgFuuT2gPvt7aZDx6 l5mtyYOCFm/HQ8AgjpBIK66c03uFBGCJ3UqhQ5qx8P6fL9kR/heAKjYz/Ao6/GNsd4UF 5nY0PRNEuH2ttio475Mbo14w6mmXAdNCr78Sd92GtLHQ6dixTRVbtKBmwL5XIFqMowvt 7clWlfSeTPC++5P4AekV2CLdcOqjjwO6jspODFgASr7k8JB02ODxRF7GwQ0jzwRAmJbP MY+VQ5R2PU3rqLiJM1JgZPCYB7bhiyg30e9UWmue/idd/3H+ZcqmZUx6y1aVdXY9ps1f eRSA== 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=tgnu87aaHF87AfYWkNhh59oMCH7rOehXxQA/abL6o8g=; b=pG/szz3tlbz+xmSLsTUrM2nbWryvCAee/L9MFmWIXHFW7pmlAJ78evRSihk6jtIymT GvZ8dLSxnEtFdTKiO204rcy0wjyoS9Kf4Aqm95FfPN3PsUWl+r+Ez8FrZCq6SOrPXZPO stZxD8hoCNa3MPaeep4t/UYPKYaYPqckTlLW0k9GmopR0wW6oIiuhWYClydB+fJDVrMt 12WE34mNwCszSH+AGghe4ahgTmK5yXLEdL81FTh9YtwRHRBmvVz5EcwtbkrZGh1KiifP PmpsrlBEye7T4auhajyytUJNUUlZNR5m6zYnWFUCyUaNpA/rhCPB8WKOYzziWxJjgJYT 5j0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="c9/U8p0x"; 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=tgnu87aaHF87AfYWkNhh59oMCH7rOehXxQA/abL6o8g=; b=H8XDwSnnFNmDeVz4xvJmSh057S/kAoEWrqsUkqJjV9DB4pFFBtHHnrIiw4B68cPYR8 qJ77Q2UYbQlTl4lQPG1XMpLLA83AnactirLPfn6vzk0EJpbM1QYy08vRflzNSsvWhZ8A o4pIYHyBJ2XZlh8kXQVKPualkt5vrW+fSn7FI= 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=tgnu87aaHF87AfYWkNhh59oMCH7rOehXxQA/abL6o8g=; b=f5dtE88RpDloP4j6UnTSrXsQBXi+fWygfBp0yv82QsVTAQt6clyAcxflpzcKSzIR0A /c3BlapY2aZT64lZBlixd0axAAqVsRyrsTjrKE1mxCFJStTMzRmGWnRs9/l/m7FkDoZo ZyWZZ5XsHZWhfCSxDDO0378DuQjdan1a3VWdF0iMvEKnjPYvDn28p6V4k1PwtKsQMy5m P30IuSObBVtnBKAMfb1iEjkHIdP0gigEkwt9qkEN3cfpPXa18Z/Dj5xR7jfjaborlDQJ D0MrZh2d0U76pb4yMaScH+Z8q1++qeyj+t44VvR4b4LpNvNTP2O5t+wud1mHd888bEfR MIhQ== X-Gm-Message-State: AOAM531iR+U27xgJu6RCS5i7lxBHZsVo4Hd+XM5YujU19Y8gH0MZ6LRm l127ZleLhvVfrr3pOYmg8lnRpepA X-Google-Smtp-Source: ABdhPJy+ZNTJ0RdleAsjVnwXhxImbILALZ7Ng9GuRmmgTFy0Rs2mLu0b0ZgBgiP+3JPAmMo9VtrUrA== X-Received: by 2002:a17:90a:cc18:: with SMTP id b24mr4719663pju.214.1614281119694; Thu, 25 Feb 2021 11:25:19 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:da46:: with SMTP id l6ls2560148pgj.5.gmail; Thu, 25 Feb 2021 11:25:19 -0800 (PST) X-Received: by 2002:a62:7a4b:0:b029:1ed:956e:6932 with SMTP id v72-20020a627a4b0000b02901ed956e6932mr4749088pfc.51.1614281118956; Thu, 25 Feb 2021 11:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614281118; cv=none; d=google.com; s=arc-20160816; b=Kkw1317cYbDuEgoZBIYun72ZZbkhoSwIB8p4tRXE7gifF5e+mwDRqHx2mxp7sVDpVf 4BCeYViWu9BrSEFkM10AkSYAbFuUme8Nnr+EsQQVQkF0H70m+c6k+BEqoX6RP/ZGyxcC iI15tzsC0BwlDpn4TqCIiZQrBaUan2HITQzdcjmOXR27VTi4jM5hokMqyO9pkihUjuy3 xR2mwOYuVCK7fnh7flKFKgFWXtukuWcwzQcu/KGsCqBee19f/mNCwYeDvSO/rXyPspWv p6Ybm2rP3iCCw18ZIboDK5yEsvwNt8ljdhBKg7Q20UDc8erRKOZ9HITqMPDrqs5FlpKY LIzw== 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=quW3btEg2jHOXQDpALymhTw2rBxjqtf7P3lc41i5aQg=; b=vFsB5Pr+W/cAP2ArjUa9eAyGMVINUvsh8yDynkuaP/lsSslqMte6tyrqSqvlWPByXe l1JO3QSaLRTocfBmixdMkf5V3J5BfzkalMgb3lNqybAPTR1ab8QSYbuMHuDr8FJtEa1k CoS33ZMjz1Rld0JZ1BFZJTcZH7YxI4c+N9KmmdGICzwtSfaOZe7Q1ePDH8rBpPOVAP97 WLufmEYjf9rFcaeJ+JohEHaqgraz8mwcusTP/XZEYzY12Yap8wgxerNOXmFMIHq9LwKh 27Fn8a3T0PBLJSe8wf3ATWdxpSGGSAD/1oAbstcGD3JaHzr16B7e4950mZcf/s3rOThL BulQ== 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 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 w14sor3639603pjf.8.2021.02.25.11.25.18 for (Google Transport Security); Thu, 25 Feb 2021 11:25:18 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="c9/U8p0x"; 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 Reviewed-by: Krzysztof Kozlowski --- 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"; +};