/linux-6.12.1/drivers/mfd/ |
D | cs42l43.c | 529 static int cs42l43_soft_reset(struct cs42l43 *cs42l43) in cs42l43_soft_reset() argument 535 reinit_completion(&cs42l43->device_detach); in cs42l43_soft_reset() 541 regcache_cache_only(cs42l43->regmap, true); in cs42l43_soft_reset() 542 regmap_multi_reg_write_bypassed(cs42l43->regmap, reset, ARRAY_SIZE(reset)); in cs42l43_soft_reset() 546 if (cs42l43->sdw) { in cs42l43_soft_reset() 550 time = wait_for_completion_timeout(&cs42l43->device_detach, timeout); in cs42l43_soft_reset() 552 dev_err(cs42l43->dev, "Timed out waiting for device detach\n"); in cs42l43_soft_reset() 564 static int cs42l43_wait_for_attach(struct cs42l43 *cs42l43) in cs42l43_wait_for_attach() argument 566 if (!cs42l43->attached) { in cs42l43_wait_for_attach() 570 time = wait_for_completion_timeout(&cs42l43->device_attach, timeout); in cs42l43_wait_for_attach() [all …]
|
D | cs42l43-sdw.c | 95 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_update_status() local 99 dev_dbg(cs42l43->dev, "Device attach\n"); in cs42l43_sdw_update_status() 104 cs42l43->attached = true; in cs42l43_sdw_update_status() 106 complete(&cs42l43->device_attach); in cs42l43_sdw_update_status() 109 dev_dbg(cs42l43->dev, "Device detach\n"); in cs42l43_sdw_update_status() 111 cs42l43->attached = false; in cs42l43_sdw_update_status() 113 reinit_completion(&cs42l43->device_attach); in cs42l43_sdw_update_status() 114 complete(&cs42l43->device_detach); in cs42l43_sdw_update_status() 143 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_bus_config() local 146 mutex_lock(&cs42l43->pll_lock); in cs42l43_sdw_bus_config() [all …]
|
D | cs42l43-i2c.c | 40 struct cs42l43 *cs42l43; in cs42l43_i2c_probe() local 42 cs42l43 = devm_kzalloc(&i2c->dev, sizeof(*cs42l43), GFP_KERNEL); in cs42l43_i2c_probe() 43 if (!cs42l43) in cs42l43_i2c_probe() 46 cs42l43->dev = &i2c->dev; in cs42l43_i2c_probe() 47 cs42l43->irq = i2c->irq; in cs42l43_i2c_probe() 49 cs42l43->attached = true; in cs42l43_i2c_probe() 51 cs42l43->regmap = devm_regmap_init_i2c(i2c, &cs42l43_i2c_regmap); in cs42l43_i2c_probe() 52 if (IS_ERR(cs42l43->regmap)) in cs42l43_i2c_probe() 53 return dev_err_probe(cs42l43->dev, PTR_ERR(cs42l43->regmap), in cs42l43_i2c_probe() 56 return cs42l43_dev_probe(cs42l43); in cs42l43_i2c_probe() [all …]
|
D | cs42l43.h | 18 struct cs42l43; 27 int cs42l43_dev_probe(struct cs42l43 *cs42l43); 28 void cs42l43_dev_remove(struct cs42l43 *cs42l43);
|
D | Makefile | 17 obj-$(CONFIG_MFD_CS42L43) += cs42l43.o 18 obj-$(CONFIG_MFD_CS42L43_I2C) += cs42l43-i2c.o 19 obj-$(CONFIG_MFD_CS42L43_SDW) += cs42l43-sdw.o
|
/linux-6.12.1/sound/soc/codecs/ |
D | cs42l43-jack.c | 50 struct cs42l43 *cs42l43 = priv->core; in cs42l43_find_index() local 53 ret = device_property_read_u32(cs42l43->dev, prop, &defval); in cs42l43_find_index() 74 struct cs42l43 *cs42l43 = priv->core; in cs42l43_set_jack() local 96 ret = device_property_count_u32(cs42l43->dev, "cirrus,buttons-ohms"); in cs42l43_set_jack() 110 ret = device_property_read_u32_array(cs42l43->dev, "cirrus,buttons-ohms", in cs42l43_set_jack() 131 priv->bias_low = device_property_read_bool(cs42l43->dev, "cirrus,bias-low"); in cs42l43_set_jack() 150 if (!device_property_read_bool(cs42l43->dev, "cirrus,button-automute")) in cs42l43_set_jack() 153 ret = device_property_read_u32(cs42l43->dev, "cirrus,tip-debounce-ms", in cs42l43_set_jack() 161 if (device_property_read_bool(cs42l43->dev, "cirrus,tip-invert")) in cs42l43_set_jack() 164 if (device_property_read_bool(cs42l43->dev, "cirrus,tip-disable-pullup")) in cs42l43_set_jack() [all …]
|
D | cs42l43.c | 175 struct cs42l43 *cs42l43 = priv->core; in cs42l43_hp_ilimit_work() local 195 regmap_update_bits(cs42l43->regmap, CS42L43_BLOCK_EN8, in cs42l43_hp_ilimit_work() 209 regmap_update_bits(cs42l43->regmap, CS42L43_BLOCK_EN8, in cs42l43_hp_ilimit_work() 310 struct cs42l43 *cs42l43 = priv->core; in cs42l43_startup() local 311 int provider = !dai->id || !!regmap_test_bits(cs42l43->regmap, in cs42l43_startup() 354 struct cs42l43 *cs42l43 = priv->core; in cs42l43_set_sample_rate() local 364 regmap_update_bits(cs42l43->regmap, CS42L43_SAMPLE_RATE1, in cs42l43_set_sample_rate() 375 struct cs42l43 *cs42l43 = priv->core; in cs42l43_asp_hw_params() local 376 int dsp_mode = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CTRL, in cs42l43_asp_hw_params() 378 int provider = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG2, in cs42l43_asp_hw_params() [all …]
|
D | cs42l43.h | 41 struct cs42l43; 45 struct cs42l43 *core;
|
D | Makefile | 86 snd-soc-cs42l43-y := cs42l43.o cs42l43-jack.o 87 snd-soc-cs42l43-sdw-y := cs42l43-sdw.o 493 obj-$(CONFIG_SND_SOC_CS42L43) += snd-soc-cs42l43.o 494 obj-$(CONFIG_SND_SOC_CS42L43_SDW) += snd-soc-cs42l43-sdw.o
|
/linux-6.12.1/drivers/pinctrl/cirrus/ |
D | pinctrl-cs42l43.c | 532 struct cs42l43 *cs42l43 = dev_get_drvdata(pdev->dev.parent); in cs42l43_pin_probe() local 535 struct fwnode_handle *fwnode = dev_fwnode(cs42l43->dev); in cs42l43_pin_probe() 543 priv->regmap = cs42l43->regmap; in cs42l43_pin_probe() 545 priv->shutters_locked = cs42l43->hw_lock; in cs42l43_pin_probe()
|
D | Makefile | 3 obj-$(CONFIG_PINCTRL_CS42L43) += pinctrl-cs42l43.o
|
/linux-6.12.1/drivers/spi/ |
D | spi-cs42l43.c | 304 struct cs42l43 *cs42l43 = dev_get_drvdata(pdev->dev.parent); in cs42l43_spi_probe() local 306 struct fwnode_handle *fwnode = dev_fwnode(cs42l43->dev); in cs42l43_spi_probe() 322 priv->regmap = cs42l43->regmap; in cs42l43_spi_probe()
|
D | Makefile | 45 obj-$(CONFIG_SPI_CS42L43) += spi-cs42l43.o
|
/linux-6.12.1/include/linux/mfd/ |
D | cs42l43.h | 73 struct cs42l43 { struct
|
/linux-6.12.1/ |
D | MAINTAINERS | 5407 F: drivers/mfd/cs42l43* 5408 F: drivers/pinctrl/cirrus/pinctrl-cs42l43* 5409 F: drivers/spi/spi-cs42l43* 5411 F: include/linux/mfd/cs42l43*
|