Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp653522pxf; Wed, 17 Mar 2021 12:33:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFpixZMW7/GpEg9XUdWeaXldZE9kF1XYPHFbiyEpUzFgWIND4zPlBXZPXiQ+IQR//gruu6 X-Received: by 2002:aa7:c9c8:: with SMTP id i8mr43367248edt.193.1616009587758; Wed, 17 Mar 2021 12:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616009587; cv=none; d=google.com; s=arc-20160816; b=y7VW6AlwMp72O1AZxQD7ggyF/FMgETB11FXJdAp/WK2qrLxE0nCseV4I+TRIkdO8yo vmDUEvJ3iuMORt0TGp3EozZYeMQaoWQiDpcyVWlxy2nVTiiUvcCAhie45BJK+E557pkB hGpgw5IY9Ft6t8wgduU8cGLEUw+Gc3IHOTkJQYNgD6o3Vw0Kcgyasaheo3UxmyiIQARA TD7YmvnetuookEx4C+efwIzQw1tmHL0FVoAmIHBpmRtBDu82SAOUAAc1TPQSm92Dm233 PNbfxu53ul8IM+V0qEoiFhgE4tOsZVdScD/uWOkt/GxGIBcm4VqycbaonkglFyOA9jhv tMVg== 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=6TF0y5PK4jSr2yBkqO08CTECh4xjTFU4xmlboErGSAg=; b=zMEkPa954dzVZOnIEuFgSW1ISGjUMbB4vRNElLdErksItC3g16cVIboPoS+FHc1Gdw 5qvRyKFiYk4PV2feNX8mYa18BOp9v0xffrCQU2wVsWBDHgJ1acOBc5WsyLvdai+6PzKO g8pAQYX/nP8gHCbAN8NhYhJj+gF7bxuwqKw2Yt7CYl78kvXlJZQrpQjO6l6peDRCy54h 9Z+laoUZjcVrdn//BLLJzntlJGAf09yONxYlO2O4HTRIoUUkmC0ZKb+5Ohywxq1sJbhr KrnSK4ve37oJ9ZZyUCQNP+s0Ez/PIRYTmCPo+k8OhAA/N6h1/71ikY6U9rUFi6jR0s2p aJ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IbTtzH8C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf5si17259267ejb.346.2021.03.17.12.32.43; Wed, 17 Mar 2021 12:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IbTtzH8C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233373AbhCQTbw (ORCPT + 99 others); Wed, 17 Mar 2021 15:31:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233328AbhCQTb1 (ORCPT ); Wed, 17 Mar 2021 15:31:27 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 015DCC06175F; Wed, 17 Mar 2021 12:31:27 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id x28so683816lfu.6; Wed, 17 Mar 2021 12:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6TF0y5PK4jSr2yBkqO08CTECh4xjTFU4xmlboErGSAg=; b=IbTtzH8Cc56Zr3qXoBp5Xu+tuoYXpDKy7pZT2BcsJbNZ9AgJ254k1Kr2qOIoXNCskI EPv6bHF5UNZIqF+HoZf77MnqpXTRYv2VixHpDHUEoTllWGuYAqINExnzJnWi4TD3lNWz u2OgLLAm/ynpqNgnptqv2lxwn1GEiGDVtgt56Ha31QpIkmW+MiHd9wfKDlomzNZwVGyW Gz0jsu8dtqMfJwQA5vVk3lfLU66Rok/BvPc/pJiEbXdnykqN6snqrkPjzoClPh52BI9Q D8UXVDrhLQTU5Qs1T9JQajWyVm7wBZdOEIIAvUzKHwsJfnEiK1riWg9g/wiRcG++MauM Uxig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6TF0y5PK4jSr2yBkqO08CTECh4xjTFU4xmlboErGSAg=; b=STQqz208iwylZDZnGmSDXT7+kC8N2z4l223hjPo6XiZyR5VYoV7BOP+3agO3vMY09P FTB2eLRsOqSACbFTfNWXVHi60Pr40zAMavbBdsaQ6iQUhi8bqZ0Y6uw1c6M7cuFyCcZi glGw3HwD6CcbykRle2FPKrrNCQiemkQKaetAM05JhnrsU96uFlR7I2H/hfQs18ZoKiaK rwvIlGYPp2brDhleyUH0Cm4SeVIN7ND251cKVitHL62MadH0z0cDDpjL91hIe/JiU/r7 4HfzciMQkf0tZZxUuQnLnK4yYQnJjPlth7v0ab3tYfJ9e/ALfkHbVbPfyWQMQ9/uPF1O Elog== X-Gm-Message-State: AOAM531FyU5DKIDX3I7CdmWi64TfWgmLWJMY0rKJN7tRjGLkMmxd2Eu4 Hq1emHSbnNxqGMY3u37kYKc= X-Received: by 2002:ac2:5977:: with SMTP id h23mr3382143lfp.156.1616009485558; Wed, 17 Mar 2021 12:31:25 -0700 (PDT) Received: from localhost.localdomain (109-252-193-52.dynamic.spd-mgts.ru. [109.252.193.52]) by smtp.gmail.com with ESMTPSA id q24sm3623098lji.40.2021.03.17.12.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 12:31:25 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Peter De Schrijver , Prashant Gaikwad , Michael Turquette , Stephen Boyd , Rob Herring Cc: linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 4/7] clk: tegra: Halve SCLK rate on Tegra20 Date: Wed, 17 Mar 2021 22:30:03 +0300 Message-Id: <20210317193006.29633-5-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210317193006.29633-1-digetx@gmail.com> References: <20210317193006.29633-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Higher SCLK rates on Tegra20 require high core voltage. The higher clock rate may have a positive performance effect only for AHB DMA transfers and AVP CPU, but both aren't used by upstream kernel at all. Halve SCLK rate on Tegra20 in order to remove the high core voltage requirement. Acked-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-tegra20.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c index 3efc651b42e3..3664593a5ba4 100644 --- a/drivers/clk/tegra/clk-tegra20.c +++ b/drivers/clk/tegra/clk-tegra20.c @@ -1021,9 +1021,9 @@ static struct tegra_clk_init_table init_table[] __initdata = { { TEGRA20_CLK_PLL_P_OUT3, TEGRA20_CLK_CLK_MAX, 72000000, 1 }, { TEGRA20_CLK_PLL_P_OUT4, TEGRA20_CLK_CLK_MAX, 24000000, 1 }, { TEGRA20_CLK_PLL_C, TEGRA20_CLK_CLK_MAX, 600000000, 0 }, - { TEGRA20_CLK_PLL_C_OUT1, TEGRA20_CLK_CLK_MAX, 240000000, 0 }, - { TEGRA20_CLK_SCLK, TEGRA20_CLK_PLL_C_OUT1, 240000000, 0 }, - { TEGRA20_CLK_HCLK, TEGRA20_CLK_CLK_MAX, 240000000, 0 }, + { TEGRA20_CLK_PLL_C_OUT1, TEGRA20_CLK_CLK_MAX, 120000000, 0 }, + { TEGRA20_CLK_SCLK, TEGRA20_CLK_PLL_C_OUT1, 120000000, 0 }, + { TEGRA20_CLK_HCLK, TEGRA20_CLK_CLK_MAX, 120000000, 0 }, { TEGRA20_CLK_PCLK, TEGRA20_CLK_CLK_MAX, 60000000, 0 }, { TEGRA20_CLK_CSITE, TEGRA20_CLK_CLK_MAX, 0, 1 }, { TEGRA20_CLK_CCLK, TEGRA20_CLK_CLK_MAX, 0, 1 }, -- 2.30.2