From patchwork Fri Sep 17 12:06:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12501793 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=-17.1 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 CAD77C433EF for ; Fri, 17 Sep 2021 12:17:47 +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 9AAD0611C8 for ; Fri, 17 Sep 2021 12:17:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9AAD0611C8 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=aMOceFWBvcdayOT6M78LHBQxso/YJOSbuXAl/0bQcAQ=; b=1cTVcGlPoxlg/P KI7+MYWigBFO09cjvgS+3+adb4LlYZzZ+IiiRTXJ26egHWw+tRSMB0d81EkvEPrHivb8oMZyQb5y8 ZA/Sr/8GcDfJ1wpV3Tvl3onWXfOPkDEivbyrd0+Hx6zwTTDeQo9he28JeUR6k2ZA1dleXrYT9EGX+ lLQe4ArVgw2CSxanwNAQIalofbpfL4TYXPL1tmva0tYXw7jVT1jaRidLci+osxXJTsmNbOApoWOjB goyxBw+LwYzHMGjQQEKglt04KFvL5F2KU4Vkh/kW8LNmzlU9rkjxl59yjTWEYyioo2HnF4pkr8dJU mKi4g0JIzQC/wViqPEYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mRCle-00Dzaj-Tz; Fri, 17 Sep 2021 12:15:01 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mRCeH-00Dw7X-2F for linux-arm-kernel@lists.infradead.org; Fri, 17 Sep 2021 12:07:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1631880440; x=1663416440; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yDDdLIef8M3sde5a3ttzfJt01DdS+aKgSikwVBlAUjc=; b=qS/O6m1e1YKlSRssmpVd6V5ern5NOllzk+pzBSuPfuXU3UE+1TLyW84P 12+N8cByE9V5y8BgQYXFLaAYVUfvaPBGKGDMTbe+3a1IbguvpKoMQW8M+ ejjRM/vc9ZPe+A5vSRurgYAo/LltE7+oUZnku7zfnybzlGehvLzfpDt/X Wq8UsHjA2NDGeIGd6eCsOzSg5rk6YSkpVJRJuFJAE0OAqA9Ijzh0VWv1G b24GHfu+z5d32prVSjCExp2Ql+vgrI6xSwLUrl+4b2WAvJVEJsWvqloi5 8PyP4VCzLdUoEXxbihlUE6vwPwmjh8Df7T4tj/W7Ub0PqfoUF/7ivchKN w==; IronPort-SDR: sHC1Bz4LfGY7eO4HkEkE9KyDbHgyuIgFzWlv3o49JCfjErd9yGYW3V/kx7fBNzfcewI3pV9oSU Yo5GRFcvCdi3p63FKZNZWW38ZR/u3LwMnl1NkP8TTKmCfx/knZAEVkV6GQj084xdc2aoLk9qH8 NEpjEcMZjw5FZOTtHyCMH9C3tD2w3YDgeQ9e/iw/r5/cG+NOk0FAp87VTac3cgmea9/RD+GKBS hYbL7gwcbamnBQ5SKTe/UcvkoDx91EUiALT2tNZMRyyLeVTXscAtFxUOpL+DKvoHFbqscY4rz3 ZrTFWdZMBHlnCfIMbNNfC4d/ X-IronPort-AV: E=Sophos;i="5.85,301,1624345200"; d="scan'208";a="136943159" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Sep 2021 05:07:20 -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.2176.14; Fri, 17 Sep 2021 05:07:19 -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; Fri, 17 Sep 2021 05:07:17 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH v3 14/17] clk: at91: sama7g5: set low limit for mck0 at 32KHz Date: Fri, 17 Sep 2021 15:06:39 +0300 Message-ID: <20210917120642.8993-15-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20210917120642.8993-1-claudiu.beznea@microchip.com> References: <20210917120642.8993-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-20210917_050721_182968_E5A22997 X-CRM114-Status: GOOD ( 10.31 ) 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 aaa5769a8df1..19cbe3db7f8a 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -848,7 +848,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, };