Home
last modified time | relevance | path

Searched refs:da9052 (Results 1 – 25 of 31) sorted by relevance

12

/linux/include/linux/mfd/da9052/
A Dda9052.h102 int da9052_adc_read_temp(struct da9052 *da9052);
114 ret = da9052->fix_io(da9052, reg); in da9052_reg_read()
132 ret = da9052->fix_io(da9052, reg); in da9052_reg_write()
155 ret = da9052->fix_io(da9052, reg); in da9052_group_read()
176 ret = da9052->fix_io(da9052, reg); in da9052_group_write()
195 ret = da9052->fix_io(da9052, reg); in da9052_reg_update()
204 void da9052_device_exit(struct da9052 *da9052);
208 int da9052_irq_init(struct da9052 *da9052);
209 int da9052_irq_exit(struct da9052 *da9052);
214 int da9052_enable_irq(struct da9052 *da9052, int irq);
[all …]
A Dpdata.h15 struct da9052;
19 int (*init) (struct da9052 *da9052);
/linux/drivers/mfd/
A Dda9052-irq.c176 static int da9052_map_irq(struct da9052 *da9052, int irq) in da9052_map_irq() argument
181 int da9052_enable_irq(struct da9052 *da9052, int irq) in da9052_enable_irq() argument
193 int da9052_disable_irq(struct da9052 *da9052, int irq) in da9052_disable_irq() argument
205 int da9052_disable_irq_nosync(struct da9052 *da9052, int irq) in da9052_disable_irq_nosync() argument
242 struct da9052 *da9052 = irq_data; in da9052_auxadc_irq() local
249 int da9052_irq_init(struct da9052 *da9052) in da9052_irq_init() argument
253 ret = regmap_add_irq_chip(da9052->regmap, da9052->chip_irq, in da9052_irq_init()
275 regmap_del_irq_chip(da9052->chip_irq, da9052->irq_data); in da9052_irq_init()
281 int da9052_irq_exit(struct da9052 *da9052) in da9052_irq_exit() argument
283 da9052_free_irq(da9052, DA9052_IRQ_ADC_EOM, da9052); in da9052_irq_exit()
[all …]
A Dda9052-core.c374 int da9052_adc_manual_read(struct da9052 *da9052, unsigned char channel) in da9052_adc_manual_read() argument
398 dev_err(da9052->dev, in da9052_adc_manual_read()
426 int da9052_adc_read_temp(struct da9052 *da9052) in da9052_adc_read_temp() argument
545 static int da9052_clear_fault_log(struct da9052 *da9052) in da9052_clear_fault_log() argument
552 dev_err(da9052->dev, in da9052_clear_fault_log()
559 dev_dbg(da9052->dev, in da9052_clear_fault_log()
562 dev_dbg(da9052->dev, in da9052_clear_fault_log()
565 dev_dbg(da9052->dev, in da9052_clear_fault_log()
591 int da9052_device_init(struct da9052 *da9052, u8 chip_id) in da9052_device_init() argument
604 pdata->init(da9052); in da9052_device_init()
[all …]
A Dda9052-i2c.c58 static int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg) in da9052_i2c_fix() argument
62 switch (da9052->chip_id) { in da9052_i2c_fix()
89 static int da9052_i2c_disable_multiwrite(struct da9052 *da9052) in da9052_i2c_disable_multiwrite() argument
132 struct da9052 *da9052; in da9052_i2c_probe() local
135 da9052 = devm_kzalloc(&client->dev, sizeof(struct da9052), GFP_KERNEL); in da9052_i2c_probe()
136 if (!da9052) in da9052_i2c_probe()
139 da9052->dev = &client->dev; in da9052_i2c_probe()
140 da9052->chip_irq = client->irq; in da9052_i2c_probe()
146 if (IS_ERR(da9052->regmap)) { in da9052_i2c_probe()
173 struct da9052 *da9052 = i2c_get_clientdata(client); in da9052_i2c_remove() local
[all …]
A Dda9052-spi.c24 struct da9052 *da9052; in da9052_spi_probe() local
26 da9052 = devm_kzalloc(&spi->dev, sizeof(struct da9052), GFP_KERNEL); in da9052_spi_probe()
27 if (!da9052) in da9052_spi_probe()
34 da9052->dev = &spi->dev; in da9052_spi_probe()
35 da9052->chip_irq = spi->irq; in da9052_spi_probe()
37 spi_set_drvdata(spi, da9052); in da9052_spi_probe()
48 if (IS_ERR(da9052->regmap)) { in da9052_spi_probe()
49 ret = PTR_ERR(da9052->regmap); in da9052_spi_probe()
55 return da9052_device_init(da9052, id->driver_data); in da9052_spi_probe()
60 struct da9052 *da9052 = spi_get_drvdata(spi); in da9052_spi_remove() local
[all …]
A DMakefile138 obj-$(CONFIG_PMIC_DA9052) += da9052-irq.o
139 obj-$(CONFIG_PMIC_DA9052) += da9052-core.o
140 obj-$(CONFIG_MFD_DA9052_SPI) += da9052-spi.o
141 obj-$(CONFIG_MFD_DA9052_I2C) += da9052-i2c.o
/linux/drivers/input/touchscreen/
A Dda9052_tsi.c21 struct da9052 *da9052; member
41 da9052_enable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); in da9052_ts_pendwn_irq()
126 ret = da9052_reg_update(tsi->da9052, in da9052_ts_pen_work()
138 static int da9052_ts_configure_gpio(struct da9052 *da9052) in da9052_ts_configure_gpio() argument
161 error = da9052_ts_configure_gpio(tsi->da9052); in da9052_configure_tsi()
226 struct da9052 *da9052; in da9052_ts_probe() local
231 da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_ts_probe()
232 if (!da9052) in da9052_ts_probe()
242 tsi->da9052 = da9052; in da9052_ts_probe()
274 dev_err(tsi->da9052->dev, in da9052_ts_probe()
[all …]
/linux/drivers/watchdog/
A Dda9052_wdt.c29 struct da9052 *da9052; member
53 struct da9052 *da9052 = driver_data->da9052; in da9052_wdt_set_timeout() local
60 ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG, in da9052_wdt_set_timeout()
82 ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG, in da9052_wdt_set_timeout()
86 dev_err(da9052->dev, in da9052_wdt_set_timeout()
111 struct da9052 *da9052 = driver_data->da9052; in da9052_wdt_ping() local
124 ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG, in da9052_wdt_ping()
133 return da9052_reg_update(da9052, DA9052_CONTROL_D_REG, in da9052_wdt_ping()
154 struct da9052 *da9052 = dev_get_drvdata(dev->parent); in da9052_wdt_probe() local
162 driver_data->da9052 = da9052; in da9052_wdt_probe()
[all …]
/linux/drivers/leds/
A Dleds-da9052.c29 struct da9052 *da9052; member
63 static int da9052_configure_leds(struct da9052 *da9052) in da9052_configure_leds() argument
69 error = da9052_reg_update(da9052, DA9052_GPIO_14_15_REG, in da9052_configure_leds()
92 struct da9052 *da9052; in da9052_led_probe() local
98 da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_led_probe()
99 pdata = dev_get_platdata(da9052->dev); in da9052_led_probe()
125 led[i].da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_led_probe()
142 error = da9052_configure_leds(led->da9052); in da9052_led_probe()
163 struct da9052 *da9052; in da9052_led_remove() local
167 da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_led_remove()
[all …]
A DMakefile28 obj-$(CONFIG_LEDS_DA9052) += leds-da9052.o
/linux/drivers/gpio/
A Dgpio-da9052.c45 struct da9052 *da9052; member
60 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get()
75 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get()
78 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get()
104 dev_err(gpio->da9052->dev, in da9052_gpio_set()
113 dev_err(gpio->da9052->dev, in da9052_gpio_set()
130 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_direction_input()
136 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_direction_input()
173 struct da9052 *da9052 = gpio->da9052; in da9052_gpio_to_irq() local
204 gpio->da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_gpio_probe()
[all …]
/linux/drivers/hwmon/
A Dda9052-hwmon.c25 struct da9052 *da9052; member
72 static inline int da9052_enable_vddout_channel(struct da9052 *da9052) in da9052_enable_vddout_channel() argument
74 return da9052_reg_update(da9052, DA9052_ADC_CONT_REG, in da9052_enable_vddout_channel()
79 static inline int da9052_disable_vddout_channel(struct da9052 *da9052) in da9052_disable_vddout_channel() argument
81 return da9052_reg_update(da9052, DA9052_ADC_CONT_REG, in da9052_disable_vddout_channel()
93 ret = da9052_enable_vddout_channel(hwmon->da9052); in da9052_vddout_show()
103 ret = da9052_disable_vddout_channel(hwmon->da9052); in da9052_vddout_show()
111 da9052_disable_vddout_channel(hwmon->da9052); in da9052_vddout_show()
247 mutex_lock(&hwmon->da9052->auxadc_lock); in da9052_tsi_show()
249 mutex_unlock(&hwmon->da9052->auxadc_lock); in da9052_tsi_show()
[all …]
/linux/drivers/input/misc/
A Dda9052_onkey.c19 struct da9052 *da9052; member
28 ret = da9052_reg_read(onkey->da9052, DA9052_STATUS_A_REG); in da9052_onkey_query()
30 dev_err(onkey->da9052->dev, in da9052_onkey_query()
73 struct da9052 *da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_onkey_probe() local
78 if (!da9052) { in da9052_onkey_probe()
92 onkey->da9052 = da9052; in da9052_onkey_probe()
102 error = da9052_request_irq(onkey->da9052, DA9052_IRQ_NONKEY, "ONKEY", in da9052_onkey_probe()
105 dev_err(onkey->da9052->dev, in da9052_onkey_probe()
121 da9052_free_irq(onkey->da9052, DA9052_IRQ_NONKEY, onkey); in da9052_onkey_probe()
134 da9052_free_irq(onkey->da9052, DA9052_IRQ_NONKEY, onkey); in da9052_onkey_remove()
/linux/drivers/rtc/
A Drtc-da9052.c20 dev_err(rtc->da9052->dev, "%s: " fmt, __func__, ##__VA_ARGS__)
26 struct da9052 *da9052; member
33 ret = da9052_reg_update(rtc->da9052, DA9052_ALARM_Y_REG, in da9052_rtc_enable_alarm()
39 ret = da9052_reg_update(rtc->da9052, DA9052_ALARM_Y_REG, in da9052_rtc_enable_alarm()
70 ret = da9052_group_read(rtc->da9052, in da9052_read_alarm()
101 struct da9052 *da9052 = rtc->da9052; in da9052_set_alarm() local
117 ret = da9052_reg_update(da9052, DA9052_ALARM_MI_REG, in da9052_set_alarm()
132 ret = da9052_reg_update(da9052, DA9052_ALARM_Y_REG, in da9052_set_alarm()
144 ret = da9052_reg_read(rtc->da9052, DA9052_ALARM_Y_REG); in da9052_rtc_get_alarm_status()
168 ret = da9052_group_read(rtc->da9052, in da9052_rtc_read_time()
[all …]
/linux/drivers/regulator/
A Dda9052-regulator.c69 struct da9052 *da9052; member
102 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_get_current_limit()
119 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_set_current_limit()
139 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit()
144 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit()
398 struct da9052 *da9052; in da9052_regulator_probe() local
406 da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_regulator_probe()
407 pdata = dev_get_platdata(da9052->dev); in da9052_regulator_probe()
408 regulator->da9052 = da9052; in da9052_regulator_probe()
417 config.dev = da9052->dev; in da9052_regulator_probe()
[all …]
/linux/drivers/power/supply/
A Dda9052-battery.c167 struct da9052 *da9052; member
209 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_AV_REG); in da9052_read_chg_current()
302 bat_temp = da9052_adc_read_temp(bat->da9052); in da9052_bat_check_presence()
370 adc_temp = da9052_adc_read_temp(bat->da9052); in da9052_bat_read_capacity()
474 if (bat->da9052->chip_id == DA9052) in da9052_USB_current_notifier()
488 return da9052_reg_update(bat->da9052, DA9052_ISET_REG, in da9052_USB_current_notifier()
534 val->intval = da9052_adc_read_temp(bat->da9052); in da9052_bat_get_property()
600 bat->da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_bat_probe()
606 pdata = bat->da9052->dev->platform_data; in da9052_bat_probe()
613 ret = da9052_request_irq(bat->da9052, in da9052_bat_probe()
[all …]
A DMakefile49 obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
/linux/drivers/video/backlight/
A Dda9052_bl.c39 struct da9052 *da9052; member
58 ret = da9052_reg_write(wleds->da9052, DA9052_BOOST_REG, boost_en); in da9052_adjust_wled_brightness()
62 ret = da9052_reg_write(wleds->da9052, DA9052_LED_CONT_REG, i_sink); in da9052_adjust_wled_brightness()
66 ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], 0x0); in da9052_adjust_wled_brightness()
73 ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], in da9052_adjust_wled_brightness()
115 wleds->da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_backlight_probe()
124 wleds->da9052->dev, wleds, in da9052_backlight_probe()
/linux/Documentation/hwmon/
A Dda9052.rst1 Kernel driver da9052
8 Prefix: 'da9052'
A Dindex.rst53 da9052
/linux/Documentation/devicetree/bindings/mfd/
A Dda9052-i2c.txt4 - compatible : Should be "dlg,da9052", "dlg,da9053-aa",
/linux/arch/arm/boot/dts/
A Dimx53-qsb.dts16 compatible = "dlg,da9053-aa", "dlg,da9052";
A Dimx53-voipac-dmm-668.dtsi141 compatible = "dlg,da9053-aa", "dlg,da9052";
A Dimx53-smd.dts309 compatible = "dlg,da9053", "dlg,da9052";

Completed in 43 milliseconds

12