Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14405864ybl; Mon, 30 Dec 2019 09:30:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwLcdAbmqptS7Tv2eUDt6Wj5qz0qGLNwujDaqjv0YchO0I/kAB1s2CE5yJiemfUBzN56qtZ X-Received: by 2002:a9d:4b05:: with SMTP id q5mr60925654otf.174.1577727046398; Mon, 30 Dec 2019 09:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577727046; cv=none; d=google.com; s=arc-20160816; b=kwuvn4TT/suvSdTC3RHkSWgymdz+94vsasOxgCW7HDIHMhEiw/HzowHjOmy+CbClhq /tzZbydRYyToqmgMbRdqKbGShGYY8ud20Yy/IR9vBpxmaYUItNJ2E80/DJYS96CXrivg drjtLkxR+69CLrKP0kfjmYtaWA9bGqIhWAUjJA6EtKJ8n0vNgH0gXFDffZdqBIMbksF/ oqq37g35a8qELS4KMpMboT1ajQvCH5KgnIg1AWjFLarWqaUHLPZyKQWQD+Q2Zn5WTEOb gdlFVMYQOV5FOft5gqjzsMnGs+O/ELuQ4HYUEoDdxZjdRgRNgA/ozG5HojxhWKE0EGcq niHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=sHEicL/ePIj2RhEQ7+nf3XFEjrrrVzrl4mKIP+FxJDY=; b=NUiyz80guzUk0VS9tFHO3WD+fEe/Z6ttxBNutF5t5dEBe+WUb9+j10OoO7xmoItvfx JmCRGOaK1CFV94bm5uBfYt5U8cqWnaansTQ6xQufOmETgJIuGvNlykVkz8o98o3Z58LQ N/mCbkZEEoAgjUEx7Ud2X2F4bnCl8Ia46qV3vorVYHq1SULlkrgyTgendIQArl2Adyif vXyRrupNJS23hxWOsh/gdFUWcf2dzu4W0216WcKu2tyaENhA5+jmre8ecd9fMmadGpUH YHcvRUzz5O7tcA4CvDfzaNQPnpN9kKn7VvQGCnpgfM6VhBkSlWCXqGHnDYF07rzZNDtR t3Cg== ARC-Authentication-Results: i=1; mx.google.com; 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 v145si20994547oia.68.2019.12.30.09.30.33; Mon, 30 Dec 2019 09:30:46 -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; 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 S1727332AbfL3R3w (ORCPT + 99 others); Mon, 30 Dec 2019 12:29:52 -0500 Received: from muru.com ([72.249.23.125]:49706 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfL3R3w (ORCPT ); Mon, 30 Dec 2019 12:29:52 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 87C948027; Mon, 30 Dec 2019 17:30:31 +0000 (UTC) Date: Mon, 30 Dec 2019 09:29:48 -0800 From: Tony Lindgren To: =?utf-8?B?QW5kcsOp?= Hentschel Cc: "H. Nikolaus Schaller" , 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 Subject: Re: [PATCH] ARM: dts: Add omap3-echo Message-ID: <20191230172948.GL35479@atomide.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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <53e6cbbd-1094-cba2-4942-981502a738d4@dawncrow.de> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * André 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. > > > > 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". > > > > Such bits exists for omap34xx and for omap36xx (aka am37xx/dm37xx). > > > > 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?). > > > > BTW: what about a board that is/was produced in either am3703 or dm3730 > > variants? Can they still share an omap36xx.dtsi based DTB? > > > > 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. > > 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. We can easily do both. So no worries, I can easily add SoC capabilites support at some point. > Am 25.12.19 um 13:53 schrieb Adam Ford: > > On Wed, Dec 25, 2019 at 6:05 AM André 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? > > > > I am not sure how much DSP stuff is in there, but the DM3730 is the > > AM3703 + DSP and 3D. > > For clarification this reduced table should help: > DM3730 | DM3725 | AM3715 | AM3703 > DSP X | X | | > SGX X | | X | > > Where X is "supported" And let's also add minimal dm3725.dtsi, am3715.dtsi and am3703.dtsi to make things simple. The device tree is supposed to describe the hardware, and in most cases the SoC version is fixed and need no dynamic detection. André, can you please add those three dtsi files since you have at least one test case? :) Regards, Tony