Home
last modified time | relevance | path

Searched refs:max14577 (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/mfd/
Dmax14577.c274 static void max14577_print_dev_type(struct max14577 *max14577) in max14577_print_dev_type() argument
279 ret = max14577_read_reg(max14577->regmap, MAX14577_REG_DEVICEID, in max14577_print_dev_type()
282 dev_err(max14577->dev, in max14577_print_dev_type()
292 dev_info(max14577->dev, "Device type: %u (ID: 0x%x, vendor: 0x%x)\n", in max14577_print_dev_type()
293 max14577->dev_type, device_id, vendor_id); in max14577_print_dev_type()
305 static int max77836_init(struct max14577 *max14577) in max77836_init() argument
310 max14577->i2c_pmic = i2c_new_dummy(max14577->i2c->adapter, in max77836_init()
312 if (!max14577->i2c_pmic) { in max77836_init()
313 dev_err(max14577->dev, "Failed to register PMIC I2C device\n"); in max77836_init()
316 i2c_set_clientdata(max14577->i2c_pmic, max14577); in max77836_init()
[all …]
DMakefile152 obj-$(CONFIG_MFD_MAX14577) += max14577.o
/Linux-v4.19/drivers/regulator/
Dmax14577-regulator.c40 struct max14577 *max14577 = rdev_get_drvdata(rdev); in max14577_reg_get_current_limit() local
42 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_get_current_limit()
62 struct max14577 *max14577 = rdev_get_drvdata(rdev); in max14577_reg_set_current_limit() local
64 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_set_current_limit()
216 static struct regmap *max14577_get_regmap(struct max14577 *max14577, in max14577_get_regmap() argument
219 switch (max14577->dev_type) { in max14577_get_regmap()
223 return max14577->regmap; in max14577_get_regmap()
226 return max14577->regmap_pmic; in max14577_get_regmap()
231 return max14577->regmap; in max14577_get_regmap()
237 struct max14577 *max14577 = dev_get_drvdata(pdev->dev.parent); in max14577_regulator_probe() local
[all …]
DMakefile59 obj-$(CONFIG_REGULATOR_MAX14577) += max14577-regulator.o
/Linux-v4.19/Documentation/devicetree/bindings/mfd/
Dmax14577.txt11 - compatible : Must be "maxim,max14577" or "maxim,max77836".
12 - reg : I2C slave address for the max14577 chip (0x25 for max14577/max77836)
20 - compatible : "maxim,max14577-charger"
24 - for max14577: 90000 - 950000;
28 - for max14577: 50000 - 200000;
41 - max14577-muic/max77836-muic :
44 - compatible : "maxim,max14577-muic" or "maxim,max77836-muic"
48 - compatible : "maxim,max14577-regulator"
57 - for max14577: CHARGER, SAFEOUT.
68 max14577@25 {
[all …]
/Linux-v4.19/drivers/power/supply/
Dmax14577_charger.c26 struct max14577 *max14577; member
59 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state()
133 struct regmap *rmap = chg->max14577->regmap; in max14577_get_online()
143 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
172 struct regmap *rmap = chg->max14577->regmap; in max14577_get_battery_health()
182 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health()
236 return max14577_update_reg(chg->max14577->regmap, in max14577_set_fast_charge_timer()
267 return max14577_write_reg(chg->max14577->regmap, in max14577_init_constant_voltage()
277 switch (chg->max14577->dev_type) { in max14577_init_eoc()
306 return max14577_update_reg(chg->max14577->regmap, in max14577_init_eoc()
[all …]
/Linux-v4.19/drivers/extcon/
Dextcon-max14577.c81 struct max14577 *max14577; member
177 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_debounce_time()
211 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path()
224 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path()
237 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path()
501 ret = max14577_bulk_read(info->max14577->regmap, in max14577_muic_irq_work()
592 switch (info->max14577->dev_type) { in max14577_muic_irq_handler()
622 ret = max14577_bulk_read(info->max14577->regmap, in max14577_muic_detect_accessory()
667 struct max14577 *max14577 = dev_get_drvdata(pdev->dev.parent); in max14577_muic_probe() local
679 info->max14577 = max14577; in max14577_muic_probe()
[all …]
DMakefile14 obj-$(CONFIG_EXTCON_MAX14577) += extcon-max14577.o
/Linux-v4.19/include/linux/mfd/
Dmax14577-private.h436 struct max14577 { struct
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-power477 What: /sys/class/power_supply/max14577-charger/device/fast_charge_timer
482 This entry shows and sets the maximum time the max14577
/Linux-v4.19/
DMAINTAINERS8924 F: drivers/*/max14577*.c
8927 F: drivers/extcon/extcon-max14577.c
8931 F: Documentation/devicetree/bindings/mfd/max14577.txt
8935 F: include/linux/mfd/max14577*.h