Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp945545pxp; Wed, 16 Mar 2022 22:12:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqMKoYYhtiMorQCKivDVzfZh/cjZVvxiTBmkpjMky8ixdmC36pka4RaBYd1CKaUIXwbLsN X-Received: by 2002:a17:902:f607:b0:14c:d9cf:a463 with SMTP id n7-20020a170902f60700b0014cd9cfa463mr2994514plg.32.1647493951274; Wed, 16 Mar 2022 22:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647493951; cv=none; d=google.com; s=arc-20160816; b=yZaAW45Rv/TsW9AzjS0Aro4IQJMCDfkzNDKISiJ21Sh/rBWvwV8oV9wuDUEQe70qh0 FzZH+9wP7dRMwwEsrFSI6pAUQtVdAwlvhkSyHYfmgPTJ1jbLfNCfcymhFDS28xEMnXBP UHKupsF5ic5qfDbpaUI5FHSPjGu2Ukn62anZQoO57LzKhrescYQJp1/S3vJn9oDh1/5Q eIf+J8h4aF9I4JN22F/35uEN6NpYxOVZM9kNoOhU7P+n8OoXn+N63+NA9WceAoPkFn5G 50xSHL3rXGpaVoaknFguLDKvuT5uYlV1i+9VzeWyo1EfkYwgE94s+GQMvckixz2KF3Qm GKfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xQ0LY62N9ucJsRtmmS7ed7yZVgwJC7hBULDEdrXmsp4=; b=qQnRIGwzwBmgyFgiHp2s8vtprYawXOa6ewroA/Ezl3Ln2bgp/NsfQuqOs9FIo6b07m qKvjm0dvJ1ml/8CzShgWIdrP52bONVyw0PkwtiHs2ZySxe2b+43ielpIYav1wICoRf8S viZUVPdIgpNNsgjIbHQDL078mnym5agsioB1acsW8sk1BtFkmBGT+nCfxpKhkELuszVF ekEhyBgIVB/uoBYkIkL97y8TYGBLQa4bTogS7pI/dU8zcqTgcbiiaalafDjpVWbI+jn/ TY76G69UgdabcIuNYHWu3lH8ao4YrWINh0P97gjApy3qSz2CSe1zR9nlCXBZH+xMkQF6 g/dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=8am3tPvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a23-20020a17090a8c1700b001bd14e01fa0si223198pjo.142.2022.03.16.22.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=8am3tPvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D8FA1DB8B3; Wed, 16 Mar 2022 21:22:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356055AbiCPNLq (ORCPT + 99 others); Wed, 16 Mar 2022 09:11:46 -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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 -- 2.25.1