Home
last modified time | relevance | path

Searched refs:mfd (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/drivers/mfd/
DKconfig12 module-str = mfd
21 source "drivers/mfd/Kconfig.ad559x"
22 source "drivers/mfd/Kconfig.adp5585"
23 source "drivers/mfd/Kconfig.axp192"
24 source "drivers/mfd/Kconfig.aw9523b"
25 source "drivers/mfd/Kconfig.bd8lb600fs"
26 source "drivers/mfd/Kconfig.max20335"
27 source "drivers/mfd/Kconfig.max31790"
28 source "drivers/mfd/Kconfig.nct38xx"
29 source "drivers/mfd/Kconfig.npm1300"
[all …]
Dmfd_ite_it8801.c63 void mfd_it8801_register_interrupt_callback(const struct device *mfd, in mfd_it8801_register_interrupt_callback() argument
66 struct mfd_it8801_data *data = mfd->data; in mfd_it8801_register_interrupt_callback()
/Zephyr-latest/drivers/gpio/
Dgpio_npm1300.c45 const struct device *mfd; member
58 ret = mfd_npm1300_reg_read(config->mfd, NPM_GPIO_BASE, NPM_GPIO_OFFSET_STATUS, &data); in gpio_npm1300_port_get_raw()
78 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, in gpio_npm1300_port_set_masked_raw()
82 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, in gpio_npm1300_port_set_masked_raw()
122 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, in gpio_npm1300_configure()
126 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, in gpio_npm1300_configure()
131 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, NPM_GPIO_OFFSET_MODE + pin, in gpio_npm1300_configure()
134 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, NPM_GPIO_OFFSET_MODE + pin, in gpio_npm1300_configure()
137 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, NPM_GPIO_OFFSET_MODE + pin, in gpio_npm1300_configure()
140 ret = mfd_npm1300_reg_write(config->mfd, NPM_GPIO_BASE, NPM_GPIO_OFFSET_MODE + pin, in gpio_npm1300_configure()
[all …]
Dgpio_nct38xx_alert.c47 struct nct38xx_mfd *mfd; member
59 static bool nct38xx_alert_is_active(struct nct38xx_mfd *mfd) in nct38xx_alert_is_active() argument
64 k_sem_take(mfd->lock, K_FOREVER); in nct38xx_alert_is_active()
67 ret = i2c_burst_read_dt(mfd->i2c_dev, NCT38XX_REG_ALERT, (uint8_t *)&alert, in nct38xx_alert_is_active()
72 ret = i2c_burst_read_dt(mfd->i2c_dev, NCT38XX_REG_ALERT_MASK, in nct38xx_alert_is_active()
80 ret = i2c_burst_write_dt(mfd->i2c_dev, NCT38XX_REG_ALERT, in nct38xx_alert_is_active()
85 k_sem_give(mfd->lock); in nct38xx_alert_is_active()
108 struct nct38xx_mfd *mfd = &data->mfd[i]; in nct38xx_alert_worker() local
110 if (nct38xx_alert_is_active(mfd)) { in nct38xx_alert_worker()
131 data->mfd[i].lock = mfd_nct38xx_get_lock_reference(config->nct38xx_dev[i]); in nct38xx_alert_init()
[all …]
Dgpio_axp192.c25 const struct device *mfd; member
45 ret = mfd_axp192_gpio_read_port(config->mfd, &port_val); in gpio_axp192_port_get_raw()
63 ret = mfd_axp192_gpio_write_port(config->mfd, value, mask); in gpio_axp192_port_set_masked_raw()
102 ret = mfd_axp192_gpio_func_ctrl(config->mfd, dev, pin, func); in gpio_axp192_configure()
109 ret = mfd_axp192_gpio_write_port(config->mfd, BIT(pin), 0); in gpio_axp192_configure()
111 ret = mfd_axp192_gpio_write_port(config->mfd, BIT(pin), BIT(pin)); in gpio_axp192_configure()
118 ret = mfd_axp192_gpio_func_ctrl(config->mfd, dev, pin, func); in gpio_axp192_configure()
130 ret = mfd_axp192_gpio_pd_ctrl(config->mfd, pin, true); in gpio_axp192_configure()
132 ret = mfd_axp192_gpio_pd_ctrl(config->mfd, pin, false); in gpio_axp192_configure()
184 ret = mfd_axp192_gpio_func_get(config->mfd, pin, &func); in gpio_axp192_get_config()
[all …]
Dgpio_nct38xx.c24 const struct device *mfd; member
100 if (!device_is_ready(config->mfd)) { in nct38xx_gpio_init()
101 LOG_ERR("%s device not ready", config->mfd->name); in nct38xx_gpio_init()
105 data->lock = mfd_nct38xx_get_lock_reference(config->mfd); in nct38xx_gpio_init()
106 data->i2c_dev = mfd_nct38xx_get_i2c_dt_spec(config->mfd); in nct38xx_gpio_init()
120 .mfd = DEVICE_DT_GET(DT_INST_PARENT(inst)), \
Dgpio_nct38xx_port.c21 const struct device *mfd; member
501 if (!device_is_ready(config->mfd)) { in gpio_nct38xx_port_init()
502 LOG_ERR("%s is not ready", config->mfd->name); in gpio_nct38xx_port_init()
506 data->lock = mfd_nct38xx_get_lock_reference(config->mfd); in gpio_nct38xx_port_init()
507 data->i2c_dev = mfd_nct38xx_get_i2c_dt_spec(config->mfd); in gpio_nct38xx_port_init()
519 .mfd = DEVICE_DT_GET(DT_INST_GPARENT(inst)), \
Dgpio_ite_it8801.c23 const struct device *mfd; member
413 mfd_it8801_register_interrupt_callback(config->mfd, &data->it8801_gpio_callback); in gpio_it8801_pin_interrupt_configure()
437 if (!device_is_ready(config->mfd)) { in gpio_it8801_init()
438 LOG_ERR("(gpio)%s is not ready", config->mfd->name); in gpio_it8801_init()
449 .mfd = DEVICE_DT_GET(DT_INST_PARENT(inst)), \
DKconfig.axp19220 greater than the I2C controller init priority and the mfd driver
/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/
Dnpm1300_charger.c16 const struct device *mfd; member
281 ret = mfd_npm1300_reg_read(config->mfd, CHGR_BASE, CHGR_OFFSET_CHG_STAT, &data->status); in npm1300_charger_sample_fetch()
286 ret = mfd_npm1300_reg_read(config->mfd, CHGR_BASE, CHGR_OFFSET_ERR_REASON, &data->error); in npm1300_charger_sample_fetch()
292 ret = mfd_npm1300_reg_read_burst(config->mfd, ADC_BASE, ADC_OFFSET_RESULTS, &results, in npm1300_charger_sample_fetch()
305 ret = mfd_npm1300_reg_write2(config->mfd, ADC_BASE, ADC_OFFSET_TASK_TEMP, 1U, 1U); in npm1300_charger_sample_fetch()
311 ret = mfd_npm1300_reg_write(config->mfd, ADC_BASE, ADC_OFFSET_TASK_VBAT, 1U); in npm1300_charger_sample_fetch()
317 ret = mfd_npm1300_reg_read(config->mfd, VBUS_BASE, VBUS_OFFSET_STATUS, &data->vbus_stat); in npm1300_charger_sample_fetch()
335 config->mfd, CHGR_BASE, CHGR_OFFSET_NTC_TEMPS + (idx * 2U), in set_ntc_thresholds()
358 config->mfd, CHGR_BASE, CHGR_OFFSET_DIE_TEMPS + (idx * 2U), in set_dietemp_thresholds()
383 ret = mfd_npm1300_reg_read(config->mfd, CHGR_BASE, CHGR_OFFSET_EN_SET, &data); in npm1300_charger_attr_get()
[all …]
/Zephyr-latest/drivers/led/
Dled_npm1300.c29 const struct device *mfd; member
45 return mfd_npm1300_reg_write(config->mfd, NPM_LED_BASE, NPM_LED_OFFSET_SET + (led * 2U), in led_npm1300_on()
61 return mfd_npm1300_reg_write(config->mfd, NPM_LED_BASE, NPM_LED_OFFSET_CLR + (led * 2U), in led_npm1300_off()
74 if (!device_is_ready(config->mfd)) { in led_npm1300_init()
79 int ret = mfd_npm1300_reg_write(config->mfd, NPM_LED_BASE, in led_npm1300_init()
92 .mfd = DEVICE_DT_GET(DT_INST_PARENT(n)), \
/Zephyr-latest/drivers/regulator/
Dregulator_npm1300.c77 const struct device *mfd; member
83 const struct device *mfd; member
153 return mfd_npm1300_reg_write(config->mfd, BUCK_BASE, BUCK_OFFSET_VOUT_RET + (chan * 2U), in retention_set_voltage()
163 ret = mfd_npm1300_reg_read(config->mfd, BUCK_BASE, BUCK_OFFSET_SW_CTRL, &sel); in buck_get_voltage_index()
171 return mfd_npm1300_reg_read(config->mfd, BUCK_BASE, in buck_get_voltage_index()
176 return mfd_npm1300_reg_read(config->mfd, BUCK_BASE, BUCK_OFFSET_VOUT_STAT + chan, idx); in buck_get_voltage_index()
200 ret = mfd_npm1300_reg_write(config->mfd, BUCK_BASE, BUCK_OFFSET_VOUT_NORM + (chan * 2U), in buck_set_voltage()
209 return mfd_npm1300_reg_update(config->mfd, BUCK_BASE, BUCK_OFFSET_SW_CTRL, mask, mask); in buck_set_voltage()
224 return mfd_npm1300_reg_write(config->mfd, LDSW_BASE, LDSW_OFFSET_VOUTSEL + chan, idx); in ldo_set_voltage()
265 ret = mfd_npm1300_reg_read(config->mfd, LDSW_BASE, LDSW_OFFSET_VOUTSEL + chan, &idx); in ldo_get_voltage()
[all …]
Dregulator_axp192.c57 const struct device *mfd; member
185 ret = mfd_axp192_gpio_func_ctrl(config->mfd, dev, 0, AXP192_GPIO_FUNC_LDO); in axp192_enable()
209 ret = mfd_axp192_gpio_func_ctrl(config->mfd, dev, 0, AXP192_GPIO_FUNC_OUTPUT_LOW); in axp192_disable()
352 if (!device_is_ready(config->mfd)) { in regulator_axp192_init()
375 .mfd = DEVICE_DT_GET(DT_GPARENT(node_id)), \
/Zephyr-latest/drivers/watchdog/
Dwdt_npm1300.c32 const struct device *mfd; member
49 return mfd_npm1300_reg_write(config->mfd, TIME_BASE, TIME_OFFSET_START, 1U); in wdt_npm1300_setup()
58 ret = mfd_npm1300_reg_write(config->mfd, TIME_BASE, TIME_OFFSET_STOP, 1U); in wdt_npm1300_disable()
84 ret = mfd_npm1300_set_timer(config->mfd, timeout->window.max); in wdt_npm1300_install_timeout()
106 ret = mfd_npm1300_reg_write(config->mfd, TIME_BASE, TIME_OFFSET_MODE, mode); in wdt_npm1300_install_timeout()
124 return mfd_npm1300_reg_write(config->mfd, TIME_BASE, TIME_OFFSET_WDOG_KICK, 1U); in wdt_npm1300_feed()
139 if (!device_is_ready(config->mfd)) { in wdt_npm1300_init()
161 .mfd = DEVICE_DT_GET(DT_INST_PARENT(n)), \
Dwdt_npm2100.c26 const struct device *mfd; member
43 return mfd_npm2100_start_timer(config->mfd); in wdt_npm2100_setup()
95 ret = mfd_npm2100_set_timer(config->mfd, timeout->window.max, mode); in wdt_npm2100_install_timeout()
139 .mfd = DEVICE_DT_GET(DT_INST_PARENT(n)), \
/Zephyr-latest/dts/riscv/ite/
Dit8801-mfd-map.dtsi7 #include <ite/it8801-mfd-gpiocr.dtsi>
8 #include <zephyr/dt-bindings/mfd/mfd_it8801_altctrl.h>
13 it8801-mfd-map {
14 compatible = "ite,it8801-mfd-map";
Dit8801-mfd-gpiocr.dtsi8 it8801-mfd {
Dit8801-common-cfg.dtsi7 #include <ite/it8801-mfd-map.dtsi>
/Zephyr-latest/drivers/pwm/
Dpwm_ite_it8801.c37 const struct device *mfd; member
129 if (!device_is_ready(config->mfd)) { in pwm_it8801_init()
130 LOG_ERR("(pwm)%s is not ready", config->mfd->name); in pwm_it8801_init()
161 .mfd = DEVICE_DT_GET(DT_INST_PARENT(inst)), \
/Zephyr-latest/drivers/input/
Dinput_ite_it8801_kbd.c30 const struct device *mfd; member
150 if (!device_is_ready(config->mfd)) { in kbd_it8801_init()
151 LOG_ERR("(input)%s is not ready", config->mfd->name); in kbd_it8801_init()
191 mfd_it8801_register_interrupt_callback(config->mfd, &data->it8801_kbd_callback); in kbd_it8801_init()
211 .mfd = DEVICE_DT_GET(DT_INST_PARENT(inst)), \
/Zephyr-latest/tests/drivers/build_all/gpio/
Dit82xx2_evb.overlay11 compatible = "ite,it8801-mfd";
/Zephyr-latest/tests/drivers/build_all/pwm/boards/
Dit82xx2_evb.overlay17 compatible = "ite,it8801-mfd";
/Zephyr-latest/tests/drivers/build_all/input/
Dit82xx2_evb.overlay13 compatible = "ite,it8801-mfd";
/Zephyr-latest/include/zephyr/drivers/mfd/
Dmfd_ite_it8801.h130 void mfd_it8801_register_interrupt_callback(const struct device *mfd,
/Zephyr-latest/drivers/
DCMakeLists.txt64 add_subdirectory_ifdef(CONFIG_MFD mfd)

12