Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/mfd/
Daxp20x.c5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
22 #include <linux/mfd/axp20x.h>
308 INIT_REGMAP_IRQ(AXP20X, ACIN_OVER_V, 0, 7),
309 INIT_REGMAP_IRQ(AXP20X, ACIN_PLUGIN, 0, 6),
310 INIT_REGMAP_IRQ(AXP20X, ACIN_REMOVAL, 0, 5),
311 INIT_REGMAP_IRQ(AXP20X, VBUS_OVER_V, 0, 4),
312 INIT_REGMAP_IRQ(AXP20X, VBUS_PLUGIN, 0, 3),
313 INIT_REGMAP_IRQ(AXP20X, VBUS_REMOVAL, 0, 2),
314 INIT_REGMAP_IRQ(AXP20X, VBUS_V_LOW, 0, 1),
315 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>
28 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()
[all …]
DMakefile147 obj-$(CONFIG_MFD_AXP20X) += axp20x.o
148 obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o
149 obj-$(CONFIG_MFD_AXP20X_RSB) += axp20x-rsb.o
/Linux-v6.1/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 …]
DKconfig472 tristate "X-Powers AXP20X power button driver"
476 AXP20X PMIC.
479 be called axp20x-pek.
DMakefile74 obj-$(CONFIG_INPUT_AXP20X_PEK) += axp20x-pek.o
/Linux-v6.1/include/linux/mfd/
Daxp20x.h3 * Functions and registers to access AXP20X power management chip.
671 * axp20x_match_device(): Setup axp20x variant related fields
673 * @axp20x: axp20x device to setup (.dev field must be set)
674 * @dev: device associated with this axp20x device
676 * This lets the axp20x core configure the mfd cells and register maps
679 int axp20x_match_device(struct axp20x_dev *axp20x);
682 * axp20x_device_probe(): Probe a configured axp20x device
684 * @axp20x: axp20x device to probe (must be configured)
686 * This function lets the axp20x core register the axp20x mfd devices
687 * and irqchip. The axp20x device passed in must be fully configured
[all …]
/Linux-v6.1/drivers/regulator/
Daxp20x-regulator.c2 * AXP20x regulators driver.
20 #include <linux/mfd/axp20x.h>
370 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()
538 AXP_DESC(AXP20X, DCDC2, "dcdc2", "vin2", 700, 2275, 25,
541 AXP_DESC(AXP20X, DCDC3, "dcdc3", "vin3", 700, 3500, 25,
[all …]
/Linux-v6.1/drivers/iio/adc/
Daxp20x_adc.c2 /* ADC driver for AXP20X and AXP22X PMICs
22 #include <linux/mfd/axp20x.h>
108 .consumer_dev_name = "axp20x-usb-power-supply",
112 .consumer_dev_name = "axp20x-usb-power-supply",
116 .consumer_dev_name = "axp20x-ac-power-supply",
120 .consumer_dev_name = "axp20x-ac-power-supply",
124 .consumer_dev_name = "axp20x-battery-power-supply",
128 .consumer_dev_name = "axp20x-battery-power-supply",
132 .consumer_dev_name = "axp20x-battery-power-supply",
140 .consumer_dev_name = "axp20x-battery-power-supply",
[all …]
Daxp288_adc.c15 #include <linux/mfd/axp20x.h>
260 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_adc_probe() local
271 info->regmap = axp20x->regmap; in axp288_adc_probe()
/Linux-v6.1/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.1/drivers/power/supply/
Daxp20x_usb_power.c3 * AXP20x PMIC USB power supply status driver
15 #include <linux/mfd/axp20x.h>
27 #define DRVNAME "axp20x-usb-power-supply"
402 * - On AXP20x and AXP22x, the flag enables VBUS (ignoring N_VBUSEN). in axp20x_usb_power_prop_writeable()
433 .name = "axp20x-usb",
443 .name = "axp20x-usb",
570 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_usb_power_probe() local
579 if (!axp20x) { in axp20x_usb_power_probe()
595 power->regmap = axp20x->regmap; in axp20x_usb_power_probe()
622 ret = regmap_update_bits(axp20x->regmap, AXP288_BC_GLOBAL, in axp20x_usb_power_probe()
[all …]
Daxp20x_ac_power.c3 * AXP20X and AXP22X PMICs' ACIN power supply driver
13 #include <linux/mfd/axp20x.h>
40 #define DRVNAME "axp20x-ac-power-supply"
223 .name = "axp20x-ac",
324 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_ac_power_probe() local
333 if (!axp20x) { in axp20x_ac_power_probe()
383 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_ac_power_probe()
423 MODULE_DESCRIPTION("AXP20X and AXP22X PMICs' AC power supply driver");
Daxp20x_battery.c2 * Battery power supply driver for X-Powers AXP20X and AXP22X PMICs
33 #include <linux/mfd/axp20x.h>
350 * AXP20x max voltage can be set to 4.36V and AXP22X max voltage in axp22x_battery_set_max_voltage()
380 * AXP20x max voltage can be set to 4.36V and AXP22X max voltage in axp20x_battery_set_max_voltage()
513 .name = "axp20x-battery",
651 .name = "axp20x-battery-power-supply",
658 MODULE_DESCRIPTION("Battery power supply driver for AXP20X and AXP22X PMICs");
DKconfig335 tristate "X-Powers AXP20X and AXP22X AC power supply driver"
340 Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC
347 tristate "X-Powers AXP20X battery driver"
352 Say Y here to enable support for X-Powers AXP20X PMICs' battery power
359 tristate "AXP20x power supply driver"
364 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
852 ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val); in axp288_charger_probe()
864 info->regmap = axp20x->regmap; in axp288_charger_probe()
865 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()
727 ret = regmap_irq_get_virq(axp20x->regmap_irqc, pirq); in axp288_fuel_gauge_probe()
/Linux-v6.1/drivers/pinctrl/
Dpinctrl-axp209.c3 * AXP20x pinctrl and GPIO driver
15 #include <linux/mfd/axp20x.h>
406 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pctl_probe() local
415 if (!axp20x) { in axp20x_pctl_probe()
441 pctl->regmap = axp20x->regmap; in axp20x_pctl_probe()
492 .name = "axp20x-gpio",
501 MODULE_DESCRIPTION("AXP20x PMIC pinctrl and GPIO driver");
/Linux-v6.1/Documentation/devicetree/bindings/mfd/
Dx-powers,axp152.yaml245 $ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
248 $ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
251 $ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
/Linux-v6.1/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.1/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.1/arch/arm/boot/dts/
Daxp209.dtsi47 * http://www.x-powers.com/product/AXP20X.php

12