Home
last modified time | relevance | path

Searched +full:acin +full:- +full:supply (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Daxp20x_ac_power.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * AXP20X and AXP22X PMICs' ACIN power supply driver
6 * Quentin Schulz <quentin.schulz@free-electrons.com>
30 #define AXP813_VHOLD_UV_TO_BIT(x) ((((x) / 100000) - 40) << 3)
35 #define AXP813_CURR_LIMIT_UA_TO_BIT(x) (((x) / 500000) - 3)
39 #define DRVNAME "axp20x-ac-power-supply"
43 struct power_supply *supply; member
55 power_supply_changed(power->supply); in axp20x_ac_power_irq()
69 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &reg); in axp20x_ac_power_get_property()
74 val->intval = POWER_SUPPLY_HEALTH_GOOD; in axp20x_ac_power_get_property()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dx-powers,axp152.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: X-Powers AXP PMIC
10 - Chen-Yu Tsai <wens@csie.org>
13 - if:
18 - x-powers,axp152
19 - x-powers,axp202
20 - x-powers,axp209
[all …]
/openbmc/linux/drivers/mfd/
H A Daxp20x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * MFD core driver for the X-Powers' Power Management ICs
5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
6 * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature
824 .name = "axp192-adc",
825 .of_compatible = "x-powers,axp192-adc",
827 .name = "axp20x-battery-power-supply",
828 .of_compatible = "x-powers,axp192-battery-power-supply",
830 .name = "axp20x-ac-power-supply",
831 .of_compatible = "x-powers,axp202-ac-power-supply",
[all …]
/openbmc/linux/drivers/regulator/
H A Daxp20x-regulator.c354 .n_voltages = (((_max) - (_min)) / (_step) + 1), \
376 .n_voltages = (((_max) - (_min)) / (_step) + 1), \
448 switch (axp20x->variant) { in axp20x_set_ramp_delay()
478 return -ENOTSUPP; in axp20x_set_ramp_delay()
497 dev_err(axp20x->dev, "unsupported ramp value %d", ramp); in axp20x_set_ramp_delay()
498 return -EINVAL; in axp20x_set_ramp_delay()
504 return regmap_update_bits(axp20x->regmap, reg, mask, cfg); in axp20x_set_ramp_delay()
512 switch (axp20x->variant) { in axp20x_regulator_enable_regmap()
515 rdev->constraints && rdev->constraints->soft_start) { in axp20x_regulator_enable_regmap()
616 AXP_DESC_FIXED(AXP20X, LDO1, "ldo1", "acin", 1300),
[all …]