Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp479215pxb; Thu, 19 Aug 2021 04:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqKi6fXfXOpBp/T20PgETN6HwgbKBtvv60SsoPkf9rqQMRqDLTJsjLhlSRZmJqFz9Fu8/e X-Received: by 2002:a05:6638:521:: with SMTP id j1mr12415669jar.122.1629372094407; Thu, 19 Aug 2021 04:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629372094; cv=none; d=google.com; s=arc-20160816; b=B3FvETuMfPjTbFgeuMVBh3h843fNFP8/xY4m0jCCmu57s11fNm6yLxbPCVcGhM/Gw/ RyAXTl+zPc3ZvJffW0Pj/fcxHqBkCY0mTjIyFUNqNxCvQPvMC5MoavNto9Rwg5/nrgbb wB5sC/93CBE10bhE5rccuXA9OObTGHRXsm/z+FJTtFwAQLbkoCXF0vsZfXdON8RyCN+E U8pzz//d9Bcx2YvTnTwlVZZJsb4hOTyi1dHBbmqn/V/FQCNaFPnbiRoul5Gb0C1o0WjP TFJM1x3sNQUxNEr/RsLsei1zW2iYLtzf31eZ0oNvL/i2ceCUr4SeBB580HVt0tSXLrXA qZ3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=cly1CcQV6tbFO9YtuFlZD8SaQEg+trm4tV8NazuCvks=; b=z0rLOOQEzv4VnhOADirJvM3f2QDIlLcHdm5uEEZxoHKGI5GCDC614RPJ1J1fb/vgIR GqcB+W322yvDNujQYxtk2LHk480480EURntTxpDTJybJPqhpl/jTAK13MEQ+vPWTe372 2oGvBXAVJvI+t6IuLNM9j40/qApM0N2r3S6ZoNEbkEGDBB6YdPUOXYgzKb1zflyk/Aer 2HTM3jzeEc1f3Nq8Q7Xw5o9b/UrmoDUPJnKW4kNE8Fuc9LccRXWbCu3gS3RJO7dgszqv /BXVLlBdyQsZFmMXMoD9sfrjVFYWlPwzFqCk/GwFNQfPk4Yx/m4EjXRQnIFz4DvX11kN +sYg== ARC-Authentication-Results: i=1; mx.google.com; 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 y11si3053854ilc.54.2021.08.19.04.21.22; Thu, 19 Aug 2021 04:21:34 -0700 (PDT) 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; 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 S237127AbhHSLVE (ORCPT + 99 others); Thu, 19 Aug 2021 07:21:04 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44243 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbhHSLVD (ORCPT ); Thu, 19 Aug 2021 07:21:03 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 602BE20005; Thu, 19 Aug 2021 11:20:26 +0000 (UTC) Date: Thu, 19 Aug 2021 13:20:25 +0200 From: Alexandre Belloni To: Hari.PrasathGE@microchip.com Cc: Nicolas.Ferre@microchip.com, Ludovic.Desroches@microchip.com, robh@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk Subject: Re: [PATCH 2/2] ARM: at91: dts: at91-sama5d2_xplained: Add comments for sama5d29 Message-ID: References: <20210812140758.28273-1-Hari.PrasathGE@microchip.com> <20210812140758.28273-2-Hari.PrasathGE@microchip.com> <78b26b01-b66f-5779-9f67-fdd13e473dfc@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78b26b01-b66f-5779-9f67-fdd13e473dfc@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/08/2021 10:56:21+0000, Hari.PrasathGE@microchip.com wrote: > Hello, > > On 13/08/21 12:56 am, Alexandre Belloni wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > Hello, > > > > On 12/08/2021 19:37:58+0530, Hari Prasath wrote: > >> Add comments for the end user for modifying the DTS file for > >> instantiating the sama5d29 SoC. > >> > >> Signed-off-by: Hari Prasath > >> --- > >> arch/arm/boot/dts/at91-sama5d2_xplained.dts | 5 +++++ > >> 1 file changed, 5 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts > >> index 627b7bf88d83..faa30063d9a9 100644 > >> --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts > >> +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts > >> @@ -6,6 +6,11 @@ > >> * 2015 Nicolas Ferre > >> */ > >> /dts-v1/; > >> +/* > >> + * Replace the line below with "sama5d29.dtsi" in order to instantiate the > >> + * sama5d29 SoC of the sama5d2 family.Otherwise, leave it unchanged when > >> + * using sama5d27 SoC for instance. > >> + */ > > > > I guess it would be better to have a at91-sama5d29_xplained.dts (and we > > should have had a at91-sama5d27_xplained.dts), else, you can't create an > > image that will support both variants. > > > > > The new SoC 'sama5d29' belongs to the same sama5d2 family. It is > essentially a new chip revision of the existing sama5d27 with a new GMAC > controller IP that addresses few silicon issues. There wouldn't be > separate evaluation boards that shall be made but we will be using the > existing sama5d2 XPlained boards itself but with the new SoC populated. That's what I understood but a board with a different SoC is a different board. > Hence we have taken this approach of having a separate DTSI file and > reuse the existing board specific DTS file. > > We don't want to create single image that will support both variants. In > fact, we don't want our customers to enable certain features that are > broken at the silicon level in the existing revision of the SoC i.e > sama5d27. Instead, they could do this change manually and use it in the > new SoC i.e sama5d29. > This will be confusing to your customers while you could make their lives simpler by having the bootloader chose the proper dtb instead of having them change that manually. They will then have to regenerate images with that change, see how your customers struggle to do that: https://stackoverflow.com/questions/68222619/update-custom-device-tree-on-yocto https://stackoverflow.com/questions/37347808/how-to-use-an-own-device-tree-and-modified-kernel-config-in-yocto https://stackoverflow.com/questions/63047955/overriding-defconfig-in-bbappend-file -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com