Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp949570rbd; Thu, 13 Jun 2024 02:11:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzhd1Fn8mQJB4vUXeib+xMtrAQjnKSJrpKNOQuu0DWJ1b3VuZN0l1H4HAGlykeQsBdk3LRXvTdFKpOP8cEO4mq2rhWK7zi4bTgMYRmvQ== X-Google-Smtp-Source: AGHT+IGTxc5Md6o1/LMcAKfA7iYF/uvmeQQ2kOaAErY8sMxQ7zv5oxLJnr6B/xgREF6shNVdu5Gv X-Received: by 2002:a05:6a00:4b44:b0:704:205d:2323 with SMTP id d2e1a72fcca58-705bceab006mr4548689b3a.32.1718269871921; Thu, 13 Jun 2024 02:11:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718269871; cv=pass; d=google.com; s=arc-20160816; b=0RPxFzOxS4m1BpzzrPZqaX2fOhB6osoFbnQPMbz6sJv42gNsb/JmHu+5h1KrrNSnAZ RDrewIO/bYFpBq1UcPGyHF2CvJLFJ7sTNkMtXGERLFH69bSEakCLi40lQPygmq94wFJu +kb/+kGBN9IWWlk8oNaAQiC/MJocH8/+7uJohggqEHgZ/nkuWcURUVX9zrmvJH7PAJqj RAOtIvS92egaerSoVkrW2gikH/fxmiYY7VqcRye3f+KnVe8s3Irc5KWyIegVoUi5k+3K XIs5jp9uZ7VnfTTPOhz6OJCfzWrJgKGOG1UpqbwF8LlEwFOH1LQ3K1wEqM4K5k+3Nn2f MT8A== 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=0qMad1s8HI1EFGHqapCwasRBkvGmdeiF4NnLv9ZSDU4=; fh=/S7RpDl833mvg58zOQygtLUM65ARqExNEvU/sOTI5ao=; b=WKMDq+hzW27PfKztSz9i6ajavzEVsf3bnx/7Nq1o80Ynsv6itrsuGLedB9Nyie8YLv D71Z7aF2Nm79Vywy8iDBqmEcHHr2gghZI8LWLG+JitrbZo6s5JLsrw1zEaZlP2UIzevE PfsY/1BqFEmIKRhXiPNl2ZHUZtZ8buyIlcJcJqiOHv0B78hVku2luZRnP1AqOkl4svTU NyaHfX/RXzm8KP8XRXYtQZU9cHCZHrrCkApOFvpf4SnoikROJL5KkqpgpFcBatg4rhvD JIQuspkPaFoOjN0xanZRvxBoCkdbN2eprOsQzfDZjRFazQHllxeDuBVYi6ynh3aQIQ2T cEAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="b9tAYuE/"; 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-212919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccbc7421si1050278b3a.375.2024.06.13.02.11.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:11:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="b9tAYuE/"; 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-212919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212919-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A75AD2815DB for ; Thu, 13 Jun 2024 09:11:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1032213DDB5; Thu, 13 Jun 2024 09:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="b9tAYuE/" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 356B113D8B2 for ; Thu, 13 Jun 2024 09:10:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718269856; cv=none; b=tPEx5TP8ixeAUu+Li8tr9Jl5op8F/cPF7mzm9PCc6mZ0msnhQTVPInHqf3mTAn/uE89+GL+aArbolw4HdXcmnHGhSB8H/4tzKQQI55TmQUfB7snuYYeU7VI5geqETK4oE3gK0AFutwOmh77VOn8DeDp1JZ5os4jtaiLlTZq4/Mk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718269856; c=relaxed/simple; bh=30NWkqAV4R92RmhF2xlzh6uxyE5XgPuxEMk8Ttj6tog=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kmwGVQljz6x97F8qD0amSNhSpz3xCZQ0dR3jecIcFCNybpchlHgfJuHOJvqv5wpX9He5G9LdycWaj/jDRbzqz/eRQGPOgv5lBYUVxfdCsZgK9+y6WTHdP7Rv7rZAwnZrrpgyAqQjC1A2n+K4FoWiBg8Q4OH0hkj7FEiutojrhWw= 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=b9tAYuE/; arc=none smtp.client-ip=209.85.208.175 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-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ebe0a81dc8so7983871fa.2 for ; Thu, 13 Jun 2024 02:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718269852; x=1718874652; 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=0qMad1s8HI1EFGHqapCwasRBkvGmdeiF4NnLv9ZSDU4=; b=b9tAYuE/ONzZjRb2zbpj1Shgn0Pj4GEvpPgMwBXfoyEjk89ZxyRPhbhxmJu4Fe24Sm KNm3GUk/eKuzXc6zE31kOSaLdxRXZo6bTaCADg/UGiRGtH5//qIbG7JUnz7Hch+ttXOy nm4TXgAc5zpaOGjqEFF4rAprNt9/2Ju3OK0Bg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718269852; x=1718874652; 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=0qMad1s8HI1EFGHqapCwasRBkvGmdeiF4NnLv9ZSDU4=; b=Kecgb9VUQrxl3zVWSi/NRc6a+CmeHTmks1oxP8k9AtH/EzmZInbVR7SinbVbTINdPu nnEgrOIvBXAwUeSGtgrIP/5rOrRil1SWwPzTUAWi7qYkHCjRNzcy3qiM18rhesscoOJf S2e6mGJTu/0kb57kqa4EVArboizy++BJ9y17xNFWxU+cD87aoruNVXpXPxYR4GKcwJiy kQTOT3vYwm11+m9EXQvIkuwPmy7N1ADqtxxf1Df5Yme7FY0NDCrTNme1GiDCPeqZqHk6 KI5DiiwArMa3fvm13jEDoZfOy3idChRpmb2WyuA1ctedMWoue6V5p2SjIBpI0JneObhN P5Mg== X-Forwarded-Encrypted: i=1; AJvYcCWcJxOlIuZoTqAX9u9Vq8a/6rdzrIRCQ5+/pDVkukT2pOOxVW3EHjxnxGx384ev260Y53wk2KSEeAH5eMKXKoNVLxQtHFIcPNaXEOs0 X-Gm-Message-State: AOJu0YycZg21RwHxdNkByhLI8M8vXz593LLUT+d/G8oBlzoAoJhHCAT5 7yEwyg6/neSLVspi5Wki1Bn9OuPct/46I5Uy2TH95DkuY1pejarfn1sGrDTMIaBMV2cxJofIoj4 itY3Bu0FHQ0fsNIuieyhlsH5CSaINf8pJLjJV X-Received: by 2002:a05:651c:19a6:b0:2eb:d77a:850c with SMTP id 38308e7fff4ca-2ebfc8f0545mr43873481fa.4.1718269852401; Thu, 13 Jun 2024 02:10:52 -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: Thu, 13 Jun 2024 17:10:41 +0800 Message-ID: Subject: Re: [PATCH 3/6] dt-bindings: gpu: powervr-rogue: Add MediaTek MT8173 GPU To: Frank Binns , Adam Ford Cc: "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 Tue, Jun 4, 2024 at 12:18=E2=80=AFPM Chen-Yu Tsai w= rote: > > On Fri, May 31, 2024 at 9:37=E2=80=AFPM 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). > > > > > > > > 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). > > It could also be that the power domains are split in the glue layer and t= here > is some sequencing handled there. I'll reach out to MediaTek to see if th= ey > can dig up some design specifics. Unfortunately they said they no longer have that information. > I assume you would like to see the separate power domains properly modele= d > in the device tree? So how should we go about this? Adam, do you have this information for your platform? Thanks ChenYu > > Thanks > ChenYu > > > 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: > > > - |