Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8894253pxu; Mon, 28 Dec 2020 00:23:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/7HcZEzxqbnRs9jiBSechveiTeCNxsv36dnB8Lgun5DRyS8v6nnfvM7eu/jEH5NFY7P3O X-Received: by 2002:a17:907:1692:: with SMTP id hc18mr33077894ejc.26.1609143835361; Mon, 28 Dec 2020 00:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609143835; cv=none; d=google.com; s=arc-20160816; b=F8skxEmYGXcxjzjpWk5PhCW76heWXqoNNK3Ua4Uz+kJKXte1msQ8D2viWMMom+aeaj EEEeaMnJPffNXiE/KB+N6zmKrxRMGGM+a1FG/vDC+6kUynjJXmJAmnU8egEqbu2ndUxg 1tCxCEWRzZcU0L0eyo7xZ6Tl4lk1axCwfLENIs60eiXthlDt+JgbsR46c9At7Fcxx6M+ wWGEKnMYLWtJkZfyW4otT04NuSoFAqxq5/FB6Xl4YwNaVqbXN0qEtn8499TxZw5QZW4t C77U062pQPwoP5fhUsLcYuAuixiPAL7wmqJn6HcjQ/yoZmib1ztLClKLnDeNsNIQeB/B OiZA== 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=YEqUsm2Ug03agSnR9VCC2DGwWqGxQTTzvFac2nF2ZaQ=; b=GmBhuOgBgbmQwpQXJVaTNvwm0wv/6uGof1mhID+XyihIj3wNPQki85As0elNHkaLDl IVgA4dgmQOzAirN2SEtaz6uTSYqVok+rMJM+fnCQMYZ2hIMXuR0fIZhMOmUD+Ny0o1RZ QzEWCHU2P1HoGho6hboXLA44Oewy27mJWW/Q3IJwNb3XdROdaKNmG0M3+L2rWJGiivL7 jy+zFVwBowSaG3+Exh7P3a8ZvKje97vQSktO6xs9k2aox3blZTN3rI93Sz0tVMt4C3qF 8ag2VOtX33CZkqE4g5a1LUdAc4STwXr0Afu/aUI8JMw2CneDFbzZaIbPOFMfo/n7afBT S6fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LAFOX54F; 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 i11si17904237ejb.22.2020.12.28.00.23.20; Mon, 28 Dec 2020 00:23:55 -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=LAFOX54F; 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 S1726365AbgL1IVs (ORCPT + 99 others); Mon, 28 Dec 2020 03:21:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726363AbgL1IVs (ORCPT ); Mon, 28 Dec 2020 03:21:48 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B2CC061794 for ; Mon, 28 Dec 2020 00:21:08 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id lt17so13235512ejb.3 for ; Mon, 28 Dec 2020 00:21:08 -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=YEqUsm2Ug03agSnR9VCC2DGwWqGxQTTzvFac2nF2ZaQ=; b=LAFOX54FlmvMu9abO6JG9xu7ZOXFYk8MGfcQFnG6LT38pljFcanAz3pYMSFYmMrTur bXTY4C3hD69mZvJFTeriarybKN5qd0vBoKKYaZRHd+m7dTlVWLYxuh3+Nm/OxtsSyBi3 GO2HLzt0pC4SQvszlBjTvdNviYhZuqJFstV9I= 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=YEqUsm2Ug03agSnR9VCC2DGwWqGxQTTzvFac2nF2ZaQ=; b=hcuNdDFeicFdF9xliO0PdRLUTutyh+73yg48BvTOco+Wl1GGDL68BM5KfZpbNE1hwQ xBWG7qi/3HO0W7ilRBZPZziextWs+hqeVYlCIVYYISVaXcG2p3EZ0eyvpIVCWeTmEACJ E8FEWKHZOX54y0lV+64wXDBjXFP8M6PNGtUdelWt3926n277QTH2dDtqab6BPza1883R tkLmXC4IYHYQfhYOr/mSImTHROLioY2Bm/KrLSa9CBY5TIKfU5coRrRe9cYFUHdr8ZDR S3HIc7imbVYJbSFsJlA65+tChSo/rc8/ERFR0oJB0PaemqUn02lz3EPprO2O0fUmXXIc 0M0A== X-Gm-Message-State: AOAM5305aN+3SjvhYz/9PjJePL0HCrf0TtuYKwvBGhn1ehLYBYzOim0g QNaoZaLlL+PblH+TuGOFCk8MHnf2Rrf/OOw3T3rkCQ== X-Received: by 2002:a17:906:2707:: with SMTP id z7mr41082373ejc.418.1609143666663; Mon, 28 Dec 2020 00:21:06 -0800 (PST) MIME-Version: 1.0 References: <20201223110343.126638-1-jagan@amarulasolutions.com> <20201223110343.126638-5-jagan@amarulasolutions.com> <20201223115933.GC21091@kozik-lap> In-Reply-To: From: Jagan Teki Date: Mon, 28 Dec 2020 13:50:54 +0530 Message-ID: Subject: Re: [PATCH v3 4/6] 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 , 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 Thu, Dec 24, 2020 at 3:51 PM Krzysztof Kozlowski wrote: > > On Thu, 24 Dec 2020 at 11:08, Jagan Teki wrote: > > > > On Thu, Dec 24, 2020 at 2:48 PM Krzysztof Kozlowski wrote: > > > > > > On Wed, 23 Dec 2020 at 13:07, Jagan Teki wrote: > > > > > > > > On Wed, Dec 23, 2020 at 5:29 PM Krzysztof Kozlowski wrote: > > > > > > > > > > On Wed, Dec 23, 2020 at 04:33:41PM +0530, Jagan Teki wrote: > > > > > > 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 > > > > > > --- > > > > > > 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 + > > > > > > .../dts/freescale/imx8mm-engicam-ctouch2.dtsi | 82 +++++++++++++++++++ > > > > > > .../freescale/imx8mm-icore-mx8mm-ctouch2.dts | 21 +++++ > > > > > > 3 files changed, 104 insertions(+) > > > > > > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-engicam-ctouch2.dtsi > > > > > > > > > > You split some common part to ctouch2.dtsi so it can be reused in > > > > > multiple places. I saw so far only one usage, where are the others? > > > > > > > > To be clear, ctouch2.dtsi not mean for common it is C.TOUCH2 carrier > > > > board dtsi. The other carrier is C.TOUCH2 10.1" Open Frame(display), > > > > since DSI is not yet mainlined, I didn't add this yet. > > > > > > If I understand correctly: it is a DTSI which is included only by one > > > DTS... and DTS does not have any other nodes. This as well is not the > > > > This is not mandatory as per my understanding, including exiting DTS > > topologies in Mainline. > > > > There are several places where more than one dtsi has been included, > > Simple example of imx8mm tree is > > It's not the problem of including more than one DTSI. It's the problem > of creating fake DTS or DTSI files whose purpose is only to include > others. Keep it simple. Don't create unnecessary files. "Entities > should not be multiplied without necessity." > > > > > arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts > > Which was wrong as well. Don't create unnecessary files. > > > > > /dts-v1/; > > > > #include "imx8mm.dtsi" > > #include "imx8mm-beacon-som.dtsi" > > #include "imx8mm-beacon-baseboard.dtsi" > > > > (SoC dtsi, SoM dtsi, Carrier board dtsi) > > > > > design which makes any sense. We do not create empty DTS files which > > > only include one more DTSI. The contents of > > > imx8mm-engicam-ctouch2.dtsi should be directly in > > > imx8mm-icore-mx8mm-ctouch2.dts. That's the same problem as with v1 - > > > you overcomplicate simple stuff. It really looks like you ignored the > > > comments from v1 in multiple places. > > > > As explained above, the design is pretty much the same as the existing SoM's. > > > > imx8mm-engicam-ctouch2.dtsi is not just a dtsi file where nodes are > > enabled. It has nodes enabled for Carrier board, so keeping nodes > > separately will > > The files represent real devices or their components. So you have a > SOM - a DTSI file. You have a carrier board - a DTS file. That's > simple design which is mostly followed, unless something over > complicated passes the review. > > > 1. More verbose for which IP's are available in the carrier board > > No difference when carrier DTSI is the DTS. Exactly the same. > > > 2. Easy to extend if someone can create another SoM with a similar Carrier. > > Not really, if they include carrier DTSI they need to override a lot. > So usually (including practice - I did it) they *copy* the carrier to > create their own design. But what if the new board has slite change to use exiting carrier like what ctouch2 10" OF. Can we add ctouch2 dtsi as a separate file for this case? > > > > > Ie is the whole idea to keep carrier board dtsi and includes them in dts. > > > > As I suggest, if you can look into px30 you can understand more easily. > > NAK from my side. I explained my reasoning. You created a fake, empty > DTSI which included only other DTSI. After review, you agreed to fix > it. However you still create a fake DTS which includes only a DTSI. Not sure. I have updated the series according to comments by dropping -common.dtsi ie what I was thought of "empty DTSI inclusion" you have pointed at previous versions. Jagan.