Home
last modified time | relevance | path

Searched refs:mc13xxx (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/drivers/mfd/
Dmc13xxx-core.c48 void mc13xxx_lock(struct mc13xxx *mc13xxx) in mc13xxx_lock() argument
50 if (!mutex_trylock(&mc13xxx->lock)) { in mc13xxx_lock()
51 dev_dbg(mc13xxx->dev, "wait for %s from %ps\n", in mc13xxx_lock()
54 mutex_lock(&mc13xxx->lock); in mc13xxx_lock()
56 dev_dbg(mc13xxx->dev, "%s from %ps\n", in mc13xxx_lock()
61 void mc13xxx_unlock(struct mc13xxx *mc13xxx) in mc13xxx_unlock() argument
63 dev_dbg(mc13xxx->dev, "%s from %ps\n", in mc13xxx_unlock()
65 mutex_unlock(&mc13xxx->lock); in mc13xxx_unlock()
69 int mc13xxx_reg_read(struct mc13xxx *mc13xxx, unsigned int offset, u32 *val) in mc13xxx_reg_read() argument
73 ret = regmap_read(mc13xxx->regmap, offset, val); in mc13xxx_reg_read()
[all …]
Dmc13xxx-i2c.c58 struct mc13xxx *mc13xxx; in mc13xxx_i2c_probe() local
61 mc13xxx = devm_kzalloc(&client->dev, sizeof(*mc13xxx), GFP_KERNEL); in mc13xxx_i2c_probe()
62 if (!mc13xxx) in mc13xxx_i2c_probe()
65 dev_set_drvdata(&client->dev, mc13xxx); in mc13xxx_i2c_probe()
67 mc13xxx->irq = client->irq; in mc13xxx_i2c_probe()
69 mc13xxx->regmap = devm_regmap_init_i2c(client, in mc13xxx_i2c_probe()
71 if (IS_ERR(mc13xxx->regmap)) { in mc13xxx_i2c_probe()
72 ret = PTR_ERR(mc13xxx->regmap); in mc13xxx_i2c_probe()
80 mc13xxx->variant = of_id->data; in mc13xxx_i2c_probe()
82 mc13xxx->variant = (void *)id->driver_data; in mc13xxx_i2c_probe()
Dmc13xxx-spi.c128 struct mc13xxx *mc13xxx; in mc13xxx_spi_probe() local
131 mc13xxx = devm_kzalloc(&spi->dev, sizeof(*mc13xxx), GFP_KERNEL); in mc13xxx_spi_probe()
132 if (!mc13xxx) in mc13xxx_spi_probe()
135 dev_set_drvdata(&spi->dev, mc13xxx); in mc13xxx_spi_probe()
139 mc13xxx->irq = spi->irq; in mc13xxx_spi_probe()
146 mc13xxx->regmap = devm_regmap_init(&spi->dev, &regmap_mc13xxx_bus, in mc13xxx_spi_probe()
149 if (IS_ERR(mc13xxx->regmap)) { in mc13xxx_spi_probe()
150 ret = PTR_ERR(mc13xxx->regmap); in mc13xxx_spi_probe()
159 mc13xxx->variant = of_id->data; in mc13xxx_spi_probe()
163 mc13xxx->variant = (void *)id_entry->driver_data; in mc13xxx_spi_probe()
Dmc13xxx.h17 struct mc13xxx;
21 void (*print_revision)(struct mc13xxx *mc13xxx, u32 revision);
29 struct mc13xxx { struct
DMakefile116 obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o
117 obj-$(CONFIG_MFD_MC13XXX_SPI) += mc13xxx-spi.o
118 obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o
/Linux-v5.4/drivers/rtc/
Drtc-mc13xxx.c28 struct mc13xxx *mc13xxx; member
36 int (*func)(struct mc13xxx *mc13xxx, int irq); in mc13xxx_rtc_irq_enable_unlocked()
42 return func(priv->mc13xxx, irq); in mc13xxx_rtc_irq_enable_unlocked()
51 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_alarm_irq_enable()
55 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_rtc_alarm_irq_enable()
71 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days1); in mc13xxx_rtc_read_time()
75 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTOD, &seconds); in mc13xxx_rtc_read_time()
79 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days2); in mc13xxx_rtc_read_time()
98 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_set_time()
104 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTODA, &alarmseconds); in mc13xxx_rtc_set_time()
[all …]
/Linux-v5.4/include/linux/mfd/
Dmc13xxx.h11 struct mc13xxx;
13 void mc13xxx_lock(struct mc13xxx *mc13xxx);
14 void mc13xxx_unlock(struct mc13xxx *mc13xxx);
16 int mc13xxx_reg_read(struct mc13xxx *mc13xxx, unsigned int offset, u32 *val);
17 int mc13xxx_reg_write(struct mc13xxx *mc13xxx, unsigned int offset, u32 val);
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);
[all …]
/Linux-v5.4/drivers/input/touchscreen/
Dmc13783_ts.c35 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()
142 ret = mc13xxx_irq_request(priv->mc13xxx, MC13XXX_IRQ_TS, in mc13783_ts_open()
147 ret = mc13xxx_reg_rmw(priv->mc13xxx, MC13XXX_ADC0, in mc13783_ts_open()
150 mc13xxx_irq_free(priv->mc13xxx, MC13XXX_IRQ_TS, priv); in mc13783_ts_open()
152 mc13xxx_unlock(priv->mc13xxx); in mc13783_ts_open()
160 mc13xxx_lock(priv->mc13xxx); in mc13783_ts_close()
[all …]
/Linux-v5.4/drivers/regulator/
Dmc13892-regulator.c305 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()
375 ret = mc13xxx_reg_read(priv->mc13xxx, mc13892_regulators[id].reg, &val); 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()
407 ret = mc13xxx_reg_read(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()
[all …]
Dmc13783-regulator.c297 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()
Dmc13xxx-regulator-core.c35 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()
Dmc13xxx.h23 struct mc13xxx *mc13xxx; member
DMakefile78 obj-$(CONFIG_REGULATOR_MC13XXX_CORE) += mc13xxx-regulator-core.o
/Linux-v5.4/sound/soc/codecs/
Dmc13783.c79 struct mc13xxx *mc13xxx; member
604 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX0, 0x25893); in mc13783_probe()
605 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX1, 0x00d35A); in mc13783_probe()
606 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_TX, 0x420000); in mc13783_probe()
607 mc13xxx_reg_write(priv->mc13xxx, MC13783_SSI_NETWORK, 0x013060); in mc13783_probe()
608 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_CODEC, 0x180027); in mc13783_probe()
609 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_DAC, 0x0e0004); in mc13783_probe()
612 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe()
615 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe()
619 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC, in mc13783_probe()
[all …]
/Linux-v5.4/drivers/hwmon/
Dmc13783-adc.c27 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-v5.4/Documentation/devicetree/bindings/mfd/
Dmc13xxx.txt7 - 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-v5.4/arch/arm/boot/dts/
Dimx31-lite.dts67 fsl,mc13xxx-uses-adc;
68 fsl,mc13xxx-uses-rtc;
Dimx51-digi-connectcore-jsk.dts29 fsl,mc13xxx-uses-rtc;
Dimx27-phytec-phycore-som.dtsi86 fsl,mc13xxx-uses-adc;
87 fsl,mc13xxx-uses-rtc;
Dimx53-kp-ddc.dts145 fsl,mc13xxx-uses-touch;
Dimx53-tqma53.dtsi259 fsl,mc13xxx-uses-rtc;
Dimx51-babbage.dts208 fsl,mc13xxx-uses-adc;
209 fsl,mc13xxx-uses-rtc;
Dimx51-zii-scu3-esb.dts58 fsl,mc13xxx-uses-adc;
/Linux-v5.4/drivers/input/misc/
Dmc13783-pwrbutton.c34 struct mc13xxx *mc13783;
94 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_pwrbutton_probe()
/Linux-v5.4/drivers/leds/
Dleds-mc13783.c36 struct mc13xxx *master;
180 struct mc13xxx *mcdev = dev_get_drvdata(dev->parent); in mc13xxx_led_probe()

12