Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4803541pxu; Tue, 22 Dec 2020 00:53:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTgM7b2GMfdVHyVDfYvgogLbQlMY1xV4cH0VV+HOlAX2B8HEk0A0MpNl95P16jnxYWIOLl X-Received: by 2002:a17:906:4809:: with SMTP id w9mr18837072ejq.139.1608627228631; Tue, 22 Dec 2020 00:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608627228; cv=none; d=google.com; s=arc-20160816; b=oDX6Hm+KUUVVaT/y0WehQGXy253h/t/Co26QvWP9wkn/gRcLDGZkFqBPzoxRoJD2hu 8t+WGz9SMk1WLrQ3malx/eNm4Oruf+haZpsPTi5JJPJlb8RJKLqT4TW5CgguxgrlIvrG cqrzypfNTR5F1vP8FqZwbMXXeYtoQM/nOOdimoNivWCgZ0kAGjyGM/Lw1m/WKJPvGVbs 29MLDPz01WiZpAHA8UM1pvCzwiNuOd3k75fKBzo+niZSQrJklf50VuAFu9PriDpw/Buv 5ZFNFRPtC5lgbMlAP27c9jXcenWczv/5CjMWIn2xvQW5SRb9cNTZUn7A1Kgi8RtDWsNl 9ZkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Jw7pAvMhTMzCdwMwDUYDkty+J1oyK3sGi3/Q3qZzhI4=; b=hUIlG/1JJvuEfYC384J+dI3ECKWA04a/ArB4aCCx1GWnvqO32dYvHsye/2KPhJVZaY dzhfeqDRticIbDeXkyucNnxQVRMgtfnaVWjxS9qmoUPVU02PbYFA42tOfa4fDmIqpE9h 3pHOvFBbRMIbE3/G3qA4yz+CN4IJwxcyui525q9y5LdLjOqJ1BNzkd0+HT+Vszd3bOF/ hR5VgQHu9JGo5rZt87Zao9Y1QCewXURka9rw+f8xL/l94d6wMy2fdEo0L7pO2opdGIZQ EJrEctB7qOmfVBwnP1y4FDJCVArKh+7Tm44SVvkY1deKRuV61gR4dY+KCww4Cuj8ovTk Qo+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=M7rKzFAv; 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 j23si10266663ejy.309.2020.12.22.00.53.26; Tue, 22 Dec 2020 00:53:48 -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=M7rKzFAv; 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 S1726221AbgLVIvt (ORCPT + 99 others); Tue, 22 Dec 2020 03:51:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbgLVIvs (ORCPT ); Tue, 22 Dec 2020 03:51:48 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E917DC0613D6 for ; Tue, 22 Dec 2020 00:51:07 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id z11so11264560qkj.7 for ; Tue, 22 Dec 2020 00:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jw7pAvMhTMzCdwMwDUYDkty+J1oyK3sGi3/Q3qZzhI4=; b=M7rKzFAvnf1eVok6BR2BkWW8L3u6lT17e0MCu4a7zRxzT1SFl2ADqVVldn9Vs1J8ZK cVN8iYFnRfq2Hna8rrb/BzeVVqTvA3vltkdkcj7hnu+PcOsS0hpvRhj8hlJZwygFm4m9 t5Hz9EHUlAUFFiPYn2caTRqRc6VwgN+WAq6OE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jw7pAvMhTMzCdwMwDUYDkty+J1oyK3sGi3/Q3qZzhI4=; b=AfCyf+fJYXj1dQ5nEdM8kNv5ZgcPxXbsLLWmAvntciD8iDHjkrFftHAHFh3dj5Q036 wACRi3LYtQff+BXa5KSfNemw6kMKVGiljZ2+c8DWcpJDv8FLgqzkt4W5kKgtrS2k/rwy 5Yw/CSXXQJ9U+tZPNDj8RUwDrDladEvXu+f0njV7fELZq3aJ8iulUI68r90bkeAG62jB +z1jyvNAWzoSCXmgIxNynQ4MdcC8Ee9b3A4AeIFd7CnCxzQBziSTKdXxtxW0uJ3V+nbj eQJR+IaK/7HWcZJbUl8VdNG9XSQoaTDHVom4lUed37RRF232otC4GjIJ2OY8Ah5aTWgX qJGA== X-Gm-Message-State: AOAM531L+ejb0L8vd3P8+L3qB/PHoGnkVVLHDR3op6jeB+8CC1fZC4tF +rcTYCUeKMt3pgxmpJMPyhURq+O74uSsfG7i3hynxw== X-Received: by 2002:a37:a1d6:: with SMTP id k205mr21033434qke.384.1608627067021; Tue, 22 Dec 2020 00:51:07 -0800 (PST) MIME-Version: 1.0 References: <20201221113151.94515-1-jagan@amarulasolutions.com> <20201221113151.94515-7-jagan@amarulasolutions.com> <20201221140642.GF31176@kozik-lap> <20201221210601.GB2504@kozik-lap> In-Reply-To: <20201221210601.GB2504@kozik-lap> From: Jagan Teki Date: Tue, 22 Dec 2020 14:20:55 +0530 Message-ID: Subject: Re: [PATCH v2 6/6] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit To: Krzysztof Kozlowski Cc: Rob Herring , Shawn Guo , Li Yang , Fabio Estevam , devicetree , linux-kernel , linux-arm-kernel , NXP Linux Team , linux-amarula , Catalin Marinas , Will Deacon , Matteo Lisi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 22, 2020 at 2:36 AM Krzysztof Kozlowski wrote: > > On Tue, Dec 22, 2020 at 01:03:07AM +0530, Jagan Teki wrote: > > On Mon, Dec 21, 2020 at 7:36 PM Krzysztof Kozlowski wrote: > > > > > > On Mon, Dec 21, 2020 at 05:01:51PM +0530, Jagan Teki wrote: > > > > 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 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 | 7 +++++++ > > > > .../freescale/imx8mm-icore-mx8mm-edimm2.2.dts | 21 +++++++++++++++++++ > > > > 3 files changed, 29 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..294df07289a2 > > > > --- /dev/null > > > > +++ b/arch/arm64/boot/dts/freescale/imx8mm-engicam-edimm2.2.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" > > > > > > It seems you ignored my comments from previous email. That's not how we > > > go with the process. > > > > > > Don't create confusing or overcomplicated hierarchy of includes. Don't > > > create files which do nothing. > > > > Idea is to move common nodes in separate dtsi instead of adding > > redundant nodes into respective areas. let me know if it still > > confusing. > > A file which *only* includes another file does not fulfill this idea of > moving common nodes to a separate DTSI file. Or if I still miss > something, please point me, what common nodes are stored in > imx8mm-engicam-edimm2.2.dtsi? imx8mm-engicam-edimm2.2.dtsi for EDIMM2.2 Carrier imx8mm-engicam-ctouch2.dtsi for C.TOUCH2 Carrier imx8mm-engicam-common.dtsi for common nodes for above 2 carrier boards. Yes, imx8mm-engicam-edimm2.2.dtsi is empty now but nodes like PCIe, CSI, DSI will support once the respective drivers are part of Mainline but those are not supported in C.TOUCH2 carrier board dtsi. There are some GPIO pins differences between EDIMM2.2 and C.TOUCH2 carriers on WiFi/BT so those will be part of the respective carrier dtsi. Hope this would clear. Jagan.