driver: reset: npcx: add driver support for reset controller

Nuvoton NPCX chips have reset registers which allow to reset the
peripheral hardware modules. This commit adds the support by
implementing the reset driver. Note that only the reset_line_toggle API
is supported because of the nature of the reset controller's design.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
This commit is contained in:
Jun Lin 2024-04-01 10:34:25 +08:00 committed by Alberto Escolar
commit 011b730b4c
13 changed files with 458 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Copyright (c) 2024 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
description: NPCX Reset Controller
compatible: "nuvoton,npcx-rst"
include: [reset-controller.yaml, base.yaml]
properties:
reg:
required: true
"#reset-cells":
const: 1
reset-cells:
- id