drivers: regulator/nxp_vref: Remove nxp_ground_select property

Remove nxp_ground_select property.
Delete the use of NXP vref peripheral CSR register REFL_GRL_SEL bit.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
Zhaoxiang Jin 2024-05-10 09:46:11 +08:00 committed by Carles Cufí
commit fd736c4f2d
2 changed files with 1 additions and 15 deletions

View file

@ -24,7 +24,6 @@ struct regulator_nxp_vref_data {
struct regulator_nxp_vref_config {
struct regulator_common_config common;
VREF_Type *base;
uint8_t gnd_sel;
uint16_t buf_start_delay;
uint16_t bg_start_time;
};
@ -183,16 +182,10 @@ static const struct regulator_driver_api api = {
static int regulator_nxp_vref_init(const struct device *dev)
{
const struct regulator_nxp_vref_config *config = dev->config;
VREF_Type *base = config->base;
int ret;
regulator_common_data_init(dev);
/* Select ground */
base->CSR &= ~VREF_CSR_REFL_GRD_SEL_MASK;
base->CSR |= config->gnd_sel;
ret = regulator_nxp_vref_disable(dev);
if (ret < 0) {
return ret;
@ -207,7 +200,6 @@ static int regulator_nxp_vref_init(const struct device *dev)
static const struct regulator_nxp_vref_config config_##inst = { \
.common = REGULATOR_DT_INST_COMMON_CONFIG_INIT(inst), \
.base = (VREF_Type *) DT_INST_REG_ADDR(inst), \
.gnd_sel = DT_INST_ENUM_IDX_OR(inst, nxp_ground_select, 0), \
.buf_start_delay = DT_INST_PROP(inst, \
nxp_buffer_startup_delay_us), \
.bg_start_time = DT_INST_PROP(inst, \

View file

@ -1,4 +1,4 @@
# Copyright 2023 NXP
# Copyright 2023-2024 NXP
# SPDX-License-Identifier: Apache-2.0
description: NXP VREF SOC peripheral
@ -20,12 +20,6 @@ properties:
reg:
required: true
nxp,ground-select:
type: string
enum:
- "VREFL3V" # 0
- "VSSA" # 1
nxp,buffer-startup-delay-us:
type: int
required: true