Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp365749lqo; Thu, 16 May 2024 08:28:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcDkpwYNqc7RERn9ppiXfs/xbv9kwNbTV5alNlqYlbHHHZc1i21Qg5E33PbqQarcjr8TOvV6k/gyNkbb0hQjffRe/rpHxbsoKYgKmzHA== X-Google-Smtp-Source: AGHT+IHB4qc1+ukfrn7VBr+L7OjKkHSrTleMCCLuKiG7inzi4F+yUgI5DTkQegnM12Ntrfnfiisf X-Received: by 2002:a05:6a20:5650:b0:1af:ab23:82ce with SMTP id adf61e73a8af0-1afd1417cf1mr26464507637.3.1715873324571; Thu, 16 May 2024 08:28:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715873324; cv=pass; d=google.com; s=arc-20160816; b=gSTKS83ZWhmBLbHbbgtqGA+c2VGbt7aGC56EAtafektMfcIIEdkVo/OO44YM34lpnr de/V8lUG0Y+xocwNWTf5hs4aC080ezkXX3M1uWRFjGcmFxUnxJnTa8nqAkgZqqu6niS8 MpFEeoRa+Z6KorcP9TP83JmuDmOP2XOfY3mzvVZPGfFMvPG0N3/fdWBMmV3NlbdAaAee gC7SHm5s47wcVPYwLx/VrQ6jDZEXiVW280ekz22zaV6HG4bFHpXSSaiFKdt30yCDslLI mAm6Zs+l6F0tu5a/hzOxNaVcyrh+6SWLz7QeR6+OTg3WvswNdSUj1hPcjGwS2TTPZHYu 04Yw== 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=wszlCnPOVkUjcM625l7Ksd4fnP8lER/RqAY3Ok/HuNgNQ1TMLXm+pjba2HVAjrwhSJ 53ft76nUwsPcuHEWSvGkVJtUtjxoYgEms48UrLowN7S2JDwaEWyuoLD+yaGZDipjoMOB 4VjWSSEg6fJLTNGA+B5l24Lfkd6qzLlBMwCKUV4SwRFip4MoZq5VWcqN51bzl9N9A+Qx KJOk3BWOgRwcAvp850+H+F+Xy+NEROYtUHdJHy62PsT7N0TzDz6/8+dfzis/l3v5ZLy0 QIYzxwaIi+h2fFAvH4DlKV+apfBD4Y8HDUTSLOhkabM2X/KhddOGLQpLsp/QlQgx5hGU fuUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=HA6G7zpz; 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-181234-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181234-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 41be03b00d2f7-65cc03dad1csi531081a12.103.2024.05.16.08.28.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 08:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181234-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=HA6G7zpz; 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-181234-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181234-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 E78BFB21558 for ; Thu, 16 May 2024 15:26:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65CC114D431; Thu, 16 May 2024 15:26:11 +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="HA6G7zpz" 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 E84D814B97D; Thu, 16 May 2024 15:26:08 +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=1715873170; cv=none; b=F3OtpL1KiEb70YvGGI+kCHBY7a04bEmzY/z9ghrz2VMPjFUdY+LFAyxB/mKwtOKRWeUTu8WcjjFf3u7pDLNIFhrdgo/NRQqvuMhaOi9cRgPQYXpagTBxvY2C+h7XtmMsA2cCOKmBpMjFQUFAgrfiAO1wy5hlsxs49/2FCYdz/ZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715873170; c=relaxed/simple; bh=s+kzo1mIt5kdmhmpjxm0dPVNjA4/CEZktTwadgjJf3k=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Nlxnx7eLSzdwGctqiCZmlas+ELQrCWo9yJk3ki6W51GFLSq3rCaEyrM3qqYD6vpunJTGhqVrzv/IsDkJ/GNeQipp5Jt7YkKr4NbHl885DWNzC0EC3dk11Ctz55Pm+wu/64Pra3G5nBv6RYrMhcg2Td1CIHDyXBuFKzwZGCOC+Uw= 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=HA6G7zpz; 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 44GClMTs020009; Thu, 16 May 2024 17:25:46 +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=PIIcNcm lMr49S8y8EsAlKjuoQdNzfUVhtTNhE4eVCM4=; b=HA6G7zpz91xWiHvTJgyAUz6 yKa/upVMmzoRQyBtM3c7ZZVly/Kk29dChQh0z4D8osjh/8KuqmJfBIBLlbhVPr7x Myw2raCpBlr2lnkwdTSHAOANqPygHm/7oDwJI/cDbXoP5B/zvbxiHDfM5WEBYGek jGYXceuYaGRkLK34StoH+cp99P3ihAh3D63ncCsB3XA+xMIr99jX18HTF08GIbKT etYR465hm1Rwd+oaJKDoUEg7jvqvwkpfwpT0iIHsGeQpcYd9ou7cA2iZIgeIlvq7 NGRlehJKiv8DOHbYmoK60Mb2HBk9H6XGFSE7xWWrWdysJZzP85Vo7n9JlHoVgVA= = 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 3y4sxvp3mk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2024 17:25:46 +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 0AB324002D; Thu, 16 May 2024 17:25:42 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3B0F4223650; Thu, 16 May 2024 17:24:54 +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; Thu, 16 May 2024 17:24:53 +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: [PATCH v2 0/3] Use STM32 access controller for STM32MP25 clocks Date: Thu, 16 May 2024 17:24:24 +0200 Message-ID: <20240516152427.692374-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.11.176.26 definitions=2024-05-16_07,2024-05-15_01,2023-05-22_02 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