Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp720471lqt; Fri, 19 Apr 2024 08:29:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYvDO3MlUxEj3zhGv7G/z9+OupOEBgWnnHQbOfvoTJbZNc47Vxn8aq/rndzn5I3ijwi3F92uL0MVaBGVBe5xdLuas5PON8lLlEwBJBvg== X-Google-Smtp-Source: AGHT+IE40TEC2aD367s/k6/Hmg/VDiKwkUsMWlulR/c7fFRXvNnH9HRDOKLCereJj33m6FObOccE X-Received: by 2002:a50:9b19:0:b0:56d:fca8:d204 with SMTP id o25-20020a509b19000000b0056dfca8d204mr1633583edi.27.1713540578439; Fri, 19 Apr 2024 08:29:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713540578; cv=pass; d=google.com; s=arc-20160816; b=TYoXGRwUbEhdougOdvnYfWdA/H9FobupphBHg90jSXsWaSeufYqiiX1FvlVwh9+J9q 5G3kFec0hGh3hXMllLliqUJc/R3X/VUQNjlHt5SGONADlimKqI+3smHo2lMBJWFYy2jf L8AHiGIJApxoBgubkSInm1l1HRkuVd4dKVFR2rXVx9jewdbxRfxKncZ2sSY8kil8o4eI /QPD7XZ7EZlCA9K6KxyQKjuZLVndXg7Altfi2Nb4/H1AvClnfs1+hwSBYBqENkg/guzT tXJx+9bUW9yYR63DSpWssVQjM6qntP4dweKlz5W3PjtRLQoEilhhJG/lWrof1+dyb/Vj POFw== 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=sT9qlm8Vo8N7LFXF3kZTIfAN4NmsL6mJS+Lg4I00mhE=; fh=O1UHIcJgxDJiKzLnlRE49sdpYMyGa7Y5uLGsOZ6QxnE=; b=Vs5Bl6GgyS8TIMZHUXl4zkr7NlRO7hexhnmMADqXpL9Jd5oo8jDuh0mwtil8Hi6yLe 7gU/NxaikP091xc/1ZOwpLaFYm0hczitgGVrD7WAQw9ECjsDkzYPhbNr6OOP6eQPbz77 KXZwNeLJ8g9RI3Hf3MgzAN751V4k+ZKbk06PgO1VDNEvM9L/uB6UC/OfIy5ZVM0TrnQr O32l/vWFq78sWLyeY2mm68CwhtI030TaVjolgsYQjyJ/zTKq3peXQyEFyyovVLnnxBBY 6Tb26SND7rBGl1YQl3zNYvnBFHTDiW64v0FBIMHxtkwELzIsvBya3sbnb6dOB7ntwwtv 4fmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="gF1/pnP7"; 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-151667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151667-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e28-20020a50a69c000000b0056fc72bb5ecsi2215777edc.661.2024.04.19.08.29.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 08:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151667-linux.lists.archive=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="gF1/pnP7"; 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-151667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151667-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2E7861F23057 for ; Fri, 19 Apr 2024 15:29:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CDC712FF76; Fri, 19 Apr 2024 15:29:23 +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="gF1/pnP7" Received: from mx07-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 BC96A12AAF4; Fri, 19 Apr 2024 15:29:20 +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=1713540562; cv=none; b=KzeUHU1MqstvLUodAQzxAoo4k3D5NPA5pN+yWmD83JjAslpftOaDF5TnUJD5Chd3J6BVFc2rL63iwqElp5loSe1enP6INQj26Bu/OC6LBAGhUZlVzhFAXAf3L2bWcfjrgnfqAHiT73unpIbsUdZlFgb+GJ/U4IC2EfTGlj4Tlfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713540562; c=relaxed/simple; bh=36ym3FNp+EwbDRMoVF7bYwlv9S4ZRA9nVXv5N6DtNjc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=bKl5ot1ity4tJHqlY2vNI9nm/tygm53jaovpbE4qLilbEca3IArfVoLXzjNd+3EUNabTRDVKUsisqkcj2Rq/D9yHpDlS9U24MiEOtLaWjqQIHsbS0IqDO4dqvD0FYFrm7MpHcLUK+0I4lMoCZsOTE2gvod0v5HlqXTXxp+zqzfY= 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=gF1/pnP7; 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 (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 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: 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 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(-) -- 2.25.1