* [PATCH 0/5] Atmel sama5d2 security module support
@ 2016-08-31 16:11 Alexandre Belloni
2016-08-31 16:11 ` [PATCH 1/5] Documentation: dt: atmel-at91: Document secumod bindings Alexandre Belloni
2016-08-31 16:11 ` [PATCH 4/5] misc: sram: document new compatible Alexandre Belloni
0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Belloni @ 2016-08-31 16:11 UTC (permalink / raw)
To: Nicolas Ferre
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Boris Brezillon, Alexandre Belloni, Rob Herring,
devicetree-u79uwXL29TY76Z2rM5mHXA, Arnd Bergmann, Philipp Zabel,
Vladimir Zapolskiy
Hi,
There has already been multiple tentatives trying to add support for the
Sama5d2 security module and in particular, access to its SRAM.
After multiple discussions, I believe adding support in the sram
driver/framework is probably the best because it allows exporting the
SRAM to the kernel, to userspace and also to run code from it.
As the support for the sama5d2 securam is fairly small, I've included it
directly in the mmio-sram driver.
Regards,
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: Philipp Zabel <p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Vladimir Zapolskiy <vladimir_zapolskiy-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
Alexandre Belloni (5):
Documentation: dt: atmel-at91: Document secumod bindings
ARM: dts: at91: sama5d2: Add secumod node
ARM: at91: add secumod register definitions
misc: sram: document new compatible
misc: sram: add Atmel securam support
.../devicetree/bindings/arm/atmel-at91.txt | 17 +++++++
Documentation/devicetree/bindings/sram/sram.txt | 2 +-
arch/arm/boot/dts/sama5d2.dtsi | 19 ++++++++
drivers/misc/sram.c | 52 +++++++++++++++++++---
include/soc/at91/atmel-secumod.h | 46 +++++++++++++++++++
5 files changed, 128 insertions(+), 8 deletions(-)
create mode 100644 include/soc/at91/atmel-secumod.h
--
2.9.3
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/5] Documentation: dt: atmel-at91: Document secumod bindings
2016-08-31 16:11 [PATCH 0/5] Atmel sama5d2 security module support Alexandre Belloni
@ 2016-08-31 16:11 ` Alexandre Belloni
[not found] ` <20160831161108.8780-2-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-08-31 16:11 ` [PATCH 4/5] misc: sram: document new compatible Alexandre Belloni
1 sibling, 1 reply; 5+ messages in thread
From: Alexandre Belloni @ 2016-08-31 16:11 UTC (permalink / raw)
To: Nicolas Ferre
Cc: linux-kernel, linux-arm-kernel, Boris Brezillon,
Alexandre Belloni, Rob Herring, devicetree
A security module is available starting with sama5d2, add its bindings.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Documentation/devicetree/bindings/arm/atmel-at91.txt | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/devicetree/bindings/arm/atmel-at91.txt
index e1f5ad855f14..eea1f44d5666 100644
--- a/Documentation/devicetree/bindings/arm/atmel-at91.txt
+++ b/Documentation/devicetree/bindings/arm/atmel-at91.txt
@@ -225,3 +225,20 @@ required properties:
compatible = "atmel,sama5d3-sfr", "syscon";
reg = <0xf0038000 0x60>;
};
+
+Security Module (SECUMOD)
+
+The Security Module macrocell provides all necessary secure functions to avoid
+voltage, temperature, frequency and mechanical attacks on the chip. It also
+embeds secure memories that can be scrambled
+
+required properties:
+- compatible: Should be "atmel,<chip>-secumod", "syscon".
+ <chip> can be "sama5d2".
+- reg: Should contain registers location and length
+
+ secumod@fc040000 {
+ compatible = "atmel,sama5d2-secumod", "syscon";
+ reg = <0xfc040000 0x100>;
+ };
+
--
2.9.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/5] misc: sram: document new compatible
2016-08-31 16:11 [PATCH 0/5] Atmel sama5d2 security module support Alexandre Belloni
2016-08-31 16:11 ` [PATCH 1/5] Documentation: dt: atmel-at91: Document secumod bindings Alexandre Belloni
@ 2016-08-31 16:11 ` Alexandre Belloni
[not found] ` <20160831161108.8780-5-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Alexandre Belloni @ 2016-08-31 16:11 UTC (permalink / raw)
To: Nicolas Ferre
Cc: linux-kernel, linux-arm-kernel, Boris Brezillon,
Alexandre Belloni, Rob Herring, devicetree
Add atmel,sama5d2-securam to the compatible list.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Documentation/devicetree/bindings/sram/sram.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/sram/sram.txt b/Documentation/devicetree/bindings/sram/sram.txt
index add48f09015e..068c2c03c38f 100644
--- a/Documentation/devicetree/bindings/sram/sram.txt
+++ b/Documentation/devicetree/bindings/sram/sram.txt
@@ -4,7 +4,7 @@ Simple IO memory regions to be managed by the genalloc API.
Required properties:
-- compatible : mmio-sram
+- compatible : mmio-sram or atmel,sama5d2-securam
- reg : SRAM iomem address range
--
2.9.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/5] Documentation: dt: atmel-at91: Document secumod bindings
[not found] ` <20160831161108.8780-2-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 2016-09-06 21:43 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2016-09-06 21:43 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Nicolas Ferre, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Boris Brezillon, devicetree-u79uwXL29TY76Z2rM5mHXA
On Wed, Aug 31, 2016 at 06:11:04PM +0200, Alexandre Belloni wrote:
> A security module is available starting with sama5d2, add its bindings.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> ---
> Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Documentation/devicetree/bindings/arm/atmel-at91.txt | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 4/5] misc: sram: document new compatible
[not found] ` <20160831161108.8780-5-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 2016-09-06 21:44 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2016-09-06 21:44 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Nicolas Ferre, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Boris Brezillon, devicetree-u79uwXL29TY76Z2rM5mHXA
On Wed, Aug 31, 2016 at 06:11:07PM +0200, Alexandre Belloni wrote:
> Add atmel,sama5d2-securam to the compatible list.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> ---
> Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Documentation/devicetree/bindings/sram/sram.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-09-06 21:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-31 16:11 [PATCH 0/5] Atmel sama5d2 security module support Alexandre Belloni
2016-08-31 16:11 ` [PATCH 1/5] Documentation: dt: atmel-at91: Document secumod bindings Alexandre Belloni
[not found] ` <20160831161108.8780-2-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-09-06 21:43 ` Rob Herring
2016-08-31 16:11 ` [PATCH 4/5] misc: sram: document new compatible Alexandre Belloni
[not found] ` <20160831161108.8780-5-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-09-06 21:44 ` Rob Herring
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).