From patchwork Fri Nov 6 09:28:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 11886525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4C8CC2D0A3 for ; Fri, 6 Nov 2020 09:31:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B91F20B80 for ; Fri, 6 Nov 2020 09:31:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OswY3BWd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="UpplPGLH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B91F20B80 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hiIhEvgUBRDUg7p75xqwlXdhlLT9uRKXUSFC+I4X/s4=; b=OswY3BWdKZJf1zJOCDcQvY7v3 zPotatFWcpQmWMRUKf+lSpewDwsXQuLMemIFntiNAc8hP/6wI+SCAEMnomCDrTfpw/0wZsxPFCh7c vQM40td2kaUTWXOZI+dN5W7ptufgQP3KBlJjBgyOcqUw8HfRvs6RSPmu0gjQtLo2geQ8UzMnBW5WX oDnohLuzoiFtt6m6SOFtgfT6GyLR2JMqZiwvkRXCZv0ua293n0HjEnvQHYpTf6N86h+fplxRVj3WU FfmwVeKrU1zp8ymA9EKbj9Fa4y3e+AwQDpkwqHRESjxP7fPBY0MrpMi3OxALFHx4nPBtPE9c4n/e8 lM4wnAYyA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kay48-0001KF-9i; Fri, 06 Nov 2020 09:29:52 +0000 Received: from esa1.microchip.iphmx.com ([68.232.147.91]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kay3D-0000v1-Rl for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 09:28:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1604654935; x=1636190935; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=jjMRv7q9dqqrQGmbGnrRipfXGN0KNE4iUh7ba8SylbQ=; b=UpplPGLHt7b4Y9RgOWpUa+/UsD3w5iPu9DTOk1ATEwKDLtyadjDztMan whEbm7BJK/71GGdQKrJ2xl0x2PbWl6lRcfQaNZlQQ54fUMEe5SwOUDx90 3Lc7bNfZG2T+WqI+j6G3aoRc/vlHQDOaP8B3ZMNR/wtyubKa+YpjcgzzZ l0oZ+1xYPrV3vAju6J8wdWkf1E37GGuLu0kP86D0c5gVNZ3SHFPA90Wtv rZD5IO56o+3gD3bvB6tXR9CTU20Uso0/v5N0pVctYOVdzRV+XzFckOPPG SIVMXBB391JyUngwO4KMSeBypQMQxMQgFQTyrKaEC9DOOD6Sqle/eKnS8 Q==; IronPort-SDR: tj1sQpRLPM1bEAO0MNm5WiMkq93uhUV9qLzGiQ4hn+/yRpjFKeQnj/cuHd9T0DjM1fd5Jt6ShE 2yEbjmmsX1sRtxZfDfScL8/C0G7eE8Se/MiYiDddC3s8N7WXaSXJ35hi0mMmk4GiqELyEcCGnk 18/pMdmdh77LLfdtJu7K7z/y9i+/YddxjlCixRpt6kA6gn02yGW7YArqyWru697x/qXBz7qI2H Gnqt04JZRsRxHnhAcktGXHwSRfuwATcy66gA9BJPkkBFS5o0udFHwIgW3cghviVx5UuQ7j9mal WHU= X-IronPort-AV: E=Sophos;i="5.77,456,1596524400"; d="scan'208";a="102448321" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Nov 2020 02:28:54 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 6 Nov 2020 02:28:54 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Fri, 6 Nov 2020 02:28:50 -0700 From: Claudiu Beznea To: , , , , , Subject: [PATCH v3 08/11] clk: at91: sama7g5: decrease lower limit for MCK0 rate Date: Fri, 6 Nov 2020 11:28:01 +0200 Message-ID: <1604654884-30339-9-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1604654884-30339-1-git-send-email-claudiu.beznea@microchip.com> References: <1604654884-30339-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_042856_093089_3432BCAA X-CRM114-Status: GOOD ( 13.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, eugen.hristev@microchip.com, Claudiu Beznea , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On SAMA7G5 CPU clock is changed at run-time by DVFS. Since MCK0 and CPU clock shares the same parent clock (CPUPLL clock) the MCK0 is also changed by DVFS to avoid over/under clocking of MCK0 consumers. The lower limit is changed to be able to set MCK0 accordingly by DVFS. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/sama7g5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 88ad0c70ca98..662e667d1098 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -788,7 +788,7 @@ static const struct clk_pll_characteristics pll_characteristics = { /* MCK0 characteristics. */ static const struct clk_master_characteristics mck0_characteristics = { - .output = { .min = 140000000, .max = 200000000 }, + .output = { .min = 50000000, .max = 200000000 }, .divisors = { 1, 2, 4, 3, 5 }, .have_div3_pres = 1, };