Lines Matching +full:chip +full:- +full:id
4 * SPDX-License-Identifier: Apache-2.0
37 const struct regulator_mpm54304_config *config = dev->config; in regulator_mpm54304_enable()
39 return i2c_reg_update_byte_dt(&config->bus, MPM54304_REG_EN, config->enable_mask, in regulator_mpm54304_enable()
40 config->enable_mask); in regulator_mpm54304_enable()
45 const struct regulator_mpm54304_config *config = dev->config; in regulator_mpm54304_disable()
47 return i2c_reg_update_byte_dt(&config->bus, MPM54304_REG_EN, config->enable_mask, 0x00); in regulator_mpm54304_disable()
52 const struct regulator_mpm54304_config *config = dev->config; in regulator_mpm54304_init()
55 if (!i2c_is_ready_dt(&config->bus)) { in regulator_mpm54304_init()
56 LOG_ERR("I2C bus %s not ready", config->bus.bus->name); in regulator_mpm54304_init()
57 return -ENODEV; in regulator_mpm54304_init()
60 /* dummy read needed for chip to function properly */ in regulator_mpm54304_init()
61 (void)i2c_reg_read_byte_dt(&config->bus, MPM54304_REG_VENDOR_ID, &value); in regulator_mpm54304_init()
62 LOG_DBG("vendor id: 0x%x", value >> 4); in regulator_mpm54304_init()
72 #define REGULATOR_MPM54304_DEFINE(node_id, id, child_name) \ argument
73 static const struct regulator_mpm54304_config regulator_mpm54304_config_##id = { \
79 static struct regulator_mpm54304_data regulator_mpm54304_data_##id; \
80 DEVICE_DT_DEFINE(node_id, regulator_mpm54304_init, NULL, ®ulator_mpm54304_data_##id, \
81 ®ulator_mpm54304_config_##id, POST_KERNEL, \