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: 1453 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp221712wru; Thu, 10 Nov 2022 07:48:03 -0800 (PST) X-Google-Smtp-Source: AMsMyM71iMgDEDGvtYRUQ0Z1scytIAfoLwnsqH/mjmNei6D9NDERm2mGrcfUW4mk52JYQYn3dmjm X-Received: by 2002:a17:907:d093:b0:7ae:2066:7dd9 with SMTP id vc19-20020a170907d09300b007ae20667dd9mr2765050ejc.219.1668095283563; Thu, 10 Nov 2022 07:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668095283; cv=none; d=google.com; s=arc-20160816; b=mOlIOgj+EfAKqogXskmNcRyNIFTSCre5VgtCdWDHQ9Ims5aIvnEd0u0iwBuNZFhm41 i8CYgjtpgC8HbufMWkA9szVN0elP8VkxPCOqzfFpLPY9U4tryMYRnIQJ13haa+FzQdq+ isOfCJ99UrJUyhuutrqzVwz0dUmTP5RaJJrHojpuZZIUjixKEdZV7na1+qkpjIKO67i/ BHuRLJWTV5FkEB+y0skLVBS5zUWX93gd61zFzF/Lelc3yhLyfh/Oic7e8E7m3Oz1AT6M Q2kFzNPLPudVQxlVRhIOlcSuTfOj4KZqIxmIIVvmrzAd8eOyoQHf7ggekA4FsrnGegxw CyQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Vd1nmwWR7Zh9ApMapN6X7xEklVMUKzQ/GXf4SnNG6XI=; b=QKrvadWhQ/O7r0m1K2eBNEY/S+2+hfieHrLZmuBTDOv8hJHbChAm+tiWZVb+aB8uwR 79/FwKHOEuuNVaT8MOp5D4fNp+ZUF5TgNaKKRK6XG6OTM702a/Sevf/Cmwug/fU8ez4E YLnvpS7R8B+QyOflYkJdutxI68MdRMIiUzv0LzL+4XZ52t4B4OiEyOG6QI9ATpe9QwpH +TutVjRX69wA+xXVX+S7OTHcYubP9pNwAPMK+SZt0IlkSkxMSjWX/w+AnRsxZ4HfmuY/ twRW0cHrS7eBSFsixG7fEzhIkxK9pvxxEtYoLUtea/mztieG4ajnfDk5hasCRwuSiOgZ 24yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=DZG614YQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a170906975100b007ae814af6aasi8249602ejy.87.2022.11.10.07.47.40; Thu, 10 Nov 2022 07:48:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=DZG614YQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231685AbiKJPqs (ORCPT + 99 others); Thu, 10 Nov 2022 10:46:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbiKJPqm (ORCPT ); Thu, 10 Nov 2022 10:46:42 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9229B31231; Thu, 10 Nov 2022 07:46:41 -0800 (PST) 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-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749124679973638409?= X-GMAIL-MSGID: =?utf-8?q?1749124679973638409?= 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(-)