Message ID | 20231117143338.1173475-1-patrick.delaunay@foss.st.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp571306vqn; Fri, 17 Nov 2023 06:35:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+/z5TObWtOaHSKz/svzn6cQai1EBZx+hrHrWUqRV+JYiM9bqxcyx6i2gn7WQSt+bviu9Z X-Received: by 2002:a17:903:4d2:b0:1cc:492c:291b with SMTP id jm18-20020a17090304d200b001cc492c291bmr10952053plb.36.1700231705498; Fri, 17 Nov 2023 06:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700231705; cv=none; d=google.com; s=arc-20160816; b=JH7vS2hyYnlOvNq0/+KqbIN/mY1VbCCex08BQsKFrWNrNKAb/XdVCY8zGQSmLcC/Fg 5G2ij273i5hH5rEismQBQ7cCxi89c3/PjQE/D/BcAUK/XZHBosJuBwEUPPOSN/bT5swr Cpn+y9PqEBmyITR9eWGzgzA1waDMF7jHH003usU1J2peeBr6V6ojKar3OoLZI71qvLzF th+puqRmCTrkhH3g+UN01Qpgy6LAyw3/0MkzrZJyxp0nMd5r0OzWhv3U6eFDax5mNj40 gV3z0Fc2TeMnFnV+ds3CBIqLXGn2ScbeCrYANElVbM7oVG8AYrY1c4xfi6iAKm7Yj8xd 8vCA== 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=8xdj8SHPK8NulxaFgQvXVA78MnGud+kVb8iCWdM/E9g=; fh=FFuZ9xzD7EhcsezLPZ9HdpQtBJB7V0Bt51VuqMtIbKs=; b=0HCNS84KZ0JMhRz6GDFsiAL2yv7YToDapvEA8xJ6/w8DG/2YDUElwEi8Gujh/E1UWW dKBupbXWxVmJNMw5if7GwPKbGLRdkV/j/EqYOW4JgmOO06ydALImiDjUrUs59OAbynQR j+cOftfZaD9uEN7TAZbXVyCUNUXGQMMJtLbU5aV7vq3+UQ7QoTzJ16ekD1CXmpF2yKP3 nVBN+eA8IbCv5CmIxB63dPg5dm4yo56wL6/Pvoq+ppudygzcD9osvr5NPlMn8tbM1N72 4visyPCZ1x8UEcckTJNCYkY6CIG5a6+qROQ6pfJFlOK7LvLWiq3fX9ARdNmYOtOl6hzE rlkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Tz6QUcA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id jg19-20020a17090326d300b001cc385b457asi1775672plb.284.2023.11.17.06.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 06:35:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Tz6QUcA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3C9F6809EE28; Fri, 17 Nov 2023 06:35:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232477AbjKQOet (ORCPT <rfc822;jaysivo@gmail.com> + 30 others); Fri, 17 Nov 2023 09:34:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbjKQOee (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Nov 2023 09:34:34 -0500 Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C370D71; Fri, 17 Nov 2023 06:34:31 -0800 (PST) Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3AHBMVhP011100; Fri, 17 Nov 2023 15:34:05 +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=8xdj8SH PK8NulxaFgQvXVA78MnGud+kVb8iCWdM/E9g=; b=Tz6QUcA4VJLYeONM5WzysQY QlED5ROx7HvSoiDqkWKoYlAj+1P3bi39M4jlXnZbOQESzK/Wz5B7xCiX67CYpUmS Zmd6h7SYj4oyWrydcCqj774qcp3pLlvdlYHK5QW7sjDwYb8u9xZ4Giae9Yg+Hf8u pXkQHuNUzua73agN+gHmdbdXrk+cl+Sa7b+4B0KlnyCQJe6be4a7TySaw2gUh+Ur H1hMjQBjmnF7E1kp1H8woyHh7ygPTz71HX7XjU4NrHN3aCTd8TIO+rmxhiWYYRo2 QWGpVOVZOjme/eD3Jf2r5/84G4SkcMRr9Se2xL19Ld6o9FlBTB6iFRXUIIQhbVQ= = 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 3uanep98k6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 15:34:05 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EE4F410002A; Fri, 17 Nov 2023 15:33:46 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C06F12309EB; Fri, 17 Nov 2023 15:33:46 +0100 (CET) Received: from localhost (10.201.22.165) 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.2507.27; Fri, 17 Nov 2023 15:33:46 +0100 From: Patrick Delaunay <patrick.delaunay@foss.st.com> To: Alexandre TORGUE <alexandre.torgue@foss.st.com>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Fabrice Gasnier <fabrice.gasnier@foss.st.com> CC: Patrick Delaunay <patrick.delaunay@foss.st.com>, Arnd Bergmann <arnd@arndb.de>, Bjorn Andersson <quic_bjorande@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Geert Uytterhoeven <geert+renesas@glider.be>, Konrad Dybcio <konrad.dybcio@linaro.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Marek Szyprowski <m.szyprowski@samsung.com>, Neil Armstrong <neil.armstrong@linaro.org>, =?utf-8?b?TsOtY29sYXMgRi4gUi4g?= =?utf-8?b?QS4gUHJhZG8=?= <nfraprado@collabora.com>, Peng Fan <peng.fan@nxp.com>, Udit Kumar <u-kumar1@ti.com>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com> Subject: [PATCH 0/4] stm32: add support for STM32MP25 BSEC to control OTP data Date: Fri, 17 Nov 2023 15:33:33 +0100 Message-ID: <20231117143338.1173475-1-patrick.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.22.165] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_13,2023-11-17_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 06:35:03 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782822160472548797 X-GMAIL-MSGID: 1782822160472548797 |
Series |
stm32: add support for STM32MP25 BSEC to control OTP data
|
|
Message
Patrick Delaunay
Nov. 17, 2023, 2:33 p.m. UTC
Non volatile memory area is available on STM32MP25 with OTP in BSEC. The 12 Kbits of OTP (effective) for STM32MP25x SoC Family are organized into the following regions: - lower OTP (OTP0 to OTP127) = 4096 lower OTP bits, bitwise (1-bit) programmable - mid OTP (OTP128 to OTP255) = 4096 middle OTP bits, bulk (32-bit) programmable - upper OTP (OTP256 to OTP383) = 4096 upper OTP bits, bulk (32-bit) programmable, only accessible when BSEC is in closed state. BSEC is only accessible by secure world, so the OTP access is done by driver with OP-TEE TA, as on STM32MP13x family. Patrick Delaunay (4): dt-bindings: nvmem: add new stm32mp25 compatible for stm32-romem nvmem: stm32: add support for STM32MP25 BSEC to control OTP data arm64: defconfig: enable NVMEM STM32 ROMEM for stm32mp25 nvmem: add bsec support to stm32mp25 .../bindings/nvmem/st,stm32-romem.yaml | 1 + arch/arm64/boot/dts/st/stm32mp251.dtsi | 16 ++++++++++++++++ arch/arm64/configs/defconfig | 1 + drivers/nvmem/stm32-romem.c | 16 ++++++++++++++++ 4 files changed, 34 insertions(+)
Comments
On Fri, 17 Nov 2023 15:33:33 +0100, Patrick Delaunay wrote: > Non volatile memory area is available on STM32MP25 with OTP in BSEC. > > The 12 Kbits of OTP (effective) for STM32MP25x SoC Family > are organized into the following regions: > - lower OTP (OTP0 to OTP127) = 4096 lower OTP bits, > bitwise (1-bit) programmable > - mid OTP (OTP128 to OTP255) = 4096 middle OTP bits, > bulk (32-bit) programmable > - upper OTP (OTP256 to OTP383) = 4096 upper OTP bits, > bulk (32-bit) programmable, > only accessible when BSEC is in closed state. > > [...] Applied, thanks! [1/4] dt-bindings: nvmem: add new stm32mp25 compatible for stm32-romem commit: d062d18d0e30e46e88a3b0f9fb2549393b7d7adf [2/4] nvmem: stm32: add support for STM32MP25 BSEC to control OTP data commit: 2015e5f4d01fb76fca69047f870035e214d6d2d0 Best regards,
Hi On 11/17/23 15:33, Patrick Delaunay wrote: > > Non volatile memory area is available on STM32MP25 with OTP in BSEC. > > The 12 Kbits of OTP (effective) for STM32MP25x SoC Family > are organized into the following regions: > - lower OTP (OTP0 to OTP127) = 4096 lower OTP bits, > bitwise (1-bit) programmable > - mid OTP (OTP128 to OTP255) = 4096 middle OTP bits, > bulk (32-bit) programmable > - upper OTP (OTP256 to OTP383) = 4096 upper OTP bits, > bulk (32-bit) programmable, > only accessible when BSEC is in closed state. > > BSEC is only accessible by secure world, so the OTP access is done > by driver with OP-TEE TA, as on STM32MP13x family. > > > > Patrick Delaunay (4): > dt-bindings: nvmem: add new stm32mp25 compatible for stm32-romem > nvmem: stm32: add support for STM32MP25 BSEC to control OTP data > arm64: defconfig: enable NVMEM STM32 ROMEM for stm32mp25 > nvmem: add bsec support to stm32mp25 > > .../bindings/nvmem/st,stm32-romem.yaml | 1 + > arch/arm64/boot/dts/st/stm32mp251.dtsi | 16 ++++++++++++++++ > arch/arm64/configs/defconfig | 1 + > drivers/nvmem/stm32-romem.c | 16 ++++++++++++++++ > 4 files changed, 34 insertions(+) > patch[4] (DT) applied on stm32-next. thanks Alex