diff mbox

[v3,13/16] ARM: marvell/dt: add crypto node to armada-xp.dtsi

Message ID 1432301642-11470-14-git-send-email-boris.brezillon@free-electrons.com (mailing list archive)
State Changes Requested
Delegated to: Herbert Xu
Headers show

Commit Message

Boris BREZILLON May 22, 2015, 1:33 p.m. UTC
Add crypto related nodes to armada-xp.dtsi.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 arch/arm/boot/dts/armada-xp.dtsi | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Comments

Gregory CLEMENT May 25, 2015, 3:15 p.m. UTC | #1
Hi Boris,

On 22/05/2015 15:33, Boris Brezillon wrote:
> Add crypto related nodes to armada-xp.dtsi.
> 
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

From the point of view of the mvebu it looks OK:
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

But of course, I will wait for that the driver will be merged before
applying it, or at least that the crypto maintainers validate the
binding.

Thanks,

Gregory



> ---
>  arch/arm/boot/dts/armada-xp.dtsi | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi
> index 013d63f..a12a81f 100644
> --- a/arch/arm/boot/dts/armada-xp.dtsi
> +++ b/arch/arm/boot/dts/armada-xp.dtsi
> @@ -220,6 +220,19 @@
>  				};
>  			};
>  
> +			crypto@90000 {
> +				compatible = "marvell,armada-xp-crypto";
> +				reg = <0x90000 0x10000>;
> +				reg-names = "regs";
> +				interrupts = <48>, <49>;
> +				clocks = <&gateclk 23>, <&gateclk 23>;
> +				clock-names = "cesa0", "cesa1";
> +				marvell,crypto-srams = <&crypto_sram0>,
> +						       <&crypto_sram1>;
> +				marvell,crypto-sram-size = <0x600>;
> +				status = "okay";
> +			};
> +
>  			xor@f0900 {
>  				compatible = "marvell,orion-xor";
>  				reg = <0xF0900 0x100
> @@ -240,6 +253,24 @@
>  				};
>  			};
>  		};
> +
> +		crypto_sram0: sa-sram0 {
> +			compatible = "mmio-sram";
> +			reg = <MBUS_ID(0x09, 0x09) 0 0x800>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			ranges = <0 MBUS_ID(0x09, 0x09) 0 0x800>;
> +			status = "okay";
> +		};
> +
> +		crypto_sram1: sa-sram1 {
> +			compatible = "mmio-sram";
> +			reg = <MBUS_ID(0x09, 0x05) 0 0x800>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			ranges = <0 MBUS_ID(0x09, 0x05) 0 0x800>;
> +			status = "okay";
> +		};
>  	};
>  
>  	clocks {
>
diff mbox

Patch

diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi
index 013d63f..a12a81f 100644
--- a/arch/arm/boot/dts/armada-xp.dtsi
+++ b/arch/arm/boot/dts/armada-xp.dtsi
@@ -220,6 +220,19 @@ 
 				};
 			};
 
+			crypto@90000 {
+				compatible = "marvell,armada-xp-crypto";
+				reg = <0x90000 0x10000>;
+				reg-names = "regs";
+				interrupts = <48>, <49>;
+				clocks = <&gateclk 23>, <&gateclk 23>;
+				clock-names = "cesa0", "cesa1";
+				marvell,crypto-srams = <&crypto_sram0>,
+						       <&crypto_sram1>;
+				marvell,crypto-sram-size = <0x600>;
+				status = "okay";
+			};
+
 			xor@f0900 {
 				compatible = "marvell,orion-xor";
 				reg = <0xF0900 0x100
@@ -240,6 +253,24 @@ 
 				};
 			};
 		};
+
+		crypto_sram0: sa-sram0 {
+			compatible = "mmio-sram";
+			reg = <MBUS_ID(0x09, 0x09) 0 0x800>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0 MBUS_ID(0x09, 0x09) 0 0x800>;
+			status = "okay";
+		};
+
+		crypto_sram1: sa-sram1 {
+			compatible = "mmio-sram";
+			reg = <MBUS_ID(0x09, 0x05) 0 0x800>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0 MBUS_ID(0x09, 0x05) 0 0x800>;
+			status = "okay";
+		};
 	};
 
 	clocks {