[v2] ARM: dts: vfxxx: Add node for CAAM
diff mbox series

Message ID 20200707211359.29906-1-cphealy@gmail.com
State In Next
Commit 493e8733686bfce4fe04683dce8569a5e6c6d071
Headers show
Series
  • [v2] ARM: dts: vfxxx: Add node for CAAM
Related show

Commit Message

Chris Healy July 7, 2020, 9:13 p.m. UTC
From: Andrey Smirnov <andrew.smirnov@gmail.com>

Add node for CAAM device in NXP Vybrid SoC.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Chris Healy <cphealy@gmail.com>

v2:
- fixup commit to show that this patch is from Andrey Smirnov.

---
 arch/arm/boot/dts/vfxxx.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Comments

Fabio Estevam July 7, 2020, 9:51 p.m. UTC | #1
Hi Chris,

On Tue, Jul 7, 2020 at 6:15 PM Chris Healy <cphealy@gmail.com> wrote:
>
> From: Andrey Smirnov <andrew.smirnov@gmail.com>
>
> Add node for CAAM device in NXP Vybrid SoC.
>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> Signed-off-by: Chris Healy <cphealy@gmail.com>
>
> v2:
> - fixup commit to show that this patch is from Andrey Smirnov.

We usually put this information below the --- line.

Maybe Shawn could fix it while applying it.

Other that that:
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Shawn Guo July 13, 2020, 6:56 a.m. UTC | #2
On Tue, Jul 07, 2020 at 06:51:00PM -0300, Fabio Estevam wrote:
> Hi Chris,
> 
> On Tue, Jul 7, 2020 at 6:15 PM Chris Healy <cphealy@gmail.com> wrote:
> >
> > From: Andrey Smirnov <andrew.smirnov@gmail.com>
> >
> > Add node for CAAM device in NXP Vybrid SoC.
> >
> > Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> > Signed-off-by: Chris Healy <cphealy@gmail.com>
> >
> > v2:
> > - fixup commit to show that this patch is from Andrey Smirnov.
> 
> We usually put this information below the --- line.
> 
> Maybe Shawn could fix it while applying it.

Fixed and applied.

Patch
diff mbox series

diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi
index 2d547e7b21ad..0fe03aa0367f 100644
--- a/arch/arm/boot/dts/vfxxx.dtsi
+++ b/arch/arm/boot/dts/vfxxx.dtsi
@@ -729,6 +729,28 @@ 
 				dma-names = "rx","tx";
 				status = "disabled";
 			};
+
+			crypto: crypto@400f0000 {
+				compatible = "fsl,sec-v4.0";
+				#address-cells = <1>;
+				#size-cells = <1>;
+				reg = <0x400f0000 0x9000>;
+				ranges = <0 0x400f0000 0x9000>;
+				clocks = <&clks VF610_CLK_CAAM>;
+				clock-names = "ipg";
+
+				sec_jr0: jr0@1000 {
+					compatible = "fsl,sec-v4.0-job-ring";
+					reg = <0x1000 0x1000>;
+					interrupts = <102 IRQ_TYPE_LEVEL_HIGH>;
+				};
+
+				sec_jr1: jr1@2000 {
+					compatible = "fsl,sec-v4.0-job-ring";
+					reg = <0x2000 0x1000>;
+					interrupts = <102 IRQ_TYPE_LEVEL_HIGH>;
+				};
+			};
 		};
 	};
 };