Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp304283rdb; Thu, 8 Feb 2024 06:33:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWgCBa74yeHNGLokppt4LiQzHHzTOCvsgFoVyUxIDOftAfSTcC+ZGIfwIzWj220SVjM5xPiZf/tE2oW03CivKIdSYsKdSbiMKDe7Mum1g== X-Google-Smtp-Source: AGHT+IHJ4RR8411ZycjcuNmgJcitbNxq87XD3ZVwEHQmA+A6LXlVBF+HwLFUb8uzctPP90nqTJZ+ X-Received: by 2002:a17:90a:db93:b0:296:4177:6404 with SMTP id h19-20020a17090adb9300b0029641776404mr6430770pjv.11.1707402832799; Thu, 08 Feb 2024 06:33:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707402832; cv=pass; d=google.com; s=arc-20160816; b=elIYVu2iml52ypi50TqXJEdpcsHxnnSORSZibEqiL3HW5bd6jIVe0jXT8G1hyh5Rgs /JC7tkpjjzJU0BUonAQZGrkHmURoa4nr7mVAUZvIdFZ5jPnx6RJVczJYYvbK+8tVLlwU VH1ZHQpCsWiUIp9WXEqOfJsJRYaOymCWyvioPzlq2WpWq+wUGR9EaGpOnPvnf8pVv2Ea Djfc5e945LqumCADM/uaVgx8CGHYjXDRC/s7M+ggWQDIRl4PRTS31+SE7Ao4SFnXgZ79 NLChCqYLhbnCkteduXx75O03sB3B99Z7yZ12dCBk8+ADDMQjaoqdheyNdadyzyjYIvN3 qMhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zaPY/Fii7n1522i/lEuTYz0M022TA0flX4c6e/PmMDY=; fh=b+HVQRU4wnopg4Q+ZMvPV1dQc/iEWeXigYmNsKeQEvs=; b=Gj/w3decoEaOJ0PFiQLZ7E8UAZj19nkggUnhqqQEEK4433nMU6e8IXk/jzsBnVl+fr k5L1QWddF+zhICF9+/U8NQpq47q14UwKllQvA5+3N3zEgC6cX9W2LC0N6ofqJO92cOIU yTvF2j4V8X4Ds15IU29zWT9393ffU46jfjcZSRWl7Y+lgu8pZy+lwIExxQvHaCrqlqnV W3y9FCKD3t+vSEmM1RX8DIE5zougKm0XjZX6rzfWCgfe1gil5ErHRaba31zhlbI9hxDj lZm7Jgm+RLuDuJed+R603i994O5QwQYKtY7V1EyjqHHGAW31P6ntHzh2MPxI7qROI8Hu st8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=l7NiTcyK; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-58224-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com X-Forwarded-Encrypted: i=2; AJvYcCX8s+/H3E7TTyTo2gnuZcr5l/7WDuVqDeAwMBcxJjhlKalrPDOCu5WRRBEG1Np8on9k51u7vKbre7+PSg6dFJvlpfvSqbI9WYiC5x/Mcw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i9-20020a17090ad34900b00296a76aa707si1402267pjx.185.2024.02.08.06.33.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 06:33:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58224-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=l7NiTcyK; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-58224-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 701EC286440 for ; Thu, 8 Feb 2024 14:24:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5F2E79956; Thu, 8 Feb 2024 14:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="l7NiTcyK" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1C4D79934; Thu, 8 Feb 2024 14:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707402261; cv=none; b=Bd5JucnYlZhUkKKYZ4u6uOUDx/tDlAsjuIsk90C2caZO7G43IoBUkWY95esXH9rx/jzYFZIRhX5bRq3RbcsC9LZsd8Ijel1P9glH1BuYgE3gMeFd2uoLZOpoI+lalZijbgpdrXGVW6CJMp8iArkpZJSTjAjX+vz10fjZID3HNo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707402261; c=relaxed/simple; bh=PK+HEVqFsevHHF+17hPtIOkqwfqfNEdE0CdmS3ZYJZM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AO6hGSeFVfQjUISldtQt2vY4KdE3B3l+rWwf8NVLsPL82diPn8Y5GOyfPdAF8en75qIXIXg78vuTl5lUY0nDau7Ba8Qe53+WxzO7mA0pzJwHl+iJr3Fh8f2891ktA26S0zrAZhMmLU7dls/Ry1twkNtt6v2qRd8V5qELRXsfRMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=l7NiTcyK; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 418B1tSQ014846; Thu, 8 Feb 2024 15:23:52 +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=zaPY/Fi i7n1522i/lEuTYz0M022TA0flX4c6e/PmMDY=; b=l7NiTcyK6dh6lWpohPWOTMd QqV5JdiDrnAQbolPRLgDZYcSWeEcxRlRnQ9peu4mbN6nyX2+degzFIeYcPz25QKD SjD1z71/fXDRdlDk9vSMU+lw+EuTslV/DrjHUDDmoC6JMxK5dzqRWdjv62LeIPMz 0MJVAY+RsfbMv2IBNjqy9pwpEkxWWYgSQRlGcKYDPJPs7FlcXhUBAOGsM5jLCyxf L3AFoRVWjCKH7Mi4o886pVsQvyWHwU84an5TsES95DjfNkbdFrzccsoF+/OUVs6C pBSDR5iw7JRVM8Gel5hF4Zq5OXSSX49j0QdDsICyFYDjO8EROKtuXkihsvoJIJg= = 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 3w1f63vxa5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Feb 2024 15:23:52 +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 B5AE3100051; Thu, 8 Feb 2024 15:23:42 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A2DE029B132; Thu, 8 Feb 2024 15:23:42 +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, 8 Feb 2024 15:23:42 +0100 From: To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Gabriel Fernandez CC: , , , , Subject: [PATCH v9 0/4] Introduce STM32MP257 clock driver Date: Thu, 8 Feb 2024 15:22:57 +0100 Message-ID: <20240208142301.155698-1-gabriel.fernandez@foss.st.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-08_05,2024-02-08_01,2023-05-22_02 From: Gabriel Fernandez v9: base on next-20240207 - update dt binding documentation with v8 modidification on RCC driver (use .index of clk_parent_data struct to define a parent) - rebase patch "arm64: dts: st: add rcc support for STM32MP25" with next-20240207 tag v8: - use .index of clk_parent_data struct to define a parent - remove unnecessary dependency check with SCMI clock driver - convert to platform device APIs - convert to devm_of_clk_add_hw_provider() - convert single value enum to a define v7: base on next-20231219 - These patches below are applied to clk-next: 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 - remove unnecessary includes - migrate clock parents to struct clk_parent_data and remove CLK_STM32_XXX() macros to have a more readble code - use platform device APIs (devm_of_iomap() instead of_iomap()) - move content of stm32mp25_rcc_init() to stm32mp25_rcc_clocks_probe() - simply get_clock_deps() - add const to stm32mp25_data struct - remove ck_icn_p_serc clock (will be integrate later with security management) v6: - remove useless defines in drivers/clk/stm32/stm32mp25_rcc.h 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 (4): clk: stm32mp13: use platform device APIs dt-bindings: stm32: update DT bingding for stm32mp25 clk: stm32: introduce clocks for STM32MP257 platform arm64: dts: st: add rcc support for STM32MP25 .../bindings/clock/st,stm32mp25-rcc.yaml | 171 +- arch/arm64/boot/dts/st/stm32mp251.dtsi | 144 +- arch/arm64/boot/dts/st/stm32mp255.dtsi | 4 +- drivers/clk/stm32/Kconfig | 7 + drivers/clk/stm32/Makefile | 1 + drivers/clk/stm32/clk-stm32-core.c | 11 +- drivers/clk/stm32/clk-stm32mp13.c | 72 +- drivers/clk/stm32/clk-stm32mp25.c | 1876 +++++++++++++++++ drivers/clk/stm32/reset-stm32.c | 59 +- drivers/clk/stm32/reset-stm32.h | 7 + drivers/clk/stm32/stm32mp25_rcc.h | 712 +++++++ 11 files changed, 2922 insertions(+), 142 deletions(-) create mode 100644 drivers/clk/stm32/clk-stm32mp25.c create mode 100644 drivers/clk/stm32/stm32mp25_rcc.h -- 2.25.1