From patchwork Mon Jul 8 15:34:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 13726735 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 AD43EC3271E for ; Mon, 8 Jul 2024 15:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=4Q3Tj4ealwssXZ+WV7UTmlcU/6UNVKfTT/zvcxWH+xM=; b=qtab5sVjsP1kshouQxuXTNIO2S Umdc6pGId+LbLmjYFEI1dCAWngtCGxLDqujQgLiHuZDFgdxyO+vkJlWIdFqkF69mNDQ0diUyPU27l nPpbHO+9Ov2AiShkxbsN6cr1VtgsolDsfE66js2KOZC7xLgzdpfinGzjPkv5d1/uzL5XfO7G1q1+u fILdbPpC/Dz7bydQj+/m6hVLKsuHDf2xXkChIR96JvXwnrV+e6+P60fSMc6dxDn+Kn0jDjUj/WK+8 7YnZHoz5xTTlliwBQU1/dKZMmDxhPr69xYzzgGwqitEO3u42+oz6Lk0NyY6TFGrFDPv/T5uUv76X+ ZTRonF2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQqPz-00000004FO8-3AnA; Mon, 08 Jul 2024 15:36:43 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQqPK-00000004FAy-2oAO for linux-arm-kernel@lists.infradead.org; Mon, 08 Jul 2024 15:36:05 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 468CQotj008257; Mon, 8 Jul 2024 17:35:50 +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=4Q3Tj4ealwssXZ+WV7UTml cU/6UNVKfTT/zvcxWH+xM=; b=KKUduYnrLS4fNWgApk66VkJTO/MH3Xfno6r3ip el0B3pYAryJ9zNyQ/VuKF5G+liGwxBwAHZaaKXMkEnpwscDqE7yH8VilaSJwhOPu y9xYkcvEC/XMaHPQMVKdLU2OKtzFsZgPLlLqv3erpOu3aNCKPQ1tIU0v4e0Fviwa EoEOvr0kmo2Cf/41TndMrfROA1Yn0O9ZJJ1wSDBbdcykBneQm28h+4NAoylt6KLp s+9G/ijD3XqxSxCu8biGJiEOg0kwbIpc/8NAtiA/3aCGbyRr+7g4b2/SvseEuFRt jy7g/aB9aaT1+ukv5RcmuuO2f+30JXhpjI65ElrlhTYd7g4A== 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 406whhftpj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jul 2024 17:35:50 +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 2FF2D40048; Mon, 8 Jul 2024 17:35:44 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7F4F522D0F6; Mon, 8 Jul 2024 17:35:06 +0200 (CEST) Received: from localhost (10.48.86.111) 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; Mon, 8 Jul 2024 17:35:06 +0200 From: Valentin Caron To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue CC: , , , , , Valentin Caron Subject: [PATCH v2 0/2] rtc: stm32: introduce new st,stm32mp25-rtc compatible Date: Mon, 8 Jul 2024 17:34:32 +0200 Message-ID: <20240708153434.416287-1-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.86.111] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) 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.680,FMLib:17.12.28.16 definitions=2024-07-08_09,2024-07-05_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_083603_038650_B79A23B9 X-CRM114-Status: UNSURE ( 8.55 ) 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 Introduce new st,stm32mp25-rtc compatible. It is based on st,stm32mp1-rtc. Difference is that stm32mp25 SoC implements a triple protection on RTC registers: - Secure bit based protection - Privileged context based protection - Compartment ID filtering based protection This driver will now check theses configurations before probing to avoid exceptions and fake reads on register. Link: https://www.st.com/resource/en/reference_manual/rm0457-stm32mp25xx-advanced-armbased-3264bit-mpus-stmicroelectronics.pdf#page=4081 Since v1: - Replace "anyOf: const:" by "enum:" Valentin Caron (2): dt-bindings: rtc: stm32: introduce new st,stm32mp25-rtc compatible rtc: stm32: add new st,stm32mp25-rtc compatible and check RIF configuration .../devicetree/bindings/rtc/st,stm32-rtc.yaml | 5 +- drivers/rtc/rtc-stm32.c | 78 +++++++++++++++++++ 2 files changed, 82 insertions(+), 1 deletion(-)