/linux/drivers/power/supply/ |
H A D | lego_ev3_battery.c | 41 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 D | axp20x_battery.c | 101 int (*get_max_voltage)(struct axp20x_batt_ps *batt, int *val); 102 int (*set_max_voltage)(struct axp20x_batt_ps *batt, int val); 112 struct power_supply *batt; member 1102 axp20x_batt->batt = devm_power_supply_register(&pdev->dev, in axp20x_power_probe() 1105 if (IS_ERR(axp20x_batt->batt)) { in axp20x_power_probe() 1107 PTR_ERR(axp20x_batt->batt)); in axp20x_power_probe() 1108 return PTR_ERR(axp20x_batt->batt); in axp20x_power_probe() 1111 if (!power_supply_get_battery_info(axp20x_batt->batt, &info)) { in axp20x_power_probe() 1113 power_supply_put_battery_info(axp20x_batt->batt, info); in axp20x_power_probe()
|
H A D | wm97xx_battery.c | 180 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 D | lp8727_charger.c | 81 struct power_supply *batt; member 243 power_supply_changed(pchg->psy->batt); in lp8727_delayed_func() 465 psy->batt = devm_power_supply_register(pchg->dev, &lp8727_batt_desc, NULL); in lp8727_register_psy() 466 if (IS_ERR(psy->batt)) in lp8727_register_psy()
|
H A D | max8925_power.c | 393 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 D | samsung-sdi-battery.c | 902 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 D | wm831x_power.c | 474 "BATT HOT", 475 "BATT COLD", 476 "BATT FAIL",
|
H A D | axp288_fuel_gauge.c | 486 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() 701 [BAT_VOLT] = "axp288-batt-volt", in axp288_fuel_gauge_probe()
|
H A D | mp2629_charger.c | 140 "mp2629-batt-volt", 143 "mp2629-batt-current",
|
H A D | da9052-battery.c | 568 "BATT TEMP",
|
H A D | charger-manager.c | 405 * of battery after full-batt. in try_charger_enable() 449 * attached, after full-batt, cm start charging to maintain fully
|
/linux/drivers/platform/x86/siemens/ |
H A D | Makefile | 8 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 D | Kconfig | 27 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.
|
/linux/Documentation/hwmon/ |
H A D | mc13783-adc.rst | 47 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
|
/linux/include/linux/mfd/wm8350/ |
H A D | comparator.h | 91 * R158 (0x9E) - BATT Voltage Readback 149 * USB/2, LINE & BATT = ((VRTC * 2) / 4095)) * 10e6 uV
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | maxim,max8925.yaml | 58 batt-detect: 138 batt-detect = <0>;
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs35l45.yaml | 40 vdd-batt-supply: 144 vdd-batt-supply = <&dummy_vreg>;
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | qcom,spmi-rradc.yaml | 27 qcom,batt-id-delay-ms:
|
/linux/drivers/iio/adc/ |
H A D | qcom-spmi-rradc.c | 486 dev_err(chip->dev, "Enabling BATT ID channel failed:%d\n", ret); in rradc_prepare_batt_id_conversion() 791 .label = "batt", 953 ret = device_property_read_u32(dev, "qcom,batt-id-delay-ms", in rradc_probe()
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | mmp2-brownstone.dts | 181 batt-detect = <0>;
|
/linux/include/linux/power/ |
H A D | charger-manager.h | 160 * after full-batt. If discharging duration exceed 'discharging
|
/linux/drivers/platform/x86/amd/pmf/ |
H A D | spc.c | 103 "BATT",
|
/linux/sound/soc/codecs/ |
H A D | cs42l52.c | 446 SOC_SINGLE("Batt Compensation Switch", CS42L52_BATT_COMPEN, 7, 1, 0), 447 SOC_SINGLE("Batt VP Monitor Switch", CS42L52_BATT_COMPEN, 6, 1, 0), 448 SOC_SINGLE("Batt VP ref", CS42L52_BATT_COMPEN, 0, 0x0f, 0),
|
H A D | cs35l45.c | 1381 cs35l45->vdd_batt = devm_regulator_get(dev, "vdd-batt"); in cs35l45_probe() 1384 "Failed to request vdd-batt\n"); in cs35l45_probe() 1394 return dev_err_probe(dev, ret, "Failed to enable vdd-batt\n"); in cs35l45_probe()
|
/linux/drivers/mfd/ |
H A D | wm831x-core.c | 799 DEFINE_RES_IRQ_NAMED(WM831X_IRQ_CHG_BATT_HOT, "BATT HOT"), 800 DEFINE_RES_IRQ_NAMED(WM831X_IRQ_CHG_BATT_COLD, "BATT COLD"), 801 DEFINE_RES_IRQ_NAMED(WM831X_IRQ_CHG_BATT_FAIL, "BATT FAIL"),
|