Lines Matching full:battery
3 * Battery and Power Management code for the Sharp SL-6000x
222 .name = "main-battery",
232 .name = "jacket-battery",
241 .name = "backup-battery",
352 /* Per-battery output check (routes battery voltage to ADC) */ in tosa_bat_probe()
353 tosa_bat_main.gpiod_bat = devm_gpiod_get(dev, "main battery", GPIOD_OUT_LOW); in tosa_bat_probe()
356 "no main battery GPIO\n"); in tosa_bat_probe()
357 tosa_bat_jacket.gpiod_bat = devm_gpiod_get(dev, "jacket battery", GPIOD_OUT_LOW); in tosa_bat_probe()
360 "no jacket battery GPIO\n"); in tosa_bat_probe()
361 tosa_bat_bu.gpiod_bat = devm_gpiod_get(dev, "backup battery", GPIOD_OUT_LOW); in tosa_bat_probe()
364 "no backup battery GPIO\n"); in tosa_bat_probe()
366 /* Battery full detect GPIOs (using PXA SoC GPIOs) */ in tosa_bat_probe()
367 tosa_bat_main.gpiod_full = devm_gpiod_get(dev, "main battery full", GPIOD_IN); in tosa_bat_probe()
370 "no main battery full GPIO\n"); in tosa_bat_probe()
371 tosa_bat_jacket.gpiod_full = devm_gpiod_get(dev, "jacket battery full", GPIOD_IN); in tosa_bat_probe()
374 "no jacket battery full GPIO\n"); in tosa_bat_probe()
376 /* Battery temperature GPIOs (routes thermistor voltage to ADC) */ in tosa_bat_probe()
377 tosa_bat_main.gpiod_temp = devm_gpiod_get(dev, "main battery temp", GPIOD_OUT_LOW); in tosa_bat_probe()
380 "no main battery temp GPIO\n"); in tosa_bat_probe()
381 tosa_bat_jacket.gpiod_temp = devm_gpiod_get(dev, "jacket battery temp", GPIOD_OUT_LOW); in tosa_bat_probe()
384 "no jacket battery temp GPIO\n"); in tosa_bat_probe()
392 /* Battery low indication GPIOs (not used, we just request them) */ in tosa_bat_probe()
393 dummy = devm_gpiod_get(dev, "main battery low", GPIOD_IN); in tosa_bat_probe()
396 "no main battery low GPIO\n"); in tosa_bat_probe()
397 dummy = devm_gpiod_get(dev, "jacket battery low", GPIOD_IN); in tosa_bat_probe()
400 "no jacket battery low GPIO\n"); in tosa_bat_probe()
402 /* Battery switch GPIO (not used just requested) */ in tosa_bat_probe()
403 dummy = devm_gpiod_get(dev, "battery switch", GPIOD_OUT_LOW); in tosa_bat_probe()
406 "no battery switch GPIO\n"); in tosa_bat_probe()
499 .driver.name = "wm97xx-battery",
511 MODULE_DESCRIPTION("Tosa battery driver");
512 MODULE_ALIAS("platform:wm97xx-battery");