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 037FCC4332F for ; Wed, 12 Oct 2022 16:29:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E09484E4C; Wed, 12 Oct 2022 18:29:27 +0200 (CEST) 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="PXbY5EU0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0D5E384E4C; Wed, 12 Oct 2022 18:29:26 +0200 (CEST) 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 87FD484DB3 for ; Wed, 12 Oct 2022 18:29:23 +0200 (CEST) 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=6284283e4d=patrick.delaunay@foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29CFmQWY005205; Wed, 12 Oct 2022 18:29:22 +0200 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=8v3Mda9YWHVeqx/BXZWFKzrTpvvWXD5+zInozFcYAW0=; b=PXbY5EU0veY8rOtIJBNr5XE2ZgDCFlJbQr3omt5PPOMqPXgMWbE1QrTSMgVMiJsgSgXo d0IMlFfO609Zv2PQXZVWDTvUlg8NjTWjI3x/cFl1nm21RIrOR0A2Uu6+Ab8DmMAsVTIB mkwo0DD7oV0Clp0198upio2qiTSjh+tyqddCiudIEz3IInMBnqPILYfASYu2rqYuBnd4 qWkY6VrdpShNd9DTT/4sL5CwLlLZvsFiBStLC5kHdq1YcsidYYwWPcvkvEfWYT1SC8kP 2KmTEKwf7u58LJ9aMHGcate8TDZ2oc96lzZUTy+W8g3nqhakS/aNOiY/QyxTDXOKIgzs zw== 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 3k31exud61-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 18:29:22 +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 8665910002A; Wed, 12 Oct 2022 18:29:17 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7AD0E236937; Wed, 12 Oct 2022 18:29:17 +0200 (CEST) Received: from [10.48.0.213] (10.75.127.120) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Wed, 12 Oct 2022 18:29:16 +0200 Message-ID: <2814aee9-5157-4c0a-e7b7-49f4bbdad0dd@foss.st.com> Date: Wed, 12 Oct 2022 18:29:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver Content-Language: en-US To: Gabriel Fernandez , CC: U-Boot STM32 , Lukasz Majewski , Patrice Chotard , Sean Anderson References: <20221012123317.434898-1-gabriel.fernandez@foss.st.com> <20221012123317.434898-3-gabriel.fernandez@foss.st.com> From: Patrick DELAUNAY In-Reply-To: <20221012123317.434898-3-gabriel.fernandez@foss.st.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.120] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-12_07,2022-10-12_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 Hi Gabriel, On 10/12/22 14:33, Gabriel Fernandez wrote: > Introduce STM32MP13 RCC driver using Common Clock Framework. > > Signed-off-by: Gabriel Fernandez > --- > > drivers/clk/stm32/Kconfig | 15 + > drivers/clk/stm32/Makefile | 2 + > drivers/clk/stm32/clk-stm32-core.c | 349 ++++++ > drivers/clk/stm32/clk-stm32-core.h | 154 +++ > drivers/clk/stm32/clk-stm32mp13.c | 839 +++++++++++++ > drivers/clk/stm32/stm32mp13_rcc.h | 1751 ++++++++++++++++++++++++++++ > 6 files changed, 3110 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: Patrick Delaunay Tested-by: Patrick Delaunay tested on STM32MP135F-DK board, stm32mp13_defconfig. I have a dependency with patch "firmware: scmi: fix the multi channel support with CCF" http://patchwork.ozlabs.org/project/uboot/patch/20220930093635.1.I38e66d79350b381b6059a6a80ce60c62f01f3894@changeid/ This this patch the SD-Card boot is OK with 2 traces : 1- because USBPHY is not yet present in DT: clk_register: failed to get ck_usbo_48m device (parent of usbo_k) 2- the console trace is pertubated by UART RESET introduction in DT => the UART FIFO is not flush before the probe after relocation       and the reset of HW device Clocks: - MPU : 650 MHz - AXI : 266.500 MHz - PER : 24 MHz - DDR�Core:  165 devices, 23 uclasses, devicetree: board MMC:   STM32 SD/MMC: 0 For information "clk dump" command cause a crash because the SCMI clock are not probed when clk_get_rate is used,  but I prepare a patch to avoid this issue. Thanks Patrick