/linux/drivers/mfd/ |
H A D | arizona-core.c | 3 * Arizona core driver 26 #include <linux/mfd/arizona/core.h> 27 #include <linux/mfd/arizona/registers.h> 29 #include "arizona.h" 36 int arizona_clk32k_enable(struct arizona *arizona) in arizona_clk32k_enable() argument 40 mutex_lock(&arizona->clk_lock); in arizona_clk32k_enable() 42 arizona->clk32k_ref++; in arizona_clk32k_enable() 44 if (arizona->clk32k_ref == 1) { in arizona_clk32k_enable() 45 switch (arizona->pdata.clk32k_src) { in arizona_clk32k_enable() 47 ret = pm_runtime_resume_and_get(arizona->dev); in arizona_clk32k_enable() [all …]
|
H A D | arizona-irq.c | 3 * Arizona interrupt support 21 #include <linux/mfd/arizona/core.h> 22 #include <linux/mfd/arizona/registers.h> 24 #include "arizona.h" 29 static int arizona_map_irq(struct arizona *arizona, int irq) in arizona_map_irq() argument 33 if (arizona->aod_irq_chip) { in arizona_map_irq() 34 ret = regmap_irq_get_virq(arizona->aod_irq_chip, irq); in arizona_map_irq() 39 return regmap_irq_get_virq(arizona->irq_chip, irq); in arizona_map_irq() 42 int arizona_request_irq(struct arizona *arizona, int irq, char *name, in arizona_request_irq() argument 45 irq = arizona_map_irq(arizona, irq); in arizona_request_irq() [all …]
|
H A D | arizona-spi.c | 3 * arizona-spi.c -- Arizona SPI bus interface 23 #include <linux/mfd/arizona/core.h> 25 #include "arizona.h" 39 * not provide mappings for the GPIO-s coming from the Arizona codec itself. 42 { "arizona", 2, "wlf,spkvdd-ena", 0, GPIO_ACTIVE_HIGH }, 43 { "arizona", 4, "wlf,micd-pol", 0, GPIO_ACTIVE_LOW }, 52 static int arizona_spi_acpi_windows_probe(struct arizona *arizona) in arizona_spi_acpi_windows_probe() argument 59 devm_acpi_dev_add_driver_gpios(arizona->dev, arizona_acpi_gpios); in arizona_spi_acpi_windows_probe() 62 lookup = devm_kzalloc(arizona->dev, in arizona_spi_acpi_windows_probe() 68 lookup->dev_id = dev_name(arizona->dev); in arizona_spi_acpi_windows_probe() [all …]
|
H A D | arizona-i2c.c | 3 * Arizona-i2c.c -- Arizona I2C bus interface 19 #include <linux/mfd/arizona/core.h> 21 #include "arizona.h" 25 struct arizona *arizona; in arizona_i2c_probe() local 61 arizona = devm_kzalloc(&i2c->dev, sizeof(*arizona), GFP_KERNEL); in arizona_i2c_probe() 62 if (arizona == NULL) in arizona_i2c_probe() 65 arizona->regmap = devm_regmap_init_i2c(i2c, regmap_config); in arizona_i2c_probe() 66 if (IS_ERR(arizona->regmap)) { in arizona_i2c_probe() 67 ret = PTR_ERR(arizona->regmap); in arizona_i2c_probe() 73 arizona->type = type; in arizona_i2c_probe() [all …]
|
H A D | arizona.h | 46 int arizona_dev_init(struct arizona *arizona); 47 int arizona_dev_exit(struct arizona *arizona); 48 int arizona_irq_init(struct arizona *arizona); 49 int arizona_irq_exit(struct arizona *arizona);
|
H A D | Makefile | 38 arizona-objs := arizona-core.o arizona-irq.o 39 obj-$(CONFIG_MFD_ARIZONA) += arizona.o 40 obj-$(CONFIG_MFD_ARIZONA_I2C) += arizona-i2c.o 41 obj-$(CONFIG_MFD_ARIZONA_SPI) += arizona-spi.o 43 arizona-objs += wm5102-tables.o 46 arizona-objs += wm5110-tables.o 49 arizona-objs += wm8997-tables.o 52 arizona-objs += wm8998-tables.o 55 arizona-objs += cs47l24-tables.o
|
/linux/sound/soc/codecs/ |
H A D | arizona-jack.c | 3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices 23 #include <linux/mfd/arizona/core.h> 24 #include <linux/mfd/arizona/pdata.h> 25 #include <linux/mfd/arizona/registers.h> 26 #include <dt-bindings/mfd/arizona.h> 28 #include "arizona.h" 100 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp() local 105 switch (arizona->type) { in arizona_extcon_hp_clamp() 122 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp() 127 dev_warn(arizona->dev, "Failed to set TST_CAP_SEL: %d\n", ret); in arizona_extcon_hp_clamp() [all …]
|
H A D | arizona.c | 3 * arizona.c - Wolfson Arizona class device shared support 19 #include <linux/mfd/arizona/core.h> 20 #include <linux/mfd/arizona/registers.h> 22 #include "arizona.h" 67 dev_err(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__) 69 dev_warn(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__) 71 dev_dbg(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__) 85 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in arizona_spk_ev() local 93 dev_crit(arizona->dev, in arizona_spk_ev() 98 regmap_update_bits_async(arizona->regmap, in arizona_spk_ev() [all …]
|
H A D | arizona.h | 3 * arizona.h - Wolfson Arizona class device shared support 15 #include <linux/mfd/arizona/core.h> 78 struct arizona *arizona; member 95 /* Variables used by arizona-jack.c code */ 320 struct arizona *arizona; member 341 int arizona_init_fll(struct arizona *arizona, int id, int base, 352 int arizona_init_common(struct arizona *arizona); 353 int arizona_init_vol_limit(struct arizona *arizona); 355 int arizona_init_spk_irqs(struct arizona *arizona); 356 int arizona_free_spk_irqs(struct arizona *arizona); [all …]
|
H A D | cs47l24.c | 26 #include <linux/mfd/arizona/core.h> 27 #include <linux/mfd/arizona/registers.h> 29 #include "arizona.h" 63 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in cs47l24_adsp_power_ev() local 67 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in cs47l24_adsp_power_ev() 1080 struct arizona *arizona = priv->core.arizona; in cs47l24_open() local 1088 dev_err(arizona->dev, in cs47l24_open() 1100 struct arizona *arizona = priv->core.arizona; in cs47l24_adsp2_irq() local 1111 arizona_call_notifiers(arizona, in cs47l24_adsp2_irq() 1118 dev_err(arizona->dev, "Spurious compressed data IRQ\n"); in cs47l24_adsp2_irq() [all …]
|
H A D | wm5110.c | 26 #include <linux/mfd/arizona/core.h> 27 #include <linux/mfd/arizona/registers.h> 29 #include "arizona.h" 162 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5110_sysclk_ev() local 163 struct regmap *regmap = arizona->regmap; in wm5110_sysclk_ev() 167 switch (arizona->rev) { in wm5110_sysclk_ev() 199 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5110_adsp_power_ev() local 203 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in wm5110_adsp_power_ev() 292 struct arizona *arizona = priv->arizona; in wm5110_hp_pre_enable() local 322 return regmap_multi_reg_write(arizona->regmap, wseq, nregs); in wm5110_hp_pre_enable() [all …]
|
H A D | wm5102.c | 26 #include <linux/mfd/arizona/core.h> 27 #include <linux/mfd/arizona/registers.h> 30 #include "arizona.h" 584 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_sysclk_ev() local 585 struct regmap *regmap = arizona->regmap; in wm5102_sysclk_ev() 589 switch (arizona->rev) { in wm5102_sysclk_ev() 623 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_adsp_power_ev() local 629 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in wm5102_adsp_power_ev() 668 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_coeff_get() local 670 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_get() [all …]
|
H A D | wm8997.c | 26 #include <linux/mfd/arizona/core.h> 27 #include <linux/mfd/arizona/registers.h> 29 #include "arizona.h" 85 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm8997_sysclk_ev() local 86 struct regmap *regmap = arizona->regmap; in wm8997_sysclk_ev() 90 switch (arizona->rev) { in wm8997_sysclk_ev() 1060 struct arizona *arizona = priv->core.arizona; in wm8997_component_probe() local 1063 snd_soc_component_init_regmap(component, arizona->regmap); in wm8997_component_probe() 1071 priv->core.arizona->dapm = dapm; in wm8997_component_probe() 1080 priv->core.arizona->dapm = NULL; in wm8997_component_remove() [all …]
|
H A D | wm8998.c | 26 #include <linux/mfd/arizona/core.h> 27 #include <linux/mfd/arizona/registers.h> 29 #include "arizona.h" 107 struct arizona *arizona = wm8998->core.arizona; in wm8998_inmux_put() local 128 inmode = arizona->pdata.inmode[mode_index]; in wm8998_inmux_put() 150 dev_err(arizona->dev, "Failed to update demux power state: %d\n", ret); in wm8998_inmux_put() 1283 struct arizona *arizona = priv->core.arizona; in wm8998_component_probe() local 1286 arizona->dapm = dapm; in wm8998_component_probe() 1287 snd_soc_component_init_regmap(component, arizona->regmap); in wm8998_component_probe() 1304 priv->core.arizona->dapm = NULL; in wm8998_component_remove() [all …]
|
/linux/drivers/input/misc/ |
H A D | arizona-haptics.c | 3 * Arizona haptics driver 18 #include <linux/mfd/arizona/core.h> 19 #include <linux/mfd/arizona/pdata.h> 20 #include <linux/mfd/arizona/registers.h> 23 struct arizona *arizona; member 36 struct arizona *arizona = haptics->arizona; in arizona_haptics_work() local 38 snd_soc_dapm_to_component(arizona->dapm); in arizona_haptics_work() 41 if (!haptics->arizona->dapm) { in arizona_haptics_work() 42 dev_err(arizona->dev, "No DAPM context\n"); in arizona_haptics_work() 47 ret = regmap_update_bits(arizona->regmap, in arizona_haptics_work() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-arizona.c | 3 * gpiolib support for Wolfson Arizona class devices 17 #include <linux/mfd/arizona/core.h> 18 #include <linux/mfd/arizona/pdata.h> 19 #include <linux/mfd/arizona/registers.h> 22 struct arizona *arizona; member 29 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_in() local 34 ret = regmap_update_bits_check(arizona->regmap, in arizona_gpio_direction_in() 52 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_get() local 57 ret = regmap_read(arizona->regmap, reg, &val); in arizona_gpio_get() 71 ret = regcache_drop_region(arizona->regmap, reg, reg); in arizona_gpio_get() [all …]
|
/linux/include/linux/mfd/arizona/ |
H A D | core.h | 3 * Arizona MFD internals 18 #include <linux/mfd/arizona/pdata.h> 119 struct arizona { struct 162 static inline int arizona_call_notifiers(struct arizona *arizona, in arizona_call_notifiers() argument 166 return blocking_notifier_call_chain(&arizona->notifier, event, data); in arizona_call_notifiers() 169 int arizona_clk32k_enable(struct arizona *arizona); 170 int arizona_clk32k_disable(struct arizona *arizona); 172 int arizona_request_irq(struct arizona *arizona, int irq, char *name, 174 void arizona_free_irq(struct arizona *arizona, int irq, void *data); 175 int arizona_set_irq_wake(struct arizona *arizona, int irq, int on); [all …]
|
H A D | pdata.h | 3 * Platform data for Arizona devices 11 #include <dt-bindings/mfd/arizona.h> 12 #include <linux/regulator/arizona-ldo1.h> 13 #include <linux/regulator/arizona-micsupp.h>
|
/linux/drivers/regulator/ |
H A D | arizona-micsupp.c | 3 // arizona-micsupp.c -- Microphone supply for Arizona devices 23 #include <linux/mfd/arizona/core.h> 24 #include <linux/mfd/arizona/pdata.h> 25 #include <linux/mfd/arizona/registers.h> 31 #include <linux/regulator/arizona-micsupp.h> 309 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_micsupp_probe() local 317 micsupp->regmap = arizona->regmap; in arizona_micsupp_probe() 318 micsupp->dapm = &arizona->dapm; in arizona_micsupp_probe() 319 micsupp->dev = arizona->dev; in arizona_micsupp_probe() 328 switch (arizona->type) { in arizona_micsupp_probe() [all …]
|
H A D | arizona-ldo1.c | 3 // arizona-ldo1.c -- LDO1 supply for Arizona devices 22 #include <linux/regulator/arizona-ldo1.h> 24 #include <linux/mfd/arizona/core.h> 25 #include <linux/mfd/arizona/pdata.h> 26 #include <linux/mfd/arizona/registers.h> 297 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_ldo1_probe() local 307 ldo1->regmap = arizona->regmap; in arizona_ldo1_probe() 314 switch (arizona->type) { in arizona_ldo1_probe() 334 &arizona->pdata.ldo1, in arizona_ldo1_probe() 337 arizona->external_dcvdd = external_dcvdd; in arizona_ldo1_probe() [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | wlf,arizona.yaml | 4 $id: http://devicetree.org/schemas/mfd/wlf,arizona.yaml# 7 title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs 18 - $ref: /schemas/sound/wlf,arizona.yaml# 19 - $ref: /schemas/regulator/wlf,arizona.yaml# 20 - $ref: /schemas/extcon/wlf,arizona.yaml# 154 appropriate values can found in dt-bindings/mfd/arizona.h. If 219 #include <dt-bindings/mfd/arizona.h>
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | wlf,arizona.yaml | 4 $id: http://devicetree.org/schemas/regulator/wlf,arizona.yaml# 7 title: Cirrus Logic/Wolfson Microelectronics Arizona/Madera class audio SoCs 17 document. For Wolfson Microelectronic Arizona codecs ../mfd/wlf,arizona.yaml
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | wlf,arizona.yaml | 4 $id: http://devicetree.org/schemas/sound/wlf,arizona.yaml# 7 title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs 17 document ../mfd/arizona.yaml 66 are provided in dt-bindings/mfd/arizona.h. If present, the number
|
/linux/Documentation/devicetree/bindings/extcon/ |
H A D | wlf,arizona.yaml | 4 $id: http://devicetree.org/schemas/extcon/wlf,arizona.yaml# 7 title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs 17 document ../mfd/arizona.yaml
|
/linux/include/linux/mfd/madera/ |
H A D | pdata.h | 12 #include <linux/regulator/arizona-ldo1.h> 13 #include <linux/regulator/arizona-micsupp.h>
|