All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] stm32: add support for STM32MP25 BSEC to control OTP data
@ 2023-11-17 14:33 ` Patrick Delaunay
  0 siblings, 0 replies; 18+ messages in thread
From: Patrick Delaunay @ 2023-11-17 14:33 UTC (permalink / raw)
  To: Alexandre TORGUE, Srinivas Kandagatla, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
	Catalin Marinas, Will Deacon, Fabrice Gasnier
  Cc: Patrick Delaunay, Arnd Bergmann, Bjorn Andersson,
	Dmitry Baryshkov, Geert Uytterhoeven, Konrad Dybcio,
	Krzysztof Kozlowski, Marek Szyprowski, Neil Armstrong,
	Nícolas F. R. A. Prado, Peng Fan, Udit Kumar, devicetree,
	linux-arm-kernel, linux-kernel, linux-stm32


Non volatile memory area is available on STM32MP25 with OTP in BSEC.

The 12 Kbits of OTP (effective) for STM32MP25x SoC Family
are organized into the following regions:
- lower OTP (OTP0 to OTP127) = 4096 lower OTP bits,
  bitwise (1-bit) programmable
- mid OTP (OTP128 to OTP255) = 4096 middle OTP bits,
  bulk (32-bit) programmable
- upper OTP (OTP256 to OTP383) = 4096 upper OTP bits,
  bulk (32-bit) programmable,
  only accessible when BSEC is in closed state.

BSEC is only accessible by secure world, so the OTP access is done
by driver with OP-TEE TA, as on STM32MP13x family.



Patrick Delaunay (4):
  dt-bindings: nvmem: add new stm32mp25 compatible for stm32-romem
  nvmem: stm32: add support for STM32MP25 BSEC to control OTP data
  arm64: defconfig: enable NVMEM STM32 ROMEM for stm32mp25
  nvmem: add bsec support to stm32mp25

 .../bindings/nvmem/st,stm32-romem.yaml           |  1 +
 arch/arm64/boot/dts/st/stm32mp251.dtsi           | 16 ++++++++++++++++
 arch/arm64/configs/defconfig                     |  1 +
 drivers/nvmem/stm32-romem.c                      | 16 ++++++++++++++++
 4 files changed, 34 insertions(+)

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-12-14 16:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 14:33 [PATCH 0/4] stm32: add support for STM32MP25 BSEC to control OTP data Patrick Delaunay
2023-11-17 14:33 ` Patrick Delaunay
2023-11-17 14:33 ` [PATCH 1/4] dt-bindings: nvmem: add new stm32mp25 compatible for stm32-romem Patrick Delaunay
2023-11-17 14:33   ` Patrick Delaunay
2023-11-19 13:42   ` Conor Dooley
2023-11-19 13:42     ` Conor Dooley
2023-11-17 14:33 ` [PATCH 2/4] nvmem: stm32: add support for STM32MP25 BSEC to control OTP data Patrick Delaunay
2023-11-17 14:33   ` Patrick Delaunay
2023-11-17 14:33 ` [PATCH 3/4] arm64: defconfig: enable NVMEM STM32 ROMEM for stm32mp25 Patrick Delaunay
2023-11-17 14:33   ` Patrick Delaunay
2023-11-17 14:33 ` [PATCH 4/4] nvmem: add bsec support to stm32mp25 Patrick Delaunay
2023-11-17 14:33   ` Patrick Delaunay
2023-11-20 14:15   ` Alexandre TORGUE
2023-11-20 14:15     ` Alexandre TORGUE
2023-12-08 11:03 ` (subset) [PATCH 0/4] stm32: add support for STM32MP25 BSEC to control OTP data Srinivas Kandagatla
2023-12-08 11:03   ` Srinivas Kandagatla
2023-12-14 16:28 ` Alexandre TORGUE
2023-12-14 16:28   ` Alexandre TORGUE

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.