Skip to contentSkip to conversation

ARM: at91/dt: add SAMA5 trng nodes

PATCH New Mike Williams 2 participants 6 messages May 3, 2016 – May 6, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: at91/dt: add SAMA5 trng nodes

Adds support for the true hardware random number generator.

Tested on a SAMA5D3 Xplained board.

Mike Williams (3):
ARM: at91/dt: sama5d2: add trng node
ARM: at91/dt: sama5d3: add trng node
ARM: at91/dt: sama5d4: add trng node

 arch/arm/boot/dts/sama5d2.dtsi | 7 +++++++
 arch/arm/boot/dts/sama5d3.dtsi | 7 +++++++
 arch/arm/boot/dts/sama5d4.dtsi | 7 +++++++
 3 files changed, 21 insertions(+)
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/3 ARM: at91/dt: sama5d2: add trng node

Add node to support SAMA5D2 hardware random number generator.

---
 arch/arm/boot/dts/sama5d2.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/sama5d2.dtsi +7 -0
index 78996bd..af9a5f8 100644
@@ -1127,6 +1127,13 @@
 				status = "disabled";
 			};
 
+			trng at fc01c000 {
+				compatible = "atmel,at91sam9g45-trng";
+				reg = <0xfc01c000 0x4000>;
+				interrupts = <47 IRQ_TYPE_LEVEL_HIGH 0>;
+				clocks = <&trng_clk>;
+			};
+
 			aic: interrupt-controller at fc020000 {
 				#interrupt-cells = <3>;
 				compatible = "atmel,sama5d2-aic";
Signature · 1 line
2.5.0
#2 lore raw

PATCH 1/3 ARM: at91/dt: sama5d2: add trng node

Le 03/05/2016 18:44, Mike Williams a ?crit :

Quoted 1 line

Add node to support SAMA5D2 hardware random number generator.

Oh, Mike, something is missing here: you Singed-off-by tag.

http://lxr.free-electrons.com/source/Documentation/SubmittingPatches#L409

Please read this and send me an email telling me if you add it to your patches (this way you don't have to re-send them, if it's easier for you).

Bye,

Quoted 23 lines
---
 arch/arm/boot/dts/sama5d2.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/sama5d2.dtsi +7 -0
index 78996bd..af9a5f8 100644
@@ -1127,6 +1127,13 @@
 				status = "disabled";
 			};
 
+			trng at fc01c000 {
+				compatible = "atmel,at91sam9g45-trng";
+				reg = <0xfc01c000 0x4000>;
+				interrupts = <47 IRQ_TYPE_LEVEL_HIGH 0>;
+				clocks = <&trng_clk>;
+			};
+
 			aic: interrupt-controller at fc020000 {
 				#interrupt-cells = <3>;
 				compatible = "atmel,sama5d2-aic";
Signature · 1 line
Nicolas Ferre
#3 lore raw

PATCH 2/3 ARM: at91/dt: sama5d3: add trng node

In reply to Mike Williams

Add node to support SAMA5D3 hardware random number generator.

---
 arch/arm/boot/dts/sama5d3.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/sama5d3.dtsi +7 -0
index a532791..c346aa9 100644
@@ -426,6 +426,13 @@
 				clock-names = "tdes_clk";
 			};
 
+			trng at f8040000 {
+				compatible = "atmel,at91sam9g45-trng";
+				reg = <0xf8040000 0x4000>;
+				interrupts = <45 IRQ_TYPE_LEVEL_HIGH 0>;
+				clocks = <&trng_clk>;
+			};
+
 			dma0: dma-controller at ffffe600 {
 				compatible = "atmel,at91sam9g45-dma";
 				reg = <0xffffe600 0x200>;
Signature · 1 line
2.5.0
#4 lore raw

PATCH 3/3 ARM: at91/dt: sama5d4: add trng node

In reply to Mike Williams

Add node to support SAMA5D4 hardware random number generator.

---
 arch/arm/boot/dts/sama5d4.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/sama5d4.dtsi +7 -0
index db1151c..a95eb36 100644
@@ -1202,6 +1202,13 @@
 				status = "disabled";
 			};
 
+			trng at fc030000 {
+				compatible = "atmel,at91sam9g45-trng";
+				reg = <0xfc030000 0x4000>;
+				interrupts = <53 IRQ_TYPE_LEVEL_HIGH 0>;
+				clocks = <&trng_clk>;
+			};
+
 			adc0: adc at fc034000 {
 				compatible = "atmel,at91sam9x5-adc";
 				reg = <0xfc034000 0x100>;
Signature · 1 line
2.5.0
#5 lore raw

cover ARM: at91/dt: add SAMA5 trng nodes

In reply to Mike Williams

Le 03/05/2016 18:44, Mike Williams a ?crit :

Quoted 9 lines

Adds support for the true hardware random number generator.

Tested on a SAMA5D3 Xplained board.

Mike Williams (3):
ARM: at91/dt: sama5d2: add trng node
ARM: at91/dt: sama5d3: add trng node
ARM: at91/dt: sama5d4: add trng node

Quoted 4 lines
 arch/arm/boot/dts/sama5d2.dtsi | 7 +++++++
 arch/arm/boot/dts/sama5d3.dtsi | 7 +++++++
 arch/arm/boot/dts/sama5d4.dtsi | 7 +++++++
 3 files changed, 21 insertions(+)

Oh, yes: they were missing indeed.

BTW, I reduce the size of the register memory map to 0x100 like this on all patches (no need to re-send):

@@ -1170,7 +1170,7 @@

                        trng at fc01c000 {
                                compatible = "atmel,at91sam9g45-trng";
-                               reg = <0xfc01c000 0x4000>;
+                               reg = <0xfc01c000 0x100>;
                                interrupts = <47 IRQ_TYPE_LEVEL_HIGH 0>;
                                clocks = <&trng_clk>;
                        };

and take advantage of this to do the same on
arch/arm/boot/dts/at91sam9g45.dtsi as well.

Thanks and:

I stack the patches on top of at91-4.7-dt and build a pull-request soon.

Bye,

Signature · 1 line
Nicolas Ferre