Home
last modified time | relevance | path

Searched refs:axp20x (Results 1 – 17 of 17) sorted by relevance

/drivers/mfd/
Daxp20x-i2c.c28 struct axp20x_dev *axp20x; in axp20x_i2c_probe() local
31 axp20x = devm_kzalloc(&i2c->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_i2c_probe()
32 if (!axp20x) in axp20x_i2c_probe()
35 axp20x->dev = &i2c->dev; in axp20x_i2c_probe()
36 axp20x->irq = i2c->irq; in axp20x_i2c_probe()
37 dev_set_drvdata(axp20x->dev, axp20x); in axp20x_i2c_probe()
39 ret = axp20x_match_device(axp20x); in axp20x_i2c_probe()
43 axp20x->regmap = devm_regmap_init_i2c(i2c, axp20x->regmap_cfg); in axp20x_i2c_probe()
44 if (IS_ERR(axp20x->regmap)) { in axp20x_i2c_probe()
45 ret = PTR_ERR(axp20x->regmap); in axp20x_i2c_probe()
[all …]
Daxp20x.c826 int axp20x_match_device(struct axp20x_dev *axp20x) in axp20x_match_device() argument
828 struct device *dev = axp20x->dev; in axp20x_match_device()
838 axp20x->variant = (long)of_id->data; in axp20x_match_device()
845 axp20x->variant = (long)acpi_id->driver_data; in axp20x_match_device()
848 switch (axp20x->variant) { in axp20x_match_device()
850 axp20x->nr_cells = ARRAY_SIZE(axp152_cells); in axp20x_match_device()
851 axp20x->cells = axp152_cells; in axp20x_match_device()
852 axp20x->regmap_cfg = &axp152_regmap_config; in axp20x_match_device()
853 axp20x->regmap_irq_chip = &axp152_regmap_irq_chip; in axp20x_match_device()
857 axp20x->nr_cells = ARRAY_SIZE(axp20x_cells); in axp20x_match_device()
[all …]
Daxp20x-rsb.c27 struct axp20x_dev *axp20x; in axp20x_rsb_probe() local
30 axp20x = devm_kzalloc(&rdev->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_rsb_probe()
31 if (!axp20x) in axp20x_rsb_probe()
34 axp20x->dev = &rdev->dev; in axp20x_rsb_probe()
35 axp20x->irq = rdev->irq; in axp20x_rsb_probe()
36 dev_set_drvdata(&rdev->dev, axp20x); in axp20x_rsb_probe()
38 ret = axp20x_match_device(axp20x); in axp20x_rsb_probe()
42 axp20x->regmap = devm_regmap_init_sunxi_rsb(rdev, axp20x->regmap_cfg); in axp20x_rsb_probe()
43 if (IS_ERR(axp20x->regmap)) { in axp20x_rsb_probe()
44 ret = PTR_ERR(axp20x->regmap); in axp20x_rsb_probe()
[all …]
DMakefile146 obj-$(CONFIG_MFD_AXP20X) += axp20x.o
147 obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o
148 obj-$(CONFIG_MFD_AXP20X_RSB) += axp20x-rsb.o
/drivers/input/misc/
Daxp20x-pek.c40 struct axp20x_dev *axp20x; member
95 ret = regmap_read(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, &val); in axp20x_show_attr()
166 ret = regmap_update_bits(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, in axp20x_store_attr()
204 ATTRIBUTE_GROUPS(axp20x);
266 axp20x_pek->axp20x->variant == AXP288_ID) { in axp20x_pek_should_register_input()
310 axp20x_pek->axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pek_probe()
316 axp20x_pek->axp20x->regmap_irqc, axp20x_pek->irq_dbr); in axp20x_pek_probe()
322 axp20x_pek->axp20x->regmap_irqc, axp20x_pek->irq_dbf); in axp20x_pek_probe()
395 if (axp20x_pek->axp20x->variant != AXP288_ID) in axp20x_pek_resume_noirq()
402 regmap_write(axp20x_pek->axp20x->regmap, in axp20x_pek_resume_noirq()
DMakefile68 obj-$(CONFIG_INPUT_AXP20X_PEK) += axp20x-pek.o
DKconfig469 be called axp20x-pek.
/drivers/regulator/
Daxp20x-regulator.c370 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_set_ramp_delay() local
376 switch (axp20x->variant) { in axp20x_set_ramp_delay()
425 dev_err(axp20x->dev, "unsupported ramp value %d", ramp); in axp20x_set_ramp_delay()
432 return regmap_update_bits(axp20x->regmap, reg, mask, cfg); in axp20x_set_ramp_delay()
437 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_regulator_enable_regmap() local
440 switch (axp20x->variant) { in axp20x_regulator_enable_regmap()
1006 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_set_dcdc_freq() local
1010 switch (axp20x->variant) { in axp20x_set_dcdc_freq()
1032 if (axp20x->variant == AXP806_ID) in axp20x_set_dcdc_freq()
1066 return regmap_update_bits(axp20x->regmap, reg, in axp20x_set_dcdc_freq()
[all …]
DMakefile30 obj-$(CONFIG_REGULATOR_AXP20X) += axp20x-regulator.o
/drivers/power/supply/
Daxp20x_usb_power.c569 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_usb_power_probe() local
578 if (!axp20x) { in axp20x_usb_power_probe()
594 power->regmap = axp20x->regmap; in axp20x_usb_power_probe()
617 regmap_update_bits(axp20x->regmap, AXP288_BC_GLOBAL, in axp20x_usb_power_probe()
638 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_usb_power_probe()
Daxp20x_ac_power.c324 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_ac_power_probe() local
333 if (!axp20x) { in axp20x_ac_power_probe()
385 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_ac_power_probe()
Daxp288_charger.c812 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_charger_probe() local
820 ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val); in axp288_charger_probe()
831 info->regmap = axp20x->regmap; in axp288_charger_probe()
832 info->regmap_irqc = axp20x->regmap_irqc; in axp288_charger_probe()
Daxp288_fuel_gauge.c749 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_fuel_gauge_probe() local
768 ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val); in axp288_fuel_gauge_probe()
779 info->regmap = axp20x->regmap; in axp288_fuel_gauge_probe()
780 info->regmap_irqc = axp20x->regmap_irqc; in axp288_fuel_gauge_probe()
/drivers/acpi/pmic/
Dintel_pmic_xpower.c281 struct axp20x_dev *axp20x = dev_get_drvdata(parent); in intel_xpower_pmic_opregion_probe() local
292 ACPI_HANDLE(parent), axp20x->regmap, in intel_xpower_pmic_opregion_probe()
/drivers/extcon/
Dextcon-axp288.c347 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_extcon_probe() local
357 info->regmap = axp20x->regmap; in axp288_extcon_probe()
358 info->regmap_irqc = axp20x->regmap_irqc; in axp288_extcon_probe()
/drivers/iio/adc/
Daxp288_adc.c260 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_adc_probe() local
271 info->regmap = axp20x->regmap; in axp288_adc_probe()
/drivers/pinctrl/
Dpinctrl-axp209.c398 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pctl_probe() local
407 if (!axp20x) { in axp20x_pctl_probe()
433 pctl->regmap = axp20x->regmap; in axp20x_pctl_probe()