From patchwork Wed Mar 16 13:09:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel FERNANDEZ X-Patchwork-Id: 12782636 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9BA0C433FE for ; Wed, 16 Mar 2022 13:10:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356050AbiCPNLp (ORCPT ); Wed, 16 Mar 2022 09:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356044AbiCPNLl (ORCPT ); Wed, 16 Mar 2022 09:11:41 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 683005F4D5; Wed, 16 Mar 2022 06:10:24 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 22GAA8oI004865; Wed, 16 Mar 2022 14:10:09 +0100 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=xQ0LY62N9ucJsRtmmS7ed7yZVgwJC7hBULDEdrXmsp4=; b=8am3tPvbkj76C2RFj7VLeNcOCQtUjPnuljRtuXJgk2IklZszGEpk39MOfBq1zafBIwQZ mQ/JjhCsFIjI8JpWfDzi0uAo5A7sICQ9n01Ccg5WoTVb8NSIxMxIydBmpdvn6N9R1g4j ETAaTrOIpHUiDElmPxdIGK+dLqJPsH/YtnqLnJRqganRgB0hBJIdE0FdOtV3oGGiDylO gHyZvCxGmVLInEgYxlICBRiDMz3RBIyJvUY+e26v1mXECFt0TCRr6vU0nXlP+yiGh3Tw aIPTUn4eTkJ45ia0JUEVyZ/Zh4oD2Mv6UDbLtkEOuK9JaoAhNyoimcpU338yhGN5boF+ lQ== 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 3et63j5pdc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Mar 2022 14:10:08 +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 5905C100034; Wed, 16 Mar 2022 14:10:08 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 510332291AB; Wed, 16 Mar 2022 14:10:08 +0100 (CET) Received: from localhost (10.75.127.48) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Wed, 16 Mar 2022 14:10:08 +0100 From: To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Gabriel Fernandez CC: , , , , Subject: [PATCH RESEND v3 00/13] Introduction of STM32MP13 RCC driver (Reset Clock Controller) Date: Wed, 16 Mar 2022 14:09:47 +0100 Message-ID: <20220316131000.9874-1-gabriel.fernandez@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-16_04,2022-03-15_01,2022-02-23_01 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Gabriel Fernandez v3: - cosmetic change from Stephen Boyd - rename some functions in clk-stm32-core - add missing static for variables or functions v2: - Resend because patch 9,10,12,13 has not been sent - add Reviewed by Krzysztof Kozlowski for patch 1 Gabriel Fernandez (13): dt-bindings: rcc: stm32: add new compatible for STM32MP13 SoC clk: stm32: Introduce STM32MP13 RCC drivers (Reset Clock Controller) clk: stm32mp13: add stm32_mux clock management clk: stm32mp13: add stm32_gate management clk: stm32mp13: add stm32 divider clock clk: stm32mp13: add composite clock clk: stm32mp13: manage secured clocks clk: stm32mp13: add all STM32MP13 peripheral clocks clk: stm32mp13: add all STM32MP13 kernel clocks clk: stm32mp13: add multi mux function clk: stm32mp13: add safe mux management ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13 ARM: dts: stm32: add RCC on STM32MP13x SoC family .../bindings/clock/st,stm32mp1-rcc.yaml | 2 + arch/arm/boot/dts/stm32mp131.dtsi | 128 +- arch/arm/boot/dts/stm32mp133.dtsi | 4 +- arch/arm/boot/dts/stm32mp13xf.dtsi | 3 +- drivers/clk/Kconfig | 5 + drivers/clk/Makefile | 1 + drivers/clk/stm32/Makefile | 1 + drivers/clk/stm32/clk-stm32-core.c | 695 +++++++ drivers/clk/stm32/clk-stm32-core.h | 188 ++ drivers/clk/stm32/clk-stm32mp13.c | 1620 +++++++++++++++ drivers/clk/stm32/reset-stm32.c | 122 ++ drivers/clk/stm32/reset-stm32.h | 8 + drivers/clk/stm32/stm32mp13_rcc.h | 1748 +++++++++++++++++ include/dt-bindings/clock/stm32mp13-clks.h | 229 +++ include/dt-bindings/reset/stm32mp13-resets.h | 100 + 15 files changed, 4794 insertions(+), 60 deletions(-) create mode 100644 drivers/clk/stm32/Makefile 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/reset-stm32.c create mode 100644 drivers/clk/stm32/reset-stm32.h create mode 100644 drivers/clk/stm32/stm32mp13_rcc.h create mode 100644 include/dt-bindings/clock/stm32mp13-clks.h create mode 100644 include/dt-bindings/reset/stm32mp13-resets.h