]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: dts: stm32: Update part number NVMEM description on stm32mp131
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 18 Jan 2023 12:49:51 +0000 (13:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:43 +0000 (09:32 +0100)
[ Upstream commit 5db8497daeb5f35b7b6a54459a8d6c2e6bcb74ca ]

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: 8744cb9f5c00 ("ARM: dts: stm32: add STM32MP13 SoCs support")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/stm32mp131.dtsi

index dd35a607073dd69d2d4c2fb078d3a6055ebe4546..723787f72cfd9abe6117d9c6f40b80458bd6f530 100644 (file)
 
                        part_number_otp: part_number_otp@4 {
                                reg = <0x4 0x2>;
+                               bits = <0 12>;
                        };
                        ts_cal1: calib@5c {
                                reg = <0x5c 0x2>;