[v3,17/18] arm64: dts: mediatek: mt8183-pumpkin: Override vgpu/vsram_gpu constraints
Message ID | 20230228104741.717819-18-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2940651wrd; Tue, 28 Feb 2023 02:50:52 -0800 (PST) X-Google-Smtp-Source: AK7set8iaOlS5xZ9LfRAqHiTqh3vafgQLw9hEKwA/3N+P0N9ZSyFN49flc3l+TOXX6svhFmYi56M X-Received: by 2002:a17:906:48cd:b0:880:e6d0:5794 with SMTP id d13-20020a17090648cd00b00880e6d05794mr2303746ejt.58.1677581452143; Tue, 28 Feb 2023 02:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677581452; cv=none; d=google.com; s=arc-20160816; b=aeM8hYmovIqjI+AJjCHgUM4pStN5gwPdb/Q8TCpf3tINkX5mReDfrE7VjYwXqN1V7o MLiJKgJUpC639XqO67klCNRHHrjDecuyGAW/01zFT24aTGHZyx8nwLyO/zy+hVKPWR5F JV+AJIMQhJrDdkIJUrzMrjguFTE07broGfFKdJb3ftjwOZMiVyGJWQE1XrItp4SewyrD WIpU35CLi6FtaAWmObIgnrW3j/D8+4OTfmVTMmogRSCWv6F0XL11EUvr9tYcEdIY80HN ASHU7vyTh3dmuoFhI2gOj2fBsleWS7jC85+SaccHJa9AMr5SAHDNdETO043SwaC0Qe0B q1bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Oy6LEbOn/tv93sD35WQSAVMzmWw0tw/enIbu+SQo8tQ=; b=WQpG0VM3BQ3Wq8/hbOBXlqjRZw/kDexUyzH6BjpwwhXhEF4HtPiCR1zt4DevD9V4bj QQDu/mDb525Saq1LWwsmthTVGHMcvk9Gws3MkU+UEcbvNLMkFiz0gn8UQYvdSxc0pKak gBfAnOugn8fR+r4m9jFyG1x6aRiE5TAYYiG+/Z08ES7zluPoRTu9oG5zPl9FnWPHhUf8 UAoNUbl2CNCDG7en5LRrLDqNCuELDP/Tckp4xVo7ri3LQdTZjlroxqj1tJe/atTyqscZ Vy7+FDG6I0aSFC7P7tS4SzLWh9hKq33cEere3QYiLCfgGw0XDATZQJGsRKb9b/pGvf/L 4Qmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ONRPHnIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a170906bc4600b008e2d804fe56si2746314ejv.74.2023.02.28.02.50.29; Tue, 28 Feb 2023 02:50:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ONRPHnIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231397AbjB1KtE (ORCPT <rfc822;brysonjbanks@gmail.com> + 99 others); Tue, 28 Feb 2023 05:49:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbjB1KsS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Feb 2023 05:48:18 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEA7B2CFD4; Tue, 28 Feb 2023 02:48:01 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id EB3506602FDA; Tue, 28 Feb 2023 10:47:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677581280; bh=Iwin79s7Du0gnKNyuCiVlTOYzAcjAthdmz358wfq0fA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ONRPHnIoSN/2rIxjTIP1qdq1UCGfN07Z5Pgt6f7WkCkjwy/XUFFsA3fCwym+ZmK/s yxuQ57xO+xuczLY9KBo67vhLS47z/Mrkyr+Jo4RMvB4GUqmFd/NquiDnoJKk6bZI2r lcFzVMxj9xQAK4ulv7jpj1My1JddC8Ipteop4gG1l/vZQ/+5o6z3lc400s7ee1jOHu nsErMvydS/PzCNH91kH13fgkRFBju5L9X4Tqjfyf+453Gj30yP1cLimBAGchtX96iU tzcQbnZqPfBaeRezWagDfHJBKYh6srThZbRrboB+rJmZPlvtrpambKjp1GadifDxCf v/309XhTRdyrw== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org Subject: [PATCH v3 17/18] arm64: dts: mediatek: mt8183-pumpkin: Override vgpu/vsram_gpu constraints Date: Tue, 28 Feb 2023 11:47:40 +0100 Message-Id: <20230228104741.717819-18-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228104741.717819-1-angelogioacchino.delregno@collabora.com> References: <20230228104741.717819-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759071648796208716?= X-GMAIL-MSGID: =?utf-8?q?1759071648796208716?= |
Series |
Enable GPU with DVFS support on MediaTek SoCs
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 28, 2023, 10:47 a.m. UTC
Override the PMIC-default voltage constraints for VGPU and VSRAM_GPU
with the platform specific vmin/vmax for the highest possible SoC
binning.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Suggested-by: Chen-Yu Tsai <wenst@chromium.org>
---
arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On Tue, Feb 28, 2023 at 6:48 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > Override the PMIC-default voltage constraints for VGPU and VSRAM_GPU > with the platform specific vmin/vmax for the highest possible SoC > binning. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > Suggested-by: Chen-Yu Tsai <wenst@chromium.org> Chen-Yu Tsai <wenst@chromium.org>
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index c228f04d086b..526bcae7a3f8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -176,11 +176,17 @@ &mmc1 { }; &mt6358_vgpu_reg { + regulator-min-microvolt = <625000>; + regulator-max-microvolt = <900000>; + regulator-coupled-with = <&mt6358_vsram_gpu_reg>; regulator-coupled-max-spread = <100000>; }; &mt6358_vsram_gpu_reg { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1000000>; + regulator-coupled-with = <&mt6358_vgpu_reg>; regulator-coupled-max-spread = <100000>; };