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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 70D47C352A1 for ; Wed, 7 Dec 2022 15:47:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E12E285282; Wed, 7 Dec 2022 16:47:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="FNLZjFB8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9693982A0A; Wed, 7 Dec 2022 16:46:59 +0100 (CET) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 269DA85471 for ; Wed, 7 Dec 2022 16:46:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=8340f7c7d0=patrice.chotard@foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B7D4SQ1003996; Wed, 7 Dec 2022 16:46:51 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=cVXcUYf3YeRwmUM+4pTl20COnwRZlHzFO2LKOrZh7Sg=; b=FNLZjFB8Ok6yCHUatzRutaGScs65gjtVzQt5/HyTYKJisA2s6vMUe+FEXxUD+zCi4ftk IvUQt3xjRcVXkDsc5/dGWNJ9JfHvbzOMWLfaJ3TRTTV/m1yrLxR94vJBvYBMwvLzz27m qNIROWfOPow9HhAs93Hz+5kyPpRnRQouXesiApZ2B2P+ZAsqQ6/V453AyGUR4u5LH/h5 VFBHhJSwqJMt7VjTmFI6Ixps/k37kj3njdtRkZOeG5e8K624v0PFBnQWJT3Iwwa4iRGj mbs8LfXLGb2tl4PlHo6joSR5ATz132t25j4DTq8u3APgvy3eKB8ExkQbsIebc+8Xs1cJ VA== 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 3m7vrr96fy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Dec 2022 16:46:51 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3944A10002A; Wed, 7 Dec 2022 16:46:47 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 29F51237D8A; Wed, 7 Dec 2022 16:46:47 +0100 (CET) Received: from [10.201.20.130] (10.201.20.130) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.13; Wed, 7 Dec 2022 16:46:46 +0100 Message-ID: Date: Wed, 7 Dec 2022 16:46:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v4 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver Content-Language: en-US To: Gabriel Fernandez , CC: Patrick DELAUNAY , U-Boot STM32 , Sean Anderson , Lukasz Majewski References: <20221124103605.298002-1-gabriel.fernandez@foss.st.com> <20221124103605.298002-3-gabriel.fernandez@foss.st.com> From: Patrice CHOTARD In-Reply-To: <20221124103605.298002-3-gabriel.fernandez@foss.st.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.20.130] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-07_08,2022-12-07_01,2022-06-22_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 11/24/22 11:36, Gabriel Fernandez wrote: > STM32MP13 RCC driver uses Common Clock Framework and also a > 'clk-stm32-core' API. Then STM32MPx RCC driver will contain only data > configuration (gates, mux, dividers and the way to check security) > or some specific clocks. > This API will be used by all new other generations of ST Socs. > > Signed-off-by: Gabriel Fernandez > Reviewed-by: Patrick Delaunay > Reviewed-by: Sean Anderson > Tested-by: Patrick Delaunay > > --- > > (no changes since v3) > > Changes in v3: > - fix cosmetic > - add comments in commit message > - explanation of stm32 clock gating > > Changes in v2: > - deference check_security() call back > - use of ccf_clk_(enable/disable/get_rate/set_rate) ops > - fix gate refcounting > - documented structures in clock-core API > - remove useless spinlocks > - cosmetic changes > - remove useless defines > > drivers/clk/stm32/Kconfig | 15 + > drivers/clk/stm32/Makefile | 2 + > drivers/clk/stm32/clk-stm32-core.c | 268 +++++++++ > drivers/clk/stm32/clk-stm32-core.h | 276 ++++++++++ > drivers/clk/stm32/clk-stm32mp13.c | 841 +++++++++++++++++++++++++++++ > drivers/clk/stm32/stm32mp13_rcc.h | 288 ++++++++++ > 6 files changed, 1690 insertions(+) > create mode 100644 drivers/clk/stm32/clk-stm32-core.c > create mode 100644 drivers/clk/stm32/clk-stm32-core.h > create mode 100644 drivers/clk/stm32/clk-stm32mp13.c > create mode 100644 drivers/clk/stm32/stm32mp13_rcc.h > [...] Reviewed-by: Patrice Chotard Thanks Patrice