Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1115028pxu; Wed, 2 Dec 2020 11:23:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJy62aEEEZ1Wuc61DrwS629E+C+ZDZFvn19r/8TBlh1loecCUpZPEt96gmiEkmlZ4tPIobhO X-Received: by 2002:a17:906:c45:: with SMTP id t5mr1247641ejf.370.1606937003271; Wed, 02 Dec 2020 11:23:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606937003; cv=none; d=google.com; s=arc-20160816; b=ad3oDXgrFnxBtaPz3x/yIjK+e6bpBghqNU7Lw3tcmI8wxadCslmFFRRrEv11GxbCbn iyowcHsTGlApBZ/UyhTlJsZ/0Y63Rrda4liYFxV9+ez5psIz+jovMlJ6kbuDFhx+mtwr g/3fVNFx02/ez4npny7M9WNlXZVlOQPjpiVmiRlBh6JyS9iuYH/N1Q9tQM/tHAhUswip vF8HuuFtTUvAgDPhzK3a6d3gZsyJarxfhnlil0eHX0fs18qqFiO4Y6DiFGegNOwIzfK1 BjbPEqjtPOyiON6IwxfsXrQQ5BftqmEH8hnAta3j8Gl68b5Kj04WhXBVHZDLHyDdDCOU 2B8A== 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=XIV8LJnE3lARpb+8mz8h4ToFKMsLrut7wmR/STxIdEE=; b=MeytpTU0XBYeqzgVthTZGZ3Kg9pxBaeODHC11x1gq19zAQMgt2UtVmWHH8orL0lsEk XUXALb6WxVexwFV4CVzO2pFcXU2A/VC17XipJg7qmEl5mgn+YEYLzMZMabUw51L/9Kzj O9GKbl7ieOQmf5OP9SczIV79K0p3JXgMFlVnrKdjDMR3AlTezBx4BwJKO1wMJGRnQC3d yhgrhcfG0YlmgvhVs5Zccmm+foycBpNlPxV8inY+tXrnWoJkHnCqIO5gD/qtdPGTKvfC VtXgLuvIGBd+KhqQFSHIu0QuI2n5pDHMfI0rjpT/xtlK2TstPb19teYPq0xYm+QKL7zN PoYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kgTd4n3j; 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 c19si535625ejk.311.2020.12.02.11.22.58; Wed, 02 Dec 2020 11:23:23 -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=kgTd4n3j; 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 S1729212AbgLBTVi (ORCPT + 99 others); Wed, 2 Dec 2020 14:21:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgLBTVh (ORCPT ); Wed, 2 Dec 2020 14:21:37 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8BB7C0613CF for ; Wed, 2 Dec 2020 11:20:50 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id jx16so6058011ejb.10 for ; Wed, 02 Dec 2020 11:20:50 -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=XIV8LJnE3lARpb+8mz8h4ToFKMsLrut7wmR/STxIdEE=; b=kgTd4n3jbvmRDM3bC1z5ztn0kKTwXEZFM4YcVi4tN+GRrhGe3qJxKxKi6rX0UlA3tg d1FbKioOtjLGEorIH0HDxNAq4zAF0bY1/AiVBqhINeeAb7Dkol6ZT3oOGqunFTHHd1P9 c8hsNNIULUJv+UW61fZskqZGgDl2Ire8/mPdQ= 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=XIV8LJnE3lARpb+8mz8h4ToFKMsLrut7wmR/STxIdEE=; b=O5/KxEgPJicNdCuTD73FV+RAlz5ssSQubWoctVA5TJGjT7UXPr0bOZvGRcWeJMu+CC ULWqq8FUui02Z3y0QnFZRJYk8RAxCpvJRIoXJOoSCLvQ8CVK/CQgLj53l7oXTTCjOpoW 06sq4iwFrPAsAQdPH5tbTWNLqkDo3e3Rjslc1xKPbioy2SSBYsvJzqQO8zi6zC4SGZ8g ti5WMREvZNfLm41PXD3VxT7E4uY6ve6muoXp5tEdx6sZHy8Ki+27/4PYP+BRuuqO+C1a NwE5qwvFCS2HpNXzBeQVtk7SmbpyCISPkL2KU7sTRA9bFBizKJJmlETgaLswdzRojDBA UH9Q== X-Gm-Message-State: AOAM531k7QHjzR8b5z5M5pYzqh2P+WRlRcKLWXLvu9CpDdnYkX1rg6jg 03Ab5h7aNKeY8JCTEpLYOJc9KUy63BxuTabLHzVnbg== X-Received: by 2002:a17:906:26cc:: with SMTP id u12mr1250114ejc.295.1606936849372; Wed, 02 Dec 2020 11:20:49 -0800 (PST) MIME-Version: 1.0 References: <20201202121241.109952-1-jagan@amarulasolutions.com> <20201202121241.109952-9-jagan@amarulasolutions.com> <20201202174538.GH3490@kozik-lap> In-Reply-To: <20201202174538.GH3490@kozik-lap> From: Jagan Teki Date: Thu, 3 Dec 2020 00:50:37 +0530 Message-ID: Subject: Re: [PATCH 08/10] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0 To: Krzysztof Kozlowski Cc: Rob Herring , Shawn Guo , Li Yang , Fabio Estevam , Matteo Lisi , devicetree , linux-kernel , linux-arm-kernel , NXP Linux Team , linux-amarula Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On Wed, Dec 2, 2020 at 11:15 PM Krzysztof Kozlowski wrote: > > On Wed, Dec 02, 2020 at 05:42:39PM +0530, Jagan Teki wrote: > > i.Core MX8M Mini is an EDIMM SOM based on NXP i.MX8MM from Engicam. > > > > C.TOUCH 2.0 is a general purpose carrier board with capacitive > > touch interface support. > > > > 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 > > --- > > arch/arm64/boot/dts/freescale/Makefile | 1 + > > .../imx8mm-engicam-icore-mx8mm-ctouch2.dts | 21 +++++++++++++++++++ > > 2 files changed, 22 insertions(+) > > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-engicam-icore-mx8mm-ctouch2.dts > > > > diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile > > index 4369d783dade..8191db4c64fa 100644 > > --- a/arch/arm64/boot/dts/freescale/Makefile > > +++ b/arch/arm64/boot/dts/freescale/Makefile > > @@ -30,6 +30,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb > > dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2162a-qds.dtb > > > > dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb > > +dtb-$(CONFIG_ARCH_MXC) += imx8mm-engicam-icore-mx8mm-ctouch2.dtb > > dtb-$(CONFIG_ARCH_MXC) += imx8mm-engicam-icore-mx8mm-edimm2.2.dtb > > dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb > > dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-engicam-icore-mx8mm-ctouch2.dts b/arch/arm64/boot/dts/freescale/imx8mm-engicam-icore-mx8mm-ctouch2.dts > > new file mode 100644 > > index 000000000000..aa3c03ad3109 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/freescale/imx8mm-engicam-icore-mx8mm-ctouch2.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" > > You have multiple DTSI files to only include one DTSI. I was trying to > follow the logic here but I failed... > > This is ctouch, so it should include SoM, which you call icore. But it > also includes ctouch2 which *only* includes common DTSI. It's then > exactly the same as starter kit which includes edimm (which includes > common) and icore. I hope you have checked the cover letter where I have mentioned all the combinations. 1. SoM, Starter Kit, Carrier Board, Open Frame are three different hardware. 2. i.Core MX8M Mini is SoM 3. EDIMM 2.2 is Starter Kit 4. C.TOUCH 2.0 is Carrier board 5. 10"1 Open Frame board for LVDS The combination of respective hardware mounting is, 1. SOM+Starter Kitt => i.Core MX8M Mini EDIMM 2.2 Starter Kit 2. SOM+C.TOUCH 2.0 => i.Core MX8M Mini C.TOUCH 2.0 Carrier board 3. SOM+C.TOUCH 2.0+10.1" OF => i.Core MX8M Mini C.TOUCH 2.0 10.1" Open Frame board About the bindings, (please check the arch/arm64/boot/dts/rockchip/px30-engicam-*), It's been discussed before with Rob for these boards bindings. To, compare with what we have described with rockchip SoM binding, - engicam,icore-mx8mm is binding for i.Core MX8M Mini SoM - engicam,px30-core is binding for PX30.Core SoM EDIMM 2.2 is Starter Kit binding, - engicam,icore-mx8mm-edimm2.2 is binding for EDIMM 2.2 is Starter Kit in i.MX8MM - engicam,px30-core-edimm2.2 is binding for EDIMM 2.2 is Starter Kit in PX30 C.TOUCH 2.0 is Carrier board binding, - engicam,icore-mx8mm-ctouch2 is binding for C.TOUCH 2.0 is Carrier board in i.MX8MM - engicam,px30-core-ctouch2 is binding for C.TOUCH 2.0 is Carrier board in PX30 C.TOUCH 2.0 10"1 OF binding, - engicam,icore-mx8mm-ctouch2-of10 is binding for C.TOUCH 2.0 10"1 in imx8MM - engicam,px30-core-ctouch2-of10 for C.TOUCH 2.0 10"1 in PX30 So, there are 3 board combinations of which each board has a binding of SoM and respective carrier binding like i.Core MX8M Mini EDIMM 2.2 Starter Kit has "engicam,icore-mx8mm-edimm2.2", "engicam,icore-mx8mm" "engicam,icore-mx8mm-ctouch2", "engicam,icore-mx8mm" "engicam,icore-mx8mm-ctouch2-of10", "engicam,icore-mx8mm" Some of the DTS files are using the engicam-common.dtsi nodes and for ie reason those are empty and some need to have lvds display node which is still underworking. Hope this information helpful. Let me know for further inputs. Jagan.