Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp446363lqb; Tue, 28 May 2024 23:35:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6hAN9TV2hLscmMRC3YYje9SlIyVB926N2+mbHDB1GKAjN0gcb+JRUCGM5vPAHrsIf9g82XX+pXcNptsLPt9zPXveSkb41yO0qPb/0qQ== X-Google-Smtp-Source: AGHT+IFYRHSz2AbfcXMRhVDPsLJsmNpRqw2JVh8U8/fcSe+2R71ue3T2vWz5kYi7GTUVBMg2grCi X-Received: by 2002:a05:6214:2dc2:b0:6ad:8040:e8d4 with SMTP id 6a1803df08f44-6ad8040eb21mr92983816d6.33.1716964518422; Tue, 28 May 2024 23:35:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716964518; cv=pass; d=google.com; s=arc-20160816; b=hxdKDmhCpMS/4jtnYe1PK5L8N1r1agM5J41Z+8lXrGaKxlDPwBLZcxy3dq1DspMycr t1qDV+4qFS4K2lRvjn3/HaDpa3BDChL6lV9agGCaqyMgjOx1AB0LEkPJ/p3sRMncF4+y fc0FUYx8T4heC8XzjuFfD/YS/rQlau9I/drP5CTQ5dUvpKnPSy+LMojPMooX/PqbPv+I Xuhsr41XSoXAILUmmBAyREY1PDPxlDz5xhqqQBd2+bWb+GdnpusAN+Kl0LqBr6FxTbsQ +aWfE1OHRSfJjdQiSCCOsHvYOq08ekURQ39vfPe18BZMflQhjN+IvTY4QMY05m+9w5pP DUJw== 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=REcXFj1jvmxST3/eKnOjNwhd4vCy4lJvRfHqJd6aeOY=; fh=5Cj1u7n/6oaxEeNfQg1lOYsF2UznfslaSyohG+Fv83Q=; b=CFMUFK2avfc0N12KcytTEprs9L6LPxCPn5AuT45zo5sJMW62q4MlYUAuOhOT0pZva6 Fr/y1+nbrZCoKPf/P46a5QU2bWdqr6PtB6+kfsYHsz6hgTbdZ3/8YUR6+3Uaewp6PPFd W6Rf36gZZlQtGv9fl8sBdyDdmHtItKI5LYeDgNa5ASQiqa+z5WmoirSTGnRJMoVO25S3 iUdBT0KOIzbAZH5lXUnLrqTd+CecgZx28s9ffEQx15BKp08GWzgfJopA6CL+tDiUpXMB DWY/Cfc9AEHrRl6u0c8kmdHB8KBpAy1606zQUTYC/vYGPQ9jUIk/6zWvXZQVVRwZkCpb 1EFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BSh40Qo8; 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-193523-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193523-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-6ada1a9d866si6136666d6.196.2024.05.28.23.35.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 23:35:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193523-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=BSh40Qo8; 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-193523-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193523-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 1AAB71C253D5 for ; Wed, 29 May 2024 06:35:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3039E15FA86; Wed, 29 May 2024 06:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="BSh40Qo8" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 62A0715CD4C for ; Wed, 29 May 2024 06:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716964510; cv=none; b=dwsjyUxFBlLoLwhIRJYBnFdbma1FM/1Ru6jhQJdJnS6YvMbBUCm0SKoUh2w1KmgXsYOBIAf4AMotRITkBhS3JOYYEsS2jTnm8M2brsh97bZcUzjNdE05UcYUaPFuWcV8RL1DLvsxyVebrSLbbiW9QtoKiJ6WaaeVTnbBBe2Yz6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716964510; c=relaxed/simple; bh=eMBPJ6AiyAGmZ0BILLGGNqaoWBJwnBhYtnVO50Esw08=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VHfj7Pl3pPcEH2Uw+LZLkAknn4unuT1zJ5h5uLzzCSPTx7y0UJNAb0inlTeaaFP4kRXzwUS6uJCn/nFCuKrBsaEj/eYiaP4wfNUJZKN1NAlT8C0eNhO0IxOeahfGU7I5jsAcIoaKCQpmK9p/yEuGuDZuS4RVZwtsXFw9L0SoviY= 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=BSh40Qo8; arc=none smtp.client-ip=209.85.167.42 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-f42.google.com with SMTP id 2adb3069b0e04-52b0d25b54eso276714e87.3 for ; Tue, 28 May 2024 23:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716964506; x=1717569306; 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=REcXFj1jvmxST3/eKnOjNwhd4vCy4lJvRfHqJd6aeOY=; b=BSh40Qo8MowxfZDEv2udrszIIc57GaXMNV/tx13uvFuceoBG+jX205EhYwuqmYNKbc iDN+7OPmQOrmN0VNhOnIjjCxy6iK7qxZBUwAnwXdV2Fuc/qoAVf+SHBZMIz/e3JpVCOD n1U222PVH1XPNwgLVG9Y/1I9VlbP9Hvt1H0/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716964506; x=1717569306; 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=REcXFj1jvmxST3/eKnOjNwhd4vCy4lJvRfHqJd6aeOY=; b=FMaKYc70XGm4JKSTvswLMT2SxIKxwyC+ke/lmC249rO1lPRYSP8kIjfyazpLAOYfGT vN1c5SvszKI+O2mUXEsjsB2+4yCE7vjdmH6JA9uRmacmnGSqo6zRHtzODmhpcSyycNZU t6tANt2GzifaXZqEEZ3UP2dFStTCHAWVmYbtB8bV4deLUQ/MnJs0wtqMJPG+nNsTd0dU 04v2Vz8EEne1WKmLXnxI18mrOAGC6VU5770m584FW8KOYpEXTbp318wCdmuKXDKj8a2N 1dpwsj9NV1wCVo3Qn1MFMOxrqHxIFwxITKscvg9fPFbf6eGNlIlmGggFCzRv2gaQBMk7 T9fQ== X-Forwarded-Encrypted: i=1; AJvYcCVR+LvQomdvrNFGRkbGN0NqYql/kGDk3/ngP4dxRV1SPi96+LVxivyvLL5+kYldSP1aU7Z0Cu/dPQa/+VR6lbdeJhJ56WbvNgqWoiek X-Gm-Message-State: AOJu0Yx60xLcNgl2PXHymYJZ+qAcoHrYhVYO9zpVa/zoFZpRlQvqqn2m LVKzDqHvUZD/oHO95mjIaOM3Ufy1KuB1KpY4eQa7ahNYZwkP2ZhKhkMtnx5guI5ZqtEXRJm5VBh fpA/DcGtBzlrhUuKa41DwzF8UwyBWWDAUh9G0 X-Received: by 2002:ac2:454e:0:b0:521:92f6:3d34 with SMTP id 2adb3069b0e04-5296594cf46mr10050393e87.22.1716964506432; Tue, 28 May 2024 23:35:06 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240527093908.97574-1-angelogioacchino.delregno@collabora.com> <20240527093908.97574-6-angelogioacchino.delregno@collabora.com> In-Reply-To: <20240527093908.97574-6-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Wed, 29 May 2024 14:34:54 +0800 Message-ID: Subject: Re: [PATCH 5/5] arm64: dts: mediatek: mt8188: Add support for Mali GPU on Panfrost To: AngeloGioacchino Del Regno Cc: linux-mediatek@lists.infradead.org, lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, mandyjh.liu@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, jpanis@baylibre.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 27, 2024 at 5:40=E2=80=AFPM AngeloGioacchino Del Regno wrote: > > Add the necessary OPP table for the GPU and also add a GPU node > to enable support for the Valhall-JM G57 MC3 found on this SoC, > using the Panfrost driver. > > Signed-off-by: AngeloGioacchino Del Regno > --- > arch/arm64/boot/dts/mediatek/mt8188.dtsi | 123 +++++++++++++++++++++++ > 1 file changed, 123 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/d= ts/mediatek/mt8188.dtsi > index 0bca6c9f15fe..29d012d28edb 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi > @@ -294,6 +294,112 @@ clk32k: oscillator-32k { > clock-output-names =3D "clk32k"; > }; > > + gpu_opp_table: opp-table-gpu { > + compatible =3D "operating-points-v2"; > + opp-shared; > + > + opp-390000000 { > + opp-hz =3D /bits/ 64 <390000000>; > + opp-microvolt =3D <575000>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-431000000 { > + opp-hz =3D /bits/ 64 <431000000>; > + opp-microvolt =3D <587500>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-473000000 { > + opp-hz =3D /bits/ 64 <473000000>; > + opp-microvolt =3D <600000>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-515000000 { > + opp-hz =3D /bits/ 64 <515000000>; > + opp-microvolt =3D <612500>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-556000000 { > + opp-hz =3D /bits/ 64 <556000000>; > + opp-microvolt =3D <625000>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-598000000 { > + opp-hz =3D /bits/ 64 <598000000>; > + opp-microvolt =3D <637500>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-640000000 { > + opp-hz =3D /bits/ 64 <640000000>; > + opp-microvolt =3D <650000>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-670000000 { > + opp-hz =3D /bits/ 64 <670000000>; > + opp-microvolt =3D <662500>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-700000000 { > + opp-hz =3D /bits/ 64 <700000000>; > + opp-microvolt =3D <675000>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-730000000 { > + opp-hz =3D /bits/ 64 <730000000>; > + opp-microvolt =3D <687500>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-760000000 { > + opp-hz =3D /bits/ 64 <760000000>; > + opp-microvolt =3D <700000>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-790000000 { > + opp-hz =3D /bits/ 64 <790000000>; > + opp-microvolt =3D <712500>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-835000000 { > + opp-hz =3D /bits/ 64 <835000000>; > + opp-microvolt =3D <731250>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-880000000 { > + opp-hz =3D /bits/ 64 <880000000>; > + opp-microvolt =3D <750000>; > + opp-supported-hw =3D <0xff>; > + }; > + opp-915000000 { > + opp-hz =3D /bits/ 64 <915000000>; > + opp-microvolt =3D <775000>; > + opp-supported-hw =3D <0x8f>; > + }; > + opp-915000000-5 { > + opp-hz =3D /bits/ 64 <915000000>; > + opp-microvolt =3D <762500>; > + opp-supported-hw =3D <0x30>; > + }; > + opp-915000000-6 { > + opp-hz =3D /bits/ 64 <915000000>; > + opp-microvolt =3D <750000>; > + opp-supported-hw =3D <0x70>; > + }; > + opp-950000000 { > + opp-hz =3D /bits/ 64 <950000000>; > + opp-microvolt =3D <800000>; > + opp-supported-hw =3D <0x8f>; > + }; > + opp-950000000-5 { > + opp-hz =3D /bits/ 64 <950000000>; > + opp-microvolt =3D <775000>; > + opp-supported-hw =3D <0x30>; > + }; > + opp-950000000-6 { > + opp-hz =3D /bits/ 64 <950000000>; > + opp-microvolt =3D <750000>; > + opp-supported-hw =3D <0x70>; > + }; > + }; > + > pmu-a55 { > compatible =3D "arm,cortex-a55-pmu"; > interrupt-parent =3D <&gic>; > @@ -1167,6 +1273,23 @@ imp_iic_wrap_en: clock-controller@11ec2000 { > #clock-cells =3D <1>; > }; > > + gpu: gpu@13000000 { > + compatible =3D "mediatek,mt8188-mali", "arm,mali-= valhall-jm"; > + reg =3D <0 0x13000000 0 0x4000>; > + > + clocks =3D <&mfgcfg CLK_MFGCFG_BG3D>; > + interrupts =3D , > + , > + ; > + interrupt-names =3D "job", "mmu", "gpu"; > + operating-points-v2 =3D <&gpu_opp_table>; > + power-domains =3D <&spm MT8188_POWER_DOMAIN_MFG2>= , > + <&spm MT8188_POWER_DOMAIN_MFG3>, > + <&spm MT8188_POWER_DOMAIN_MFG4>; > + power-domain-names =3D "core0", "core1", "core2"; > + status =3D "disabled"; > + }; > + This block no longer applies cleanly on the MTK tree because of "arm64: dts: mediatek: mt8188: add lvts definitions" being applied. ChenYu > mfgcfg: clock-controller@13fbf000 { > compatible =3D "mediatek,mt8188-mfgcfg"; > reg =3D <0 0x13fbf000 0 0x1000>; > -- > 2.45.1 > >