Home
last modified time | relevance | path

Searched refs:stmfx (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/mfd/
Dstmfx.c116 int stmfx_function_enable(struct stmfx *stmfx, u32 func) in stmfx_function_enable() argument
122 ret = regmap_read(stmfx->map, STMFX_REG_SYS_CTRL, &sys_ctrl); in stmfx_function_enable()
134 dev_err(stmfx->dev, "ALTGPIO function already enabled\n"); in stmfx_function_enable()
141 dev_err(stmfx->dev, "TS in use, aGPIO[3:0] unavailable\n"); in stmfx_function_enable()
148 dev_err(stmfx->dev, "IDD in use, aGPIO[7:4] unavailable\n"); in stmfx_function_enable()
154 return regmap_update_bits(stmfx->map, STMFX_REG_SYS_CTRL, mask, mask); in stmfx_function_enable()
158 int stmfx_function_disable(struct stmfx *stmfx, u32 func) in stmfx_function_disable() argument
162 return regmap_update_bits(stmfx->map, STMFX_REG_SYS_CTRL, mask, 0); in stmfx_function_disable()
168 struct stmfx *stmfx = irq_data_get_irq_chip_data(data); in stmfx_irq_bus_lock() local
170 mutex_lock(&stmfx->lock); in stmfx_irq_bus_lock()
[all …]
DMakefile274 obj-$(CONFIG_MFD_STMFX) += stmfx.o
/linux-6.12.1/drivers/pinctrl/
Dpinctrl-stmfx.c85 struct stmfx *stmfx; member
113 ret = regmap_read(pctl->stmfx->map, reg, &value); in stmfx_gpio_get()
124 regmap_write_bits(pctl->stmfx->map, reg + get_reg(offset), in stmfx_gpio_set()
136 ret = regmap_read(pctl->stmfx->map, reg, &val); in stmfx_gpio_get_direction()
155 return regmap_write_bits(pctl->stmfx->map, reg, mask, 0); in stmfx_gpio_direction_input()
167 return regmap_write_bits(pctl->stmfx->map, reg, mask, mask); in stmfx_gpio_direction_output()
177 ret = regmap_read(pctl->stmfx->map, reg, &pupd); in stmfx_pinconf_get_pupd()
190 return regmap_write_bits(pctl->stmfx->map, reg, mask, pupd ? mask : 0); in stmfx_pinconf_set_pupd()
200 ret = regmap_read(pctl->stmfx->map, reg, &type); in stmfx_pinconf_get_type()
213 return regmap_write_bits(pctl->stmfx->map, reg, mask, type ? mask : 0); in stmfx_pinconf_set_type()
[all …]
DMakefile53 obj-$(CONFIG_PINCTRL_STMFX) += pinctrl-stmfx.o
/linux-6.12.1/include/linux/mfd/
Dstmfx.h108 struct stmfx { struct
120 int stmfx_function_enable(struct stmfx *stmfx, u32 func); argument
121 int stmfx_function_disable(struct stmfx *stmfx, u32 func);
/linux-6.12.1/arch/arm/boot/dts/st/
Dstm32746g-eval.dts160 stmfx: stmfx@42 { label
161 compatible = "st,stmfx-0300";
167 compatible = "st,stmfx-0300-pinctrl";
Dstm32mp157c-ev1.dts201 stmfx: stmfx@42 { label
202 compatible = "st,stmfx-0300";
209 compatible = "st,stmfx-0300-pinctrl";