]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: dts: st: add bsec support to stm32mp25
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 15 Jan 2024 14:05:44 +0000 (15:05 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 19 Jan 2024 13:19:42 +0000 (14:19 +0100)
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)

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/dts/stm32mp25-u-boot.dtsi
arch/arm/dts/stm32mp251.dtsi

index f4f26add2a415b6cef7b7915b23dbd2f26ea62a1..0c8e95b34163206ac3dcd625b4867bdb73be2086 100644 (file)
        };
 };
 
+&bsec {
+       bootph-all;
+};
+
 &gpioa {
        bootph-all;
 };
index cf2f28dc1582d121006c51b045d6e9461c5d6c0f..44eb664fb510273706229fde435e588e7f0def0b 100644 (file)
                        };
                };
 
+               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>;