Lines Matching full:charging
140 * @charging_enabled: is charging enabled
144 * @pre_charge_current: current (in uA) to use in pre-charging phase
146 * charging cycle terminates
162 * @suspend_on_hard_temp_limit: suspend charging when hard limit is hit
165 * @charge_current_compensation: current (in uA) for charging compensation
170 * @enable_control: how charging enable/disable is controlled
175 * example OTG charging controlled via OTG transceiver driver and not by
340 * smb347_charging_status - returns status of charging
343 * Function returns charging status. %0 means no charging is in progress,
344 * %1 means pre-charging, %2 fast-charging and %3 taper-charging.
366 dev_dbg(smb->dev, "charging enable/disable in SW disabled\n"); in smb347_charging_set()
396 * disable or enable the charging. We do it manually because it in smb347_start_stop_charging()
402 dev_err(smb->dev, "failed to enable charging\n"); in smb347_start_stop_charging()
406 dev_err(smb->dev, "failed to disable charging\n"); in smb347_start_stop_charging()
617 * When hard limit is hit, the device will suspend charging in smb347_set_temp_limits()
711 /* If USB charging is disabled we put the USB in suspend mode */ in smb347_hw_init()
739 * Make the charging functionality controllable by a write to the in smb347_hw_init()
812 * If the error is recovered charging will resume again. in smb347_interrupt()
815 dev_err(smb->dev, "charging stopped due to charger error\n"); in smb347_interrupt()
825 * we can update the status now. Charging is automatically in smb347_interrupt()
847 dev_warn(smb->dev, "charging stopped due to timeout\n"); in smb347_interrupt()
1026 * set to NOT CHARGING upon charger error in smb347_get_charging_status()
1027 * or charging has stopped. in smb347_get_charging_status()
1033 * set to charging if battery is in pre-charge, in smb347_get_charging_status()
1034 * fast charge or taper charging mode. in smb347_get_charging_status()
1040 * charge, fast charge or taper charging mode AND in smb347_get_charging_status()
1041 * charging is terminated at least once. in smb347_get_charging_status()
1047 * occured but charging is not in progress!!! in smb347_get_charging_status()
1081 * We handle trickle and pre-charging the same, and taper in smb347_get_property_locked()
1206 /* Charging constraints */ in smb347_dt_parse_dev_info()
1222 /* Supported charging mode */ in smb347_dt_parse_dev_info()
1223 smb->use_mains = device_property_read_bool(dev, "summit,enable-mains-charging"); in smb347_dt_parse_dev_info()
1224 smb->use_usb = device_property_read_bool(dev, "summit,enable-usb-charging"); in smb347_dt_parse_dev_info()
1225 smb->use_usb_otg = device_property_read_bool(dev, "summit,enable-otg-charging"); in smb347_dt_parse_dev_info()
1227 /* Select charging control */ in smb347_dt_parse_dev_info()