From patchwork Fri Apr 19 15:27:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel FERNANDEZ X-Patchwork-Id: 13636510 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE41DC04FF6 for ; Fri, 19 Apr 2024 15:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fDOx3IMpnzR7ZXZjbtDJZYeOffr2ROwjeZAbOrDee2w=; b=XcGiGg869J/0KW r9GYR74bkN46PEIOZlKKVtwNVqoE/PuMUdB+dLqh6mdMy4Y1n4SQ1selKvtlr50dfMTIWP07txwwx V21b3aJa2ZU5QatoWP+TFggLmNHSjLXgV14MS8FyA6PB4gHb7zPrYEqukLCwj+NLIIoJn6EiQkMUb rjBz2UKL7nPkoceeEEdobZ2x8b0R0f2cs7f/MDA73TvChPFHK6YfpswbQE2u+bqN5VuyExMWZ1e+V NQOADvsxB9wGOpRZ9KyEGFFK27OmAtpaaXDECzQcHXR3yeSNXZb1h9ITuaX74gYmmewesu2NIEe7t /h9PC989tYsvEge+fhfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxqAw-00000006AGz-1ycu; Fri, 19 Apr 2024 15:29:18 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxqAm-00000006AD2-1zWR for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 15:29:11 +0000 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 43JEkaek032318; Fri, 19 Apr 2024 17:28:51 +0200 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=sT9qlm8 Vo8N7LFXF3kZTIfAN4NmsL6mJS+Lg4I00mhE=; b=gF1/pnP7esMIgSH1/I1GqEb aOn5HCDtnwGDlPwxtS3HYnmjOhHPSWqE21ZPb+KIDFN86czzjx7CeuSkr07fzrnN FftuP1IadIo/c3qWdmnkYWzamakg0BJK1QBRcrM9V5yidLGMCda8LP3NzeRYMUox L/UrnDmNkvsBf2rnMtyL28D2FTStAFSHnRSfNsrhOZavtqKIaRdIpFk2zzfRrraM IwMUBrj4AeMdFOe2HThM51cvvp+QZfIdLx+vCrrWysOmrnSlNKbOGOuhWR6a5cil 1KByS4aq+9yyyJj8eC2qjirA3F1fD8Emr4dG0bxjWf+Jr7uysJ+1GYy7yggLcWw= = Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3xgecys4kf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Apr 2024 17:28:51 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 7766B40044; Fri, 19 Apr 2024 17:28:45 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0D97122367A; Fri, 19 Apr 2024 17:27:53 +0200 (CEST) Received: from localhost (10.252.27.3) 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; Fri, 19 Apr 2024 17:27:52 +0200 From: To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Philipp Zabel , Gabriel Fernandez CC: , , , , Subject: [PATCH 0/4] Use STM32 access controller for STM32MP25 clocks Date: Fri, 19 Apr 2024 17:27:19 +0200 Message-ID: <20240419152723.570159-1-gabriel.fernandez@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.252.27.3] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) 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-04-19_11,2024-04-19_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240419_082908_892196_3E09F62A X-CRM114-Status: UNSURE ( 8.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Gabriel Fernandez Use an STM32 access controller to filter the registration of clocks. Don't register a clock if this clock is secured or declared as shared (this clock is generally managed by the security world). Gabriel Fernandez (4): dt-bindings: clocks: stm32mp25: add access-controllers description clk: stm32mp2: use of STM32 access controller clk: stm32mp25: add security clocks arm64: dts: st: add rcc support for STM32MP25 .../bindings/clock/st,stm32mp25-rcc.yaml | 4 + arch/arm64/boot/dts/st/stm32mp251.dtsi | 145 +++-- arch/arm64/boot/dts/st/stm32mp255.dtsi | 4 +- drivers/clk/stm32/clk-stm32-core.c | 2 +- drivers/clk/stm32/clk-stm32-core.h | 2 +- drivers/clk/stm32/clk-stm32mp13.c | 2 +- drivers/clk/stm32/clk-stm32mp25.c | 509 +++++++++++------- 7 files changed, 432 insertions(+), 236 deletions(-)