devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] STM32 Extended TrustZone Protection driver
@ 2018-03-01 13:58 Benjamin Gaignard
  2018-03-01 13:58 ` [PATCH v2 1/2] dt-bindings: stm32: Add bindings for Extended TrustZone Protection Benjamin Gaignard
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Benjamin Gaignard @ 2018-03-01 13:58 UTC (permalink / raw)
  To: robh+dt, mark.rutland, mcoquelin.stm32, alexandre.torgue,
	robin.murphy, arnd, loic.pallardy
  Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard

On early boot stages STM32MP1 platform is able to dedicate some hardware blocks
to a secure OS running in TrustZone.
We need to avoid using those hardware blocks on non-secure context (i.e. kernel)
because read/write accesses could generate illegale access exceptions.

Extended TrustZone Protection driver make sure that device is disabled if
non-secure world can't acces to it.

version 2:
- do not use notifier anymore
- change status property value in device-tree if needed
- use a list of phandle instead of hard coded array

NOTE: Those patches should be applied only on
git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git stm32-next
until this patch: https://lkml.org/lkml/2018/2/26/386
find it way to mainline because KBuild will complain about them.

Benjamin Gaignard (2):
  dt-bindings: stm32: Add bindings for Extended TrustZone Protection
  ARM: mach-stm32: Add Extended TrustZone Protection driver

 .../bindings/arm/stm32/st,stm32mp1-etzpc.txt       |  25 +++++
 arch/arm/mach-stm32/Kconfig                        |   7 ++
 arch/arm/mach-stm32/Makefile                       |   1 +
 arch/arm/mach-stm32/stm32-etzpc.c                  | 116 +++++++++++++++++++++
 4 files changed, 149 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/stm32/st,stm32mp1-etzpc.txt
 create mode 100644 arch/arm/mach-stm32/stm32-etzpc.c

-- 
2.15.0

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

end of thread, other threads:[~2018-03-01 14:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01 13:58 [PATCH v2 0/2] STM32 Extended TrustZone Protection driver Benjamin Gaignard
2018-03-01 13:58 ` [PATCH v2 1/2] dt-bindings: stm32: Add bindings for Extended TrustZone Protection Benjamin Gaignard
2018-03-01 14:03   ` Mark Rutland
2018-03-01 14:09     ` Benjamin Gaignard
2018-03-01 13:58 ` [PATCH v2 2/2] ARM: mach-stm32: Add Extended TrustZone Protection driver Benjamin Gaignard
2018-03-01 14:02 ` [PATCH v2 0/2] STM32 " Mark Rutland
2018-03-01 14:15   ` Benjamin Gaignard
2018-03-01 14:19     ` Robin Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).