dts: arm: stm32f4: Add CRYP support for STM32F4xx SoC series

Add Cryptographic Accelerator support for STM32F415/417 and STM32F43x
devices.

Signed-off-by: Markus Fuchs <markus.fuchs@de.sauter-bc.com>
This commit is contained in:
Markus Fuchs 2020-01-13 17:36:18 +01:00 committed by Kumar Gala
commit 53e3c310b5
7 changed files with 76 additions and 0 deletions

View file

@ -5,3 +5,16 @@
*/
#include <st/f4/stm32f405.dtsi>
/ {
soc {
cryp: cryp@50060000 {
compatible = "st,stm32-cryp";
reg = <0x50060000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000010>;
interrupts = <79 0>;
status = "disabled";
label = "CRYP";
};
};
};

View file

@ -6,3 +6,15 @@
#include <st/f4/stm32f407.dtsi>
/ {
soc {
cryp: cryp@50060000 {
compatible = "st,stm32-cryp";
reg = <0x50060000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000010>;
interrupts = <79 0>;
status = "disabled";
label = "CRYP";
};
};
};

View file

@ -83,5 +83,14 @@
status = "disabled";
label = "SPI_6";
};
cryp: cryp@50060000 {
compatible = "st,stm32-cryp";
reg = <0x50060000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000010>;
interrupts = <79 0>;
status = "disabled";
label = "CRYP";
};
};
};

View file

@ -0,0 +1,21 @@
# Copyright (c) 2020, Markus Fuchs <markus.fuchs@de.sauter-bc.com>
# SPDX-License-Identifier: Apache-2.0
description: STM32 Cryptographic Accelerator
compatible: "st,stm32-cryp"
include: base.yaml
properties:
reg:
required: true
label:
required: true
interrupts:
required: true
clocks:
required: true

View file

@ -11,4 +11,11 @@ config SOC
config NUM_IRQS
default 82
if CRYPTO
config CRYPTO_STM32
default y
endif # CRYPTO
endif # SOC_STM32F415XX

View file

@ -31,4 +31,11 @@ config ENTROPY_STM32_RNG
endif # ENTROPY_GENERATOR
if CRYPTO
config CRYPTO_STM32
default y
endif # CRYPTO
endif # SOC_STM32F417XX

View file

@ -37,4 +37,11 @@ config ENTROPY_STM32_RNG
endif # ENTROPY_GENERATOR
if CRYPTO
config CRYPTO_STM32
default y
endif # CRYPTO
endif # SOC_STM32F437XX