Lines Matching full:charging
139 * @charging_enabled: is charging enabled
142 * @pre_charge_current: current (in uA) to use in pre-charging phase
144 * charging cycle terminates
160 * @suspend_on_hard_temp_limit: suspend charging when hard limit is hit
163 * @charge_current_compensation: current (in uA) for charging compensation
168 * @enable_control: how charging enable/disable is controlled
173 * example OTG charging controlled via OTG transceiver driver and not by
337 * smb347_charging_status - returns status of charging
340 * Function returns charging status. %0 means no charging is in progress,
341 * %1 means pre-charging, %2 fast-charging and %3 taper-charging.
363 dev_dbg(smb->dev, "charging enable/disable in SW disabled\n"); in smb347_charging_set()
393 * disable or enable the charging. We do it manually because it in smb347_start_stop_charging()
399 dev_err(smb->dev, "failed to enable charging\n"); in smb347_start_stop_charging()
403 dev_err(smb->dev, "failed to disable charging\n"); in smb347_start_stop_charging()
614 * When hard limit is hit, the device will suspend charging in smb347_set_temp_limits()
708 /* If USB charging is disabled we put the USB in suspend mode */ in smb347_hw_init()
727 * Make the charging functionality controllable by a write to the in smb347_hw_init()
800 * If the error is recovered charging will resume again. in smb347_interrupt()
803 dev_err(smb->dev, "charging stopped due to charger error\n"); in smb347_interrupt()
813 * we can update the status now. Charging is automatically in smb347_interrupt()
835 dev_warn(smb->dev, "charging stopped due to timeout\n"); in smb347_interrupt()
1013 * set to NOT CHARGING upon charger error in smb347_get_charging_status()
1014 * or charging has stopped. in smb347_get_charging_status()
1020 * set to charging if battery is in pre-charge, in smb347_get_charging_status()
1021 * fast charge or taper charging mode. in smb347_get_charging_status()
1027 * charge, fast charge or taper charging mode AND in smb347_get_charging_status()
1028 * charging is terminated at least once. in smb347_get_charging_status()
1034 * occured but charging is not in progress!!! in smb347_get_charging_status()
1068 * We handle trickle and pre-charging the same, and taper in smb347_get_property_locked()
1193 /* Charging constraints */ in smb347_dt_parse_dev_info()
1209 /* Supported charging mode */ in smb347_dt_parse_dev_info()
1210 smb->use_mains = device_property_read_bool(dev, "summit,enable-mains-charging"); in smb347_dt_parse_dev_info()
1211 smb->use_usb = device_property_read_bool(dev, "summit,enable-usb-charging"); in smb347_dt_parse_dev_info()
1212 smb->use_usb_otg = device_property_read_bool(dev, "summit,enable-otg-charging"); in smb347_dt_parse_dev_info()
1214 /* Select charging control */ in smb347_dt_parse_dev_info()