/kernel/linux/linux-5.10/drivers/mfd/ |
D | da9150-core.c | 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 203 ret = regmap_read(da9150->regmap, reg, &val); in da9150_reg_read() 205 dev_err(da9150->dev, "Failed to read from reg 0x%x: %d\n", in da9150_reg_read() 212 void da9150_reg_write(struct da9150 *da9150, u16 reg, u8 val) in da9150_reg_write() argument [all …]
|
D | Makefile | 160 obj-$(CONFIG_MFD_DA9150) += da9150-core.o
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
D | da9150.txt | 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 24 - da9150-fg: See ../power/da9150-fg.txt 28 charger_fg: da9150@58 { [all …]
|
/kernel/linux/linux-5.10/include/linux/mfd/da9150/ |
D | core.h | 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);
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | da9150-charger.c | 26 struct da9150 *da9150; member 144 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_H); in da9150_charger_battery_status() 153 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_status() 186 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_health() 223 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_present() 237 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_J); in da9150_charger_battery_charge_type() 261 reg = da9150_reg_read(charger->da9150, DA9150_PPR_CHGCTRL_C); in da9150_charger_battery_voltage_min() 289 reg = da9150_reg_read(charger->da9150, DA9150_PPR_CHGCTRL_D); in da9150_charger_battery_current_max() 302 reg = da9150_reg_read(charger->da9150, DA9150_PPR_CHGCTRL_B); in da9150_charger_battery_voltage_max() 401 reg = da9150_reg_read(charger->da9150, DA9150_STATUS_H); in da9150_charger_vbus_irq() [all …]
|
D | da9150-fg.c | 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() 448 struct da9150 *da9150 = dev_get_drvdata(dev->parent); in da9150_fg_probe() local 458 fg->da9150 = da9150; in da9150_fg_probe() 464 da9150_set_bits(da9150, DA9150_CORE2WIRE_CTRL_A, DA9150_FG_QIF_EN_MASK, in da9150_fg_probe()
|
D | Makefile | 50 obj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o 51 obj-$(CONFIG_BATTERY_DA9150) += da9150-fg.o
|
D | Kconfig | 308 called da9150-charger. 318 called da9150-fg.
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | da9150-gpadc.c | 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() 321 struct da9150 *da9150 = dev_get_drvdata(dev->parent); in da9150_gpadc_probe() local 334 gpadc->da9150 = da9150; in da9150_gpadc_probe()
|
D | Makefile | 40 obj-$(CONFIG_DA9150_GPADC) += da9150-gpadc.o
|
D | Kconfig | 391 will be da9150-gpadc.
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
D | da9150-charger.txt | 4 - compatible: "dlg,da9150-charger" for DA9150 Charger Power Supply 15 da9150-charger { 16 compatible = "dlg,da9150-charger";
|
D | da9150-fg.txt | 4 - compatible: "dlg,da9150-fuel-gauge" for DA9150 Fuel-Gauge Power Supply 18 compatible = "dlg,da9150-fuel-gauge";
|
/kernel/linux/linux-5.10/ |
D | MAINTAINERS | 5162 F: include/linux/mfd/da9150/
|