Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp627524lqb; Wed, 29 May 2024 06:19:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9svZC6lCTKsUugC/DsYjAc7a5TW5XWq4WI8kiWjTn5GRQmRNsCD9Ziz7ssmdhV6rg4bsuxRAg9C+chj2lc45T5Rg8lcemYJrs/BJ6eA== X-Google-Smtp-Source: AGHT+IGnio+0oPaFzJONdkSqj/o9cz8j/6selBn3o5EBSk2lJ5j6LsXNwtlCPbkuZT0qJ+rgKWtp X-Received: by 2002:a17:90a:e607:b0:2b2:6975:bf49 with SMTP id 98e67ed59e1d1-2bf5e473982mr14525340a91.6.1716988750235; Wed, 29 May 2024 06:19:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716988750; cv=pass; d=google.com; s=arc-20160816; b=0TkTk2Pz9Rp7eekigVyYlSMx6bzsn2AmNCtUWPVn3vxdIwIN46S3KCEsO5opRqv9YX ja+a1kZrYcPJWQGE2qmZt3M2gE0iJar78rqj7M4hAw8o60e7/0vGfCn44vJ9FIV0qcwU ZEB0GCu/21WwqZG4iG7ssn32QoR8azQKBgmTK/XpGmPNbLGmwhA0QB9Qd4z+SuQaa6Eb eaEF2aoK9j1b7I3V1Uj7A2mlbvtazk3R8S0cHhUv36AZmRzpE50MXwoZaog+Re+gbVe0 tibJm6pVWh/ieo6Pu+6REZt79WiT524QqLbpsMSvtFNQ3SkyUp5Ia/Qt6H06dkD3MnMN /GIw== 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=PIIcNcmlMr49S8y8EsAlKjuoQdNzfUVhtTNhE4eVCM4=; fh=9omzbBFib7aNY76DO7ZtnKLnzE2FZm8is9/Ge236xgo=; b=tK/BiL3zGyGpynsbD2UgT/mbsK+28QNKSgSRj6L1uM3Hs0YSUUXCOwd3+pmhy1hVMx NmqBDpW6J2TGbRpODl9MQj/ZI/wbpBxKgvBHRPrRtlG6igWBdpdvgPCucjkO5quohXDY P3dtA0Nh5QeuNXf9wvU4jWXjIdf47INzfZfUJ2q/Wv1hdj1Xtz5P49mtcLHrpS/rlS8n nFlPmmbz+vr5WgVYqpBGqrE74fjLJFdJrwjnxWhyOyj/cpBXR0lqiQgpUdvtAGzyYiQU x2NYIs3UjHZIwcIBUuZcJ10BT6KfofUNaAUboS0Qb/pUdlZCJaLzseZPVFyGy73KGe0o lziw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=J6iWH5xC; 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-194142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194142-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9ed6df7si11491916a91.36.2024.05.29.06.19.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 06:19:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=J6iWH5xC; 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-194142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194142-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 34DA5B25322 for ; Wed, 29 May 2024 13:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FAFC1BC4F; Wed, 29 May 2024 13:14:36 +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="J6iWH5xC" Received: from mx08-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 29BAD12E5B; Wed, 29 May 2024 13:14:30 +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=1716988475; cv=none; b=Em6lDi0pX/wCJGuUQz/faG2LQmX8ZRdlstr5L9JagjiKlMP+ae0tKUfBFwx1UIgMxrkhCRrflvtbgdE4OdDL89My/l6i9kbFl3tc/5Ll+urj6ZZIA+9E6TAmq7085wcHeKmM4PFkQx5cY4rB25260zOjs2+4j2JEDqM+O3IKEHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716988475; c=relaxed/simple; bh=s+kzo1mIt5kdmhmpjxm0dPVNjA4/CEZktTwadgjJf3k=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ul7JFv/rTlTk2xSTVbmhe7ZdD8D+wMEf8tJ/eMZZ9x/kEM6c2q6RD+/zdZ2sKEeQOW6oOkd7FH/u96srOsQgawz5+cCa+/vpPUjcZP7ZSuIclRXsEyDH4KiE/KEb1abOpeKnDgPXq/1zr3F0e4M51JAGYl7j359usL5fyYxQbBE= 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=J6iWH5xC; 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 (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 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: 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 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(-) -- 2.25.1