Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3372163rdb; Thu, 16 Nov 2023 07:55:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYl8Nc/9jq8dxFwlIitmHibxWr/KeP4cXytFMUPYrxoe9EOE8tQt/X2UGGzUVU1XfByyau X-Received: by 2002:a05:6a20:2588:b0:149:700e:f50a with SMTP id k8-20020a056a20258800b00149700ef50amr2724924pzd.29.1700150103428; Thu, 16 Nov 2023 07:55:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700150103; cv=none; d=google.com; s=arc-20160816; b=rxVm7DUKqhCdPklJKQe3dblglbLBqsIWQMeUcfKdm0jMLZ49Dh0z+6qzy4XCehrmpj 405zsEOIe/UsGbm1cHF3zwV8shG+XCskoJWbMwwTZvBdosQew9KucyOS8q4BjPJyG69g fGwwp2zmeN7Iw9fyjfQh1urqJAfCpdDwS4cPjZvAWEBKNSKShrNOA0nqyrwnD10I97KW llOJzaod7ZiiaxI8XshLgoyb5OHxcXLEYZ/28deorZtBv7fgv/gD83UkJ+OsPm/vAxAU 3FbJVhiAt7G+vimmNtGbogo1DfFGReUAa2OigmEbbPfW8OVCG1VRXt/3SY0nkhmVPRCg hxWw== 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=FTuGpnCesklKD7MATIa9GL+6MeJKxiNCBGNvyVSe6Nk=; fh=O1UHIcJgxDJiKzLnlRE49sdpYMyGa7Y5uLGsOZ6QxnE=; b=gsGmOpqgPBCLXQPS1ieqGtSszrQudO2huzKUhRaKmL2GdAFJZGl0RjULmIlZyyFvj+ 9obC7jJVGqmyReXHDmd/c8hQGruoCn31f2MjIKEYs1O7pNgrgkjIg/kYDu1egOyJikV+ v3d/PS3XZrE0RGgaNsWs/p7ouN3M3Uf7bUyPuGUiI9HqggUSNoQ2lUoLGP2DNigqC1iQ HvWoJWM0IgS62MpLKDEV31apDlOj8cI/Ppq0invXFt3pFb/M9jjVKXCE0XH6/RxslBUZ noUzVIoxmVxo9gu587Q6PGghYfusAyHhQ5B5bP3cGBnBmHXCI2Sd+QPz15nqLvgGhxhb bqhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TncYUhDO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bi5-20020a056a02024500b005bd043751dcsi886791pgb.855.2023.11.16.07.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:55:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TncYUhDO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id D1351818451E; Thu, 16 Nov 2023 07:54:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345434AbjKPPy2 (ORCPT + 99 others); Thu, 16 Nov 2023 10:54:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345437AbjKPPyY (ORCPT ); Thu, 16 Nov 2023 10:54:24 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D006D6A; Thu, 16 Nov 2023 07:54:20 -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 3AGARpgZ007319; Thu, 16 Nov 2023 16:53:57 +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=FTuGpnC esklKD7MATIa9GL+6MeJKxiNCBGNvyVSe6Nk=; b=TncYUhDOAaUV7Ccnr+jgp+L iKMnNooTL8xJ7naQNIrFTLYbQqBpwLVg9y39pQybqxE4CAFnERE14fPnmupt/LVL l/YG59TBOx8GtZViq9S9c4RyIqWeusCCMlxDryCGFvLTZvBstbpQOKbBxbGzUJT+ tn1Z2YvX+Ap4YsL/9CIC/ffOYh7FI1LTMEDn51cNglKiAGgZ+Esu14H6TlzTQBn2 SKENEMXIFhfq6q/yFMaDFvtIz2s3h0irwxW9svFdgrBmCk//di0qe5o6Ds8o6sQ1 pO/mLv8Hy335KQZw4iBvf/R1Xb61FPznRNMh0vaDxUu1SUtzJ9JL0CQ4DX3ERtA= = 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 3u9ym8ymf5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2023 16:53:57 +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 3359A100056; Thu, 16 Nov 2023 16:53:48 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1999023C69E; Thu, 16 Nov 2023 16:53:48 +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; Thu, 16 Nov 2023 16:53:47 +0100 From: To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Gabriel Fernandez CC: , , , , Subject: [PATCH v2 0/5] Introduce STM32MP257 clock driver Date: Thu, 16 Nov 2023 16:49:47 +0100 Message-ID: <20231116154952.1206705-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.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-16_16,2023-11-16_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 07:54:54 -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 v2: - rework reset binding (use ID witch start from 0) - rework reset driver to manage STM32MP13 / STM32MP15 / STM32MP25 new binding of 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 | 72 + 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 | 76 +- 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 | 165 + 16 files changed, 6996 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