Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp705851ybz; Wed, 15 Apr 2020 17:08:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIsgzrgGygBtlG0own4EbNEY3ModuatXoQ5KxIooqRWp+kRTmrLgq8gCydlf0pYmnSpI3x1 X-Received: by 2002:aa7:d788:: with SMTP id s8mr27576501edq.311.1586995704573; Wed, 15 Apr 2020 17:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586995704; cv=none; d=google.com; s=arc-20160816; b=Z5SflN8E1xCaNJyi2yxNM/7OgrVqXnldLV3Ikdz2zIU9QfawiNUthZWwMTofRbbBsW ggqos7o/R6YQCDmerZCWxNAyRf1L80g7tSWAOXof+A8uIPRkooh7cc18In4WXrDKb4pR SK/wVhQCFE7sKeOQ36elaOLVnf1n7epUBr2Ys6U4y8tutmTp0uR8LIU1JNfPFeUveJAx ACydtVODP/8Gg8ly6AWSwEpQNBZwYBmx+a4EF2FK2sae2ek5HTFHh5A1LoWTWceyV6Sy 2W9so3NLwaC/+IEiivfPGt3bqxGH/V+CKrERkoghFS+q0c1H5WS/QYBilROSfuX0LrV8 Uwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=w57xZePTsGqsUDOlfC/90iLeGpy1FlxyNG+H0a7Xz8A=; b=pjDG3Qv8YmqMTqwOx18zRUJ+c1L5Lp3g0uDTk8s+UozGlelaqKiyZJZzZIHDFOPvfp E9ALhaBLxsxl2Mpbcr5xWcKQkg6y8TqCPAT08LYfSvET/TkEqvrgVevfnmxIVu78UCKF +k7v23iSdIkyJ0NuJF9aDeJcow8pBrzJxzTN0DerCFtx8kQzB1ryktEcMNXGbO3E/dpb G6Zb1sF/PSReRcBdSU96doOxR1fJkTYutMBJYv6GKJkF9vB2O0oOCPV8uBYzDQhnMQDx VW0nX67aAHfMYjdvUnjBVq0FTodUA0QPdLzezxmbKYCb2V8gfbY9Mie8/b9fg8IZ+v7+ w9Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=waLFJKVz; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZiCvEuIi; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si10985766eds.305.2020.04.15.17.08.01; Wed, 15 Apr 2020 17:08:24 -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; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=waLFJKVz; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZiCvEuIi; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2634252AbgDOOVn (ORCPT + 99 others); Wed, 15 Apr 2020 10:21:43 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:58249 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732547AbgDOOVd (ORCPT ); Wed, 15 Apr 2020 10:21:33 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 5D5B5580480; Wed, 15 Apr 2020 10:21:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 15 Apr 2020 10:21:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=w57xZePTsGqsUDOlfC/90iLeGpy 1FlxyNG+H0a7Xz8A=; b=waLFJKVzJ1gz4Hh3SifRoYfFdJNEt2qRDGZPEgQiRVv 6jkzESd3CY6Oc3i2ZpPdobWyw0ab8WfQvnFKUO56Sbm6//6u+mKmbexyjoJ0cnOw RF93kgS+2GuBfrdB0KUCXmBg0YpKtxYRvgMIwGCyomGynx+2KCN7Em0XOYCnFkgw J1mWDeIQOgD9hZisI227UvtFdsCvTBD+nzUGW7lALcRLymCqmau213LfjSVNHmv+ 59dc1QnftSXXZQOuRHjvVKnCK1b8Vl+tyMf+cu9KYr9EA/oYnetVcCSLLiMhiKJg 9owal3XtjQVIIYpYooAWJa48xaWPZrUjg/pnuC0Chqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=w57xZe PTsGqsUDOlfC/90iLeGpy1FlxyNG+H0a7Xz8A=; b=ZiCvEuIistCq+I4LcQwEfW Qyg/X1liF2iY4Y79UN8i/5imy6gN2PUlGkr+jvw+PLzd5hDoC1DhIB2+Rqr6UCTI o0bm44HtOGdwnZ4+w2oevQESQ+PpjeSubBsQxEE633xb56bf/Ou1Go+xV4y+XL61 eqCtbaaUaUnxCNBHFOyo4KdeTlAMIH2CBW7WJ8eXnppGRAR6HFGK4pzcoz9Ohoe5 MUxrYnCV6uzhOrFjysQdB68Qf8n5Af/nhXTCLK5LoAUCdha/qTawAHb2hjHJUpPY lizQ3xv4NnOPWVGq6lc4q2/vA93sP8RVeBn9PT3F9hOjzKVIBJUSO8dWAywaBOMw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeefgdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucfkphepledtrd ekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 08B123280064; Wed, 15 Apr 2020 10:21:26 -0400 (EDT) Date: Wed, 15 Apr 2020 16:21:24 +0200 From: Maxime Ripard To: "H. Nikolaus Schaller" Cc: Neil Armstrong , Mark Rutland , David Airlie , James Hogan , dri-devel@lists.freedesktop.org, linux-mips@vger.kernel.org, Paul Cercueil , linux-samsung-soc@vger.kernel.org, letux-kernel@openphoenux.org, Paul Burton , Krzysztof Kozlowski , Tony Lindgren , Chen-Yu Tsai , Kukjin Kim , devicetree@vger.kernel.org, =?utf-8?Q?Beno=C3=AEt?= Cousson , Rob Herring , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Bogendoerfer , Philipp Rossak , openpvrsgx-devgroup@letux.org, linux-kernel@vger.kernel.org, Ralf Baechle , Daniel Vetter , kernel@pyra-handheld.com Subject: Re: [PATCH v6 01/12] dt-bindings: add img, pvrsgx.yaml for Imagination GPUs Message-ID: <20200415142124.yzfh6mtqq7cdq22e@gilmour.lan> References: <06fb6569259bb9183d0a0d0fe70ec4f3033b8aab.1586939718.git.hns@goldelico.com> <20200415101251.o3wi5t6xvf56xmhq@gilmour.lan> <72919514-0657-4B71-902F-3E775E528F64@goldelico.com> <535CAEBE-F43E-4BFC-B989-612C81F0D7EF@goldelico.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oowgclrabb5rh4qg" Content-Disposition: inline In-Reply-To: <535CAEBE-F43E-4BFC-B989-612C81F0D7EF@goldelico.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --oowgclrabb5rh4qg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 15, 2020 at 03:17:25PM +0200, H. Nikolaus Schaller wrote: > Hi Neil, > > > Am 15.04.2020 um 14:54 schrieb Neil Armstrong : > > > > Hi, > > > > On 15/04/2020 14:43, H. Nikolaus Schaller wrote: > >> > >>> Am 15.04.2020 um 12:12 schrieb Maxime Ripard : > >>> > >>> Hi, > >>> > >>> On Wed, Apr 15, 2020 at 10:35:08AM +0200, H. Nikolaus Schaller wrote: > >>>> The Imagination PVR/SGX GPU is part of several SoC from > >>>> multiple vendors, e.g. TI OMAP, Ingenic JZ4780, Intel Poulsbo, > >>>> Allwinner A83 and others. > >>>> > >>>> With this binding, we describe how the SGX processor is > >>>> interfaced to the SoC (registers, interrupt etc.). > >>>> > >>>> In most cases, Clock, Reset and power management is handled > >>>> by a parent node or elsewhere (e.g. code in the driver). > >>> > >>> Wouldn't the "code in the driver" still require the clock / reset / > >>> power domain to be set in the DT? > >> > >> Well, some SoC seem to use existing clocks and have no reset. > >> Or, although not recommended, they may have the io-address range > >> hard-coded. > > > > The possible clocks and resets should be added, even if optional. > > > > Please look at the arm utgard, midgard and bifrost bindings. > > Interesting to compare to. Maybe we should also add the > $nodename: pattern: '^gpu@[a-f0-9]+$' > > But the sgx binding is difficult to grasp here. Some SoC like the > omap series have their own ti,sysc based target modules and the > gpu nodes is a child of it lacking any clock and reset references > for purpose. > > The jz4780 and some other need a clocks definition, but no reset. > Having a reset seems to be an option for the SoC designer and > not mandated by img. So is it part of the pvrsgx bindings or the > SoC? > > Well we could add clocks and resets as optional but that would > allow to wrongly define omap. > > Or delegate them to a parent "simple-pm-bus" node. > > I have to study that material more to understand what you seem > to expect. The thing is, once that binding is in, it has to be backward compatible. So every thing that you leave out is something that you'll need to support in the driver eventually. If you don't want it to be a complete nightmare, you'll want to figure out as much as possible on how the GPU is integrated and make a binding out of that. If OMAP is too much of a pain, you can also make a separate binding for it, and a generic one for the rest of us. I'd say that it's pretty unlikely that the clocks, interrupts (and even regulators) are optional. It might be fixed on some SoCs, but that's up to the DT to express that using fixed clocks / regulators, not the GPU binding itself. Maxime --oowgclrabb5rh4qg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXpcYZAAKCRDj7w1vZxhR xT0JAQCiWOePc99saTFkub5XKNoxg+0OWfORXzWEdHfaNN9pAQD6ApKRwjY9uv1z NzDdNQ4q1aRrmR/SI1oU48l8V/B3kg0= =Apgq -----END PGP SIGNATURE----- --oowgclrabb5rh4qg--