From patchwork Tue Jun 11 16:19:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 13694004 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 1A3F4C27C78 for ; Tue, 11 Jun 2024 16:21:40 +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=3QXOO/9XukqQtQI8onIbvVqMmfHJOQoEit9h6s6rmCg=; b=uEYfD0Qvf7pjr7 eSkYK3t/yIts9nMaII2QPg/i1ZQZbF5fnpEsl3O9dljIGH7JyiMct1eggRUdWZrq39psgroS3/SSA XR0nt9bFXQXxMepfAl6oXfSjb8+YlZdp2dIIXpqLSFHIuP09Q/tI3p9qgSE2TlnhKopIonQJTESKM wr67hXaI9Ee0kwU+dCEtt/iIFDdRZhwxNeAe1sGEaRhg0NY7kfK7Z427EPdTblT3xRzpnpf3Q/gDT aaO0l1lIbUD0lj/u4d7KeDosZq4HcZBPVzlSFLllXLGQckeeKGRP0QL0islf5pN15TK09azE6fmGh ya14o6VxKJTGCTN+eErg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sH4FE-00000009Tl2-0usa; Tue, 11 Jun 2024 16:21:12 +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 1sH4F7-00000009TjZ-3BMG for linux-arm-kernel@lists.infradead.org; Tue, 11 Jun 2024 16:21:10 +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 45BC0Q6m016205; Tue, 11 Jun 2024 18:20:55 +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=yyuPGJTfdCHwwLsvwEMk87 kB7VvmjgA9WbN3NWRLHL4=; b=e28medZ86wJBqEN9AjMftTIgb0FGGRqFkp7FKN ap64/W+Iz1LtR1p4hKeZcYdsZNjWh8A3VcPJ37BnSLvEYQQuVFUWPOvUAd8flQek IDZP6Tos+Zmpp4yO+wAxyvgSkEaypvW1xePzxscQaWqU5cgXNdZUh0UU/DL2qSZs wO26bJ+ngO9Z/jlyN9RmV4roITWcvrsWO3MGvWT9tRLzJuOUw5CbmI275qlKgb8D MiHV97TaXHrElR8uUIWSI4QGSaRygDSxVNrgqfDG/t64Qmjqge+ZuP89zuGN/Caq vpaFUBlM0jd+jhhlo1cAfbIH6zkUJH7668uisSv24NFC3uXw== 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 3ypbp4kusv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jun 2024 18:20:55 +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 7C75F4002D; Tue, 11 Jun 2024 18:20:48 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8CEFA21B503; Tue, 11 Jun 2024 18:20:11 +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; Tue, 11 Jun 2024 18:20:11 +0200 From: Valentin Caron To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue CC: , , , , , Valentin Caron Subject: [PATCH 0/2] rtc: stm32: introduce new st,stm32mp25-rtc compatible Date: Tue, 11 Jun 2024 18:19:56 +0200 Message-ID: <20240611161958.469209-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: 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.680,FMLib:17.12.28.16 definitions=2024-06-11_09,2024-06-11_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240611_092106_375766_B66D83CE X-CRM114-Status: UNSURE ( 7.48 ) 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 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(-)