Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15061932ybl; Tue, 31 Dec 2019 00:16:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwo5GLchsRhG3+0+Kcyb/44HpnvRBOOqiaQKGtnpxgD4yN2/0PHhvpDdXt6ijooCcIy2RKA X-Received: by 2002:a9d:630d:: with SMTP id q13mr74464942otk.31.1577780186687; Tue, 31 Dec 2019 00:16:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577780186; cv=none; d=google.com; s=arc-20160816; b=quMkdPUcrsPJBaf4ZHNODLeCeU2HHQqa2EhkntW96hfeNFl6x/Unpc0tTHCjZbOE16 WDGFx85eqFugOz5IUBDUV2Mpa0BczwEDOHYCqDqPlYd2b5ZuB1d2WW4B1qborLmsGkLf L4cT+WGWcxfMEbbPRzSH4PuLJjX1s3NJ26tLs6QJjvhn0B2dzP8csNxuepo0v9x+8+9k SnftzDo+pnehtJlk2Uu8S3h+C3/2NLm9gQvrVvbrcPETCxbOljlrhArrjru/D3eciOTZ TSmFDy00uNETGukWP7qEBimPlKlMgGw2XBoKMUuQBytQAzba7wr/kij/DbvgYqmjNcJq fASw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=1zb1yyg45rffTMBSTY3brW53GCegT+pQHuPQHh8FR7E=; b=FsS781jcWfBG9gQ5WWO7x0R6nrTAdkfoerHW9a2XUqojJo8jsadGzLcOCDQTvcuZ/V +wBPLypMiFx1Vn67a/40AnnQu/QhtczdDrnIhul3LZAiOOVIgD2+s+TQeJuyZFswmuhX f5wOhvXUY672zDAl4+KEMvFB9gbyTsOX2exHZxh7yYy51wc/b9JtxEwpTPDlJBni8syw Uo47iSKe7mrx2vGU4FWLnA6K+IC30fk4RwNklOLlprjqh6e56/E3IK1QS7nXPEQN1ksi LFKSvYr8I0UJqw+ZsQTVsoPmTlm8G7G9b6Hk1DEGnce7iflWgtTl70vyLBKBnjZZ86Mn IcGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=iY7AF2Hk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si22321534oij.139.2019.12.31.00.16.14; Tue, 31 Dec 2019 00:16:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=iY7AF2Hk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726425AbfLaIPc (ORCPT + 99 others); Tue, 31 Dec 2019 03:15:32 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:12370 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfLaIPb (ORCPT ); Tue, 31 Dec 2019 03:15:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1577780129; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=1zb1yyg45rffTMBSTY3brW53GCegT+pQHuPQHh8FR7E=; b=iY7AF2HkRPj48jdFCvBJ8GBjhrR/kUJCqk5Si28roU6del0bNM/UoJEpcnWHFb00ay LKTrHBlfGeQHaTEvWr6lvLfdVcvSQlWAxtHNtvfFk/puaeSQ9dukyAyP6ih/fg6LWzR6 zP0BfhG4xy8XPr+gWOJdBcyZjuX9lph0qHm/3exP+s2Dfo7i3UrVsCQmj33A0ApkXiKb zAHKIRS33bLplgM4mVi5yRUasvbjSDrz+3N1JGTa1zVoyoowBehTqddsDTzXMKFtvRp8 Ha2Mq2HkNfAlaRAaQ38PD+OzP2aBkx0RtGA4zxS95CvkG2NgL4gZZGQNj7N1fwBgaw3E b1HQ== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGH/vswDOsxLg=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 46.1.3 DYNA|AUTH) with ESMTPSA id a09dafvBV8ECFj7 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Tue, 31 Dec 2019 09:14:12 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH] ARM: dts: Add omap3-echo From: "H. Nikolaus Schaller" In-Reply-To: <20191230172948.GL35479@atomide.com> Date: Tue, 31 Dec 2019 09:14:12 +0100 Cc: =?utf-8?Q?Andr=C3=A9_Hentschel?= , Adam Ford , linux@arm.linux.org.uk, robh+dt@kernel.org, mark.rutland@arm.com, bcousson@baylibre.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <55E6481C-2137-4086-ACDF-5F7D86E41A21@goldelico.com> References: <20191224161005.28083-1-nerv@dawncrow.de> <20191224184503.GK35479@atomide.com> <60412339-53BF-4DC1-8AF6-4FB0E75D429C@goldelico.com> <53e6cbbd-1094-cba2-4942-981502a738d4@dawncrow.de> <20191230172948.GL35479@atomide.com> To: Tony Lindgren X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, > Am 30.12.2019 um 18:29 schrieb Tony Lindgren : >=20 > * Andr=C3=A9 Hentschel [191227 14:29]: >> Am 25.12.19 um 18:01 schrieb H. Nikolaus Schaller: >>> I think the am3703 is a dm3730 (omap3630) where the SGX and the >>> DSP have not passed production test and are "disabled" by eFuses. >>> This is a common procedure in silicon production to increase yield. >>>=20 >>> Therefore, there is a register which allows to dynamically determine >>> what components (SGX and DSP) are available on a specific SoC chip. >>> See "Table 1-6. Chip Identification" in the common >>> "AM/DM37x Multimedia Device TRM". >>>=20 >>> Such bits exists for omap34xx and for omap36xx (aka am37xx/dm37xx). >>>=20 >>> That way there is no need to disable/enable sgx through device tree >>> variations and introducing more complexity by introducing more and = more >>> DTS for variants (am3703.dtsi, am3715.dtsi, dm3720.dtsi, = dm3730.dtsi?). >>>=20 >>> BTW: what about a board that is/was produced in either am3703 or = dm3730 >>> variants? Can they still share an omap36xx.dtsi based DTB? >>>=20 >>> So IMHO if there is an issue with sgx enabled on am3703 but no SGX >>> hardware available on a specific SoC, the sysc setup should somehow = read >>> the bits and effectively disable all SGX related setup if it is not >>> available on the SoC. If I remember correctly, some older hwmods did >>> such things by checking SoC variant bits. >>=20 >> I like the idea, but I'm not in the position to vote for it and I = don't >> understand the sysc code enough to implement that. >=20 > We can easily do both. So no worries, I can easily add SoC capabilites > support at some point. >=20 >> Am 25.12.19 um 13:53 schrieb Adam Ford: >>> On Wed, Dec 25, 2019 at 6:05 AM Andr=C3=A9 Hentschel = wrote: >>>> And then include am3703.dtsi in omap36xx.dtsi before sgx support? >>> I can see value in having a 3703 base and including that in the 36xx >>> with SGX and DSP nodes, but why not jus make SGX disabled by = default. >>> Those who want/need it can enable it on a per-board basis. >>>> Or would it be better to have sgx support in a separate dtsi? >>>=20 >>> I am not sure how much DSP stuff is in there, but the DM3730 is the >>> AM3703 + DSP and 3D. >>=20 >> For clarification this reduced table should help: >> DM3730 | DM3725 | AM3715 | AM3703 >> DSP X | X | | =20 >> SGX X | | X | =20 >>=20 >> Where X is "supported" >=20 > And let's also add minimal dm3725.dtsi, am3715.dtsi and am3703.dtsi > to make things simple. Well, is that "simple"? We also have to add omap3503, omap3515, omap3520, omap3530.dtsi. And probably am3351,2,4,6,7,8,9 variants with different capabilities (PRU, SGX, CAN, ZCZ ports to name some). And to be correct, there should be a different "compatible". Rob asked me when reviewing the pvrsgx bindings if the img,5xx variants can be autodetected to reduce bindings complexity. > The device tree is supposed to describe the > hardware, and in most cases the SoC version is fixed and need no > dynamic detection. There may be exactly the same board populated with either one since they are drop-in pin compatible. So this may proliferate to the board.dts files and u-boot can have to load different .dtb. >=20 > Andr=C3=A9, can you please add those three dtsi files since you have = at > least one test case? :) >=20 > Regards, >=20 > Tony BR, Nikolaus