From patchwork Thu Jun 9 09:52:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Moysan X-Patchwork-Id: 12875133 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 619E5C43334 for ; Thu, 9 Jun 2022 09:54:35 +0000 (UTC) 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: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:In-Reply-To:References: List-Owner; bh=nl+Y718RDCgHV7fpO9FjM6+eK2ELpk03xww51gvfwVE=; b=vuQDQbA4igQs/3 ETR6EvAPDnVOMOrMNjIbsAQggJWWq1vsFbhVl1CfxoMaQNH1goAxf5aI2MsVe8EDGpaWIUCP+PXVG fHjpWcataTWr862a3r7L/X9wFZxAgW0vTqb9SJHoMShCar6WhsgWodpjt6tiGVDt8G/vpMA+osC/U tVIZ8w+i8SwqXegVMNV+AKAgr1FAgUEzV1leLExLluvvcbU9f/790YaNzbsCh8pnFG7hirgGgVmRe rH6slbgnCTvxj99RIFxt97xA3YBfwGiN2wWx+ww0sgkRAhwEPzLBYlh7BcIHe2DHjKVCiY9N6wuoN ni463+wSUgZNGBLP9fCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzEqs-000nTn-GG; Thu, 09 Jun 2022 09:53:18 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzEqo-000nRw-Ax for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2022 09:53:16 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2599Q9Tg024960; Thu, 9 Jun 2022 11:52:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=L+GV88KUXWKpKEgxaMfS4iBDvfAOOghJXwOQUjIkFY0=; b=lHnLI0ACqOV2zhymuW7TFjkj6nhdGoMheHwSSObfSPu92MpOObAq8gU5TpcLUYnOxUoF bjQcTQ0jEAwqUIIxa0XE0Tc1pmCTlFjmE1YBKKEsPcsBbCXESzHFkwyG6h6UTmIPUhvn G3cL2Yh9CfCUBC1T2bW6GTxCT11AfZeqy13ar3Leom1RBh+mVy7TsHGbD5Uz/q++VnH6 enCD54s4U36SO531t1XbIzwM0UstfgM9qeRz9bObtFMp0J/x116XMy7tiRpexvoKPUBD sZCox2VJTASwGkAhQ8aDPvRMAfX4tvex8kV2bKhImEN0BOfbCspqJ6VOz0RScm3V09a7 NA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3gjrbc0af3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jun 2022 11:52:55 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D4086100034; Thu, 9 Jun 2022 11:52:54 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id BFCFC2138E8; Thu, 9 Jun 2022 11:52:54 +0200 (CEST) Received: from localhost (10.75.127.49) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Thu, 9 Jun 2022 11:52:54 +0200 From: Olivier Moysan To: Alexandre Torgue , Fabrice Gasnier , Jonathan Cameron , Lars-Peter Clausen , Maxime Coquelin , Olivier Moysan , Paul Cercueil CC: , , , Subject: [PATCH] iio: adc: stm32: fix maximum clock rate for stm32mp15x Date: Thu, 9 Jun 2022 11:52:34 +0200 Message-ID: <20220609095234.375925-1-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-09_08,2022-06-07_02,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220609_025315_387775_700EC413 X-CRM114-Status: GOOD ( 15.48 ) 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 Change maximum STM32 ADC input clock rate to 36MHz, as specified in STM32MP15x datasheets. Fixes: d58c67d1d851 ("iio: adc: stm32-adc: add support for STM32MP1") Signed-off-by: Olivier Moysan Reviewed-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c index 142656232157..ce1a63a82034 100644 --- a/drivers/iio/adc/stm32-adc-core.c +++ b/drivers/iio/adc/stm32-adc-core.c @@ -805,7 +805,7 @@ static const struct stm32_adc_priv_cfg stm32h7_adc_priv_cfg = { static const struct stm32_adc_priv_cfg stm32mp1_adc_priv_cfg = { .regs = &stm32h7_adc_common_regs, .clk_sel = stm32h7_adc_clk_sel, - .max_clk_rate_hz = 40000000, + .max_clk_rate_hz = 36000000, .has_syscfg = HAS_VBOOSTER | HAS_ANASWVDD, .num_irqs = 2, };