From bd766d0489cb792b3ca99eec82ceeace80608e6d Mon Sep 17 00:00:00 2001 From: Jun Lin Date: Wed, 14 Dec 2022 13:06:40 +0800 Subject: [PATCH] dts: SHA: npcx: add the SHA DTS node and binding - Add SHA DTS node to npcx9.dtsi. - Add yaml binding for npcx SHA. Signed-off-by: Jun Lin --- dts/arm/nuvoton/npcx9.dtsi | 6 ++++++ dts/bindings/crypto/nuvoton,npcx-sha.yaml | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 dts/bindings/crypto/nuvoton,npcx-sha.yaml diff --git a/dts/arm/nuvoton/npcx9.dtsi b/dts/arm/nuvoton/npcx9.dtsi index b61c302005c..b24965fedb1 100644 --- a/dts/arm/nuvoton/npcx9.dtsi +++ b/dts/arm/nuvoton/npcx9.dtsi @@ -251,6 +251,12 @@ threshold-reg-offset = <0x60>; threshold-count = <6>; }; + + sha0: sha@13c { + compatible = "nuvoton,npcx-sha"; + reg = <0x13c 0x3c>; + status = "disabled"; + }; }; soc-id { diff --git a/dts/bindings/crypto/nuvoton,npcx-sha.yaml b/dts/bindings/crypto/nuvoton,npcx-sha.yaml new file mode 100644 index 00000000000..74693a51d67 --- /dev/null +++ b/dts/bindings/crypto/nuvoton,npcx-sha.yaml @@ -0,0 +1,12 @@ +# 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