Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp991746rdb; Wed, 6 Dec 2023 06:01:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDnHgOJUu5IIIYFOALK+G0ryhkVl1sfRwI40o6jbxoDxpnDFNpoU2SxwOwTgntcJcgD/1J X-Received: by 2002:a05:6830:6710:b0:6ce:2985:a8dc with SMTP id cr16-20020a056830671000b006ce2985a8dcmr1336309otb.0.1701871304837; Wed, 06 Dec 2023 06:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701871304; cv=none; d=google.com; s=arc-20160816; b=CNVEzrt65rw9HWv45DEXVWd6H2WZgfEuTF0BweYG9iCdxDv+p/BQpkDabbSuSNdxBV cKxG8svZpZuRS5CYWEYHfN+FMPWlt01x1PP+8Sgp8MeZrzynMthZZ7g7B98eZRGR6Lxd zdWVY8brfZ4vDhExGTdRYiviwx+PR1BfnUOhyD9X25IrnTBYp45cNKO3UwWd9rkPLwBL Qp5HTclxmJC3fvOWtFgu178xkLmKXwiybzY33BSRYytbHGxLwn2U7updHSSQ8iIeHJu5 IU6lGE1F+3JNg58HYTTdbXJ7S36KAokDxD1BAqQB6KXFy+SG8Aw5ZrHTwCIlL8EJX8ts Qmbg== 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=EwASbno+TH4VKuQZL4cP3y/rT3qwTxI3x5/zZWpNW3M=; fh=O1UHIcJgxDJiKzLnlRE49sdpYMyGa7Y5uLGsOZ6QxnE=; b=GApA0M8hek31JrMJxOgYy/uHwyfqvZuRZYoF3dShihj5i1wSThZ0xGDELGq7vi+P47 C9eOsUSm3AKndwx1iKSPKaC543LdSGC9qPCdihvMRl35SJta/xNuo7eHYlFDPQYsNUAk HDU8ArnwUPlpIE2yskSVH+r9bsr7cf0YSmU5r1+Dz1xZwR0eP8JvC+Rk01YeqHvWQAxn IDPvyMBrIEZkDALTpoPpkyTfJErN1KzUkOUzG5QxdJwEo0fm5Sbor54v6CuSmIcDwm4I qXJ76iqYvWS/s0jHC6539Zjaqx3LuYS8Fuj63gd5xJMNs4XJW17TltLq23MG2eM7DuWb sNkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0loM7Asl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p7-20020a9d4547000000b006d888567d11si2310599oti.212.2023.12.06.06.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:01:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0loM7Asl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BCA8E8029C59; Wed, 6 Dec 2023 06:01:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378770AbjLFOBM (ORCPT + 99 others); Wed, 6 Dec 2023 09:01:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378676AbjLFOBK (ORCPT ); Wed, 6 Dec 2023 09:01:10 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B2EBD44; Wed, 6 Dec 2023 06:01:16 -0800 (PST) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B6DDOgo018728; Wed, 6 Dec 2023 15:00:46 +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=EwASbno +TH4VKuQZL4cP3y/rT3qwTxI3x5/zZWpNW3M=; b=0loM7Aslu0Yb+o9PUnpuSnC Y1+/D6L33QjP46HjLsFqXAtJV4UDSdrwjemWoH/DltoieMtpqWRjRUE/nhbV1luQ sYN+gXHJfE/pUjKtIuCfuTSawYxG2brCDzlikqM2rbGl3SZZEWGN2zOMRa+ml+AD /TJB7W2soK4wJxsgC8rJjwezPiJH8OB9NlcEC2sb7t9vgPz43dcI2kKWn/jFAtPj iazzqIwuIEpzQznRo4JX5WVVWVaBB1eD+iFb3KT5gETk/8ZIOpNm6XekuyO+NxDj xj1I3ws+cuVmok7vHzHcttt4tniNQG9PCfEjJ43Z+0j4/YMJ7dt3y6zeX/1+dVg= = 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 3utd2jbavn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Dec 2023 15:00:46 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6F130100052; Wed, 6 Dec 2023 15:00:44 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5B572233C65; Wed, 6 Dec 2023 15:00:44 +0100 (CET) Received: from localhost (10.201.21.240) 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.27; Wed, 6 Dec 2023 15:00:44 +0100 From: To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Gabriel Fernandez CC: , , , , Subject: [PATCH v5 0/5] Introduce STM32MP257 clock driver Date: Wed, 6 Dec 2023 15:00:24 +0100 Message-ID: <20231206140029.492906-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.201.21.240] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-06_11,2023-12-06_01,2023-05-22_02 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 06:01:31 -0800 (PST) From: Gabriel Fernandez This patch-set introduces clock driver for STM32MP257 based on Arm Cortex-35. It creates also a menuconfig for all STM32MP clock drivers. The STM32MP1 and STM32MP13 are now in same stm32 directory v5: - Fix sparse warnings: was not declared. Should it be static? drivers/clk/stm32/clk-stm32mp13.c:1516:29: symbol 'stm32mp13_reset_data' drivers/clk/stm32/clk-stm32mp1.c:2148:29: symbol 'stm32mp1_reset_data' drivers/clk/stm32/clk-stm32mp25.c:1003:5: symbol 'stm32mp25_cpt_gate' drivers/clk/stm32/clk-stm32mp25.c:1005:29: symbol 'stm32mp25_clock_data' drivers/clk/stm32/clk-stm32mp25.c:1011:29: symbol 'stm32mp25_reset_data' v4: - use GPL-2.0-only OR BSD-2-Clause for clock and reset binding files - use quotes ' for #clock-cells and #reset-cells in YAML documentation - reset binding start now to 0 instead 1 - improve management of reset lines that are not managed v3: - from Rob Herring change clock item description in YAML documentation v2: - rework reset binding (use ID witch start from 0) - rework reset driver to manage STM32MP13 / STM32MP15 / STM32MP25 - rework YAML documentation Gabriel Fernandez (5): clk: stm32mp1: move stm32mp1 clock driver into stm32 directory clk: stm32mp1: use stm32mp13 reset driver dt-bindings: stm32: add clocks and reset binding for stm32mp25 platform clk: stm32: introduce clocks for STM32MP257 platform arm64: dts: st: add rcc support in stm32mp251 .../bindings/clock/st,stm32mp25-rcc.yaml | 76 + arch/arm64/boot/dts/st/stm32mp251.dtsi | 59 +- drivers/clk/Kconfig | 11 +- drivers/clk/Makefile | 1 - drivers/clk/stm32/Kconfig | 36 + drivers/clk/stm32/Makefile | 2 + drivers/clk/stm32/clk-stm32-core.c | 5 +- drivers/clk/stm32/clk-stm32-core.h | 5 +- drivers/clk/{ => stm32}/clk-stm32mp1.c | 127 +- drivers/clk/stm32/clk-stm32mp13.c | 9 +- drivers/clk/stm32/clk-stm32mp25.c | 1125 ++++ drivers/clk/stm32/reset-stm32.c | 73 +- drivers/clk/stm32/reset-stm32.h | 15 +- drivers/clk/stm32/stm32mp25_rcc.h | 4977 +++++++++++++++++ include/dt-bindings/clock/st,stm32mp25-rcc.h | 492 ++ include/dt-bindings/reset/st,stm32mp25-rcc.h | 167 + 16 files changed, 6999 insertions(+), 181 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/st,stm32mp25-rcc.yaml create mode 100644 drivers/clk/stm32/Kconfig rename drivers/clk/{ => stm32}/clk-stm32mp1.c (95%) create mode 100644 drivers/clk/stm32/clk-stm32mp25.c create mode 100644 drivers/clk/stm32/stm32mp25_rcc.h create mode 100644 include/dt-bindings/clock/st,stm32mp25-rcc.h create mode 100644 include/dt-bindings/reset/st,stm32mp25-rcc.h -- 2.25.1