Home
last modified time | relevance | path

Searched full:da9150 (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/mfd/
H A Dda9150-core.c3 * DA9150 Core MFD Driver
19 #include <linux/mfd/da9150/core.h>
20 #include <linux/mfd/da9150/registers.h>
177 void da9150_read_qif(struct da9150 *da9150, u8 addr, int count, u8 *buf) in da9150_read_qif() argument
181 ret = da9150_i2c_read_device(da9150->core_qif, addr, count, buf); in da9150_read_qif()
183 dev_err(da9150->dev, "Failed to read from QIF 0x%x: %d\n", in da9150_read_qif()
188 void da9150_write_qif(struct da9150 *da9150, u8 addr, int count, const u8 *buf) in da9150_write_qif() argument
192 ret = da9150_i2c_write_device(da9150->core_qif, addr, count, buf); in da9150_write_qif()
194 dev_err(da9150->dev, "Failed to write to QIF 0x%x: %d\n", in da9150_write_qif()
199 u8 da9150_reg_read(struct da9150 *da9150, u16 reg) in da9150_reg_read() argument
[all …]
H A DMakefile162 obj-$(CONFIG_MFD_DA9150) += da9150-core.o
H A DKconfig428 tristate "Dialog Semiconductor DA9150 Charger Fuel-Gauge chip"
434 This adds support for the DA9150 integrated charger and fuel-gauge
/linux/Documentation/devicetree/bindings/mfd/
H A Dda9150.txt1 Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings
3 DA9150 consists of a group of sub-devices:
7 da9150-gpadc : General Purpose ADC
8 da9150-charger : Battery Charger
9 da9150-fg : Battery Fuel-Gauge
14 - compatible : Should be "dlg,da9150"
16 - interrupts: IRQ line info for da9150 chip.
17 - interrupt-controller: da9150 has internal IRQs (own IRQ domain).
22 - da9150-gpadc: See ../iio/adc/da9150-gpadc.txt
23 - da9150-charger: See ../power/da9150-charger.txt
[all …]
/linux/include/linux/mfd/da9150/
H A Dcore.h3 * DA9150 MFD Driver - Core Data
60 struct da9150 { struct
71 void da9150_read_qif(struct da9150 *da9150, u8 addr, int count, u8 *buf); argument
72 void da9150_write_qif(struct da9150 *da9150, u8 addr, int count, const u8 *buf);
74 u8 da9150_reg_read(struct da9150 *da9150, u16 reg);
75 void da9150_reg_write(struct da9150 *da9150, u16 reg, u8 val);
76 void da9150_set_bits(struct da9150 *da9150, u16 reg, u8 mask, u8 val);
78 void da9150_bulk_read(struct da9150 *da9150, u16 reg, int count, u8 *buf);
79 void da9150_bulk_write(struct da9150 *da9150, u16 reg, int count, const u8 *buf);
H A Dregisters.h3 * DA9150 MFD Driver - Registers
/linux/drivers/power/supply/
H A Dda9150-charger.c3 * DA9150 Charger Driver
19 #include <linux/mfd/da9150/core.h>
20 #include <linux/mfd/da9150/registers.h>
24 struct da9150 *da9150; member
142 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_H); in da9150_charger_battery_status()
151 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_status()
184 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_health()
221 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_present()
235 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_charge_type()
259 reg = da9150_reg_read(charger->da9150, DA9150_PPR_CHGCTRL_C); in da9150_charger_battery_voltage_min()
[all …]
H A Dda9150-fg.c3 * DA9150 Fuel-Gauge Driver
20 #include <linux/mfd/da9150/core.h>
21 #include <linux/mfd/da9150/registers.h>
73 struct da9150 *da9150; member
99 da9150_read_qif(fg->da9150, read_addr, size, buf); in da9150_fg_read_attr()
121 da9150_write_qif(fg->da9150, write_addr, size, buf); in da9150_fg_write_attr()
288 * valid NTC to associated pin of DA9150 chip.
438 .name = "da9150-fg",
448 struct da9150 *da9150 = dev_get_drvdata(dev->parent); in da9150_fg_probe() local
458 fg->da9150 = da9150; in da9150_fg_probe()
[all …]
H A DKconfig315 tristate "Dialog Semiconductor DA9150 Charger support"
320 Say Y here to enable support for charger unit of the DA9150
324 called da9150-charger.
327 tristate "Dialog Semiconductor DA9150 Fuel Gauge support"
330 Say Y here to enable support for the Fuel-Gauge unit of the DA9150
334 called da9150-fg.
H A DMakefile52 obj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o
53 obj-$(CONFIG_BATTERY_DA9150) += da9150-fg.o
/linux/drivers/iio/adc/
H A Dda9150-gpadc.c3 * DA9150 GPADC Driver
20 #include <linux/mfd/da9150/core.h>
21 #include <linux/mfd/da9150/registers.h>
75 struct da9150 *da9150; member
101 da9150_reg_write(gpadc->da9150, DA9150_GPADC_MAN, in da9150_gpadc_read_adc()
112 da9150_bulk_read(gpadc->da9150, DA9150_GPADC_RES_A, 2, result_regs); in da9150_gpadc_read_adc()
293 /* Default maps used by da9150-charger */
296 .consumer_dev_name = "da9150-charger",
301 .consumer_dev_name = "da9150-charger",
306 .consumer_dev_name = "da9150-charger",
[all …]
H A DMakefile49 obj-$(CONFIG_DA9150_GPADC) += da9150-gpadc.o
H A DKconfig503 tristate "Dialog DA9150 GPADC driver support"
506 Say yes here to build support for Dialog DA9150 GPADC.
509 will be da9150-gpadc.
/linux/Documentation/devicetree/bindings/iio/adc/
H A Ddlg,da9150-gpadc.yaml4 $id: http://devicetree.org/schemas/iio/adc/dlg,da9150-gpadc.yaml#
7 title: Dialog Semiconductor DA9150 IIO GPADC
14 DA9150 Charger & Fuel-Gauge IC.
18 const: dlg,da9150-gpadc
32 compatible = "dlg,da9150-gpadc";
/linux/Documentation/devicetree/bindings/power/supply/
H A Ddlg,da9150-charger.yaml4 $id: http://devicetree.org/schemas/power/supply/dlg,da9150-charger.yaml#
7 title: Dialog Semiconductor DA9150 Charger Power Supply
17 const: dlg,da9150-charger
42 compatible = "dlg,da9150-charger";
H A Ddlg,da9150-fuel-gauge.yaml4 $id: http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.yaml#
7 title: Dialog Semiconductor DA9150 Fuel-Gauge Power Supply
17 const: dlg,da9150-fuel-gauge
46 compatible = "dlg,da9150-fuel-gauge";
/linux/
H A DMAINTAINERS6637 F: include/linux/mfd/da9150/