diff --git a/dts/bindings/regulator/nordic,nrf52x-regulator-hv.yaml b/dts/bindings/regulator/nordic,nrf52x-regulator-hv.yaml new file mode 100644 index 00000000000..3af5dbdff73 --- /dev/null +++ b/dts/bindings/regulator/nordic,nrf52x-regulator-hv.yaml @@ -0,0 +1,20 @@ +# Copyright (c), 2024 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +description: | + Nordic nRF52X regulator (high voltage stage of the main supply) + +compatible: "nordic,nrf52x-regulator-hv" + +include: + - name: base.yaml + - name: regulator.yaml + property-allowlist: + - regulator-name + +properties: + reg: + required: true + + regulator-name: + required: true diff --git a/dts/bindings/regulator/nordic,nrf5x-regulator.yaml b/dts/bindings/regulator/nordic,nrf5x-regulator.yaml new file mode 100644 index 00000000000..530a0634e76 --- /dev/null +++ b/dts/bindings/regulator/nordic,nrf5x-regulator.yaml @@ -0,0 +1,24 @@ +# Copyright (c), 2024 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +description: | + Nordic nRF5X regulator (fixed stage of the core supply) + +compatible: "nordic,nrf5x-regulator" + +include: + - name: base.yaml + - name: regulator.yaml + property-allowlist: + - regulator-name + - regulator-initial-mode + +properties: + reg: + required: true + + regulator-name: + required: true + + regulator-initial-mode: + required: true diff --git a/include/zephyr/dt-bindings/regulator/nrf5x.h b/include/zephyr/dt-bindings/regulator/nrf5x.h new file mode 100644 index 00000000000..d2507c74a6e --- /dev/null +++ b/include/zephyr/dt-bindings/regulator/nrf5x.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_REGULATOR_NRF5X_H_ +#define ZEPHYR_INCLUDE_DT_BINDINGS_REGULATOR_NRF_H_ + +/** + * @defgroup regulator_nrf5x nRF5X regulator devicetree helpers. + * @ingroup regulator_interface + * @{ + */ + +/** + * @name nRF5X regulator modes + * @{ + */ +/** LDO mode */ +#define NRF5X_REG_MODE_LDO 0 +/** DC/DC mode */ +#define NRF5X_REG_MODE_DCDC 1 +/** @} */ + +/** @} */ + +#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_REGULATOR_NRF5X_H_*/