Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp462741rwn; Thu, 15 Sep 2022 01:09:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR4le0krkCAGkcbvyayLgb7Q3wCfHrexR/DwBZTsnoGo4jQ39PmXZIFstsx4Ics+G/Pgh3iI X-Received: by 2002:aa7:d34e:0:b0:44e:8d4b:6e02 with SMTP id m14-20020aa7d34e000000b0044e8d4b6e02mr34482901edr.306.1663229364804; Thu, 15 Sep 2022 01:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663229364; cv=none; d=google.com; s=arc-20160816; b=z0J3/bxNLekjAj9pg75I6+vLu12SiCTsSMv0HjIZX8uEoU3mcabi9q0foQ4/7w5kv5 w+eH2808cBmeYuyRoCkhENNHDWUPlvSvyUZvddGvleGaRT7TIGeRcgsgMDlbmq61Gc8/ HWWfofUtuIsBo+y7CwMkSOaj8JpRvwNOyHp6gHSsLQHqzlyKiK2anjw7FyY0ZxysQwXH OxMfcw/dXwkjeRtGifIlOCFXSV1vfuiFVzmloBE3BYB4d2Wd02zx6horHyHL4Dn30yGX DzBAhhGRXmpsMk4OXmZfQhP7NcPZkt8H9QFvgo+Bb6zhp8CaLzkWpH3z8M8kxQxr6vYf CNhA== 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=w0laJ+GIG0ftLABEchqLoyGcKc7XwPL1GiOHBNk73+U=; b=JybCSuUobr81PlUA1F63RvAcHv238ccalzGNRt54TdrwnytgMlN7sq0gncu8ciZi/p cRbsfRgxQsfPfSj4gXL63xMLP+N+aTNWegv7UFFMCaUhU4Cp00SFyJKRCyDrAnOPB6B9 p8eMqaY8mfHxrUO00CT5ZYgZ9rRczxXc78ZB5kTnbLaOUoIrjUTVfsrF6awkxqAq+b7u BUEiKwOR8CQT/7E1eWwI13P2mWnJYqcINQxcJ873I/j1oS1v7QubH5WAe9U04ux0HUU7 r06xUqGdS/9NJgnSBtGWkOt0EVM4LkSM2Hyn10MhAeuYqiLdwH44jgks5+GaEszwUMDk v+oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="TzOp/0Q/"; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg42-20020a170907a42a00b00778a543a05asi754719ejc.226.2022.09.15.01.08.58; Thu, 15 Sep 2022 01:09:24 -0700 (PDT) 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="TzOp/0Q/"; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229980AbiIOH0C (ORCPT + 99 others); Thu, 15 Sep 2022 03:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbiIOHZW (ORCPT ); Thu, 15 Sep 2022 03:25:22 -0400 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 167F7659CB; Thu, 15 Sep 2022 00:25:20 -0700 (PDT) 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 207B26602024; Thu, 15 Sep 2022 08:25:14 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663226715; bh=NULTolyA3a820oIDBMfAF287l04aJ/m11i4NBlzRPY0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TzOp/0Q/RMZIH1p6nkGKzLECDxRfAeU6ffR0aE8fiaO6nh5sVzHSZavoFIneA1Gy4 953kYHIId5tNz8lxb4TRn9YofQYRtpw1KUmiOklA0Gvq/0bZahd5KhQXC76eC4hyqQ 6j1XCa1MCzR4kq+D9pcerYW9E5/vVqyKxSZwTB2IyGnXT54y/dArUJVWaBinsl7chV F7sVhiO/E1Hl/IBq2mMrpNfO8jrQ5yR/K7fh8z+CrzzJCsI7WPddS74fmWUsIIn8lk xBu0lWqzVzDhgTGwVScHcThJGzubN3WzeZgzwe7opTtjhKUr6IQwa/Wil8l1FYb8/e sDdULk4yggsvw== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: mturquette@baylibre.com, sboyd@kernel.org, angelogioacchino.delregno@collabora.com, wenst@chromium.org, miles.chen@mediatek.com, rex-bc.chen@mediatek.com, nfraprado@collabora.com, chun-jie.chen@mediatek.com, jose.exposito89@gmail.com, drinkcat@chromium.org, weiyi.lu@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH v2 08/10] clk: mediatek: clk-mt8195-topckgen: Drop univplls from mfg mux parents Date: Thu, 15 Sep 2022 09:24:56 +0200 Message-Id: <20220915072458.18232-9-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220915072458.18232-1-angelogioacchino.delregno@collabora.com> References: <20220915072458.18232-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, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org These PLLs are conflicting with GPU rates that can be generated by the GPU-dedicated MFGPLL and would require a special clock handler to be used, for very little and ignorable power consumption benefits. Also, we're in any case unable to set the rate of these PLLs to something else that is sensible for this task, so simply drop them: this will make the GPU to be clocked exclusively from MFGPLL for "fast" rates, while still achieving the right "safe" rate during PLL frequency locking. Signed-off-by: AngeloGioacchino Del Regno --- drivers/clk/mediatek/clk-mt8195-topckgen.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8195-topckgen.c b/drivers/clk/mediatek/clk-mt8195-topckgen.c index 4dde23bece66..8cbab5ca2e58 100644 --- a/drivers/clk/mediatek/clk-mt8195-topckgen.c +++ b/drivers/clk/mediatek/clk-mt8195-topckgen.c @@ -298,11 +298,14 @@ static const char * const ipu_if_parents[] = { "mmpll_d4" }; +/* + * MFG can be also parented to "univpll_d6" and "univpll_d7": + * these have been removed from the parents list to let us + * achieve GPU DVFS without any special clock handlers. + */ static const char * const mfg_parents[] = { "clk26m", - "mainpll_d5_d2", - "univpll_d6", - "univpll_d7" + "mainpll_d5_d2" }; static const char * const camtg_parents[] = { -- 2.37.2