/linux-6.3-rc2/drivers/mfd/ |
A D | mc13xxx-core.c | 48 void mc13xxx_lock(struct mc13xxx *mc13xxx) in mc13xxx_lock() argument 61 void mc13xxx_unlock(struct mc13xxx *mc13xxx) in mc13xxx_unlock() argument 102 int mc13xxx_irq_mask(struct mc13xxx *mc13xxx, int irq) in mc13xxx_irq_mask() argument 112 int mc13xxx_irq_unmask(struct mc13xxx *mc13xxx, int irq) in mc13xxx_irq_unmask() argument 225 int mc13xxx_get_flags(struct mc13xxx *mc13xxx) in mc13xxx_get_flags() argument 237 struct mc13xxx *mc13xxx; member 259 .mc13xxx = mc13xxx, in mc13xxx_adc_do_conversion() 425 struct mc13xxx *mc13xxx = dev_get_drvdata(dev); in mc13xxx_common_init() local 455 mc13xxx->irq_chip.irqs = mc13xxx->irqs; in mc13xxx_common_init() 459 0, &mc13xxx->irq_chip, &mc13xxx->irq_data); in mc13xxx_common_init() [all …]
|
A D | mc13xxx-i2c.c | 57 struct mc13xxx *mc13xxx; in mc13xxx_i2c_probe() local 60 mc13xxx = devm_kzalloc(&client->dev, sizeof(*mc13xxx), GFP_KERNEL); in mc13xxx_i2c_probe() 61 if (!mc13xxx) in mc13xxx_i2c_probe() 64 dev_set_drvdata(&client->dev, mc13xxx); in mc13xxx_i2c_probe() 66 mc13xxx->irq = client->irq; in mc13xxx_i2c_probe() 68 mc13xxx->regmap = devm_regmap_init_i2c(client, in mc13xxx_i2c_probe() 70 if (IS_ERR(mc13xxx->regmap)) { in mc13xxx_i2c_probe() 71 ret = PTR_ERR(mc13xxx->regmap); in mc13xxx_i2c_probe() 79 mc13xxx->variant = of_id->data; in mc13xxx_i2c_probe() 81 mc13xxx->variant = (void *)id->driver_data; in mc13xxx_i2c_probe()
|
A D | mc13xxx-spi.c | 127 struct mc13xxx *mc13xxx; in mc13xxx_spi_probe() local 130 mc13xxx = devm_kzalloc(&spi->dev, sizeof(*mc13xxx), GFP_KERNEL); in mc13xxx_spi_probe() 131 if (!mc13xxx) in mc13xxx_spi_probe() 134 dev_set_drvdata(&spi->dev, mc13xxx); in mc13xxx_spi_probe() 138 mc13xxx->irq = spi->irq; in mc13xxx_spi_probe() 145 mc13xxx->regmap = devm_regmap_init(&spi->dev, ®map_mc13xxx_bus, in mc13xxx_spi_probe() 148 if (IS_ERR(mc13xxx->regmap)) { in mc13xxx_spi_probe() 149 ret = PTR_ERR(mc13xxx->regmap); in mc13xxx_spi_probe() 158 mc13xxx->variant = of_id->data; in mc13xxx_spi_probe() 162 mc13xxx->variant = (void *)id_entry->driver_data; in mc13xxx_spi_probe()
|
A D | mc13xxx.h | 17 struct mc13xxx; 21 void (*print_revision)(struct mc13xxx *mc13xxx, u32 revision); 29 struct mc13xxx { struct
|
A D | Makefile | 108 obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o 109 obj-$(CONFIG_MFD_MC13XXX_SPI) += mc13xxx-spi.o 110 obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o
|
/linux-6.3-rc2/drivers/rtc/ |
A D | rtc-mc13xxx.c | 28 struct mc13xxx *mc13xxx; member 36 int (*func)(struct mc13xxx *mc13xxx, int irq); in mc13xxx_rtc_irq_enable_unlocked() 51 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_alarm_irq_enable() 242 struct mc13xxx *mc13xxx = priv->mc13xxx; in mc13xxx_rtc_alarm_handler() local 262 struct mc13xxx *mc13xxx = priv->mc13xxx; in mc13xxx_rtc_reset_handler() local 275 struct mc13xxx *mc13xxx; in mc13xxx_rtc_probe() local 282 priv->mc13xxx = mc13xxx; in mc13xxx_rtc_probe() 294 mc13xxx_lock(mc13xxx); in mc13xxx_rtc_probe() 308 mc13xxx_unlock(mc13xxx); in mc13xxx_rtc_probe() 312 mc13xxx_lock(mc13xxx); in mc13xxx_rtc_probe() [all …]
|
/linux-6.3-rc2/include/linux/mfd/ |
A D | mc13xxx.h | 11 struct mc13xxx; 13 void mc13xxx_lock(struct mc13xxx *mc13xxx); 14 void mc13xxx_unlock(struct mc13xxx *mc13xxx); 18 int mc13xxx_reg_rmw(struct mc13xxx *mc13xxx, unsigned int offset, 21 int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq, 23 int mc13xxx_irq_free(struct mc13xxx *mc13xxx, int irq, void *dev); 25 int mc13xxx_irq_status(struct mc13xxx *mc13xxx, int irq, 28 int mc13xxx_get_flags(struct mc13xxx *mc13xxx); 30 int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, 47 int mc13xxx_irq_mask(struct mc13xxx *mc13xxx, int irq); [all …]
|
/linux-6.3-rc2/drivers/input/touchscreen/ |
A D | mc13783_ts.c | 35 struct mc13xxx *mc13xxx; member 45 mc13xxx_irq_ack(priv->mc13xxx, irq); in mc13783_ts_handler() 126 if (mc13xxx_adc_do_conversion(priv->mc13xxx, in mc13783_ts_work() 138 mc13xxx_lock(priv->mc13xxx); in mc13783_ts_open() 140 mc13xxx_irq_ack(priv->mc13xxx, MC13XXX_IRQ_TS); in mc13783_ts_open() 147 ret = mc13xxx_reg_rmw(priv->mc13xxx, MC13XXX_ADC0, in mc13783_ts_open() 152 mc13xxx_unlock(priv->mc13xxx); in mc13783_ts_open() 160 mc13xxx_lock(priv->mc13xxx); in mc13783_ts_close() 161 mc13xxx_reg_rmw(priv->mc13xxx, MC13XXX_ADC0, in mc13783_ts_close() 164 mc13xxx_unlock(priv->mc13xxx); in mc13783_ts_close() [all …]
|
/linux-6.3-rc2/drivers/regulator/ |
A D | mc13892-regulator.c | 305 struct mc13xxx *mc13892 = priv->mc13xxx; in mc13892_powermisc_rmw() 311 mc13xxx_lock(priv->mc13xxx); in mc13892_powermisc_rmw() 329 mc13xxx_unlock(priv->mc13xxx); in mc13892_powermisc_rmw() 374 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled() 376 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled() 406 mc13xxx_lock(priv->mc13xxx); in mc13892_sw_regulator_get_voltage_sel() 409 mc13xxx_unlock(priv->mc13xxx); in mc13892_sw_regulator_get_voltage_sel() 474 mc13xxx_lock(priv->mc13xxx); in mc13892_sw_regulator_set_voltage_sel() 498 mc13xxx_lock(priv->mc13xxx); in mc13892_vcam_set_mode() 512 mc13xxx_lock(priv->mc13xxx); in mc13892_vcam_get_mode() [all …]
|
A D | mc13783-regulator.c | 297 struct mc13xxx *mc13783 = priv->mc13xxx; in mc13783_powermisc_rmw() 303 mc13xxx_lock(priv->mc13xxx); in mc13783_powermisc_rmw() 321 mc13xxx_unlock(priv->mc13xxx); in mc13783_powermisc_rmw() 368 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled() 369 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13783_gpo_regulator_is_enabled() 370 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled() 394 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_regulator_probe() 416 priv->mc13xxx = mc13783; in mc13783_regulator_probe()
|
A D | mc13xxx-regulator-core.c | 35 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_enable() 48 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_disable() 59 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13xxx_regulator_is_enabled() 73 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].vsel_reg, in mc13xxx_regulator_set_voltage_sel() 87 ret = mc13xxx_reg_read(priv->mc13xxx, in mc13xxx_regulator_get_voltage()
|
A D | mc13xxx.h | 23 struct mc13xxx *mc13xxx; member
|
/linux-6.3-rc2/sound/soc/codecs/ |
A D | mc13783.c | 79 struct mc13xxx *mc13xxx; member 603 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX0, 0x25893); in mc13783_probe() 604 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX1, 0x00d35A); in mc13783_probe() 605 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_TX, 0x420000); in mc13783_probe() 608 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_DAC, 0x0e0004); in mc13783_probe() 611 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe() 614 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe() 618 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC, in mc13783_probe() 621 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC, in mc13783_probe() 632 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_RX0, 0x3, 0); in mc13783_remove() [all …]
|
/linux-6.3-rc2/drivers/hwmon/ |
A D | mc13783-adc.c | 27 struct mc13xxx *mc13xxx; member 49 ret = mc13xxx_adc_do_conversion(priv->mc13xxx, in mc13783_adc_read() 222 unsigned flags = mc13xxx_get_flags(priv->mc13xxx); in mc13783_adc_use_touchscreen() 238 priv->mc13xxx = dev_get_drvdata(pdev->dev.parent); in mc13783_adc_probe()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/mfd/ |
A D | mc13xxx.txt | 7 - fsl,mc13xxx-uses-adc : Indicate the ADC is being used 8 - fsl,mc13xxx-uses-codec : Indicate the Audio Codec is being used 9 - fsl,mc13xxx-uses-rtc : Indicate the RTC is being used 10 - fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | imx31-lite.dts | 67 fsl,mc13xxx-uses-adc; 68 fsl,mc13xxx-uses-rtc;
|
A D | imx51-digi-connectcore-jsk.dts | 36 fsl,mc13xxx-uses-rtc;
|
A D | imx27-phytec-phycore-som.dtsi | 86 fsl,mc13xxx-uses-adc; 87 fsl,mc13xxx-uses-rtc;
|
A D | imx53-kp-ddc.dts | 145 fsl,mc13xxx-uses-touch;
|
A D | imx53-tqma53.dtsi | 267 fsl,mc13xxx-uses-rtc;
|
A D | imx51-babbage.dts | 242 fsl,mc13xxx-uses-adc; 243 fsl,mc13xxx-uses-rtc;
|
A D | imx51-zii-scu2-mezz.dts | 129 fsl,mc13xxx-uses-adc;
|
A D | imx51-zii-scu3-esb.dts | 58 fsl,mc13xxx-uses-adc;
|
/linux-6.3-rc2/drivers/input/misc/ |
A D | mc13783-pwrbutton.c | 34 struct mc13xxx *mc13783; 94 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_pwrbutton_probe()
|
/linux-6.3-rc2/drivers/leds/ |
A D | leds-mc13783.c | 36 struct mc13xxx *master; 180 struct mc13xxx *mcdev = dev_get_drvdata(dev->parent); in mc13xxx_led_probe()
|