Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp555949rdb; Fri, 17 Nov 2023 06:34:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHD8E1srnDXz6KmlNaIosdra69x+ULfRgTOiFKvJ2kDpXjk1NOMZ3GSbCLSuoCVZHhhlxED X-Received: by 2002:a05:6e02:1d18:b0:359:3fd2:1dca with SMTP id i24-20020a056e021d1800b003593fd21dcamr23586766ila.7.1700231688128; Fri, 17 Nov 2023 06:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700231688; cv=none; d=google.com; s=arc-20160816; b=v7Qa2sdv77bQsNr0ru8/YQ7qvlYvfBLzByqd3Mqyzrj7cGRZtXHxBksOqDyqU3NXb3 uwVFppPShG+w6DUnGRd3KRaTwhJqlIr4KVd2r03TUSQLmmvmoQkjuno1PsL5vf0V+BOn qc2d/xTVXRizxasJ9QIwQ/Hs8viRC6hAvXJrN+og7tjlFqKx2NtZCbwvhq+wlm2BUBmO Woht8bd78npkkxE3ic0SdJAX1KLFDin9BOxmawabVFHUJCMhI361kON4KN2akB5dAfAE npTIkMth8H9StbJdIBM7P45c6WQYbnZA6xNxziMzD0QmTRmZrKgKYoAcr7DULKyQdf/e RQfw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OldM9nSyGvxquN5zF8rDqdrgCIgxRf4RySMadaUT0cM=; fh=0iVDGcN/KJsw6zHLkCjV9nVVtYOZYZDFx2OEx6DqOEY=; b=LcsPQjm1kgAX4GWSZwgAc9DA9hWZ1CeqkIi9dIUCAwJSFTD4uraPSUfGdd6yqAUFJu TZo7bCE8TGPfm5lWki4xGwMRCoq2zXjYzFxRioI/eg5O3olpu7WQwmnZ5ADVyeEex3pb nTipjFMzskwe1CT5MOEbcNIftiArz/s1f6lJjJbr6Q4hnvjkKE9RyHkq0PVAmhS+yjMA 98EuRkGB3sA0O4Agtj7rlUmy9b+TTbXLl6Vbs0f1ybpIvKgJpR3nUkYkKk3f2YLOjdxI OTWsMAFg+wfPdYI5ISjLVmuYZE4WeSyADs/JGl/010TORwAQn7gMYNkbYH9QVQiEXyxi I5yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=br5Zbs9K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id n15-20020a63e04f000000b005b96af23fecsi2049155pgj.496.2023.11.17.06.34.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 06:34:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=br5Zbs9K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 829F3807830D; Fri, 17 Nov 2023 06:34:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232096AbjKQOec (ORCPT + 99 others); Fri, 17 Nov 2023 09:34:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232912AbjKQOe3 (ORCPT ); Fri, 17 Nov 2023 09:34:29 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47999D4B; Fri, 17 Nov 2023 06:34:21 -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 3AHBUdKT007319; Fri, 17 Nov 2023 15:34:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=OldM9nSyGvxquN5zF8rDqdrgCIgxRf4RySMadaUT0cM=; b=br 5Zbs9KuAVSVJHup9dJNV02jTCaNz/+XrwTMkIc8X6HPaM6LnHzFGdYqs13TgcQ/M HiMY6rPtY0eNJh4mzfVOEwO/GtDIDEhoIrhObNUnQsi0rSgxS3Hs398fR2HVjZhq F7hhRyb8CngCxNOaoRb5QmCUbnFRCdsZyib3m/vu0rtzD6Z7ul66KvMYqJZku633 lFlmbawbi2j7ATxWJwsgCsFiflKtXYtbSeeAK72dCABjkZJNNd7mqwwd0Wh4DSBf i1b62y5oV39HtR6KDIjMeacCFOB3ayw+baHTbN6kbExDhWXyZhJHeqMjOZV36L6I aJ/Fo+6tuwAlVIxN2X5g== 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 3u9ym943d3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 15:34:08 +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 83FC610004D; Fri, 17 Nov 2023 15:33:51 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7B7AC231509; Fri, 17 Nov 2023 15:33:51 +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:51 +0100 From: Patrick Delaunay To: Alexandre TORGUE , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin CC: Patrick Delaunay , , , , Subject: [PATCH 4/4] nvmem: add bsec support to stm32mp25 Date: Fri, 17 Nov 2023 15:33:37 +0100 Message-ID: <20231117153310.4.I8fa60abf176f777721ee5beb2bad216f833ed31a@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231117143338.1173475-1-patrick.delaunay@foss.st.com> References: <20231117143338.1173475-1-patrick.delaunay@foss.st.com> 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 06:34:41 -0800 (PST) Add BSEC support to STM32MP25 SoC family with SoC information: - RPN = Device part number (BSEC_OTP_DATA9) - PKG = package data register (Bits 2:0 of BSEC_OTP_DATA122) Signed-off-by: Patrick Delaunay --- arch/arm64/boot/dts/st/stm32mp251.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index 124403f5f1f4..96859d098ef8 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -140,6 +140,22 @@ sdmmc1: mmc@48220000 { }; }; + bsec: efuse@44000000 { + compatible = "st,stm32mp25-bsec"; + reg = <0x44000000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + part_number_otp@24 { + reg = <0x24 0x4>; + }; + + package_otp@1e8 { + reg = <0x1e8 0x1>; + bits = <0 3>; + }; + }; + syscfg: syscon@44230000 { compatible = "st,stm32mp25-syscfg", "syscon"; reg = <0x44230000 0x10000>; -- 2.25.1