/Linux-v5.10/drivers/mfd/ |
D | madera-core.c | 3 * Core MFD support for Cirrus Logic Madera codecs 25 #include <linux/mfd/madera/core.h> 26 #include <linux/mfd/madera/registers.h> 28 #include "madera.h" 48 .name = "madera-ldo1", 60 { .name = "madera-pinctrl", }, 61 { .name = "madera-irq", }, 62 { .name = "madera-gpio", }, 64 .name = "madera-extcon", 84 { .name = "madera-pinctrl", }, [all …]
|
D | madera-i2c.c | 3 * I2C bus interface to Cirrus Logic Madera codecs 16 #include <linux/mfd/madera/core.h> 18 #include "madera.h" 23 struct madera *madera; in madera_i2c_probe() local 74 "Unknown Madera I2C device type %ld\n", type); in madera_i2c_probe() 87 madera = devm_kzalloc(&i2c->dev, sizeof(*madera), GFP_KERNEL); in madera_i2c_probe() 88 if (!madera) in madera_i2c_probe() 91 madera->regmap = devm_regmap_init_i2c(i2c, regmap_16bit_config); in madera_i2c_probe() 92 if (IS_ERR(madera->regmap)) { in madera_i2c_probe() 93 ret = PTR_ERR(madera->regmap); in madera_i2c_probe() [all …]
|
D | madera-spi.c | 3 * SPI bus interface to Cirrus Logic Madera codecs 16 #include <linux/mfd/madera/core.h> 18 #include "madera.h" 23 struct madera *madera; in madera_spi_probe() local 74 "Unknown Madera SPI device type %ld\n", type); in madera_spi_probe() 87 madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL); in madera_spi_probe() 88 if (!madera) in madera_spi_probe() 91 madera->regmap = devm_regmap_init_spi(spi, regmap_16bit_config); in madera_spi_probe() 92 if (IS_ERR(madera->regmap)) { in madera_spi_probe() 93 ret = PTR_ERR(madera->regmap); in madera_spi_probe() [all …]
|
D | madera.h | 3 * MFD internals for Cirrus Logic Madera codecs 14 struct madera; 19 int madera_dev_init(struct madera *madera); 20 int madera_dev_exit(struct madera *madera); 28 int cs47l15_patch(struct madera *madera); 34 int cs47l35_patch(struct madera *madera); 40 int cs47l85_patch(struct madera *madera); 46 int cs47l90_patch(struct madera *madera); 52 int cs47l92_patch(struct madera *madera);
|
D | Makefile | 78 madera-objs := madera-core.o 80 madera-objs += cs47l15-tables.o 83 madera-objs += cs47l35-tables.o 86 madera-objs += cs47l85-tables.o 89 madera-objs += cs47l90-tables.o 92 madera-objs += cs47l92-tables.o 94 obj-$(CONFIG_MFD_MADERA) += madera.o 95 obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o 96 obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
|
/Linux-v5.10/drivers/gpio/ |
D | gpio-madera.c | 3 * GPIO support for Cirrus Logic Madera codecs 13 #include <linux/mfd/madera/core.h> 14 #include <linux/mfd/madera/pdata.h> 15 #include <linux/mfd/madera/registers.h> 18 struct madera *madera; member 27 struct madera *madera = madera_gpio->madera; in madera_gpio_get_direction() local 32 ret = regmap_read(madera->regmap, MADERA_GPIO1_CTRL_2 + reg_offset, in madera_gpio_get_direction() 46 struct madera *madera = madera_gpio->madera; in madera_gpio_direction_in() local 49 return regmap_update_bits(madera->regmap, in madera_gpio_direction_in() 57 struct madera *madera = madera_gpio->madera; in madera_gpio_get() local [all …]
|
/Linux-v5.10/drivers/irqchip/ |
D | irq-madera.c | 3 * Interrupt support for Cirrus Logic Madera codecs 19 #include <linux/irqchip/irq-madera.h> 20 #include <linux/mfd/madera/core.h> 21 #include <linux/mfd/madera/pdata.h> 22 #include <linux/mfd/madera/registers.h> 30 /* Mappings are the same for all Madera codecs */ 90 .name = "madera IRQ", 103 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend() local 105 dev_dbg(madera->irq_dev, "Suspend, disabling IRQ\n"); in madera_suspend() 112 disable_irq(madera->irq); in madera_suspend() [all …]
|
/Linux-v5.10/sound/soc/codecs/ |
D | madera.c | 3 // Cirrus Logic Madera class codecs common support 18 #include <linux/irqchip/irq-madera.h> 19 #include <linux/mfd/madera/core.h> 20 #include <linux/mfd/madera/registers.h> 21 #include <linux/mfd/madera/pdata.h> 22 #include <sound/madera-pdata.h> 24 #include <dt-bindings/sound/madera.h> 26 #include "madera.h" 143 dev_err(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__) 145 dev_warn(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__) [all …]
|
D | cs47l15.c | 23 #include <linux/irqchip/irq-madera.h> 24 #include <linux/mfd/madera/core.h> 25 #include <linux/mfd/madera/registers.h> 27 #include "madera.h" 75 struct madera *madera = priv->madera; in cs47l15_adsp_power_ev() local 79 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_2, &freq); in cs47l15_adsp_power_ev() 81 dev_err(madera->dev, in cs47l15_adsp_power_ev() 1239 struct madera *madera = priv->madera; in cs47l15_open() local 1245 dev_err(madera->dev, in cs47l15_open() 1258 struct madera *madera = priv->madera; in cs47l15_adsp2_irq() local [all …]
|
D | madera.h | 3 * Cirrus Logic Madera class codecs common support 14 #include <sound/madera-pdata.h> 107 struct madera; 122 struct madera *madera; member 159 struct madera *madera; member 410 int madera_init_fll(struct madera *madera, int id, int base, 443 struct madera *madera = priv->madera; in madera_register_notifier() local 445 return blocking_notifier_chain_register(&madera->notifier, nb); in madera_register_notifier() 453 struct madera *madera = priv->madera; in madera_unregister_notifier() local 455 return blocking_notifier_chain_unregister(&madera->notifier, nb); in madera_unregister_notifier()
|
D | cs47l92.c | 23 #include <linux/irqchip/irq-madera.h> 24 #include <linux/mfd/madera/core.h> 25 #include <linux/mfd/madera/registers.h> 27 #include "madera.h" 61 struct madera *madera = priv->madera; in cs47l92_put_demux() local 82 ret = regmap_read(madera->regmap, MADERA_OUTPUT_ENABLES_1, &cur); in cs47l92_put_demux() 84 dev_warn(madera->dev, "Failed to read outputs: %d\n", ret); in cs47l92_put_demux() 87 ret = regmap_update_bits(madera->regmap, MADERA_OUTPUT_ENABLES_1, in cs47l92_put_demux() 90 dev_warn(madera->dev, "Failed to disable outputs: %d\n", ret); in cs47l92_put_demux() 94 ret = regmap_update_bits(madera->regmap, MADERA_OUTPUT_ENABLES_1, in cs47l92_put_demux() [all …]
|
D | cs47l35.c | 23 #include <linux/irqchip/irq-madera.h> 24 #include <linux/mfd/madera/core.h> 25 #include <linux/mfd/madera/registers.h> 27 #include "madera.h" 93 struct madera *madera = priv->madera; in cs47l35_adsp_power_ev() local 97 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_1, &freq); in cs47l35_adsp_power_ev() 99 dev_err(madera->dev, in cs47l35_adsp_power_ev() 1506 struct madera *madera = priv->madera; in cs47l35_open() local 1514 dev_err(madera->dev, in cs47l35_open() 1527 struct madera *madera = priv->madera; in cs47l35_adsp2_irq() local [all …]
|
D | cs47l85.c | 23 #include <linux/irqchip/irq-madera.h> 24 #include <linux/mfd/madera/core.h> 25 #include <linux/mfd/madera/registers.h> 27 #include "madera.h" 117 struct madera *madera = priv->madera; in cs47l85_adsp_power_ev() local 121 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_1, &freq); in cs47l85_adsp_power_ev() 123 dev_err(madera->dev, in cs47l85_adsp_power_ev() 2448 struct madera *madera = priv->madera; in cs47l85_open() local 2456 dev_err(madera->dev, in cs47l85_open() 2469 struct madera *madera = priv->madera; in cs47l85_adsp2_irq() local [all …]
|
D | cs47l90.c | 23 #include <linux/irqchip/irq-madera.h> 24 #include <linux/mfd/madera/core.h> 25 #include <linux/mfd/madera/registers.h> 27 #include "madera.h" 117 struct madera *madera = priv->madera; in cs47l90_adsp_power_ev() local 121 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_2, &freq); in cs47l90_adsp_power_ev() 123 dev_err(madera->dev, in cs47l90_adsp_power_ev() 2367 struct madera *madera = priv->madera; in cs47l90_open() local 2375 dev_err(madera->dev, in cs47l90_open() 2388 struct madera *madera = priv->madera; in cs47l90_adsp2_irq() local [all …]
|
/Linux-v5.10/include/linux/irqchip/ |
D | irq-madera.h | 3 * Interrupt support for Cirrus Logic Madera codecs 13 #include <linux/mfd/madera/core.h> 94 static inline int madera_get_irq_mapping(struct madera *madera, int irq) in madera_get_irq_mapping() argument 96 if (!madera->irq_dev) in madera_get_irq_mapping() 99 return regmap_irq_get_virq(madera->irq_data, irq); in madera_get_irq_mapping() 102 static inline int madera_request_irq(struct madera *madera, int irq, in madera_request_irq() argument 106 irq = madera_get_irq_mapping(madera, irq); in madera_request_irq() 114 static inline void madera_free_irq(struct madera *madera, int irq, void *data) in madera_free_irq() argument 116 irq = madera_get_irq_mapping(madera, irq); in madera_free_irq() 123 static inline int madera_set_irq_wake(struct madera *madera, int irq, int on) in madera_set_irq_wake() argument [all …]
|
/Linux-v5.10/drivers/pinctrl/cirrus/ |
D | Makefile | 5 pinctrl-madera-objs := pinctrl-madera-core.o 7 pinctrl-madera-objs += pinctrl-cs47l15.o 10 pinctrl-madera-objs += pinctrl-cs47l35.o 13 pinctrl-madera-objs += pinctrl-cs47l85.o 16 pinctrl-madera-objs += pinctrl-cs47l90.o 19 pinctrl-madera-objs += pinctrl-cs47l92.o 22 obj-$(CONFIG_PINCTRL_MADERA) += pinctrl-madera.o
|
D | pinctrl-madera-core.c | 3 * Pinctrl for Cirrus Logic Madera codecs 19 #include <linux/mfd/madera/core.h> 20 #include <linux/mfd/madera/registers.h> 24 #include "pinctrl-madera.h" 522 ret = regmap_read(priv->madera->regmap, reg, &conf[0]); in madera_pin_dbg_show() 526 ret = regmap_read(priv->madera->regmap, reg + 1, &conf[1]); in madera_pin_dbg_show() 612 struct madera *madera = priv->madera; in madera_mux_set_mux() local 641 ret = regmap_update_bits(madera->regmap, reg, in madera_mux_set_mux() 659 ret = regmap_update_bits(madera->regmap, in madera_mux_set_mux() 677 struct madera *madera = priv->madera; in madera_gpio_set_direction() local [all …]
|
D | pinctrl-madera.h | 3 * Pinctrl for Cirrus Logic Madera codecs 25 struct madera *madera; member
|
/Linux-v5.10/drivers/regulator/ |
D | arizona-micsupp.c | 27 #include <linux/mfd/madera/core.h> 28 #include <linux/mfd/madera/pdata.h> 29 #include <linux/mfd/madera/registers.h> 346 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_micsupp_probe() local 353 micsupp->regmap = madera->regmap; in madera_micsupp_probe() 354 micsupp->dapm = &madera->dapm; in madera_micsupp_probe() 355 micsupp->dev = madera->dev; in madera_micsupp_probe() 359 &madera->pdata.micvdd); in madera_micsupp_probe() 372 .name = "madera-micsupp", 400 MODULE_ALIAS("platform:madera-micsupp");
|
D | arizona-ldo1.c | 28 #include <linux/mfd/madera/core.h> 29 #include <linux/mfd/madera/pdata.h> 30 #include <linux/mfd/madera/registers.h> 354 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_ldo1_probe() local 363 ldo1->regmap = madera->regmap; in madera_ldo1_probe() 368 &madera->pdata.ldo1, in madera_ldo1_probe() 373 madera->internal_dcvdd = !external_dcvdd; in madera_ldo1_probe() 390 .name = "madera-ldo1", 418 MODULE_ALIAS("platform:madera-ldo1");
|
/Linux-v5.10/Documentation/devicetree/bindings/mfd/ |
D | cirrus,madera.yaml | 4 $id: http://devicetree.org/schemas/mfd/cirrus,madera.yaml# 7 title: Cirrus Logic Madera class audio CODECs Multi-Functional Device 18 bindings/pinctrl/cirrus,madera.yaml 20 bindings/sound/cirrus,madera.yaml 23 - $ref: /schemas/pinctrl/cirrus,madera.yaml# 25 - $ref: /schemas/sound/cirrus,madera.yaml# 234 #include <dt-bindings/sound/madera.h>
|
/Linux-v5.10/include/linux/mfd/madera/ |
D | core.h | 3 * MFD internals for Cirrus Logic Madera codecs 14 #include <linux/mfd/madera/pdata.h> 148 * struct madera - internal data shared by the set of Madera drivers 150 * This should not be used by anything except child drivers of the Madera MFD 175 struct madera { struct
|
D | pdata.h | 3 * Platform data for Cirrus Logic Madera codecs 15 #include <sound/madera-pdata.h> 26 * struct madera_pdata - Configuration data for Madera devices
|
/Linux-v5.10/Documentation/devicetree/bindings/regulator/ |
D | wlf,arizona.yaml | 7 title: Cirrus Logic/Wolfson Microelectronics Arizona/Madera class audio SoCs 18 and for Cirrus Logic Madera codecs ../mfd/madera.txt
|
/Linux-v5.10/Documentation/devicetree/bindings/sound/ |
D | cirrus,madera.yaml | 4 $id: http://devicetree.org/schemas/sound/cirrus,madera.yaml# 7 title: Cirrus Logic Madera class audio CODECs 17 Documentation/devicetree/bindings/mfd/cirrus,madera.yaml 21 include/dt-bindings/sound/madera.h
|