Skip to contentSkip to conversation

ARM: dts: at91: sama7g5: Add crypto nodes

PATCH Superseded Tudor Ambarus 2 participants 3 messages Feb 4, 2022 Device tree bindings

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: at91: sama7g5: Add crypto nodes

Describe and enable the AES, SHA and TDES crypto IPs.

---
 arch/arm/boot/dts/sama7g5.dtsi | 35 ++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
arch/arm/boot/dts/sama7g5.dtsi +35 -0
index 7972cb8c2562..1f2731a64139 100644
@@ -393,6 +393,29 @@ pit64b1: timer@e1804000 {
 			clock-names = "pclk", "gclk";
 		};
 
+		aes: aes@e1810000 {
+			compatible = "atmel,at91sam9g46-aes";
+			reg = <0xe1810000 0x100>;
+			interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(1)>,
+			       <&dma0 AT91_XDMAC_DT_PERID(2)>;
+			dma-names = "tx", "rx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 27>;
+			clock-names = "aes_clk";
+			status = "okay";
+		};
+
+		sha: sha@e1814000 {
+			compatible = "atmel,at91sam9g46-sha";
+			reg = <0xe1814000 0x100>;
+			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(48)>;
+			dma-names = "tx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 83>;
+			clock-names = "sha_clk";
+			status = "okay";
+		};
+
 		flx0: flexcom@e1818000 {
 			compatible = "atmel,sama5d2-flexcom";
 			reg = <0xe1818000 0x200>;
@@ -475,6 +498,18 @@ trng: rng@e2010000 {
 			status = "disabled";
 		};
 
+		tdes@e2014000 {
+			compatible = "atmel,at91sam9g46-tdes";
+			reg = <0xe2014000 0x100>;
+			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(54)>,
+			       <&dma0 AT91_XDMAC_DT_PERID(53)>;
+			dma-names = "tx", "rx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 96>;
+			clock-names = "tdes_clk";
+			status = "okay";
+		};
+
 		flx4: flexcom@e2018000 {
 			compatible = "atmel,sama5d2-flexcom";
 			reg = <0xe2018000 0x200>;
Signature · 1 line
2.25.1
#1 lore raw
Quoted 42 lines · Tudor Ambarus

Describe and enable the AES, SHA and TDES crypto IPs.

---
 arch/arm/boot/dts/sama7g5.dtsi | 35 ++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
arch/arm/boot/dts/sama7g5.dtsi +23 -0
index 7972cb8c2562..1f2731a64139 100644
@@ -393,6 +393,29 @@ pit64b1: timer@e1804000 {
 			clock-names = "pclk", "gclk";
 		};
 
+		aes: aes@e1810000 {
+			compatible = "atmel,at91sam9g46-aes";
+			reg = <0xe1810000 0x100>;
+			interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(1)>,
+			       <&dma0 AT91_XDMAC_DT_PERID(2)>;
+			dma-names = "tx", "rx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 27>;
+			clock-names = "aes_clk";
+			status = "okay";
+		};
+
+		sha: sha@e1814000 {
+			compatible = "atmel,at91sam9g46-sha";
+			reg = <0xe1814000 0x100>;
+			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(48)>;
+			dma-names = "tx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 83>;
+			clock-names = "sha_clk";
+			status = "okay";
+		};
+
 		flx0: flexcom@e1818000 {
 			compatible = "atmel,sama5d2-flexcom";
 			reg = <0xe1818000 0x200>;

arch/arm/boot/dts/sama7g5.dtsi trng: rng@e2010000 { · line 501

Quoted 4 lines
arch/arm/boot/dts/sama7g5.dtsi +1 -0
@@ -475,6 +498,18 @@ trng: rng@e2010000 {
 			status = "disabled";
 		};
 
+		tdes@e2014000 {

tdes: tdes@e2014000

I should have added a label here. Nicolas, maybe you can add it when applying, if everything else looks ok to you.

Quoted 14 lines
arch/arm/boot/dts/sama7g5.dtsi +11 -0
+			compatible = "atmel,at91sam9g46-tdes";
+			reg = <0xe2014000 0x100>;
+			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(54)>,
+			       <&dma0 AT91_XDMAC_DT_PERID(53)>;
+			dma-names = "tx", "rx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 96>;
+			clock-names = "tdes_clk";
+			status = "okay";
+		};
+
 		flx4: flexcom@e2018000 {
 			compatible = "atmel,sama5d2-flexcom";
 			reg = <0xe2018000 0x200>;
#2 lore raw
Quoted 46 lines · On 04/02/2022 at 18:36, Tudor Ambarus - M18064 wrote:
Quoted 45 lines · Tudor Ambarus

Describe and enable the AES, SHA and TDES crypto IPs.

---
  arch/arm/boot/dts/sama7g5.dtsi | 35 ++++++++++++++++++++++++++++++++++
  1 file changed, 35 insertions(+)
arch/arm/boot/dts/sama7g5.dtsi +23 -0
index 7972cb8c2562..1f2731a64139 100644
@@ -393,6 +393,29 @@ pit64b1: timer@e1804000 {
  			clock-names = "pclk", "gclk";
  		};
 
+		aes: aes@e1810000 {
+			compatible = "atmel,at91sam9g46-aes";
+			reg = <0xe1810000 0x100>;
+			interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(1)>,
+			       <&dma0 AT91_XDMAC_DT_PERID(2)>;
+			dma-names = "tx", "rx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 27>;
+			clock-names = "aes_clk";
+			status = "okay";
+		};
+
+		sha: sha@e1814000 {
+			compatible = "atmel,at91sam9g46-sha";
+			reg = <0xe1814000 0x100>;
+			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(48)>;
+			dma-names = "tx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 83>;
+			clock-names = "sha_clk";
+			status = "okay";
+		};
+
  		flx0: flexcom@e1818000 {
  			compatible = "atmel,sama5d2-flexcom";
  			reg = <0xe1818000 0x200>;
@@ -475,6 +498,18 @@ trng: rng@e2010000 {
  			status = "disabled";
  		};
 
Quoted 5 lines

arch/arm/boot/dts/sama7g5.dtsi trng: rng@e2010000 { · line 501

Quoted 1 line
arch/arm/boot/dts/sama7g5.dtsi +1 -0
+		tdes@e2014000 {

tdes: tdes@e2014000

I should have added a label here. Nicolas, maybe you can add it when applying, if everything else looks ok to you.

Yep, if everything else is okay I can definitively add it when applying.

Regards,
Nicolas

Quoted 15 lines
Quoted 14 lines
arch/arm/boot/dts/sama7g5.dtsi +11 -0
+			compatible = "atmel,at91sam9g46-tdes";
+			reg = <0xe2014000 0x100>;
+			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
+			dmas = <&dma0 AT91_XDMAC_DT_PERID(54)>,
+			       <&dma0 AT91_XDMAC_DT_PERID(53)>;
+			dma-names = "tx", "rx";
+			clocks = <&pmc PMC_TYPE_PERIPHERAL 96>;
+			clock-names = "tdes_clk";
+			status = "okay";
+		};
+
  		flx4: flexcom@e2018000 {
  			compatible = "atmel,sama5d2-flexcom";
  			reg = <0xe2018000 0x200>;
Signature · 1 line
Nicolas Ferre