From patchwork Thu Sep 23 13:20:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12512947 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=-18.2 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 7900CC433EF for ; Thu, 23 Sep 2021 13:30:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4CDD561164 for ; Thu, 23 Sep 2021 13:30:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4CDD561164 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=l9GxudvQESz+RdTUCCWAcaA8aJRZbzONOX8MBJLeR1c=; b=clohvw/+mozKlD 79HhUWCHx4qqjuiRCL1qCncJhIDjJ2Hb00fbTS8G6vp2P7LWzRIWCQolgyk/B3RUNvYtGOFT2BpMN IgwlRJ+FQm6cfbsU1xLV0uq3q2a34+FUCjitgJ5lRjfFW2UBpyB/oS/BOcEilwQZyhQW95vbbgM7Q CSs1cXBFQbzDQnkGxo2uqcCBMPlZZ7sM0RQlsprmsD1sUU46s63ZWYPw7Ow9YiwLCw5TcFnhK5a8a aWyzmPP1PSpueaI6o01qHoSGvQDyYJyVVV7badpy9Qlwk4TTQGkcoJV0EpIHeDn9/Te0anTUCod34 GjVjbWEmm6YHHOw8a5vQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTOmS-00Bcrk-60; Thu, 23 Sep 2021 13:28:53 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTOfR-00BZcK-N7 for linux-arm-kernel@lists.infradead.org; Thu, 23 Sep 2021 13:21:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1632403297; x=1663939297; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RusdYrZLESoncLe3TEsjpmisjj7q2vbuzL1nryePEes=; b=QjsoUDtB+5iTKqznlEJ1y5KSxfSX4ssN5Fm0jYBBFa8GAdtV1Pgzn5gL k7S8kC+yuz2UpZXbJrdJ1E6HQ2lkfdzqK+GXtyQE4fs6wMmwnfk/E3k7U PpodVKT5l6rSY660gmu6nAdnQYlDsMktrPnyh6ToYC8RQtchAlxh5gGnC cYthSp/Kd3emmwAh83Cel9ghp4tSrGZx4FoxUD7aEVIHdUVVWsux95E3X ofSTJB6X15F8nVDTqpmrKQnVUs/Evs7jfn8gDrsIcSrnacTohqmZ62xOn wrGUj6+z1/P/y1gdObTcuhY/lj4v21+gvJ2myfG5vfx73gRsouUI77Vio Q==; IronPort-SDR: F4dFaDTDuKuz3swH/YeixtG1v+zSAc3a7cixjbr/YutU43xRyH/GKL0gB0JzIPAcmFAb+B/WEU b24zsx88EHZiX+lWfSTPZs6nWaQ+OW/NyxYmkXIsl/Li8j+WQJOdBpd4D5/K7LAbkiInFq2LkD kOJrgLaR4s7c3hWJfDh3MZ8pY/WVZ3mDPzX1tjxoSqRGBCQUmhPyjSjnZD5ipFpVbrPQRzjRtK BGY7dBNlsnVIhTd/ayQ+vBnNMNcZrMRGy+nWlz3xWVmW8yATn4gr1mlEyEyWrmuHG72qya2qPT r5x/DEDswHGca6atJ3l9Ulv5 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="70327432" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Sep 2021 06:21:37 -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.2176.14; Thu, 23 Sep 2021 06:21:36 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 23 Sep 2021 06:21:34 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH v4 14/17] clk: at91: sama7g5: set low limit for mck0 at 32KHz Date: Thu, 23 Sep 2021 16:20:43 +0300 Message-ID: <20210923132046.1860549-15-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210923132046.1860549-1-claudiu.beznea@microchip.com> References: <20210923132046.1860549-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210923_062137_852382_975DB943 X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MCK0 could go as low as 32KHz. Set this limit. 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 fd9d17eabf54..369dfafabbca 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -850,7 +850,7 @@ static const struct { /* MCK0 characteristics. */ static const struct clk_master_characteristics mck0_characteristics = { - .output = { .min = 50000000, .max = 200000000 }, + .output = { .min = 32768, .max = 200000000 }, .divisors = { 1, 2, 4, 3, 5 }, .have_div3_pres = 1, };