From patchwork Thu Nov 10 15:45:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Delaunay X-Patchwork-Id: 13038949 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 ABBE8C433FE for ; Thu, 10 Nov 2022 15:48:07 +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=bTTia2hk6cqmKBMivjf5g2QcE73hrMpkjRtRWf+g+t0=; b=NOV21gDEx+oGm1 e28jJbzLII6HcMCUORXSBVYaWnPvbNqmvid0lC1/qgcQrrSMHvoFjSJLh5rvTXTQ+YCITAiiyqcSr iqI2lIUvkmwOyBQ1uEtmvCftarL9tF7fiu2yVO6Vt2PVRRfUjmDgt/8/qJcRQ1phVrmc70Sxe90W1 bvt5v5DeGIH7d0EECuAB7pCDlMOU/agvo/fTbUkcTGog+1fvtTll1pon+5dOktEapLLeLVPGSJMUu Tuyyl7YekXEHK3LieL4UXj6tEohTiaGrHtfmEsx12HOiff+/3a9sWqhPAHXqrAmKX2yZs4zLfTLtK vDJxIIDtsUxDL46MXQ2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ot9lb-006rhP-AJ; Thu, 10 Nov 2022 15:46:59 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ot9lE-006rNs-Ri for linux-arm-kernel@lists.infradead.org; Thu, 10 Nov 2022 15:46:38 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AAFNOGg006316; Thu, 10 Nov 2022 16:46:15 +0100 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=Vd1nmwWR7Zh9ApMapN6X7xEklVMUKzQ/GXf4SnNG6XI=; b=DZG614YQo1BhfkKYPWTpC4qnVwPB3ECNZ8CVDwfA2W9d5dWC4pOaLVi26rFi1TKWwu4d SKw9oXKgiByTEYZGQ9pQ8vKQRXL727qmpmCFWO8SpCpjChej9bCputTFo6Ha+aeavPNS unBJ2QGW7vXT0DwJ4chXyardEyjQUPqNe3PAzUTnc4bqDLQNgi05xrhj+LfccCxHwJ5D GviXjoY1904ZG8IolCtVs3IFHfLN8n2qJibgFewSFXMnS+0nDpMXbosHW2OpeV6oTEvG FieYVBcEobS5Ew/wSapN1o/+ykQuMnC6ILTjmF3R+2NgkCbM/9pg0sqJqQQLrq8DeURV IA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3krxfubgqu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Nov 2022 16:46:15 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D921910002A; Thu, 10 Nov 2022 16:46:10 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D0D3522AFED; Thu, 10 Nov 2022 16:46:10 +0100 (CET) Received: from localhost (10.252.15.206) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 10 Nov 2022 16:46:10 +0100 From: Patrick Delaunay To: Alexandre TORGUE , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Srinivas Kandagatla CC: Fabrice GASNIER , Patrick Delaunay , Etienne CARRIERE , , , , Subject: [PATCH v2 0/3] nvmem: stm32: add OP-TEE support for STM32MP13x Date: Thu, 10 Nov 2022 16:45:46 +0100 Message-ID: <20221110154550.3220800-1-patrick.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.252.15.206] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-10_10,2022-11-09_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221110_074637_218420_0308DDD6 X-CRM114-Status: GOOD ( 17.33 ) 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 This serie update the NVMEM BSEC driver to be compatible with STM32MP13x SoC and the trusted application STM32MP BSEC in OP-TEE This serie solve issue in initial support of STM32MP131 (using BSEC STM32MP15 compatible) and so it break the STM32MP13x DTS compatible. I create this serie for more efficient review, including support for STM32MP15x. The first patches of the V1 series is already merged: "dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem" This STM32MP13x DTS break is acceptable as - the STM32MP13x SoC is not yet available outside STMicroelectronics (not official) - the same patch is already integrated or modifications are in progress in the other users (arm-trusted-firmware/TF-A, OP-TEE and U-Boot) of stm32mp131 device tree. It is the good time to correct this issue before the real availability of the SoC and before full support of STM32MP13x SoC in Linux kernel. Regards Patrick Changes in v2: - rebase series on linux-next/master - minor update after V1 revue Changes in v1: - update commit message to indicate DTS break reason. Patrick Delaunay (3): ARM: dts: stm32mp13: fix compatible for BSEC nvmem: stm32: add OP-TEE support for STM32MP13x nvmem: stm32: detect bsec pta presence for STM32MP15x arch/arm/boot/dts/stm32mp131.dtsi | 2 +- drivers/nvmem/stm32-romem.c | 474 +++++++++++++++++++++++++++++- 2 files changed, 471 insertions(+), 5 deletions(-)