Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1363672lqj; Mon, 3 Jun 2024 21:24:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJHF9/4vpMfMXMlnEsmPfu04nFv6CyLGkUs7bs+NovdfbpFkCOB8TS5HMUkR6o5wcEm2m1FWXUyQ0uAADvccxSeAe1gfik1m7kzDPgAQ== X-Google-Smtp-Source: AGHT+IFu7CiYf2/uJIayo4cq6f7JojEFvGnN/txDMxyFy35k0XuDcZd5Np7jYXiGpK4YxIDeIiwv X-Received: by 2002:a05:6214:4385:b0:6af:bade:59b with SMTP id 6a1803df08f44-6afbade0726mr49581326d6.10.1717475047192; Mon, 03 Jun 2024 21:24:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717475047; cv=pass; d=google.com; s=arc-20160816; b=R5ni/GQ2rbQ7WQ217JkO+mAPdWoWxf3850Q2z0+PaHb8hSgrDiEyt70SmWcXd0KULC WxzW9W0jR9znO6VgYeMLEVeW7IPuSrRXwxBDRUq4jPaA3BNSYVi5Ej7skTHl0QWRsCsx 5yrfpTgdeXcVKdgPrQ6jI+q1RNd31Nl8ut9ZqdWBdleJ5jAUwhPEod+xoeDcN/+1kLmz SWzPfl32NRAIR3W2VAWj3gAoZsFYZ/zDvpFstSH36p9dxTwlN8ANK394bKDq40LEcDTF E83u619mBqnsYBBi2Nmg7SqSlpy3XIg5j5hS3e9vk/LI2pUSmTC/0kx9buDbHEa4z2Oi e8xQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=sZTkPdaoUs8jQNyMlsxEd3PQVY77PvdNJflZvZlG4XM=; fh=7u36X2PNttrS3zFYN9DtMf4lT9/C0WZkmqxvFbUEJcI=; b=SmCa+9iFl6TbA2RGqlm3P8o1qRVEC3lYSIc6tRRfKGNwt9VA/GYvRgma5MBFxVsfd7 Dh6LIg3j/VO/ylV+Xm+OdxfJqxdMNX3vm0+3oifrgAhsJqCckRF4SPxIkqUdUmfDM2Pp wdjZp+P/eXfC97szLLaUL3tXJy5DovHfTJodmYkBVyOIw6esM54BZi5sHuOWKTgt1jxn 3xcM7ip0kUjp2VCjCMSk8KU5oqQhJ4U/NjYO1RS2IZiF9CSbukeQnryqiCorVh6Il9LS 2/p1EcI+/jLReBKiJpfoMh44eEo/jU+yLZSYQE+mij6wdgLSbuHk7NPbTfCrwr5DjfUf KyZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e+uXFulk; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-200014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b3ff399si3285836d6.219.2024.06.03.21.24.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 21:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e+uXFulk; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-200014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CA5E91C24227 for ; Tue, 4 Jun 2024 04:23:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77CB01420BB; Tue, 4 Jun 2024 04:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="e+uXFulk" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BE4C13DDB2 for ; Tue, 4 Jun 2024 04:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717474921; cv=none; b=kkrlpDpBWPuX4xFaIhQpjgxHZvXeuZYUVT3Y6CtDgzzK8Dn0CpAyUBmGYIHI3y/MOK9JvOaWV4vl02mzmtmlTUW0Gu5O+RG+ZHtDxLOSOGzknwZHzCLviazm/GofOBZe12W7KH4/6xckPUVnGFX/qOGaYOdvhJth6ShQCZymDZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717474921; c=relaxed/simple; bh=vdT1WnfavoXbakHdoyabknlLpRd1rltXkfOabReQFKk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=U8149BJkKfsg2LkucR72cXWfB4xohCV6HrsPYKPrLOVqukQEE6UGv7T0knNdLiP5yWlsdeSzbpCTN2879QsqDc3Cp2otKII5cV8nuPlcBDyfES7zLrBqg4A2p9f0JHGf1aaf7AsfG1b4kWS+T4VsLPhIK26wdbw5g4TWKM8GISk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=e+uXFulk; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52b82d57963so5203767e87.2 for ; Mon, 03 Jun 2024 21:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717474918; x=1718079718; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sZTkPdaoUs8jQNyMlsxEd3PQVY77PvdNJflZvZlG4XM=; b=e+uXFulkAUmDRkcSNAcbr5C0R6/BqxNB6IQnwYnfyjBOJSLnCGJOFaDpCXrCEql/et bxpLzyXZD2zProRAF1WjVJ6JcTZyvlk06TgvcjUuAsbYBOMPAZGHXfkyXCFnlleyUZ4z zbxLeXpfWvZtPttVGhytF1SGLrIAVs9wILV2A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717474918; x=1718079718; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sZTkPdaoUs8jQNyMlsxEd3PQVY77PvdNJflZvZlG4XM=; b=Dbs1Asxec4MuXykoFOchPuT/Kg1lFrUFR2ABsDAhhy13IKaVvlj4tbAsTuNy5NjNR8 xtw7OoXfs0zpEDZfH93MFnc1FTx/BVRBJYTXIXZolMMCwgAfu+Yq2V+9T6N2UTlgzKMM Asegd2hzPBjzxql/vtbPzwyKvHl4v2w3WxpYor77m9pTjS4PUDIp5tEiHSI3IMKsavMq LVuFIQhOAQ3VqQPrNbLalak35jb38SAWvR3N0Vin70+Knlfh7ICwgg0gIUI0mka+LTrx aYML2ymBPCZ5nspIXxdE1TZUAw1NMMhEG+mkB9PQAAV/OBk3jZ1LDn/yMvk66t7nz5n7 VVxA== X-Forwarded-Encrypted: i=1; AJvYcCWA65C3CFLf9e71yK2E3c1ay46/LZ/JjU+Whb5DmsejS5wpNggyQ4ANOOJstFG47g3uM4spX7DxyZ+BNvnCZctOjSQDxzhlQKxJgW1Y X-Gm-Message-State: AOJu0YwgXmu14JCqHTdR0Y8gMyUTuc2oAwQIPKr6WEKM9QCS4lkMLmA2 zJuaIc18pgQUjXqKdMmbeAk6L6C0bzAb/d1vBRWvEhuy6WBVPxOaWlV3NLGXxR9Z9o1Mad70lhI 09yzbuavL0QDWJyUF5u0E9dlvK9sK4TjJLPVc X-Received: by 2002:a19:5f53:0:b0:51d:5f0b:816f with SMTP id 2adb3069b0e04-52b89590e7cmr5639078e87.15.1717474917527; Mon, 03 Jun 2024 21:21:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240530083513.4135052-1-wenst@chromium.org> <20240530083513.4135052-4-wenst@chromium.org> In-Reply-To: From: Chen-Yu Tsai Date: Tue, 4 Jun 2024 12:21:46 +0800 Message-ID: Subject: Re: [PATCH 3/6] dt-bindings: gpu: powervr-rogue: Add MediaTek MT8173 GPU To: Adam Ford Cc: Frank Binns , "matthias.bgg@gmail.com" , "tzimmermann@suse.de" , Matt Coster , "sboyd@kernel.org" , "robh@kernel.org" , "krzk+dt@kernel.org" , "maarten.lankhorst@linux.intel.com" , "mripard@kernel.org" , "conor+dt@kernel.org" , "angelogioacchino.delregno@collabora.com" , "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "airlied@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "daniel@ffwll.ch" , "linux-clk@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 31, 2024 at 10:25=E2=80=AFPM Adam Ford wro= te: > > On Fri, May 31, 2024 at 8:37=E2=80=AFAM Frank Binns wrote: > > > > Hi ChenYu, > > > > On Thu, 2024-05-30 at 16:35 +0800, Chen-Yu Tsai wrote: > > > The MediaTek MT8173 comes with a PowerVR Rogue GX6250, which is one > > > of the Series6XT GPUs, another sub-family of the Rogue family. > > > > I've added Adam Ford who sent out some DT related patches [1] for the R= enesas > > variant of GX6250 and the GX6650 (another Series6XT GPU). > > > > Thanks for including me. > > > > > > > This was part of the very first few versions of the PowerVR submissio= n, > > > but was later dropped. The compatible string has been updated to foll= ow > > > the new naming scheme adopted for the AXE series. > > > > > > In a previous iteration of the PowerVR binding submission [1], the > > > number of clocks required for the 6XT family was mentioned to be > > > always 3. This is also reflected here. > > > > > > [1] https://lore.kernel.org/dri-devel/6eeccb26e09aad67fb30ffcd523c793= a43c79c2a.camel@imgtec.com/ > > > > > > Signed-off-by: Chen-Yu Tsai > > > --- > > > .../bindings/gpu/img,powervr-rogue.yaml | 24 +++++++++++++++--= -- > > > 1 file changed, 20 insertions(+), 4 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.= yaml b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml > > > index 256e252f8087..48aa205b66b4 100644 > > > --- a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml > > > +++ b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml > > > @@ -12,10 +12,17 @@ maintainers: > > > > > > properties: > > > compatible: > > > - items: > > > - - enum: > > > - - ti,am62-gpu > > > - - const: img,img-axe # IMG AXE GPU model/revision is fully dis= coverable > > > + oneOf: > > > + - items: > > > + - enum: > > > + - mediatek,mt8173-gpu > > > + # PowerVR 6XT GPU model/revision is fully discoverable > > > + - const: img,powervr-6xt > > > + - items: > > > + - enum: > > > + - ti,am62-gpu > > > + # IMG AXE GPU model/revision is fully discoverable > > > + - const: img,img-axe > > > > The Series6XT GPU models have differing numbers of power domains (eithe= r 2, 4 or > > 5). Whereas, the AXE GPUs have a single power domain, so I assume there= should > > be a related change here. > > > > The GX6250 has two power domains (lets call them A and B). There's a co= nstraint > > that if domain B is powered then domain A must also be powered. > > > > In patch 6 [2] it's setting the power domain to MT8173_POWER_DOMAIN_MFG= , which I > > believe corresponds to power domain B. I assume this works because the = MTK power > > controller driver is encoding the constraint above, meaning that when w= e disable > > or enable MT8173_POWER_DOMAIN_MFG it's also disabling/enabling MT8173_P= OWER_DOMA > > IN_MFG_2D (domain A). > > > > In the cover letter of this series, it was noted that the GPU > enumerates, but it doesn' fully function yet. This is also the case > for both of the Renesas variants I have been testing, and I was nicely > asked to postpone my series until the driver was closer to being > ready. Yeah. Frank laid out the current state of GX6250 support and future plans in his reply to the clk driver patch. > Even if the driver isn't ready yet, it would be nice to move the > bindings forward. Agreed. It would be nice to have an agreed upon set of bindings. We can then move our downstream stuff comply with it. Thanks ChenYu > adam > > > Thanks > > Frank > > > > [1] https://lists.freedesktop.org/archives/dri-devel/2024-February/4435= 48.html > > [2] https://lists.freedesktop.org/archives/dri-devel/2024-May/455833.ht= ml > > > > > > > > reg: > > > maxItems: 1 > > > @@ -56,6 +63,15 @@ allOf: > > > properties: > > > clocks: > > > maxItems: 1 > > > + - if: > > > + properties: > > > + compatible: > > > + contains: > > > + const: img,powervr-6xt > > > + then: > > > + properties: > > > + clocks: > > > + minItems: 3 > > > > > > examples: > > > - |