Message ID | 20230208104527.118929-9-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3381419wrn; Wed, 8 Feb 2023 02:47:30 -0800 (PST) X-Google-Smtp-Source: AK7set8JEJ9PxEYQD2T9RHKF2V762ItqQe9XA63ko3N1xFHac5/TR+Oql4EOJ1GAQZDjEt004zEm X-Received: by 2002:a05:6a20:69a3:b0:c0:2875:9e8c with SMTP id t35-20020a056a2069a300b000c028759e8cmr6735083pzk.1.1675853250301; Wed, 08 Feb 2023 02:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675853250; cv=none; d=google.com; s=arc-20160816; b=KQPe4nSuBm6is9gJrPqWrwLatjf75gGrE3Ml+eeeoIfHDh4zyvXQOnJmsNt0R+/uJV wWSuRJKdsfjVGZONeFmzRcAFN3IWRX1dAPFqAV9ST/xrFPwi1gpPx0UpnZR0gie7kD2O oU79IRcwS4uZyP35UlLUznsZotwJxyvvhW8y1DaJa+yhcdJJo4VXwvbGdmXjF2eP3zPV e0FUEzbcn66C921h5POhsNoW++x8GIaTpbbxVXogYiEEocefZMTmXht89gNd2zFtkvil ZMSBsAGM1gQZH1tVuPVIvNuT3Z5wS5Xgb1PLisoeLOgyibk0JzHMHiG/B4/oHpCeKQt4 XcRQ== 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=ooOO8Z9DK1cxxOsEEqsMLqLriOt2s3cIE9In6JWQTmE=; b=Z6fB/+H1xsAhPkpXRj2bv2K3+l0Qz59gUI6XSzYrgrY47IM0HVO4S9JgFMJBIX12Ik 62YkTRzcoeBwMu9XLxot2WGuIUfkcMmvYIVhDcCKolA7V1x139j/ZNIAQ+G1RKls0dDv 2TJsAfFbprNzl8yb3/0QDODrUdQvHmFX7FYr9VqSu6cO0KRHY0o5JZLexKEy/UFHzEHp W+9Q+Plcy6EEC9VRZHwfEpgCsIfRS/2925OvSUoYb7e98ZBXUaOAGzZrJQYusphhoEko SFDvCYFS2x8W2p3kyOSqreSyhpzbAhVFlsCAYr2H6jUOK9qqJk4PIUvOvAM28H0LikLH 4FKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZT3rh5G0; 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 78-20020a630051000000b004e0d688fb7bsi17698582pga.706.2023.02.08.02.47.17; Wed, 08 Feb 2023 02:47:30 -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=ZT3rh5G0; 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 S231143AbjBHKqS (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 8 Feb 2023 05:46:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbjBHKqG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Feb 2023 05:46:06 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE3448A0B; Wed, 8 Feb 2023 02:45:55 -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 AC95E660209F; Wed, 8 Feb 2023 10:45:40 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675853141; bh=q3Ks3xCpv4XCuWtELbScLLMj0j/dhmkTbq/7OVCjIrs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZT3rh5G0RfvzFBq9vd7yUtHUlSJcPrjYnTbkD9tETEFa98yYaCN963PCGEzRPisRd qtFOy8Zyh3LHdlC98Fil1HNByz+xrMisDcR2eBYBa99gpcbD24g0lYaz8JKYHVmjV4 CJHaaBih2yN1aBUnLxnVIRSXIGw1nKraC0Y1vTBKHWarN9LNSVUeRr3jOixGGiTjlE VClmgVIxAsCVVeIbmUI5Ey6Hl38aOn6CubwBmZDdD6uErwM1yKCW8GesYk2q781Q5J Q1tA4X0AestvbWrdOyOVAxey9u1xX+sqa3pOuJtEJ6xna//2S0jRkeLn5iekomNZaR o45wXr2tEXVqQ== 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 08/16] arm64: dts: mediatek: mt8192: Add mfg_ref_sel clock to MFG0 domain Date: Wed, 8 Feb 2023 11:45:19 +0100 Message-Id: <20230208104527.118929-9-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230208104527.118929-1-angelogioacchino.delregno@collabora.com> References: <20230208104527.118929-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?1757259497904703402?= X-GMAIL-MSGID: =?utf-8?q?1757259497904703402?= |
Series |
Enable GPU with DVFS support on MediaTek SoCs
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 8, 2023, 10:45 a.m. UTC
The mfg_ref_sel clock is a mux used to switch between different "safe"
(and slower) clock sources for the GPU: this is used during MFGPLL
reconfiguration and eventually during idling at very low frequencies.
This clock getting turned off means that the GPU will occasionally be
unclocked, producing obvious consequences such as system crash or
unpredictable behavior: assigning it to the top level MFG power domain
will make sure that this stays on at all times during any operation on
the MFG domain (only GPU-related transactions).
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
arch/arm64/boot/dts/mediatek/mt8192.dtsi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index a60120088d45..5b4bf2d1d584 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -499,8 +499,9 @@ power-domain@MT8192_POWER_DOMAIN_CONN { power-domain@MT8192_POWER_DOMAIN_MFG0 { reg = <MT8192_POWER_DOMAIN_MFG0>; - clocks = <&topckgen CLK_TOP_MFG_PLL_SEL>; - clock-names = "mfg"; + clocks = <&topckgen CLK_TOP_MFG_PLL_SEL>, + <&topckgen CLK_TOP_MFG_REF_SEL>; + clock-names = "mfg", "alt"; #address-cells = <1>; #size-cells = <0>; #power-domain-cells = <1>;