CRYP device tree configuration

Revision as of 13:29, 14 January 2022 by Registered User

1 Article purpose[edit]

The purpose of this article is to explain how to configure the CRYP internal peripheral using the device tree mechanism.

2 DT bindings documentation[edit]

The following binding-related documentation explains how to write device tree files for CRYP:

  • Linux® STM32 CRYP device tree bindings: Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml[1].

3 DT configuration[edit]

This hardware description is a combination of STM32 microprocessor and board device tree files. See Device tree for explanations on device tree file split.

The STM32CubeMX can be used to generate the board device tree. Refer to #How_to_configure_the_DT_using_STM32CubeMX for more details.

3.1 DT configuration (STM32 level)[edit]

The CRYP node is located in the STM32 MPU device tree.

3.2 DT configuration (board level)[edit]

Board level device tree is used to enable the CRYP.

4 How to configure the DT using STM32CubeMX[edit]

The STM32CubeMX tool can be used to configure the STM32MPU device and get the corresponding platform configuration device tree files.
The STM32CubeMX may not support all the properties described in the above DT bindings documentation paragraph. If so, the tool inserts user sections in the generated device tree. These sections can then be edited to add some properties and they are preserved from one generation to another. Refer to STM32CubeMX user manual for further information.

5 References[edit]

Please refer to the following links for additional information: