From patchwork Wed Jan 18 12:49:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Delaunay X-Patchwork-Id: 13106349 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 A7FBEC38147 for ; Wed, 18 Jan 2023 12:51:38 +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=juBygcwggArfX8tnEVIbkAHB/nu9rriyaXx54BWwYco=; b=XITKvXcfomQdOD oT2BKWBR+UQsIWgVxkqhwzRbxoWZPwUCL9LHUEXHtdial8j+euqxUySttIpoWEJelIcPGT9iG5wn8 XsGx/+FZARWny+ZD5Y0JH8vweIjODmU7J699EF83RQt1hE8alZ7PhNAKtSi/fsTCDki6frm/s7qvs AW8E10tvl/mMgjvY1mdcAjiZ6lgaBpND71YGqX+ic+qivXCWasm+rqegdP7BIYEcNQBjsgwFz9KFB C9l2qzzf7B4/l6AAjCNp0nRU1rmHXhUmbuBdolIbPD6UzvxCktwKg9ZVbQV+w+b5IrEB/U1/hPEK2 UyPHhx0CbGGdQoWz4uEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI7ta-000xnV-Kk; Wed, 18 Jan 2023 12:50:27 +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 1pI7tR-000xii-Is for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 12:50:19 +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 30IBB4qd002543; Wed, 18 Jan 2023 13:49:57 +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=linwnaEWaqbZU3PC233U2YpghYMe3CfWgXBH/zbTiZ0=; b=vmy13VNT9+DV5uroxs7W4WKUMH1wWVokOnVCYL8E/8zGRvjXbKir7vOQfHU3TMPNbH+o /kBFL6gkxIUfjqjlte+xCIQI/Itf5dtDqlHgxSh/K43fn2oW/ql4aQNNH/yJllgKS8Ij BKEHLEX6r+Hy5HUpMgCcOunhwcjN/ppsBSxngM42591+I4VlnUkr4HJI4kpMepQ4vQzQ xOsvBwbBCnCXVFIEfyz2i720HjivUFt58HQWwXwpNkacc9Go07O//o7dMgOidsYKGGcZ Lzrf5LjergcDiG1YznxNw/ki+ZZGeTxvoa1Luw1KXEM/gONUhcZJ6Ns63e6kVBmuS+Au 3A== 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 3n5mc4sxux-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Jan 2023 13:49:57 +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 74DE110002A; Wed, 18 Jan 2023 13:49:55 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4BB9A21684A; Wed, 18 Jan 2023 13:49:55 +0100 (CET) Received: from localhost (10.48.0.157) 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.13; Wed, 18 Jan 2023 13:49:54 +0100 From: Patrick Delaunay To: Alexandre TORGUE , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Arnd Bergmann CC: Patrick Delaunay , , , , Subject: [PATCH] ARM: dts: stm32: Update part number NVMEM description on stm32mp131 Date: Wed, 18 Jan 2023 13:49:51 +0100 Message-ID: <20230118134948.1.Ica923e4a2407c976dcf3d65c266c27c883734dd8@changeid> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.0.157] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-18_05,2023-01-18_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230118_045018_101391_0B639D66 X-CRM114-Status: GOOD ( 14.81 ) 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 The STM32MP13x Device Part Number (also named RPN in reference manual) only uses the first 12 bits in OTP4, all the other bit are reserved and they can be different of zero; they must be masked in NVMEM result, so the number of bits must be defined in the nvmem cell description. Fixes: 1da8779c0029 ("ARM: dts: stm32: add STM32MP13 SoCs support") Signed-off-by: Patrick Delaunay --- arch/arm/boot/dts/stm32mp131.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index f50051e81ee3..2f186a0ae92e 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -1233,6 +1233,7 @@ bsec: efuse@5c005000 { part_number_otp: part_number_otp@4 { reg = <0x4 0x2>; + bits = <0 12>; }; ts_cal1: calib@5c { reg = <0x5c 0x2>;