Home
last modified time | relevance | path

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

/Linux-v5.4/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 …]
DMakefile257 obj-$(CONFIG_MFD_STMFX) += stmfx.o
/Linux-v5.4/drivers/pinctrl/
Dpinctrl-stmfx.c82 struct stmfx *stmfx; member
111 ret = regmap_read(pctl->stmfx->map, reg, &value); in stmfx_gpio_get()
122 regmap_write_bits(pctl->stmfx->map, reg + get_reg(offset), in stmfx_gpio_set()
134 ret = regmap_read(pctl->stmfx->map, reg, &val); in stmfx_gpio_get_direction()
149 return regmap_write_bits(pctl->stmfx->map, reg, mask, 0); in stmfx_gpio_direction_input()
161 return regmap_write_bits(pctl->stmfx->map, reg, mask, mask); in stmfx_gpio_direction_output()
171 ret = regmap_read(pctl->stmfx->map, reg, &pupd); in stmfx_pinconf_get_pupd()
184 return regmap_write_bits(pctl->stmfx->map, reg, mask, pupd ? mask : 0); in stmfx_pinconf_set_pupd()
194 ret = regmap_read(pctl->stmfx->map, reg, &type); in stmfx_pinconf_get_type()
207 return regmap_write_bits(pctl->stmfx->map, reg, mask, type ? mask : 0); in stmfx_pinconf_set_type()
[all …]
DMakefile44 obj-$(CONFIG_PINCTRL_STMFX) += pinctrl-stmfx.o
/Linux-v5.4/include/linux/mfd/
Dstmfx.h108 struct stmfx { struct
121 int stmfx_function_enable(struct stmfx *stmfx, u32 func); argument
122 int stmfx_function_disable(struct stmfx *stmfx, u32 func);
/Linux-v5.4/Documentation/devicetree/bindings/mfd/
Dstmfx.txt9 - compatible: should be "st,stmfx-0300".
20 stmfx: stmfx@42 {
21 compatible = "st,stmfx-0300";
28 Please refer to ../pinctrl/pinctrl-stmfx.txt for STMFX GPIO expander function bindings.
/Linux-v5.4/Documentation/devicetree/bindings/pinctrl/
Dpinctrl-stmfx.txt4 Please refer to ../mfd/stmfx.txt for STMFX Core bindings.
7 - compatible: should be "st,stmfx-0300-pinctrl".
48 stmfx: stmfx@42 {
51 stmfx_pinctrl: stmfx-pin-controller {
52 compatible = "st,stmfx-0300-pinctrl";
/Linux-v5.4/arch/arm/boot/dts/
Dstm32746g-eval.dts163 stmfx: stmfx@42 { label
164 compatible = "st,stmfx-0300";
169 stmfx_pinctrl: stmfx-pin-controller {
170 compatible = "st,stmfx-0300-pinctrl";
Dstm32mp157c-ev1.dts207 stmfx: stmfx@42 { label
208 compatible = "st,stmfx-0300";
214 stmfx_pinctrl: stmfx-pin-controller {
215 compatible = "st,stmfx-0300-pinctrl";
/Linux-v5.4/include/
DKbuild341 header-test- += linux/mfd/stmfx.h