Message ID | 20240111071536.659409-1-gabriel.fernandez@foss.st.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-23135-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1278991dyi; Wed, 10 Jan 2024 23:17:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKgpzyONNDpHPiiK29Gn9LW5fL1MUwWbnSTvd03K2RV0Q8JE4BGxG4OrW10KSvKsvZcfZs X-Received: by 2002:a17:907:9302:b0:a2c:1162:1771 with SMTP id bu2-20020a170907930200b00a2c11621771mr378512ejc.7.1704957435659; Wed, 10 Jan 2024 23:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704957435; cv=none; d=google.com; s=arc-20160816; b=r52/wBpwvu+T4sEX/CYaang64z597vwerhoQCPCYiRJ6bDVpEvltt+Mf+gB58ZaStr 3r+wbN4kaZGX1NmN55KBzm+9VdxvoeojnyMawDHlMrjkMe+nsJH7Inm8gyQqKV6EP1cJ Lo4pWrBaeW8eGEEi87KCqHf75b8+2ocm7RL/CYDC0JpB6crDnN3aAp07/sX5sC6sjb3l 1+8Fsuux1cSXXyga7S5hxwl0INLUxTVnXWDXAwWVXux8UhvGQeXs4Qs4X62DoV7eUxaH IXTPTulNVxaMG8XjobEQgG0dUAbdXwgJ6jLljo6YtjavhsuvZHVUgxT9KszHJIWGHRWK H7nw== ARC-Message-Signature: i=1; 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=+X4Cxs8db+Il6tUMjOf6juuuQ6x88rMKAMZWEwcxwR0=; fh=O1UHIcJgxDJiKzLnlRE49sdpYMyGa7Y5uLGsOZ6QxnE=; b=LgePqjisicKfGQQaIj8nE92BjFEdaIySgfUy8BUHb/Ncq1X7+OfF8crxTlIu7aUWtP LLcCRI8zUIAaf/xK9RA4xxnEnwhdZM/lO/yHk0x2gPkt91C73Xa6ubyy1+DNnKT5xhHI yOqbL6slWJmtq3MtAu3p9mBosL9E7Bj6h7WtW6R6MLsjZO7q4aOJNdKdrq+D2O+BNUP0 X1aHGxj77g0HGIzLWpg0mF8p9aCMenKO592cFn/84MAack5RQjRgUj1/eaSdXzDSkXDh bAm2v51pHukeS5NO2Ngv20NqM2Rhtpr6yHgXv4FmJSzM0pml8A/SjJaOjQho8QobMt54 nzRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=zGnNVz9N; spf=pass (google.com: domain of linux-kernel+bounces-23135-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23135-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x23-20020a170906711700b00a2ad11828c6si233403ejj.663.2024.01.10.23.17.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 23:17:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23135-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=zGnNVz9N; spf=pass (google.com: domain of linux-kernel+bounces-23135-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23135-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 48C9D1F22D4C for <ouuuleilei@gmail.com>; Thu, 11 Jan 2024 07:17:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA5C6E574; Thu, 11 Jan 2024 07:16:35 +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="zGnNVz9N" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 2B4D6D2F3; Thu, 11 Jan 2024 07:16:30 +0000 (UTC) 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 (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40B2SaOE030198; Thu, 11 Jan 2024 08:16:08 +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=+X4Cxs8 db+Il6tUMjOf6juuuQ6x88rMKAMZWEwcxwR0=; b=zGnNVz9NsQyR7xdOIIJT3jY QyOmnZ9kPd8mEoGkEzGWiYN9ZEBUCac8fartg2KfM5N2qOkmV7fMISht5wm1a2rG coFNpm7NrHlJa0kln+Ew7/i+q7kJoKiwQWK+D2onHNBMIlstCJK6SZ6PGJ6cVSC5 ZlckpP7kg+Uw59EvuNypSi5v7ReNsNY8jXm1K5d65VUWcTRRzX1hd5fkVQDMJ2mK wsZyLoX1fl1U+JXjon9tXb7PqEIby6Z4K22dEF3jgvDhRO/YAstvq5HofSqBvTX1 RqWJ5adUqqV+NSR76RNKfIxvo+PuGGI2lVsA2XPYHDmAxySyTkkzAax5QamMTsw= = 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 3vey30v352-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 08:16:08 +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 662CF10002A; Thu, 11 Jan 2024 08:16:07 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 52FC32194E0; Thu, 11 Jan 2024 08:16:07 +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, 11 Jan 2024 08:16:07 +0100 From: <gabriel.fernandez@foss.st.com> To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Philipp Zabel <p.zabel@pengutronix.de>, Gabriel Fernandez <gabriel.fernandez@foss.st.com> CC: <linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v8 0/3] Introduce STM32MP257 clock driver Date: Thu, 11 Jan 2024 08:15:33 +0100 Message-ID: <20240111071536.659409-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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> 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.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-05_08,2024-01-05_01,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787777447952634503 X-GMAIL-MSGID: 1787777447952634503 |
Series |
Introduce STM32MP257 clock driver
|
|
Message
Gabriel FERNANDEZ
Jan. 11, 2024, 7:15 a.m. UTC
From: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
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 (3):
clk: stm32mp13: use platform device APIs
clk: stm32: introduce clocks for STM32MP257 platform
arm64: dts: st: add rcc support in stm32mp251
arch/arm64/boot/dts/st/stm32mp251.dtsi | 132 +-
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 +++++++++
9 files changed, 2765 insertions(+), 112 deletions(-)
create mode 100644 drivers/clk/stm32/clk-stm32mp25.c
create mode 100644 drivers/clk/stm32/stm32mp25_rcc.h
Comments
Hello Stephen, Gentle reminder. Thanks Gabriel On 1/11/24 08:15, gabriel.fernandez@foss.st.com wrote: > From: Gabriel Fernandez <gabriel.fernandez@foss.st.com> > > 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 (3): > clk: stm32mp13: use platform device APIs > clk: stm32: introduce clocks for STM32MP257 platform > arm64: dts: st: add rcc support in stm32mp251 > > arch/arm64/boot/dts/st/stm32mp251.dtsi | 132 +- > 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 +++++++++ > 9 files changed, 2765 insertions(+), 112 deletions(-) > create mode 100644 drivers/clk/stm32/clk-stm32mp25.c > create mode 100644 drivers/clk/stm32/stm32mp25_rcc.h >