/linux-6.12.1/drivers/mfd/ |
D | madera-core.c | 3 * Core MFD support for Cirrus Logic Madera codecs 24 #include <linux/mfd/madera/core.h> 25 #include <linux/mfd/madera/registers.h> 27 #include "madera.h" 50 .name = "madera-ldo1", 62 { .name = "madera-pinctrl", }, 63 { .name = "madera-irq", }, 64 { .name = "madera-gpio", }, 66 .name = "madera-extcon", 86 { .name = "madera-pinctrl", }, [all …]
|
D | madera-spi.c | 3 * SPI bus interface to Cirrus Logic Madera codecs 15 #include <linux/mfd/madera/core.h> 17 #include "madera.h" 21 struct madera *madera; in madera_spi_probe() local 66 "Unknown Madera SPI device type %ld\n", type); in madera_spi_probe() 79 madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL); in madera_spi_probe() 80 if (!madera) in madera_spi_probe() 83 madera->regmap = devm_regmap_init_spi(spi, regmap_16bit_config); in madera_spi_probe() 84 if (IS_ERR(madera->regmap)) { in madera_spi_probe() 85 ret = PTR_ERR(madera->regmap); in madera_spi_probe() [all …]
|
D | madera-i2c.c | 3 * I2C bus interface to Cirrus Logic Madera codecs 15 #include <linux/mfd/madera/core.h> 17 #include "madera.h" 21 struct madera *madera; in madera_i2c_probe() local 66 "Unknown Madera I2C device type %ld\n", type); in madera_i2c_probe() 79 madera = devm_kzalloc(&i2c->dev, sizeof(*madera), GFP_KERNEL); in madera_i2c_probe() 80 if (!madera) in madera_i2c_probe() 83 madera->regmap = devm_regmap_init_i2c(i2c, regmap_16bit_config); in madera_i2c_probe() 84 if (IS_ERR(madera->regmap)) { in madera_i2c_probe() 85 ret = PTR_ERR(madera->regmap); in madera_i2c_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 | 72 madera-objs := madera-core.o 74 madera-objs += cs47l15-tables.o 77 madera-objs += cs47l35-tables.o 80 madera-objs += cs47l85-tables.o 83 madera-objs += cs47l90-tables.o 86 madera-objs += cs47l92-tables.o 88 obj-$(CONFIG_MFD_MADERA) += madera.o 89 obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o 90 obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
|
/linux-6.12.1/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-6.12.1/drivers/irqchip/ |
D | irq-madera.c | 3 * Interrupt support for Cirrus Logic Madera codecs 17 #include <linux/irqchip/irq-madera.h> 18 #include <linux/mfd/madera/core.h> 19 #include <linux/mfd/madera/pdata.h> 20 #include <linux/mfd/madera/registers.h> 28 /* Mappings are the same for all Madera codecs */ 88 .name = "madera IRQ", 101 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend() local 103 dev_dbg(madera->irq_dev, "Suspend, disabling IRQ\n"); in madera_suspend() 110 disable_irq(madera->irq); in madera_suspend() [all …]
|
/linux-6.12.1/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 | 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 | 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() 1246 struct madera *madera = priv->madera; in cs47l15_open() local 1252 dev_err(madera->dev, in cs47l15_open() 1265 struct madera *madera = priv->madera; in cs47l15_adsp2_irq() local [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() 1510 struct madera *madera = priv->madera; in cs47l35_open() local 1518 dev_err(madera->dev, in cs47l35_open() 1531 struct madera *madera = priv->madera; in cs47l35_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() 2371 struct madera *madera = priv->madera; in cs47l90_open() local 2379 dev_err(madera->dev, in cs47l90_open() 2392 struct madera *madera = priv->madera; in cs47l90_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() 2452 struct madera *madera = priv->madera; in cs47l85_open() local 2460 dev_err(madera->dev, in cs47l85_open() 2473 struct madera *madera = priv->madera; in cs47l85_adsp2_irq() local [all …]
|
/linux-6.12.1/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-6.12.1/drivers/pinctrl/cirrus/ |
D | Makefile | 7 pinctrl-madera-objs := pinctrl-madera-core.o 9 pinctrl-madera-objs += pinctrl-cs47l15.o 12 pinctrl-madera-objs += pinctrl-cs47l35.o 15 pinctrl-madera-objs += pinctrl-cs47l85.o 18 pinctrl-madera-objs += pinctrl-cs47l90.o 21 pinctrl-madera-objs += pinctrl-cs47l92.o 24 obj-$(CONFIG_PINCTRL_MADERA) += pinctrl-madera.o
|
D | pinctrl-madera-core.c | 3 * Pinctrl for Cirrus Logic Madera codecs 22 #include <linux/mfd/madera/core.h> 23 #include <linux/mfd/madera/registers.h> 27 #include "pinctrl-madera.h" 525 ret = regmap_read(priv->madera->regmap, reg, &conf[0]); in madera_pin_dbg_show() 529 ret = regmap_read(priv->madera->regmap, reg + 1, &conf[1]); in madera_pin_dbg_show() 615 struct madera *madera = priv->madera; in madera_mux_set_mux() local 644 ret = regmap_update_bits(madera->regmap, reg, in madera_mux_set_mux() 662 ret = regmap_update_bits(madera->regmap, in madera_mux_set_mux() 680 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-6.12.1/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() 361 &madera->pdata.micvdd); in madera_micsupp_probe() 375 .name = "madera-micsupp", 404 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> 352 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_ldo1_probe() local 361 ldo1->regmap = madera->regmap; in madera_ldo1_probe() 366 &madera->pdata.ldo1, in madera_ldo1_probe() 371 madera->internal_dcvdd = !external_dcvdd; in madera_ldo1_probe() 389 .name = "madera-ldo1", 418 MODULE_ALIAS("platform:madera-ldo1");
|
/linux-6.12.1/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# 233 #include <dt-bindings/sound/madera.h>
|
/linux-6.12.1/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
|
/linux-6.12.1/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-6.12.1/Documentation/devicetree/bindings/pinctrl/ |
D | cirrus,madera.yaml | 4 $id: http://devicetree.org/schemas/pinctrl/cirrus,madera.yaml# 7 title: Cirrus Logic Madera class audio CODECs pinctrl driver 13 The Cirrus Logic Madera codecs provide a number of GPIO functions for 26 Documentation/devicetree/bindings/mfd/cirrus,madera.yaml
|
/linux-6.12.1/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
|