From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7279C6FD1A for ; Tue, 7 Mar 2023 17:16:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbjCGRQG (ORCPT ); Tue, 7 Mar 2023 12:16:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230140AbjCGRPl (ORCPT ); Tue, 7 Mar 2023 12:15:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CF794A5E for ; Tue, 7 Mar 2023 09:11:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 08BBEB8199E for ; Tue, 7 Mar 2023 17:11:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54AB1C433D2; Tue, 7 Mar 2023 17:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678209079; bh=WSxrCnlHBqY07jRR3K2uwS1/jl2abgMueD47yVC6aY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NI8WR0RlKCKktLJXaIVYv7E3Qg8cRdoA4sGjS6c+9JJWTLS4LLqdJaboUatEfdUwv aMolWqXD3IrHyoEcnx8g0oMh+ByKlnrhMFb8zpP2rHRRKSJErg0uenMrA2HVwY1sO3 +jOD8mjvt+lEkqp1w9+A/oOmvTovsqSWH4S2/R5w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Patrick Delaunay , Alexandre Torgue , Sasha Levin Subject: [PATCH 6.2 0104/1001] ARM: dts: stm32: Update part number NVMEM description on stm32mp131 Date: Tue, 7 Mar 2023 17:47:56 +0100 Message-Id: <20230307170026.658110437@linuxfoundation.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307170022.094103862@linuxfoundation.org> References: <20230307170022.094103862@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Patrick Delaunay [ Upstream commit 366384e495511bea8583e44173629a3012d62db0 ] 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 Signed-off-by: Alexandre Torgue Signed-off-by: Sasha Levin --- 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 accc3824f7e98..99d88096959eb 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -527,6 +527,7 @@ bsec: efuse@5c005000 { part_number_otp: part_number_otp@4 { reg = <0x4 0x2>; + bits = <0 12>; }; ts_cal1: calib@5c { reg = <0x5c 0x2>; -- 2.39.2