From mboxrd@z Thu Jan 1 00:00:00 1970 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=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,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 E8899C6379D for ; Thu, 19 Nov 2020 15:44:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F1CE22256 for ; Thu, 19 Nov 2020 15:44:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="lWtkFFbU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728783AbgKSPoI (ORCPT ); Thu, 19 Nov 2020 10:44:08 -0500 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:51634 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728768AbgKSPoG (ORCPT ); Thu, 19 Nov 2020 10:44:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1605800646; x=1637336646; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=4ZwxjUQBBXtTsmCLYSQXtv2JDFLE5N+4iQm2djDoMQE=; b=lWtkFFbUgr+Rccr+vtGPL+TquXgaIPFONEHZrAzUqkpiah8PlVTvs5dx T/ulTOXHq4dLRWg/AauHqQwd5rXm427ViLHP92CZXbsuhTrZXE62U4hGQ EAH/7redUuZ4EMvoHFzcUGqrfII61UMB+X3BnYF+Jd7dU/sGo4aqMou/q 9URVW+UMtnzNvDgOpNvMLvBUDKzos+VKMy9qK5FItT0QSe0jLRuZ43t1P qzbRBOVtaGpC1Bmxu8lOP7qr+uLeJWEwykVO/vs333gmb6omZXrYoUvk1 blno2sHUgUe6eHPWanLwyImWvKWmIfvPF09PctG96p9BMerTKargB3bwS w==; IronPort-SDR: 9Kb9OVrlMwEovzgS4ZucYQysyNRBjDDRBGj2vs8gPru2YfcyO59lHgBsvDFL+Kq/4bKMR1+oCw jnoAoG6qBwNKciW7SwWJinMcnZrQpZbhj3GFShasO2qgG9ZTmP1A0mKzXjrxvdpUc5FtePNKd9 U2h/4kAG1lpkNGutZ1qt9tQoiHkkD5dfhjChQWABrccOG/d89HFhdDLsgAtGUrBqANPZvKZZSL P0BrM8Dnar23eRpjSMWG+65DR+cjUrJAvVjLwMqMyJlvs1r+aBDF5huZ0mUQJz8fX9MjlcBFzv 8Us= X-IronPort-AV: E=Sophos;i="5.78,490,1599548400"; d="scan'208";a="96942080" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Nov 2020 08:44:05 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 19 Nov 2020 08:44:05 -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; Thu, 19 Nov 2020 08:44:01 -0700 From: Claudiu Beznea To: , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v6 08/11] clk: at91: sama7g5: decrease lower limit for MCK0 rate Date: Thu, 19 Nov 2020 17:43:14 +0200 Message-ID: <1605800597-16720-9-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605800597-16720-1-git-send-email-claudiu.beznea@microchip.com> References: <1605800597-16720-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 335e9c943c65..29d9781e6712 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -807,7 +807,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, }; -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 F3A82C63697 for ; Thu, 19 Nov 2020 15:47:01 +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 7B8252224A for ; Thu, 19 Nov 2020 15:47:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BRdxvQRi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="lWtkFFbU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B8252224A 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=yvVTtBDhw7OnFk+wsfoxFXMTf/cQ9VP6VUsbrFUAo60=; b=BRdxvQRilEIFWhyPg/GmnepxM 2yo1GtJCTHzyAvTeYokt66nh3C0+m7biAf90VfnBl3u9BKl2aD+F5fpbI9uNuDsZT8seh/pIhr5NU izEzPR/Rh2xmnUhyfD03Xn0LgFNDAu1X9a9oYbEtfJvPwIkA7U4LA51kGNZBv74altFcvPjLfsl3/ toV5FSvdxpXMhWLJVEaIULRgdNQnXUnG0utqdjZzWR1OLv26GlV1kOkGz2GAAZXFGDEiAT1PYKdFo 1whYLgZjq54O03DydXvLWJJOOJ9vPVMkOWs0CxLNbEZHTHb8+6tlMhzYcGtDYY1xYsuHiJJE77+eJ 13K93FEoA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfm7l-0003yU-Tb; Thu, 19 Nov 2020 15:45:29 +0000 Received: from esa2.microchip.iphmx.com ([68.232.149.84]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfm6Q-0003NN-FA for linux-arm-kernel@lists.infradead.org; Thu, 19 Nov 2020 15:44:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1605800646; x=1637336646; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=4ZwxjUQBBXtTsmCLYSQXtv2JDFLE5N+4iQm2djDoMQE=; b=lWtkFFbUgr+Rccr+vtGPL+TquXgaIPFONEHZrAzUqkpiah8PlVTvs5dx T/ulTOXHq4dLRWg/AauHqQwd5rXm427ViLHP92CZXbsuhTrZXE62U4hGQ EAH/7redUuZ4EMvoHFzcUGqrfII61UMB+X3BnYF+Jd7dU/sGo4aqMou/q 9URVW+UMtnzNvDgOpNvMLvBUDKzos+VKMy9qK5FItT0QSe0jLRuZ43t1P qzbRBOVtaGpC1Bmxu8lOP7qr+uLeJWEwykVO/vs333gmb6omZXrYoUvk1 blno2sHUgUe6eHPWanLwyImWvKWmIfvPF09PctG96p9BMerTKargB3bwS w==; IronPort-SDR: 9Kb9OVrlMwEovzgS4ZucYQysyNRBjDDRBGj2vs8gPru2YfcyO59lHgBsvDFL+Kq/4bKMR1+oCw jnoAoG6qBwNKciW7SwWJinMcnZrQpZbhj3GFShasO2qgG9ZTmP1A0mKzXjrxvdpUc5FtePNKd9 U2h/4kAG1lpkNGutZ1qt9tQoiHkkD5dfhjChQWABrccOG/d89HFhdDLsgAtGUrBqANPZvKZZSL P0BrM8Dnar23eRpjSMWG+65DR+cjUrJAvVjLwMqMyJlvs1r+aBDF5huZ0mUQJz8fX9MjlcBFzv 8Us= X-IronPort-AV: E=Sophos;i="5.78,490,1599548400"; d="scan'208";a="96942080" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Nov 2020 08:44:05 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 19 Nov 2020 08:44:05 -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; Thu, 19 Nov 2020 08:44:01 -0700 From: Claudiu Beznea To: , , , , , Subject: [PATCH v6 08/11] clk: at91: sama7g5: decrease lower limit for MCK0 rate Date: Thu, 19 Nov 2020 17:43:14 +0200 Message-ID: <1605800597-16720-9-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605800597-16720-1-git-send-email-claudiu.beznea@microchip.com> References: <1605800597-16720-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-20201119_104406_714585_20C98DE7 X-CRM114-Status: GOOD ( 13.85 ) 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, Claudiu Beznea , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 335e9c943c65..29d9781e6712 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -807,7 +807,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, }; -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel