dts: bindings: Add RW PMU binding

Add RW PMU binding.

PMU is what records and enables the reset causes.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-03-05 16:41:10 -06:00 committed by David Leach
commit c6b07ef8db
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0
description: NXP RW PMU
compatible: "nxp,rw-pmu"
include: base.yaml
properties:
reset-causes-en:
type: array
description: |
List reset causes to enable, using bitmasks of SYS_RESET registers.

View file

@ -0,0 +1,19 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_POWER_NXP_RW_PMU_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_POWER_NXP_RW_PMU_H_
#define PMU_RESET_CM33_SOFT_RESET 0x1
#define PMU_RESET_CM33_LOCKUP 0x2
#define PMU_RESET_WATCHDOG 0x4
#define PMU_RESET_AP_RESET 0x8
#define PMU_RESET_CODE_WATCHDOG 0x10
#define PMU_RESET_ITRC 0x20
#define PMU_RESET_RESETB 0x40
#define PMU_RESET_ALL 0x7F
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_POWER_NXP_RW_PMU_H_ */