From patchwork Wed May 29 13:13:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel FERNANDEZ X-Patchwork-Id: 13678825 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 CBBD1C27C43 for ; Wed, 29 May 2024 13:14:35 +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=/D9iUdeyl7NnqFKejkWU201nSGsLmp2ASTtkJW9hWc0=; b=B/6jp1hJu3/3We ese9SDrwd97gCnX8f4lpPoCRXnDcGdWGerUTUXK6xQyvcCNUqcVt37SuZzILQa4jZx+GaYlGzgwLu AXmwpCGuMxzUJITP+hKP5Tpnq6fwCKvKWOL896G/M1rPJgeu3YbcLySNLZ+1RzmC7wEjVr8sBT/Ga +os6l3wK9uP/oa8HyxyZOkBAak6tWOvxrXIU/5Ej2S+co6brwwAD4+Uit/SG24ZOCw3R9a18Sv7y5 fH284eCI+NW15G89Dg86tXPBSjn4gCfinsCDPtKt+spcgBvSs36f3w52jZ+QZ6pphKJCWNJxPmnCz SrylwUuHV4dI4p+pTBYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCJ8M-00000004Dcp-0DdQ; Wed, 29 May 2024 13:14:26 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCJ8G-00000004DZm-38OC for linux-arm-kernel@lists.infradead.org; Wed, 29 May 2024 13:14:22 +0000 Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44TBGXDt027029; Wed, 29 May 2024 15:14:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=PIIcNcmlMr49S8y8EsAlKj uoQdNzfUVhtTNhE4eVCM4=; b=J6iWH5xC+fFF6IhEQpp3Zv+RR1UT4Uqdv57pXh wzFQT+F6yQAre5fmOQtnwBID71E4z7lkxeKnv78RQ5sxgwRDCXZKdtQufQYeRtNd 99iRt6rvXgkRUwAT87V3ok7rF8P1NqsZGSpcG2Si8MHeX1bbXHDZ56BbC8ZVzmUY uv0BwrY5Z3nRFToBE6o8O4kpk2ehZiTTPNtFj9hEsGs+6BdrU8yWx9SCClk0nBGo q2sGZxjWmxUY6A6Prf6nIvhId7R02QqiSp5rqHTNtrNlFYNZ55vAoZcJyvY0F6B2 oZ53gwqTBtxiIqf+73RbtbjzLcVZjBap0UgL9t7pu1sJUVxg== 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 3ybtxhewrb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 May 2024 15:14:06 +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 952BA4002D; Wed, 29 May 2024 15:14:02 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8354B216606; Wed, 29 May 2024 15:13:12 +0200 (CEST) Received: from localhost (10.48.87.209) 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.35; Wed, 29 May 2024 15:13:12 +0200 From: To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Michael Turquette , Stephen Boyd , Maxime Ripard , Gabriel Fernandez , Dan Carpenter CC: , , , , Subject: [RESEND PATCH v2 0/3] Use STM32 access controller for STM32MP25 clocks Date: Wed, 29 May 2024 15:13:07 +0200 Message-ID: <20240529131310.260954-1-gabriel.fernandez@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.87.209] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-29_10,2024-05-28_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_061421_089734_0657755E X-CRM114-Status: GOOD ( 10.02 ) 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). This series depends on the stm32_firewall framework (merged since next-20240419) notably for the include file 'linux/bus/stm32_firewall_device.h'. Changes in v2: - rebased on next-20240514 - YAML patch was apllied on next - use appropriate include - manage the case if 'access-contoller' property is not present in the DT - rename DT patch (RCC support part was merged) Gabriel Fernandez (3): clk: stm32mp2: use of STM32 access controller clk: stm32mp25: add security clocks arm64: dts: st: enable STM32 access controller for RCC arch/arm64/boot/dts/st/stm32mp251.dtsi | 1 + 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 | 516 +++++++++++++++---------- 5 files changed, 325 insertions(+), 198 deletions(-)