dts: bindings: Add bindings for NXP LPC resets
Add binding representing the peripheral reset controller of the NXP LPC SYSCON heritage hardware including SYSCON itself and the newer RSTCTL. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
eb866a345d
commit
1db901e2c9
3 changed files with 45 additions and 0 deletions
15
dts/bindings/reset/nxp,lpc-syscon-reset.yaml
Normal file
15
dts/bindings/reset/nxp,lpc-syscon-reset.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# Copyright 2024 NXP
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
description: LPC SYSCON Peripheral reset controller
|
||||||
|
|
||||||
|
compatible: "nxp,lpc-syscon-reset"
|
||||||
|
|
||||||
|
include: [reset-controller.yaml]
|
||||||
|
|
||||||
|
properties:
|
||||||
|
"#reset-cells":
|
||||||
|
const: 1
|
||||||
|
|
||||||
|
reset-cells:
|
||||||
|
- id
|
18
dts/bindings/reset/nxp,rstctl.yaml
Normal file
18
dts/bindings/reset/nxp,rstctl.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Copyright 2024 NXP
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
description: NXP RSTCTL Peripheral reset controller
|
||||||
|
|
||||||
|
compatible: "nxp,rstctl"
|
||||||
|
|
||||||
|
include: [reset-controller.yaml, base.yaml]
|
||||||
|
|
||||||
|
properties:
|
||||||
|
reg:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
"#reset-cells":
|
||||||
|
const: 1
|
||||||
|
|
||||||
|
reset-cells:
|
||||||
|
- id
|
12
include/zephyr/dt-bindings/reset/nxp_syscon_reset_common.h
Normal file
12
include/zephyr/dt-bindings/reset/nxp_syscon_reset_common.h
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2024 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RESET_NXP_SYSCON_RESET_COMMON_H_
|
||||||
|
#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_NXP_SYSCON_RESET_COMMON_H_
|
||||||
|
|
||||||
|
#define NXP_SYSCON_RESET(offset, bit) ((offset << 16) | bit)
|
||||||
|
|
||||||
|
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_RESET_NXP_SYSCON_RESET_COMMON_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue