From patchwork Thu Nov 19 15:43:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 11917977 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 70E46C63697 for ; Thu, 19 Nov 2020 15:45:22 +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 E1E912224A for ; Thu, 19 Nov 2020 15:45:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CRxsJ3HO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="PTeFoBoo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1E912224A 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=ANEZIPHECFNoq25orPTk89kdIbKOIFo8M21urvT+YV4=; b=CRxsJ3HOipsyJSAU+srH3QHvo 20UdKaRu2FcC8q+b25LNSunrojId9ZSCNPc+06bxmb6h9X3tcPC5i0OK/G8JFUBjE/z8Xpd6qF7Xj 1lzK8KNv5cxcaCpe8vO+zJmeQjZOU+2UNzRZ3UrOrzMq+E71Vwmm3tvKCV63lyslD7cbUf62ji5rA wE6CdcPGOCh36BqK5pnfMbj3IjOh8Q4OfpyhUo0lkQhYYlcLEW24FsbYA6alVrPsylBf+A7m1H15y CaiCcYzrwhOVTsqP4qtq3ZJXPxj/c/RyYwCvcFFtyVSRR34pNZn93kRP5s2Qs1X4UOXOLmS5kchm5 VBlWNmJAw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfm76-0003jl-6E; Thu, 19 Nov 2020 15:44:48 +0000 Received: from esa6.microchip.iphmx.com ([216.71.154.253]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfm6F-0003Pq-Ls for linux-arm-kernel@lists.infradead.org; Thu, 19 Nov 2020 15:43:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1605800635; x=1637336635; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=jpoo8lswkA0HTqIME8fJoefP6IOmvgmdgVpF/Ams+UA=; b=PTeFoBoofhzJoAlniDcoug6pB1QTRNycru11favybwtY/4jXcshfZqba EDWA/uosZCqYe4w29qczjnqZ5EL8fM86dmCHyqEDEuvUkcvX86D1IRlQG ECjhBTj2fjMV1WmTmRSRUA6dSGRWSago5T4X3RUdS98+gwkv3w6Q2bQuD 7JBdres11ktiIL2JSodYDoaYLk6VMHi18LG/ISdfeYL/23yKNN7YvGlOk QLIpugrue9I0kpnO0mSyZ2H7wN2CyLcB8+raEVloHaDip1bOUck7MtEw/ gkCSlJZPuCe7eep6yArcWXPNSNqC6YIedzBipMzqt47Uf6yYrcJEGLjOD w==; IronPort-SDR: O1GoZsAEU4+p1BkuuJI1vyyT/sPgKcjV6Dv+ETueMJmqJjfeMjeUaGPRZVb2j4/8V/TV9ayKO4 Jf/by7I+n6enz+UaMye7IuFupExRkFWNvfbrlvsAmbgF4HIE2Gc/s04POV+w65orcPj1LynasK 8wuwKMMRQbD8hFZtMQa/TlVn1FMHEoMatdSOLItoJNrfir3vV9Fu20xb14CqlrSMR/tVe86AVW +C6yqI8e0s3yy5n6O3SQoDP9NhsqgoOJLzGEbhfH+mxrylrZ1f5F7Ekfmg4aHsdBlfANJXZuwH VNg= X-IronPort-AV: E=Sophos;i="5.78,490,1599548400"; d="scan'208";a="34306283" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Nov 2020 08:43:53 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) 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:43:53 -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:43:49 -0700 From: Claudiu Beznea To: , , , , , Subject: [PATCH v6 05/11] clk: at91: sama7g5: add 5th divisor for mck0 layout and characteristics Date: Thu, 19 Nov 2020 17:43:11 +0200 Message-ID: <1605800597-16720-6-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_104355_973078_DF24AE93 X-CRM114-Status: GOOD ( 12.84 ) 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 , 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 From: Eugen Hristev This SoC has the 5th divisor for the mck0 master clock. Adapt the characteristics accordingly. Reported-by: Mihai Sain Signed-off-by: Eugen Hristev Signed-off-by: Claudiu Beznea --- drivers/clk/at91/sama7g5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index d3c3469d47d9..d685e22b2014 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -775,13 +775,13 @@ static const struct clk_pll_characteristics pll_characteristics = { /* MCK0 characteristics. */ static const struct clk_master_characteristics mck0_characteristics = { .output = { .min = 140000000, .max = 200000000 }, - .divisors = { 1, 2, 4, 3 }, + .divisors = { 1, 2, 4, 3, 5 }, .have_div3_pres = 1, }; /* MCK0 layout. */ static const struct clk_master_layout mck0_layout = { - .mask = 0x373, + .mask = 0x773, .pres_shift = 4, .offset = 0x28, };