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:
parent
a4b448ea59
commit
53e3c310b5
7 changed files with 76 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
21
dts/bindings/crypto/st,stm32-cryp.yaml
Normal file
21
dts/bindings/crypto/st,stm32-cryp.yaml
Normal 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
|
|
@ -11,4 +11,11 @@ config SOC
|
|||
config NUM_IRQS
|
||||
default 82
|
||||
|
||||
if CRYPTO
|
||||
|
||||
config CRYPTO_STM32
|
||||
default y
|
||||
|
||||
endif # CRYPTO
|
||||
|
||||
endif # SOC_STM32F415XX
|
||||
|
|
|
@ -31,4 +31,11 @@ config ENTROPY_STM32_RNG
|
|||
|
||||
endif # ENTROPY_GENERATOR
|
||||
|
||||
if CRYPTO
|
||||
|
||||
config CRYPTO_STM32
|
||||
default y
|
||||
|
||||
endif # CRYPTO
|
||||
|
||||
endif # SOC_STM32F417XX
|
||||
|
|
|
@ -37,4 +37,11 @@ config ENTROPY_STM32_RNG
|
|||
|
||||
endif # ENTROPY_GENERATOR
|
||||
|
||||
if CRYPTO
|
||||
|
||||
config CRYPTO_STM32
|
||||
default y
|
||||
|
||||
endif # CRYPTO
|
||||
|
||||
endif # SOC_STM32F437XX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue