zephyr/dts/bindings/crypto/nuvoton,npcx-sha.yaml
Jun Lin db8855aaa3 driver: crypto: SHA: npcx: change to support npcx4
The pre-alloacted size of the buffer for the SHA ROM API code increases
in npcx4 chip. This commit adds a new property context-buffer-size to
sha0 DT node in npcx9 and npcx4 separately. The driver can pre-allocate
buffer with the correct size based on the property.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2023-10-05 09:14:05 +01:00

20 lines
428 B
YAML

# Copyright (c) 2022 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
description: NPCX Crypto SHA accelerator.
compatible: "nuvoton,npcx-sha"
include: base.yaml
properties:
reg:
required: true
context-buffer-size:
type: int
required: true
description: |
Size of the pre-allocated buffer for the SHA ROM API to store the
intermdiate computation result and final digest.