From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF026BA32 for ; Tue, 7 Mar 2023 17:11:19 +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 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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