Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/mfd/
Daxp20x.c5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
22 #include <linux/mfd/axp20x.h>
523 INIT_REGMAP_IRQ(AXP20X, ACIN_OVER_V, 0, 7),
524 INIT_REGMAP_IRQ(AXP20X, ACIN_PLUGIN, 0, 6),
525 INIT_REGMAP_IRQ(AXP20X, ACIN_REMOVAL, 0, 5),
526 INIT_REGMAP_IRQ(AXP20X, VBUS_OVER_V, 0, 4),
527 INIT_REGMAP_IRQ(AXP20X, VBUS_PLUGIN, 0, 3),
528 INIT_REGMAP_IRQ(AXP20X, VBUS_REMOVAL, 0, 2),
529 INIT_REGMAP_IRQ(AXP20X, VBUS_V_LOW, 0, 1),
530 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 …]
DMakefile148 obj-$(CONFIG_MFD_AXP20X) += axp20x.o
149 obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o
150 obj-$(CONFIG_MFD_AXP20X_RSB) += axp20x-rsb.o
/linux-6.12.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()
158 ret = regmap_update_bits(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, in axp20x_store_attr()
196 ATTRIBUTE_GROUPS(axp20x);
220 struct axp20x_dev *axp20x = axp20x_pek->axp20x; in axp20x_pek_probe_input_device() local
227 axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe_input_device()
233 axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe_input_device()
242 idev->name = "axp20x-pek"; in axp20x_pek_probe_input_device()
[all …]
DKconfig510 tristate "X-Powers AXP20X power button driver"
514 AXP20X PMIC.
517 be called axp20x-pek.
DMakefile76 obj-$(CONFIG_INPUT_AXP20X_PEK) += axp20x-pek.o
/linux-6.12.1/include/linux/mfd/
Daxp20x.h3 * Functions and registers to access AXP20X power management chip.
992 * axp20x_match_device(): Setup axp20x variant related fields
994 * @axp20x: axp20x device to setup (.dev field must be set)
995 * @dev: device associated with this axp20x device
997 * This lets the axp20x core configure the mfd cells and register maps
1000 int axp20x_match_device(struct axp20x_dev *axp20x);
1003 * axp20x_device_probe(): Probe a configured axp20x device
1005 * @axp20x: axp20x device to probe (must be configured)
1007 * This function lets the axp20x core register the axp20x mfd devices
1008 * and irqchip. The axp20x device passed in must be fully configured
[all …]
/linux-6.12.1/drivers/regulator/
Daxp20x-regulator.c2 * AXP20x regulators driver.
20 #include <linux/mfd/axp20x.h>
449 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_set_ramp_delay() local
455 switch (axp20x->variant) { in axp20x_set_ramp_delay()
504 dev_err(axp20x->dev, "unsupported ramp value %d", ramp); in axp20x_set_ramp_delay()
511 return regmap_update_bits(axp20x->regmap, reg, mask, cfg); in axp20x_set_ramp_delay()
516 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_regulator_enable_regmap() local
519 switch (axp20x->variant) { in axp20x_regulator_enable_regmap()
617 AXP_DESC(AXP20X, DCDC2, "dcdc2", "vin2", 700, 2275, 25,
620 AXP_DESC(AXP20X, DCDC3, "dcdc3", "vin3", 700, 3500, 25,
[all …]
/linux-6.12.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-6.12.1/drivers/iio/adc/
Daxp20x_adc.c2 /* ADC driver for AXP20X and AXP22X PMICs
24 #include <linux/mfd/axp20x.h>
160 .consumer_dev_name = "axp20x-usb-power-supply",
164 .consumer_dev_name = "axp20x-usb-power-supply",
168 .consumer_dev_name = "axp20x-ac-power-supply",
172 .consumer_dev_name = "axp20x-ac-power-supply",
176 .consumer_dev_name = "axp20x-battery-power-supply",
180 .consumer_dev_name = "axp20x-battery-power-supply",
184 .consumer_dev_name = "axp20x-battery-power-supply",
192 .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-6.12.1/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"
561 * - On AXP20x and AXP22x, the flag enables VBUS (ignoring N_VBUSEN). in axp20x_usb_power_prop_writeable()
669 .name = "axp20x-usb",
679 .name = "axp20x-usb",
689 .name = "axp20x-usb",
703 .name = "axp20x-usb",
924 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_usb_power_probe() local
933 if (!axp20x) { in axp20x_usb_power_probe()
[all …]
Daxp20x_battery.c2 * Battery power supply driver for X-Powers AXP20X and AXP22X PMICs
33 #include <linux/mfd/axp20x.h>
604 * AXP20x max voltage can be set to 4.36V and AXP22X max voltage in axp22x_battery_set_max_voltage()
634 * AXP20x max voltage can be set to 4.36V and AXP22X max voltage in axp20x_battery_set_max_voltage()
886 .name = "axp20x-battery",
896 .name = "axp20x-battery",
1127 .name = "axp20x-battery-power-supply",
1134 MODULE_DESCRIPTION("Battery power supply driver for AXP20X and AXP22X PMICs");
DKconfig337 tristate "X-Powers AXP20X and AXP22X AC power supply driver"
342 Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC
349 tristate "X-Powers AXP20X battery driver"
354 Say Y here to enable support for X-Powers AXP20X PMICs' battery power
361 tristate "AXP20x power supply driver"
366 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>
696 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_fuel_gauge_probe() local
727 info->regmap = axp20x->regmap; in axp288_fuel_gauge_probe()
739 ret = regmap_irq_get_virq(axp20x->regmap_irqc, pirq); in axp288_fuel_gauge_probe()
/linux-6.12.1/drivers/pinctrl/
Dpinctrl-axp209.c3 * AXP20x pinctrl and GPIO driver
15 #include <linux/mfd/axp20x.h>
444 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pctl_probe() local
453 if (!axp20x) { in axp20x_pctl_probe()
479 pctl->regmap = axp20x->regmap; in axp20x_pctl_probe()
530 .name = "axp20x-gpio",
539 MODULE_DESCRIPTION("AXP20x PMIC pinctrl and GPIO driver");
/linux-6.12.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-6.12.1/Documentation/devicetree/bindings/mfd/
Dx-powers,axp152.yaml259 $ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
262 $ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
265 $ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
/linux-6.12.1/drivers/acpi/pmic/
Dintel_pmic_xpower.c10 #include <linux/mfd/axp20x.h>
341 struct axp20x_dev *axp20x = dev_get_drvdata(parent); in intel_xpower_pmic_opregion_probe() local
352 ACPI_HANDLE(parent), axp20x->regmap, in intel_xpower_pmic_opregion_probe()
/linux-6.12.1/arch/arm/boot/dts/allwinner/
Daxp209.dtsi47 * http://www.x-powers.com/product/AXP20X.php

12