Home
last modified time | relevance | path

Searched full:axp20x (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.6/drivers/mfd/
Daxp20x.c5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
22 #include <linux/mfd/axp20x.h>
471 INIT_REGMAP_IRQ(AXP20X, ACIN_OVER_V, 0, 7),
472 INIT_REGMAP_IRQ(AXP20X, ACIN_PLUGIN, 0, 6),
473 INIT_REGMAP_IRQ(AXP20X, ACIN_REMOVAL, 0, 5),
474 INIT_REGMAP_IRQ(AXP20X, VBUS_OVER_V, 0, 4),
475 INIT_REGMAP_IRQ(AXP20X, VBUS_PLUGIN, 0, 3),
476 INIT_REGMAP_IRQ(AXP20X, VBUS_REMOVAL, 0, 2),
477 INIT_REGMAP_IRQ(AXP20X, VBUS_V_LOW, 0, 1),
478 INIT_REGMAP_IRQ(AXP20X, BATT_PLUGIN, 1, 7),
[all …]
Daxp20x-rsb.c5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
18 #include <linux/mfd/axp20x.h>
27 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()
[all …]
Daxp20x-i2c.c5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
20 #include <linux/mfd/axp20x.h>
27 struct axp20x_dev *axp20x; in axp20x_i2c_probe() local
30 axp20x = devm_kzalloc(&i2c->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_i2c_probe()
31 if (!axp20x) in axp20x_i2c_probe()
34 axp20x->dev = &i2c->dev; in axp20x_i2c_probe()
35 axp20x->irq = i2c->irq; in axp20x_i2c_probe()
36 dev_set_drvdata(axp20x->dev, axp20x); in axp20x_i2c_probe()
38 ret = axp20x_match_device(axp20x); in axp20x_i2c_probe()
42 axp20x->regmap = devm_regmap_init_i2c(i2c, axp20x->regmap_cfg); in axp20x_i2c_probe()
[all …]
DMakefile143 obj-$(CONFIG_MFD_AXP20X) += axp20x.o
144 obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o
145 obj-$(CONFIG_MFD_AXP20X_RSB) += axp20x-rsb.o
/Linux-v6.6/drivers/input/misc/
Daxp20x-pek.c2 * axp20x power button driver.
23 #include <linux/mfd/axp20x.h>
41 struct axp20x_dev *axp20x; member
96 ret = regmap_read(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, &val); in axp20x_show_attr()
167 ret = regmap_update_bits(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, in axp20x_store_attr()
205 ATTRIBUTE_GROUPS(axp20x);
229 struct axp20x_dev *axp20x = axp20x_pek->axp20x; in axp20x_pek_probe_input_device() local
236 axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe_input_device()
242 axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe_input_device()
251 idev->name = "axp20x-pek"; in axp20x_pek_probe_input_device()
[all …]
DKconfig493 tristate "X-Powers AXP20X power button driver"
497 AXP20X PMIC.
500 be called axp20x-pek.
DMakefile74 obj-$(CONFIG_INPUT_AXP20X_PEK) += axp20x-pek.o
/Linux-v6.6/include/linux/mfd/
Daxp20x.h3 * Functions and registers to access AXP20X power management chip.
877 * axp20x_match_device(): Setup axp20x variant related fields
879 * @axp20x: axp20x device to setup (.dev field must be set)
880 * @dev: device associated with this axp20x device
882 * This lets the axp20x core configure the mfd cells and register maps
885 int axp20x_match_device(struct axp20x_dev *axp20x);
888 * axp20x_device_probe(): Probe a configured axp20x device
890 * @axp20x: axp20x device to probe (must be configured)
892 * This function lets the axp20x core register the axp20x mfd devices
893 * and irqchip. The axp20x device passed in must be fully configured
[all …]
/Linux-v6.6/drivers/regulator/
Daxp20x-regulator.c2 * AXP20x regulators driver.
20 #include <linux/mfd/axp20x.h>
442 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_set_ramp_delay() local
448 switch (axp20x->variant) { in axp20x_set_ramp_delay()
497 dev_err(axp20x->dev, "unsupported ramp value %d", ramp); in axp20x_set_ramp_delay()
504 return regmap_update_bits(axp20x->regmap, reg, mask, cfg); in axp20x_set_ramp_delay()
509 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_regulator_enable_regmap() local
512 switch (axp20x->variant) { in axp20x_regulator_enable_regmap()
610 AXP_DESC(AXP20X, DCDC2, "dcdc2", "vin2", 700, 2275, 25,
613 AXP_DESC(AXP20X, DCDC3, "dcdc3", "vin3", 700, 3500, 25,
[all …]
/Linux-v6.6/drivers/iio/adc/
Daxp20x_adc.c2 /* ADC driver for AXP20X and AXP22X PMICs
23 #include <linux/mfd/axp20x.h>
109 .consumer_dev_name = "axp20x-usb-power-supply",
113 .consumer_dev_name = "axp20x-usb-power-supply",
117 .consumer_dev_name = "axp20x-ac-power-supply",
121 .consumer_dev_name = "axp20x-ac-power-supply",
125 .consumer_dev_name = "axp20x-battery-power-supply",
129 .consumer_dev_name = "axp20x-battery-power-supply",
133 .consumer_dev_name = "axp20x-battery-power-supply",
141 .consumer_dev_name = "axp20x-battery-power-supply",
[all …]
Daxp288_adc.c16 #include <linux/mfd/axp20x.h>
263 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_adc_probe() local
274 info->regmap = axp20x->regmap; in axp288_adc_probe()
/Linux-v6.6/Documentation/devicetree/bindings/power/supply/
Dx-powers,axp20x-ac-power-supply.yaml4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
7 title: AXP20x AC power-supply
10 The AXP20X can read the current current and voltage supplied by AC by
11 reading ADC channels from the AXP20X ADC. The AXP22X is only able to
Dx-powers,axp20x-battery-power-supply.yaml4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
7 title: AXP20x Battery power-supply
Dx-powers,axp20x-usb-power-supply.yaml4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
7 title: AXP20x USB power-supply
/Linux-v6.6/drivers/power/supply/
Daxp20x_ac_power.c3 * AXP20X and AXP22X PMICs' ACIN power supply driver
13 #include <linux/mfd/axp20x.h>
39 #define DRVNAME "axp20x-ac-power-supply"
222 .name = "axp20x-ac",
323 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_ac_power_probe() local
332 if (!axp20x) { in axp20x_ac_power_probe()
382 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_ac_power_probe()
422 MODULE_DESCRIPTION("AXP20X and AXP22X PMICs' AC power supply driver");
Daxp20x_usb_power.c3 * AXP20x PMIC USB power supply status driver
15 #include <linux/mfd/axp20x.h>
26 #define DRVNAME "axp20x-usb-power-supply"
307 * - On AXP20x and AXP22x, the flag enables VBUS (ignoring N_VBUSEN). in axp20x_usb_power_prop_writeable()
338 .name = "axp20x-usb",
348 .name = "axp20x-usb",
537 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_usb_power_probe() local
546 if (!axp20x) { in axp20x_usb_power_probe()
562 power->regmap = axp20x->regmap; in axp20x_usb_power_probe()
636 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_usb_power_probe()
[all …]
Daxp20x_battery.c2 * Battery power supply driver for X-Powers AXP20X and AXP22X PMICs
32 #include <linux/mfd/axp20x.h>
349 * AXP20x max voltage can be set to 4.36V and AXP22X max voltage in axp22x_battery_set_max_voltage()
379 * AXP20x max voltage can be set to 4.36V and AXP22X max voltage in axp20x_battery_set_max_voltage()
512 .name = "axp20x-battery",
650 .name = "axp20x-battery-power-supply",
657 MODULE_DESCRIPTION("Battery power supply driver for AXP20X and AXP22X PMICs");
DKconfig328 tristate "X-Powers AXP20X and AXP22X AC power supply driver"
333 Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC
340 tristate "X-Powers AXP20X battery driver"
345 Say Y here to enable support for X-Powers AXP20X PMICs' battery power
352 tristate "AXP20x power supply driver"
357 AXP20x PMIC.
Daxp288_charger.c22 #include <linux/mfd/axp20x.h>
837 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_charger_probe() local
853 ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val); in axp288_charger_probe()
865 info->regmap = axp20x->regmap; in axp288_charger_probe()
866 info->regmap_irqc = axp20x->regmap_irqc; in axp288_charger_probe()
Daxp288_fuel_gauge.c20 #include <linux/mfd/axp20x.h>
686 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_fuel_gauge_probe() local
717 info->regmap = axp20x->regmap; in axp288_fuel_gauge_probe()
729 ret = regmap_irq_get_virq(axp20x->regmap_irqc, pirq); in axp288_fuel_gauge_probe()
/Linux-v6.6/drivers/pinctrl/
Dpinctrl-axp209.c3 * AXP20x pinctrl and GPIO driver
15 #include <linux/mfd/axp20x.h>
449 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pctl_probe() local
458 if (!axp20x) { in axp20x_pctl_probe()
484 pctl->regmap = axp20x->regmap; in axp20x_pctl_probe()
535 .name = "axp20x-gpio",
544 MODULE_DESCRIPTION("AXP20x PMIC pinctrl and GPIO driver");
/Linux-v6.6/drivers/extcon/
Dextcon-axp288.c21 #include <linux/mfd/axp20x.h>
366 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_extcon_probe() local
376 info->regmap = axp20x->regmap; in axp288_extcon_probe()
377 info->regmap_irqc = axp20x->regmap_irqc; in axp288_extcon_probe()
/Linux-v6.6/Documentation/devicetree/bindings/mfd/
Dx-powers,axp152.yaml254 $ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
257 $ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
260 $ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
/Linux-v6.6/drivers/acpi/pmic/
Dintel_pmic_xpower.c10 #include <linux/mfd/axp20x.h>
340 struct axp20x_dev *axp20x = dev_get_drvdata(parent); in intel_xpower_pmic_opregion_probe() local
351 ACPI_HANDLE(parent), axp20x->regmap, in intel_xpower_pmic_opregion_probe()
/Linux-v6.6/arch/arm/boot/dts/allwinner/
Daxp209.dtsi47 * http://www.x-powers.com/product/AXP20X.php

12