Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8899522pxu; Mon, 28 Dec 2020 00:36:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgpR/bQKsqIIv2xetRtiuhD8O9VMAomaJWajLRUg/39qtpIchberCCd/3iZStxZTPPT47D X-Received: by 2002:a05:6402:c0b:: with SMTP id co11mr40612032edb.180.1609144595766; Mon, 28 Dec 2020 00:36:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609144595; cv=none; d=google.com; s=arc-20160816; b=S8G7PfuNyDzOrjKK3XcaBLqTsSgNGCEvnspWBzGHyymP6oTA/jnw2M/L+MVLaUoUcm fqMcDyTFsvJGkAe7TC+X5lVeYlv2ISZqjecQANZ0FkCyW1bGfQ3ShnPaP66qD75Yz1N9 WQGfnEUkiWyopAvjLKIZWW/JEdVdpYNPJ6kfOxq9p+MOhhClrro+URwYdfh9p3h36mHE C1PLn+KDgsWPSp+NX8lzIpesRqvvhLRh+DpPrlSjqOZPVYtPsdEJqunIzey6RpMZS3SP jdsmfWJYb7vw8yNrF/wV00H0WR2AV56hjrFxnc4mBzR9KpkSTlP18GRWDWyUoKX6uyhX hQXQ== 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=5G1n56C71j9pJKhwGAx7IkLxlpCqLn9XwcLEY9aCJiw=; b=xzHHsDcY/7+AJq3NEDmu1IVHHN6G2qvEYPWpaz+5cVoPp0Dxy7lG28DR9k/2N/NN2E mu+4IarwepgHeB1cQXcSf2Tad7retsRzlja2ieAQ1sQ2bm2NT9rlStoV493oP2SYnv0U HSgIhSMLD5Pk23vvzYUA/kLz/Gv3YThu7gKskn3hTgJk0UJGTpzCL6KNmzArvbvKKCes yPt5yldZg/TAEtRfOLUQzDK2MyE6IYKsrBH9ASECAHfktYhTyRBqLMMB6NHvB+NJndgF R7mebghH8D/j1d0u7Nw+qHhvFkEQivGRHX9iVCC5rFonwQAC79Ux2p7sUVCGztSkPt0i hVGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCJ4F3qu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si20480938ede.232.2020.12.28.00.36.13; Mon, 28 Dec 2020 00:36:35 -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=@kernel.org header.s=k20201202 header.b=XCJ4F3qu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726517AbgL1IfL (ORCPT + 99 others); Mon, 28 Dec 2020 03:35:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:55498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgL1IfK (ORCPT ); Mon, 28 Dec 2020 03:35:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 66C7422582; Mon, 28 Dec 2020 08:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609144469; bh=5G1n56C71j9pJKhwGAx7IkLxlpCqLn9XwcLEY9aCJiw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XCJ4F3quy8czwg3PgpCPumaVqfvn4NqeG0UWe+gNHoLUwB3S4O/vril6+rIed6W3v Wdlc4Rjq+502oN0LSOeKd+In1Ta2l2xJNAhprmwbhjSbyB8xVd4ooQMNBnHyhorYP6 R3v2qMRaLohD/ADiL79RPo4vJR6XyFTEh9lSQA7hEQVyNvw9bRKCEMmsMWHg2oTDX0 2WFuIvmvGUuGZDeVisRlll1Sqgm6SQRUQ77ctlfSkBQ+/VeaL4zBZmmeMzizbMfrwK Yo0eoQ9cry3ZZnx2y8UpxYHI1o91uQQ0NZblU4AyBtrZntlC7uPbpDswvPXN7n1UR2 kupP3mLCIkaeg== Received: by mail-ed1-f50.google.com with SMTP id c7so9074112edv.6; Mon, 28 Dec 2020 00:34:29 -0800 (PST) X-Gm-Message-State: AOAM532FIlrWLHwJQnMw6dlRqU5KQvx5DUci/G+C0ZhiZXp1qYOBUQz9 Gf1BLybSmkrypbQOpSATJlj2fuAT7GyNEbUGBGw= X-Received: by 2002:aa7:d593:: with SMTP id r19mr41858975edq.246.1609144467956; Mon, 28 Dec 2020 00:34:27 -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: Krzysztof Kozlowski Date: Mon, 28 Dec 2020 09:34:16 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 4/6] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0 To: Jagan Teki 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 Mon, 28 Dec 2020 at 09:21, Jagan Teki wrote: > > > #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? If you submit another DTS using the imx8mm-engicam-ctouch2.dtsi - with its own differences of course (not copying other DTS...) - then having a DTSI makes sense. In current form, still NAK for all the reasons I explained more than once. Best regards, Krzysztof