Home
last modified time | relevance | path

Searched full:batt (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/linux/drivers/power/supply/
H A Dlego_ev3_battery.c41 struct lego_ev3_battery *batt = power_supply_get_drvdata(psy); in lego_ev3_battery_get_property() local
46 val->intval = batt->technology; in lego_ev3_battery_get_property()
50 ret = iio_read_channel_processed(batt->iio_v, &val->intval); in lego_ev3_battery_get_property()
58 ret = iio_read_channel_processed(batt->iio_i, &val2); in lego_ev3_battery_get_property()
67 val->intval = batt->v_max; in lego_ev3_battery_get_property()
70 val->intval = batt->v_min; in lego_ev3_battery_get_property()
74 ret = iio_read_channel_processed(batt->iio_i, &val->intval); in lego_ev3_battery_get_property()
95 struct lego_ev3_battery *batt = power_supply_get_drvdata(psy); in lego_ev3_battery_set_property() local
107 if (batt->technology != POWER_SUPPLY_TECHNOLOGY_UNKNOWN) in lego_ev3_battery_set_property()
111 batt->technology = POWER_SUPPLY_TECHNOLOGY_NiMH; in lego_ev3_battery_set_property()
[all …]
H A Daxp20x_battery.c64 int (*get_max_voltage)(struct axp20x_batt_ps *batt, int *val);
65 int (*set_max_voltage)(struct axp20x_batt_ps *batt, int val);
70 struct power_supply *batt; member
606 axp20x_batt->batt = devm_power_supply_register(&pdev->dev, in axp20x_power_probe()
609 if (IS_ERR(axp20x_batt->batt)) { in axp20x_power_probe()
611 PTR_ERR(axp20x_batt->batt)); in axp20x_power_probe()
612 return PTR_ERR(axp20x_batt->batt); in axp20x_power_probe()
615 if (!power_supply_get_battery_info(axp20x_batt->batt, &info)) { in axp20x_power_probe()
H A Dlp8727_charger.c81 struct power_supply *batt; member
243 power_supply_changed(pchg->psy->batt); in lp8727_delayed_func()
465 psy->batt = power_supply_register(pchg->dev, &lp8727_batt_desc, NULL); in lp8727_register_psy()
466 if (IS_ERR(psy->batt)) in lp8727_register_psy()
488 power_supply_unregister(psy->batt); in lp8727_unregister_psy()
H A Dwm97xx_battery.c180 gpiod_set_consumer_name(charge_gpiod, "BATT CHRG"); in wm97xx_bat_probe()
226 "back to name \"wm97xx-batt\"\n"); in wm97xx_bat_probe()
227 bat_psy_desc.name = "wm97xx-batt"; in wm97xx_bat_probe()
H A Dmax8925_power.c393 REQUEST_IRQ(MAX8925_IRQ_VCHG_THM_OK_R, "batt-temp-in-range"); in max8925_init_charger()
394 REQUEST_IRQ(MAX8925_IRQ_VCHG_THM_OK_F, "batt-temp-out-range"); in max8925_init_charger()
481 of_property_read_u32(np, "batt-detect", &batt_detect); in max8925_power_dt_init()
H A Dsamsung-sdi-battery.c902 struct samsung_sdi_battery *batt; in samsung_sdi_battery_get_info() local
906 batt = &samsung_sdi_batteries[i]; in samsung_sdi_battery_get_info()
907 if (!strcmp(compatible, batt->compatible)) in samsung_sdi_battery_get_info()
914 *info = &batt->info; in samsung_sdi_battery_get_info()
916 batt->name, batt->info.charge_full_design_uah / 1000); in samsung_sdi_battery_get_info()
H A Dwm831x_power.c474 "BATT HOT",
475 "BATT COLD",
476 "BATT FAIL",
H A Daxp288_fuel_gauge.c486 dev_info(info->dev, "Low Batt Warning(2) INTR\n"); in fuel_gauge_thread_handler()
489 dev_info(info->dev, "Low Batt Warning(1) INTR\n"); in fuel_gauge_thread_handler()
691 [BAT_VOLT] = "axp288-batt-volt", in axp288_fuel_gauge_probe()
H A Dmp2629_charger.c148 "mp2629-batt-volt",
151 "mp2629-batt-current",
/openbmc/linux/drivers/platform/x86/siemens/
H A DMakefile8 obj-$(CONFIG_SIEMENS_SIMATIC_IPC_BATT) += simatic-ipc-batt.o
9 obj-$(CONFIG_SIEMENS_SIMATIC_IPC_BATT_APOLLOLAKE) += simatic-ipc-batt-apollolake.o
10 obj-$(CONFIG_SIEMENS_SIMATIC_IPC_BATT_ELKHARTLAKE) += simatic-ipc-batt-elkhartlake.o
11 obj-$(CONFIG_SIEMENS_SIMATIC_IPC_BATT_F7188X) += simatic-ipc-batt-f7188x.o
H A DKconfig27 will be called simatic-ipc-batt.
39 will be called simatic-ipc-batt-apollolake.
51 will be called simatic-ipc-batt-elkhartlake.
64 will be called simatic-ipc-batt-f7188x.
H A Dsimatic-ipc-batt-elkhartlake.c17 #include "simatic-ipc-batt.h"
50 MODULE_SOFTDEP("pre: simatic-ipc-batt platform:elkhartlake-pinctrl");
H A Dsimatic-ipc-batt-apollolake.c17 #include "simatic-ipc-batt.h"
50 MODULE_SOFTDEP("pre: simatic-ipc-batt platform:apollolake-pinctrl");
H A Dsimatic-ipc-batt-f7188x.c18 #include "simatic-ipc-batt.h"
86 MODULE_SOFTDEP("pre: simatic-ipc-batt gpio_f7188x platform:elkhartlake-pinctrl platform:alderlake-p…
/openbmc/linux/Documentation/hwmon/
H A Dmc13783-adc.rst47 0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V
48 1 Battery Current (BATT - BATTISNS) -50 - 50 mV x20
73 0 Battery Voltage (BATT) 0 - 4.8V /2
74 1 Battery Current (BATT - BATTISNSCC) -60 - 60 mV x20
/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A Dmax8925_battery.txt5 - batt-detect: whether support battery detect
13 batt-detect = <0>;
/openbmc/linux/drivers/iio/adc/
H A Daxp288_adc.c107 IIO_MAP("TS_PIN", "axp288-batt", "axp288-batt-temp"),
112 IIO_MAP("BATT_V", "axp288-batt", "axp288-batt-volt"),
H A Dmp2629_adc.c56 MP2629_MAP(BATT_VOLT, "batt-volt"),
59 MP2629_MAP(BATT_CURRENT, "batt-current"),
H A Dqcom-spmi-rradc.c488 dev_err(chip->dev, "Enabling BATT ID channel failed:%d\n", ret); in rradc_prepare_batt_id_conversion()
793 .label = "batt",
955 ret = device_property_read_u32(dev, "qcom,batt-id-delay-ms", in rradc_probe()
/openbmc/linux/include/linux/mfd/wm8350/
H A Dcomparator.h91 * R158 (0x9E) - BATT Voltage Readback
149 * USB/2, LINE & BATT = ((VRTC * 2) / 4095)) * 10e6 uV
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dcirrus,cs35l45.yaml37 vdd-batt-supply:
141 vdd-batt-supply = <&dummy_vreg>;
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/
H A Dqcom,spmi-rradc.yaml27 qcom,batt-id-delay-ms:
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dmax8925.txt58 batt-detect = <0>;
/openbmc/linux/Documentation/devicetree/bindings/connector/
H A Dusb-connector.yaml128 User can specify the source PDO array via PDO_FIXED/BATT/VAR/PPS_APDO()
140 can specify the sink PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() defined
/openbmc/linux/arch/arm/boot/dts/marvell/
H A Dmmp2-brownstone.dts181 batt-detect = <0>;

12