134433332SMauro Carvalho Chehab**General Properties** 291dabc54SAdam Thomson 391dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/manufacturer 491dabc54SAdam ThomsonDate: May 2007 591dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 691dabc54SAdam ThomsonDescription: 791dabc54SAdam Thomson Reports the name of the device manufacturer. 891dabc54SAdam Thomson 991dabc54SAdam Thomson Access: Read 1091dabc54SAdam Thomson Valid values: Represented as string 1191dabc54SAdam Thomson 1291dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/model_name 1391dabc54SAdam ThomsonDate: May 2007 1491dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 1591dabc54SAdam ThomsonDescription: 1691dabc54SAdam Thomson Reports the name of the device model. 1791dabc54SAdam Thomson 1891dabc54SAdam Thomson Access: Read 1991dabc54SAdam Thomson Valid values: Represented as string 2091dabc54SAdam Thomson 2191dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/serial_number 2291dabc54SAdam ThomsonDate: January 2008 2391dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 2491dabc54SAdam ThomsonDescription: 2591dabc54SAdam Thomson Reports the serial number of the device. 2691dabc54SAdam Thomson 2791dabc54SAdam Thomson Access: Read 2891dabc54SAdam Thomson Valid values: Represented as string 2991dabc54SAdam Thomson 3091dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/type 3191dabc54SAdam ThomsonDate: May 2010 3291dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 3391dabc54SAdam ThomsonDescription: 3491dabc54SAdam Thomson Describes the main type of the supply. 3591dabc54SAdam Thomson 3691dabc54SAdam Thomson Access: Read 375ca937fbSSubbaraman Narayanamurthy Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 3891dabc54SAdam Thomson 399e0b29adSMauro Carvalho Chehab**Battery and USB properties** 409e0b29adSMauro Carvalho Chehab 419e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/current_avg 429e0b29adSMauro Carvalho ChehabDate: May 2007 439e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 449e0b29adSMauro Carvalho ChehabDescription: 459e0b29adSMauro Carvalho Chehab Battery: 469e0b29adSMauro Carvalho Chehab 479e0b29adSMauro Carvalho Chehab Reports an average IBAT current reading for the battery, over 489e0b29adSMauro Carvalho Chehab a fixed period. Normally devices will provide a fixed interval 499e0b29adSMauro Carvalho Chehab in which they average readings to smooth out the reported 509e0b29adSMauro Carvalho Chehab value. 519e0b29adSMauro Carvalho Chehab 529e0b29adSMauro Carvalho Chehab USB: 539e0b29adSMauro Carvalho Chehab 549e0b29adSMauro Carvalho Chehab Reports an average IBUS current reading over a fixed period. 559e0b29adSMauro Carvalho Chehab Normally devices will provide a fixed interval in which they 569e0b29adSMauro Carvalho Chehab average readings to smooth out the reported value. 579e0b29adSMauro Carvalho Chehab 589e0b29adSMauro Carvalho Chehab Access: Read 599e0b29adSMauro Carvalho Chehab 609e0b29adSMauro Carvalho Chehab Valid values: Represented in microamps. Negative values are 619e0b29adSMauro Carvalho Chehab used for discharging batteries, positive values for charging 629e0b29adSMauro Carvalho Chehab batteries and for USB IBUS current. 639e0b29adSMauro Carvalho Chehab 649e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/current_max 659e0b29adSMauro Carvalho ChehabDate: October 2010 669e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 679e0b29adSMauro Carvalho ChehabDescription: 689e0b29adSMauro Carvalho Chehab Battery: 699e0b29adSMauro Carvalho Chehab 709e0b29adSMauro Carvalho Chehab Reports the maximum IBAT current allowed into the battery. 719e0b29adSMauro Carvalho Chehab 729e0b29adSMauro Carvalho Chehab USB: 739e0b29adSMauro Carvalho Chehab 749e0b29adSMauro Carvalho Chehab Reports the maximum IBUS current the supply can support. 759e0b29adSMauro Carvalho Chehab 769e0b29adSMauro Carvalho Chehab Access: Read 779e0b29adSMauro Carvalho Chehab Valid values: Represented in microamps 789e0b29adSMauro Carvalho Chehab 799e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/current_now 809e0b29adSMauro Carvalho ChehabDate: May 2007 819e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 829e0b29adSMauro Carvalho ChehabDescription: 839e0b29adSMauro Carvalho Chehab 849e0b29adSMauro Carvalho Chehab Battery: 859e0b29adSMauro Carvalho Chehab 869e0b29adSMauro Carvalho Chehab Reports an instant, single IBAT current reading for the 879e0b29adSMauro Carvalho Chehab battery. This value is not averaged/smoothed. 889e0b29adSMauro Carvalho Chehab 899e0b29adSMauro Carvalho Chehab Access: Read 909e0b29adSMauro Carvalho Chehab 919e0b29adSMauro Carvalho Chehab USB: 929e0b29adSMauro Carvalho Chehab 939e0b29adSMauro Carvalho Chehab Reports the IBUS current supplied now. This value is generally 949e0b29adSMauro Carvalho Chehab read-only reporting, unless the 'online' state of the supply 959e0b29adSMauro Carvalho Chehab is set to be programmable, in which case this value can be set 969e0b29adSMauro Carvalho Chehab within the reported min/max range. 979e0b29adSMauro Carvalho Chehab 989e0b29adSMauro Carvalho Chehab Access: Read, Write 999e0b29adSMauro Carvalho Chehab 1009e0b29adSMauro Carvalho Chehab Valid values: Represented in microamps. Negative values are 1019e0b29adSMauro Carvalho Chehab used for discharging batteries, positive values for charging 1029e0b29adSMauro Carvalho Chehab batteries and for USB IBUS current. 1039e0b29adSMauro Carvalho Chehab 1049e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/temp 1059e0b29adSMauro Carvalho ChehabDate: May 2007 1069e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 1079e0b29adSMauro Carvalho ChehabDescription: 1089e0b29adSMauro Carvalho Chehab Battery: 1099e0b29adSMauro Carvalho Chehab 1109e0b29adSMauro Carvalho Chehab Reports the current TBAT battery temperature reading. 1119e0b29adSMauro Carvalho Chehab 1129e0b29adSMauro Carvalho Chehab USB: 1139e0b29adSMauro Carvalho Chehab 1149e0b29adSMauro Carvalho Chehab Reports the current supply temperature reading. This would 1159e0b29adSMauro Carvalho Chehab normally be the internal temperature of the device itself 1169e0b29adSMauro Carvalho Chehab (e.g TJUNC temperature of an IC) 1179e0b29adSMauro Carvalho Chehab 1189e0b29adSMauro Carvalho Chehab Access: Read 1199e0b29adSMauro Carvalho Chehab 1209e0b29adSMauro Carvalho Chehab Valid values: Represented in 1/10 Degrees Celsius 1219e0b29adSMauro Carvalho Chehab 1229e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/temp_alert_max 1239e0b29adSMauro Carvalho ChehabDate: July 2012 1249e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 1259e0b29adSMauro Carvalho ChehabDescription: 1269e0b29adSMauro Carvalho Chehab Battery: 1279e0b29adSMauro Carvalho Chehab 1289e0b29adSMauro Carvalho Chehab Maximum TBAT temperature trip-wire value where the supply will 1299e0b29adSMauro Carvalho Chehab notify user-space of the event. 1309e0b29adSMauro Carvalho Chehab 1319e0b29adSMauro Carvalho Chehab USB: 1329e0b29adSMauro Carvalho Chehab 1339e0b29adSMauro Carvalho Chehab Maximum supply temperature trip-wire value where the supply 1349e0b29adSMauro Carvalho Chehab will notify user-space of the event. 1359e0b29adSMauro Carvalho Chehab 1369e0b29adSMauro Carvalho Chehab This is normally used for the charging scenario where 1379e0b29adSMauro Carvalho Chehab user-space needs to know if the temperature has crossed an 1389e0b29adSMauro Carvalho Chehab upper threshold so it can take appropriate action (e.g. warning 1399e0b29adSMauro Carvalho Chehab user that the temperature is critically high, and charging has 1409e0b29adSMauro Carvalho Chehab stopped). 1419e0b29adSMauro Carvalho Chehab 1429e0b29adSMauro Carvalho Chehab Access: Read 1439e0b29adSMauro Carvalho Chehab 1449e0b29adSMauro Carvalho Chehab Valid values: Represented in 1/10 Degrees Celsius 1459e0b29adSMauro Carvalho Chehab 1469e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/temp_alert_min 1479e0b29adSMauro Carvalho ChehabDate: July 2012 1489e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 1499e0b29adSMauro Carvalho ChehabDescription: 1509e0b29adSMauro Carvalho Chehab 1519e0b29adSMauro Carvalho Chehab Battery: 1529e0b29adSMauro Carvalho Chehab 1539e0b29adSMauro Carvalho Chehab Minimum TBAT temperature trip-wire value where the supply will 1549e0b29adSMauro Carvalho Chehab notify user-space of the event. 1559e0b29adSMauro Carvalho Chehab 1569e0b29adSMauro Carvalho Chehab USB: 1579e0b29adSMauro Carvalho Chehab 1589e0b29adSMauro Carvalho Chehab Minimum supply temperature trip-wire value where the supply 1599e0b29adSMauro Carvalho Chehab will notify user-space of the event. 1609e0b29adSMauro Carvalho Chehab 1619e0b29adSMauro Carvalho Chehab This is normally used for the charging scenario where user-space 1629e0b29adSMauro Carvalho Chehab needs to know if the temperature has crossed a lower threshold 1639e0b29adSMauro Carvalho Chehab so it can take appropriate action (e.g. warning user that 1649e0b29adSMauro Carvalho Chehab temperature level is high, and charging current has been 1659e0b29adSMauro Carvalho Chehab reduced accordingly to remedy the situation). 1669e0b29adSMauro Carvalho Chehab 1679e0b29adSMauro Carvalho Chehab Access: Read 1689e0b29adSMauro Carvalho Chehab 1699e0b29adSMauro Carvalho Chehab Valid values: Represented in 1/10 Degrees Celsius 1709e0b29adSMauro Carvalho Chehab 1719e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/temp_max 1729e0b29adSMauro Carvalho ChehabDate: July 2014 1739e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 1749e0b29adSMauro Carvalho ChehabDescription: 1759e0b29adSMauro Carvalho Chehab Battery: 1769e0b29adSMauro Carvalho Chehab 1779e0b29adSMauro Carvalho Chehab Reports the maximum allowed TBAT battery temperature for 1789e0b29adSMauro Carvalho Chehab charging. 1799e0b29adSMauro Carvalho Chehab 1809e0b29adSMauro Carvalho Chehab USB: 1819e0b29adSMauro Carvalho Chehab 1829e0b29adSMauro Carvalho Chehab Reports the maximum allowed supply temperature for operation. 1839e0b29adSMauro Carvalho Chehab 1849e0b29adSMauro Carvalho Chehab Access: Read 1859e0b29adSMauro Carvalho Chehab 1869e0b29adSMauro Carvalho Chehab Valid values: Represented in 1/10 Degrees Celsius 1879e0b29adSMauro Carvalho Chehab 1889e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/temp_min 1899e0b29adSMauro Carvalho ChehabDate: July 2014 1909e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 1919e0b29adSMauro Carvalho ChehabDescription: 1929e0b29adSMauro Carvalho Chehab Battery: 1939e0b29adSMauro Carvalho Chehab 1949e0b29adSMauro Carvalho Chehab Reports the minimum allowed TBAT battery temperature for 1959e0b29adSMauro Carvalho Chehab charging. 1969e0b29adSMauro Carvalho Chehab 1979e0b29adSMauro Carvalho Chehab USB: 1989e0b29adSMauro Carvalho Chehab 1999e0b29adSMauro Carvalho Chehab Reports the minimum allowed supply temperature for operation. 2009e0b29adSMauro Carvalho Chehab 2019e0b29adSMauro Carvalho Chehab Access: Read 2029e0b29adSMauro Carvalho Chehab 2039e0b29adSMauro Carvalho Chehab Valid values: Represented in 1/10 Degrees Celsius 2049e0b29adSMauro Carvalho Chehab 2059e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/voltage_max, 2069e0b29adSMauro Carvalho ChehabDate: January 2008 2079e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 2089e0b29adSMauro Carvalho ChehabDescription: 2099e0b29adSMauro Carvalho Chehab Battery: 2109e0b29adSMauro Carvalho Chehab 2119e0b29adSMauro Carvalho Chehab Reports the maximum safe VBAT voltage permitted for the 2129e0b29adSMauro Carvalho Chehab battery, during charging. 2139e0b29adSMauro Carvalho Chehab 2149e0b29adSMauro Carvalho Chehab USB: 2159e0b29adSMauro Carvalho Chehab 2169e0b29adSMauro Carvalho Chehab Reports the maximum VBUS voltage the supply can support. 2179e0b29adSMauro Carvalho Chehab 2189e0b29adSMauro Carvalho Chehab Access: Read 2199e0b29adSMauro Carvalho Chehab 2209e0b29adSMauro Carvalho Chehab Valid values: Represented in microvolts 2219e0b29adSMauro Carvalho Chehab 2229e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/voltage_min, 2239e0b29adSMauro Carvalho ChehabDate: January 2008 2249e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 2259e0b29adSMauro Carvalho ChehabDescription: 2269e0b29adSMauro Carvalho Chehab Battery: 2279e0b29adSMauro Carvalho Chehab 2289e0b29adSMauro Carvalho Chehab Reports the minimum safe VBAT voltage permitted for the 2299e0b29adSMauro Carvalho Chehab battery, during discharging. 2309e0b29adSMauro Carvalho Chehab 2319e0b29adSMauro Carvalho Chehab USB: 2329e0b29adSMauro Carvalho Chehab 2339e0b29adSMauro Carvalho Chehab Reports the minimum VBUS voltage the supply can support. 2349e0b29adSMauro Carvalho Chehab 2359e0b29adSMauro Carvalho Chehab Access: Read 2369e0b29adSMauro Carvalho Chehab 2379e0b29adSMauro Carvalho Chehab Valid values: Represented in microvolts 2389e0b29adSMauro Carvalho Chehab 2399e0b29adSMauro Carvalho ChehabWhat: /sys/class/power_supply/<supply_name>/voltage_now, 2409e0b29adSMauro Carvalho ChehabDate: May 2007 2419e0b29adSMauro Carvalho ChehabContact: linux-pm@vger.kernel.org 2429e0b29adSMauro Carvalho ChehabDescription: 2439e0b29adSMauro Carvalho Chehab Battery: 2449e0b29adSMauro Carvalho Chehab 2459e0b29adSMauro Carvalho Chehab Reports an instant, single VBAT voltage reading for the 2469e0b29adSMauro Carvalho Chehab battery. This value is not averaged/smoothed. 2479e0b29adSMauro Carvalho Chehab 2489e0b29adSMauro Carvalho Chehab Access: Read 2499e0b29adSMauro Carvalho Chehab 2509e0b29adSMauro Carvalho Chehab USB: 2519e0b29adSMauro Carvalho Chehab 2529e0b29adSMauro Carvalho Chehab Reports the VBUS voltage supplied now. This value is generally 2539e0b29adSMauro Carvalho Chehab read-only reporting, unless the 'online' state of the supply 2549e0b29adSMauro Carvalho Chehab is set to be programmable, in which case this value can be set 2559e0b29adSMauro Carvalho Chehab within the reported min/max range. 2569e0b29adSMauro Carvalho Chehab 2579e0b29adSMauro Carvalho Chehab Access: Read, Write 2589e0b29adSMauro Carvalho Chehab 2599e0b29adSMauro Carvalho Chehab Valid values: Represented in microvolts 2609e0b29adSMauro Carvalho Chehab 2619e0b29adSMauro Carvalho Chehab**Battery Properties** 26291dabc54SAdam Thomson 26391dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/capacity 26491dabc54SAdam ThomsonDate: May 2007 26591dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 26691dabc54SAdam ThomsonDescription: 26791dabc54SAdam Thomson Fine grain representation of battery capacity. 26854a19b4dSMauro Carvalho Chehab 26991dabc54SAdam Thomson Access: Read 27054a19b4dSMauro Carvalho Chehab 27191dabc54SAdam Thomson Valid values: 0 - 100 (percent) 27291dabc54SAdam Thomson 27391dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/capacity_alert_max 27491dabc54SAdam ThomsonDate: July 2012 27591dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 27691dabc54SAdam ThomsonDescription: 27791dabc54SAdam Thomson Maximum battery capacity trip-wire value where the supply will 27891dabc54SAdam Thomson notify user-space of the event. This is normally used for the 27991dabc54SAdam Thomson battery discharging scenario where user-space needs to know the 28091dabc54SAdam Thomson battery has dropped to an upper level so it can take 28191dabc54SAdam Thomson appropriate action (e.g. warning user that battery level is 28291dabc54SAdam Thomson low). 28391dabc54SAdam Thomson 28491dabc54SAdam Thomson Access: Read, Write 28554a19b4dSMauro Carvalho Chehab 28691dabc54SAdam Thomson Valid values: 0 - 100 (percent) 28791dabc54SAdam Thomson 28891dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/capacity_alert_min 28991dabc54SAdam ThomsonDate: July 2012 29091dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 29191dabc54SAdam ThomsonDescription: 29291dabc54SAdam Thomson Minimum battery capacity trip-wire value where the supply will 29391dabc54SAdam Thomson notify user-space of the event. This is normally used for the 29491dabc54SAdam Thomson battery discharging scenario where user-space needs to know the 29591dabc54SAdam Thomson battery has dropped to a lower level so it can take 29691dabc54SAdam Thomson appropriate action (e.g. warning user that battery level is 29791dabc54SAdam Thomson critically low). 29891dabc54SAdam Thomson 29991dabc54SAdam Thomson Access: Read, Write 30034433332SMauro Carvalho Chehab 30191dabc54SAdam Thomson Valid values: 0 - 100 (percent) 30291dabc54SAdam Thomson 303bac705abSSebastian ReichelWhat: /sys/class/power_supply/<supply_name>/capacity_error_margin 304bac705abSSebastian ReichelDate: April 2019 305bac705abSSebastian ReichelContact: linux-pm@vger.kernel.org 306bac705abSSebastian ReichelDescription: 307bac705abSSebastian Reichel Battery capacity measurement becomes unreliable without 308bac705abSSebastian Reichel recalibration. This values provides the maximum error 309bac705abSSebastian Reichel margin expected to exist by the fuel gauge in percent. 310bac705abSSebastian Reichel Values close to 0% will be returned after (re-)calibration 311bac705abSSebastian Reichel has happened. Over time the error margin will increase. 312bac705abSSebastian Reichel 100% means, that the capacity related values are basically 313bac705abSSebastian Reichel completely useless. 314bac705abSSebastian Reichel 315bac705abSSebastian Reichel Access: Read 31654a19b4dSMauro Carvalho Chehab 317bac705abSSebastian Reichel Valid values: 0 - 100 (percent) 318bac705abSSebastian Reichel 31991dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/capacity_level 32091dabc54SAdam ThomsonDate: June 2009 32191dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 32291dabc54SAdam ThomsonDescription: 32391dabc54SAdam Thomson Coarse representation of battery capacity. 32491dabc54SAdam Thomson 32591dabc54SAdam Thomson Access: Read 32634433332SMauro Carvalho Chehab 32734433332SMauro Carvalho Chehab Valid values: 32834433332SMauro Carvalho Chehab "Unknown", "Critical", "Low", "Normal", "High", 32991dabc54SAdam Thomson "Full" 33091dabc54SAdam Thomson 33161e93655SNick CrewsWhat: /sys/class/power_supply/<supply_name>/charge_control_limit 33261e93655SNick CrewsDate: Oct 2012 33361e93655SNick CrewsContact: linux-pm@vger.kernel.org 33461e93655SNick CrewsDescription: 33561e93655SNick Crews Maximum allowable charging current. Used for charge rate 33661e93655SNick Crews throttling for thermal cooling or improving battery health. 33761e93655SNick Crews 33861e93655SNick Crews Access: Read, Write 33934433332SMauro Carvalho Chehab 34061e93655SNick Crews Valid values: Represented in microamps 34161e93655SNick Crews 34261e93655SNick CrewsWhat: /sys/class/power_supply/<supply_name>/charge_control_limit_max 34361e93655SNick CrewsDate: Oct 2012 34461e93655SNick CrewsContact: linux-pm@vger.kernel.org 34561e93655SNick CrewsDescription: 34661e93655SNick Crews Maximum legal value for the charge_control_limit property. 34761e93655SNick Crews 34861e93655SNick Crews Access: Read 34934433332SMauro Carvalho Chehab 35061e93655SNick Crews Valid values: Represented in microamps 35161e93655SNick Crews 352813cab8fSNick CrewsWhat: /sys/class/power_supply/<supply_name>/charge_control_start_threshold 353813cab8fSNick CrewsDate: April 2019 354813cab8fSNick CrewsContact: linux-pm@vger.kernel.org 355813cab8fSNick CrewsDescription: 356813cab8fSNick Crews Represents a battery percentage level, below which charging will 357813cab8fSNick Crews begin. 358813cab8fSNick Crews 359813cab8fSNick Crews Access: Read, Write 360813cab8fSNick Crews Valid values: 0 - 100 (percent) 361813cab8fSNick Crews 362813cab8fSNick CrewsWhat: /sys/class/power_supply/<supply_name>/charge_control_end_threshold 363813cab8fSNick CrewsDate: April 2019 364813cab8fSNick CrewsContact: linux-pm@vger.kernel.org 365813cab8fSNick CrewsDescription: 366813cab8fSNick Crews Represents a battery percentage level, above which charging will 36718ef1bb0SArvid Norlander stop. Not all hardware is capable of setting this to an arbitrary 36818ef1bb0SArvid Norlander percentage. Drivers will round written values to the nearest 36918ef1bb0SArvid Norlander supported value. Reading back the value will show the actual 37018ef1bb0SArvid Norlander threshold set by the driver. 371813cab8fSNick Crews 372813cab8fSNick Crews Access: Read, Write 37334433332SMauro Carvalho Chehab 374813cab8fSNick Crews Valid values: 0 - 100 (percent) 375813cab8fSNick Crews 37691dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/charge_type 37791dabc54SAdam ThomsonDate: July 2009 37891dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 37991dabc54SAdam ThomsonDescription: 38091dabc54SAdam Thomson Represents the type of charging currently being applied to the 381ba6cc850SNick Crews battery. "Trickle", "Fast", and "Standard" all mean different 382ba6cc850SNick Crews charging speeds. "Adaptive" means that the charger uses some 383ba6cc850SNick Crews algorithm to adjust the charge rate dynamically, without 384ba6cc850SNick Crews any user configuration required. "Custom" means that the charger 385ba6cc850SNick Crews uses the charge_control_* properties as configuration for some 3861ff8cc2cSRicardo Rivera-Matos different algorithm. "Long Life" means the charger reduces its 3871ff8cc2cSRicardo Rivera-Matos charging rate in order to prolong the battery health. "Bypass" 3881ff8cc2cSRicardo Rivera-Matos means the charger bypasses the charging path around the 3891ff8cc2cSRicardo Rivera-Matos integrated converter allowing for a "smart" wall adaptor to 3901ff8cc2cSRicardo Rivera-Matos perform the power conversion externally. 39191dabc54SAdam Thomson 392ba6cc850SNick Crews Access: Read, Write 39334433332SMauro Carvalho Chehab 39434433332SMauro Carvalho Chehab Valid values: 39534433332SMauro Carvalho Chehab "Unknown", "N/A", "Trickle", "Fast", "Standard", 3961ff8cc2cSRicardo Rivera-Matos "Adaptive", "Custom", "Long Life", "Bypass" 39791dabc54SAdam Thomson 39891dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/charge_term_current 39991dabc54SAdam ThomsonDate: July 2014 40091dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 40191dabc54SAdam ThomsonDescription: 40291dabc54SAdam Thomson Reports the charging current value which is used to determine 40391dabc54SAdam Thomson when the battery is considered full and charging should end. 40491dabc54SAdam Thomson 40591dabc54SAdam Thomson Access: Read 40634433332SMauro Carvalho Chehab 40791dabc54SAdam Thomson Valid values: Represented in microamps 40891dabc54SAdam Thomson 40991dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/health 41091dabc54SAdam ThomsonDate: May 2007 41191dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 41291dabc54SAdam ThomsonDescription: 41391dabc54SAdam Thomson Reports the health of the battery or battery side of charger 41491dabc54SAdam Thomson functionality. 41591dabc54SAdam Thomson 41691dabc54SAdam Thomson Access: Read 41734433332SMauro Carvalho Chehab 41834433332SMauro Carvalho Chehab Valid values: 41934433332SMauro Carvalho Chehab "Unknown", "Good", "Overheat", "Dead", 42091dabc54SAdam Thomson "Over voltage", "Unspecified failure", "Cold", 421333853beSDan Murphy "Watchdog timer expire", "Safety timer expire", 42298cc1b93SDan Murphy "Over current", "Calibration required", "Warm", 42377d641baSLuca Ceresoli "Cool", "Hot", "No battery" 42491dabc54SAdam Thomson 42591dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/precharge_current 42691dabc54SAdam ThomsonDate: June 2017 42791dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 42891dabc54SAdam ThomsonDescription: 42991dabc54SAdam Thomson Reports the charging current applied during pre-charging phase 43091dabc54SAdam Thomson for a battery charge cycle. 43191dabc54SAdam Thomson 43291dabc54SAdam Thomson Access: Read 43334433332SMauro Carvalho Chehab 43491dabc54SAdam Thomson Valid values: Represented in microamps 43591dabc54SAdam Thomson 43691dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/present 43791dabc54SAdam ThomsonDate: May 2007 43891dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 43991dabc54SAdam ThomsonDescription: 440*f0cf0575SBastien Nocera Reports whether a battery is present or not in the system. If the 441*f0cf0575SBastien Nocera property does not exist, the battery is considered to be present. 44291dabc54SAdam Thomson 44391dabc54SAdam Thomson Access: Read 44434433332SMauro Carvalho Chehab 44591dabc54SAdam Thomson Valid values: 44634433332SMauro Carvalho Chehab 44734433332SMauro Carvalho Chehab == ======= 44891dabc54SAdam Thomson 0: Absent 44991dabc54SAdam Thomson 1: Present 45034433332SMauro Carvalho Chehab == ======= 45191dabc54SAdam Thomson 45291dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/status 45391dabc54SAdam ThomsonDate: May 2007 45491dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 45591dabc54SAdam ThomsonDescription: 45691dabc54SAdam Thomson Represents the charging status of the battery. Normally this 45791dabc54SAdam Thomson is read-only reporting although for some supplies this can be 45891dabc54SAdam Thomson used to enable/disable charging to the battery. 45991dabc54SAdam Thomson 46091dabc54SAdam Thomson Access: Read, Write 46134433332SMauro Carvalho Chehab 46234433332SMauro Carvalho Chehab Valid values: 46334433332SMauro Carvalho Chehab "Unknown", "Charging", "Discharging", 46491dabc54SAdam Thomson "Not charging", "Full" 46591dabc54SAdam Thomson 4661b0b6cc8SThomas WeißschuhWhat: /sys/class/power_supply/<supply_name>/charge_behaviour 4671b0b6cc8SThomas WeißschuhDate: November 2021 4681b0b6cc8SThomas WeißschuhContact: linux-pm@vger.kernel.org 4691b0b6cc8SThomas WeißschuhDescription: 4701b0b6cc8SThomas Weißschuh Represents the charging behaviour. 4711b0b6cc8SThomas Weißschuh 4721b0b6cc8SThomas Weißschuh Access: Read, Write 4731b0b6cc8SThomas Weißschuh 4741b0b6cc8SThomas Weißschuh Valid values: 4751b0b6cc8SThomas Weißschuh ================ ==================================== 4761b0b6cc8SThomas Weißschuh auto: Charge normally, respect thresholds 4771b0b6cc8SThomas Weißschuh inhibit-charge: Do not charge while AC is attached 4781b0b6cc8SThomas Weißschuh force-discharge: Force discharge while AC is attached 479da5462a4SRandy Dunlap ================ ==================================== 4801b0b6cc8SThomas Weißschuh 48191dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/technology 48291dabc54SAdam ThomsonDate: May 2007 48391dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 48491dabc54SAdam ThomsonDescription: 48591dabc54SAdam Thomson Describes the battery technology supported by the supply. 48691dabc54SAdam Thomson 48791dabc54SAdam Thomson Access: Read 48834433332SMauro Carvalho Chehab 48934433332SMauro Carvalho Chehab Valid values: 49034433332SMauro Carvalho Chehab "Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", 49191dabc54SAdam Thomson "NiCd", "LiMn" 49291dabc54SAdam Thomson 49391dabc54SAdam Thomson 49491dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/voltage_avg, 49591dabc54SAdam ThomsonDate: May 2007 49691dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 49791dabc54SAdam ThomsonDescription: 49891dabc54SAdam Thomson Reports an average VBAT voltage reading for the battery, over a 49991dabc54SAdam Thomson fixed period. Normally devices will provide a fixed interval in 50091dabc54SAdam Thomson which they average readings to smooth out the reported value. 50191dabc54SAdam Thomson 50291dabc54SAdam Thomson Access: Read 50334433332SMauro Carvalho Chehab 50491dabc54SAdam Thomson Valid values: Represented in microvolts 50591dabc54SAdam Thomson 5065d1f642aSHans de GoedeWhat: /sys/class/power_supply/<supply_name>/cycle_count 5075d1f642aSHans de GoedeDate: January 2010 5085d1f642aSHans de GoedeContact: linux-pm@vger.kernel.org 5095d1f642aSHans de GoedeDescription: 5105d1f642aSHans de Goede Reports the number of full charge + discharge cycles the 5115d1f642aSHans de Goede battery has undergone. 5125d1f642aSHans de Goede 5135d1f642aSHans de Goede Access: Read 5145d1f642aSHans de Goede 5155d1f642aSHans de Goede Valid values: 5165d1f642aSHans de Goede Integer > 0: representing full cycles 5175d1f642aSHans de Goede Integer = 0: cycle_count info is not available 5185d1f642aSHans de Goede 51934433332SMauro Carvalho Chehab**USB Properties** 52091dabc54SAdam Thomson 52191dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/input_current_limit 52291dabc54SAdam ThomsonDate: July 2014 52391dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 52491dabc54SAdam ThomsonDescription: 52591dabc54SAdam Thomson Details the incoming IBUS current limit currently set in the 52691dabc54SAdam Thomson supply. Normally this is configured based on the type of 52791dabc54SAdam Thomson connection made (e.g. A configured SDP should output a maximum 52891dabc54SAdam Thomson of 500mA so the input current limit is set to the same value). 529a4496d52SEnric Balletbo i Serra Use preferably input_power_limit, and for problems that can be 530a4496d52SEnric Balletbo i Serra solved using power limit use input_current_limit. 53191dabc54SAdam Thomson 53291dabc54SAdam Thomson Access: Read, Write 53334433332SMauro Carvalho Chehab 53491dabc54SAdam Thomson Valid values: Represented in microamps 53591dabc54SAdam Thomson 536a4496d52SEnric Balletbo i SerraWhat: /sys/class/power_supply/<supply_name>/input_voltage_limit 537a4496d52SEnric Balletbo i SerraDate: May 2019 538a4496d52SEnric Balletbo i SerraContact: linux-pm@vger.kernel.org 539a4496d52SEnric Balletbo i SerraDescription: 540a4496d52SEnric Balletbo i Serra This entry configures the incoming VBUS voltage limit currently 541a4496d52SEnric Balletbo i Serra set in the supply. Normally this is configured based on 542a4496d52SEnric Balletbo i Serra system-level knowledge or user input (e.g. This is part of the 543a4496d52SEnric Balletbo i Serra Pixel C's thermal management strategy to effectively limit the 544a4496d52SEnric Balletbo i Serra input power to 5V when the screen is on to meet Google's skin 545a4496d52SEnric Balletbo i Serra temperature targets). Note that this feature should not be 546a4496d52SEnric Balletbo i Serra used for safety critical things. 547a4496d52SEnric Balletbo i Serra Use preferably input_power_limit, and for problems that can be 548a4496d52SEnric Balletbo i Serra solved using power limit use input_voltage_limit. 549a4496d52SEnric Balletbo i Serra 550a4496d52SEnric Balletbo i Serra Access: Read, Write 55154a19b4dSMauro Carvalho Chehab 552a4496d52SEnric Balletbo i Serra Valid values: Represented in microvolts 553a4496d52SEnric Balletbo i Serra 554a4496d52SEnric Balletbo i SerraWhat: /sys/class/power_supply/<supply_name>/input_power_limit 555a4496d52SEnric Balletbo i SerraDate: May 2019 556a4496d52SEnric Balletbo i SerraContact: linux-pm@vger.kernel.org 557a4496d52SEnric Balletbo i SerraDescription: 558a4496d52SEnric Balletbo i Serra This entry configures the incoming power limit currently set 559a4496d52SEnric Balletbo i Serra in the supply. Normally this is configured based on 560a4496d52SEnric Balletbo i Serra system-level knowledge or user input. Use preferably this 561a4496d52SEnric Balletbo i Serra feature to limit the incoming power and use current/voltage 562a4496d52SEnric Balletbo i Serra limit only for problems that can be solved using power limit. 563a4496d52SEnric Balletbo i Serra 564a4496d52SEnric Balletbo i Serra Access: Read, Write 56554a19b4dSMauro Carvalho Chehab 566a4496d52SEnric Balletbo i Serra Valid values: Represented in microwatts 567a4496d52SEnric Balletbo i Serra 56891dabc54SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/online, 56991dabc54SAdam ThomsonDate: May 2007 57091dabc54SAdam ThomsonContact: linux-pm@vger.kernel.org 57191dabc54SAdam ThomsonDescription: 57291dabc54SAdam Thomson Indicates if VBUS is present for the supply. When the supply is 57391dabc54SAdam Thomson online, and the supply allows it, then it's possible to switch 57491dabc54SAdam Thomson between online states (e.g. Fixed -> Programmable for a PD_PPS 57591dabc54SAdam Thomson USB supply so voltage and current can be controlled). 57691dabc54SAdam Thomson 57791dabc54SAdam Thomson Access: Read, Write 57834433332SMauro Carvalho Chehab 57991dabc54SAdam Thomson Valid values: 58034433332SMauro Carvalho Chehab 58134433332SMauro Carvalho Chehab == ================================================== 58291dabc54SAdam Thomson 0: Offline 58391dabc54SAdam Thomson 1: Online Fixed - Fixed Voltage Supply 58491dabc54SAdam Thomson 2: Online Programmable - Programmable Voltage Supply 58534433332SMauro Carvalho Chehab == ================================================== 58691dabc54SAdam Thomson 587cf450041SAdam ThomsonWhat: /sys/class/power_supply/<supply_name>/usb_type 588cf450041SAdam ThomsonDate: March 2018 589cf450041SAdam ThomsonContact: linux-pm@vger.kernel.org 590cf450041SAdam ThomsonDescription: 591cf450041SAdam Thomson Reports what type of USB connection is currently active for 592cf450041SAdam Thomson the supply, for example it can show if USB-PD capable source 593cf450041SAdam Thomson is attached. 594cf450041SAdam Thomson 595cf450041SAdam Thomson Access: Read-Only 59634433332SMauro Carvalho Chehab 59734433332SMauro Carvalho Chehab Valid values: 59834433332SMauro Carvalho Chehab "Unknown", "SDP", "DCP", "CDP", "ACA", "C", "PD", 599cf450041SAdam Thomson "PD_DRP", "PD_PPS", "BrickID" 600cf450041SAdam Thomson 60134433332SMauro Carvalho Chehab**Device Specific Properties** 60291dabc54SAdam Thomson 60324af3202SDaniel MackWhat: /sys/class/power/ds2760-battery.*/charge_now 60424af3202SDaniel MackDate: May 2010 60524af3202SDaniel MackKernelVersion: 2.6.35 60624af3202SDaniel MackContact: Daniel Mack <daniel@caiaq.de> 60724af3202SDaniel MackDescription: 60824af3202SDaniel Mack This file is writeable and can be used to set the current 60924af3202SDaniel Mack coloumb counter value inside the battery monitor chip. This 61024af3202SDaniel Mack is needed for unavoidable corrections of aging batteries. 61124af3202SDaniel Mack A userspace daemon can monitor the battery charging logic 61224af3202SDaniel Mack and once the counter drops out of considerable bounds, take 61324af3202SDaniel Mack appropriate action. 61424af3202SDaniel Mack 61524af3202SDaniel MackWhat: /sys/class/power/ds2760-battery.*/charge_full 61624af3202SDaniel MackDate: May 2010 61724af3202SDaniel MackKernelVersion: 2.6.35 61824af3202SDaniel MackContact: Daniel Mack <daniel@caiaq.de> 61924af3202SDaniel MackDescription: 62024af3202SDaniel Mack This file is writeable and can be used to set the assumed 62124af3202SDaniel Mack battery 'full level'. As batteries age, this value has to be 62224af3202SDaniel Mack amended over time. 623d6cc1f58SKrzysztof Kozlowski 624d6cc1f58SKrzysztof KozlowskiWhat: /sys/class/power_supply/max14577-charger/device/fast_charge_timer 625c8c5ebccSKrzysztof KozlowskiDate: October 2014 626d6cc1f58SKrzysztof KozlowskiKernelVersion: 3.18.0 6271c4593edSKrzysztof KozlowskiContact: Krzysztof Kozlowski <krzk@kernel.org> 628d6cc1f58SKrzysztof KozlowskiDescription: 629d6cc1f58SKrzysztof Kozlowski This entry shows and sets the maximum time the max14577 630d6cc1f58SKrzysztof Kozlowski charger operates in fast-charge mode. When the timer expires 631d6cc1f58SKrzysztof Kozlowski the device will terminate fast-charge mode (charging current 632d6cc1f58SKrzysztof Kozlowski will drop to 0 A) and will trigger interrupt. 633d6cc1f58SKrzysztof Kozlowski 634d6cc1f58SKrzysztof Kozlowski Valid values: 63534433332SMauro Carvalho Chehab 636d6cc1f58SKrzysztof Kozlowski - 5, 6 or 7 (hours), 637d6cc1f58SKrzysztof Kozlowski - 0: disabled. 6386b23becdSKrzysztof Kozlowski 6396b23becdSKrzysztof KozlowskiWhat: /sys/class/power_supply/max77693-charger/device/fast_charge_timer 6406b23becdSKrzysztof KozlowskiDate: January 2015 6416b23becdSKrzysztof KozlowskiKernelVersion: 3.19.0 6421c4593edSKrzysztof KozlowskiContact: Krzysztof Kozlowski <krzk@kernel.org> 6436b23becdSKrzysztof KozlowskiDescription: 6446b23becdSKrzysztof Kozlowski This entry shows and sets the maximum time the max77693 6456b23becdSKrzysztof Kozlowski charger operates in fast-charge mode. When the timer expires 6466b23becdSKrzysztof Kozlowski the device will terminate fast-charge mode (charging current 6476b23becdSKrzysztof Kozlowski will drop to 0 A) and will trigger interrupt. 6486b23becdSKrzysztof Kozlowski 6496b23becdSKrzysztof Kozlowski Valid values: 65034433332SMauro Carvalho Chehab 6516b23becdSKrzysztof Kozlowski - 4 - 16 (hours), step by 2 (rounded down) 6526b23becdSKrzysztof Kozlowski - 0: disabled. 6536b23becdSKrzysztof Kozlowski 6546b23becdSKrzysztof KozlowskiWhat: /sys/class/power_supply/max77693-charger/device/top_off_threshold_current 6556b23becdSKrzysztof KozlowskiDate: January 2015 6566b23becdSKrzysztof KozlowskiKernelVersion: 3.19.0 6571c4593edSKrzysztof KozlowskiContact: Krzysztof Kozlowski <krzk@kernel.org> 6586b23becdSKrzysztof KozlowskiDescription: 6596b23becdSKrzysztof Kozlowski This entry shows and sets the charging current threshold for 6606b23becdSKrzysztof Kozlowski entering top-off charging mode. When charging current in fast 6616b23becdSKrzysztof Kozlowski charge mode drops below this value, the charger will trigger 6626b23becdSKrzysztof Kozlowski interrupt and start top-off charging mode. 6636b23becdSKrzysztof Kozlowski 6646b23becdSKrzysztof Kozlowski Valid values: 66534433332SMauro Carvalho Chehab 6666b23becdSKrzysztof Kozlowski - 100000 - 200000 (microamps), step by 25000 (rounded down) 6676b23becdSKrzysztof Kozlowski - 200000 - 350000 (microamps), step by 50000 (rounded down) 6686b23becdSKrzysztof Kozlowski - 0: disabled. 6696b23becdSKrzysztof Kozlowski 6706b23becdSKrzysztof KozlowskiWhat: /sys/class/power_supply/max77693-charger/device/top_off_timer 6716b23becdSKrzysztof KozlowskiDate: January 2015 6726b23becdSKrzysztof KozlowskiKernelVersion: 3.19.0 6731c4593edSKrzysztof KozlowskiContact: Krzysztof Kozlowski <krzk@kernel.org> 6746b23becdSKrzysztof KozlowskiDescription: 6756b23becdSKrzysztof Kozlowski This entry shows and sets the maximum time the max77693 6766b23becdSKrzysztof Kozlowski charger operates in top-off charge mode. When the timer expires 6776b23becdSKrzysztof Kozlowski the device will terminate top-off charge mode (charging current 6786b23becdSKrzysztof Kozlowski will drop to 0 A) and will trigger interrupt. 6796b23becdSKrzysztof Kozlowski 6806b23becdSKrzysztof Kozlowski Valid values: 68134433332SMauro Carvalho Chehab 6826b23becdSKrzysztof Kozlowski - 0 - 70 (minutes), step by 10 (rounded down) 6836169588fSAndreas Dannenberg 6846169588fSAndreas DannenbergWhat: /sys/class/power_supply/bq24257-charger/ovp_voltage 6856169588fSAndreas DannenbergDate: October 2015 6866169588fSAndreas DannenbergKernelVersion: 4.4.0 6876169588fSAndreas DannenbergContact: Andreas Dannenberg <dannenberg@ti.com> 6886169588fSAndreas DannenbergDescription: 6896169588fSAndreas Dannenberg This entry configures the overvoltage protection feature of bq24257- 6906169588fSAndreas Dannenberg type charger devices. This feature protects the device and other 6916169588fSAndreas Dannenberg components against damage from overvoltage on the input supply. See 6926169588fSAndreas Dannenberg device datasheet for details. 6936169588fSAndreas Dannenberg 6946169588fSAndreas Dannenberg Valid values: 69534433332SMauro Carvalho Chehab 6966169588fSAndreas Dannenberg - 6000000, 6500000, 7000000, 8000000, 9000000, 9500000, 10000000, 6976169588fSAndreas Dannenberg 10500000 (all uV) 6986169588fSAndreas Dannenberg 6996169588fSAndreas DannenbergWhat: /sys/class/power_supply/bq24257-charger/in_dpm_voltage 7006169588fSAndreas DannenbergDate: October 2015 7016169588fSAndreas DannenbergKernelVersion: 4.4.0 7026169588fSAndreas DannenbergContact: Andreas Dannenberg <dannenberg@ti.com> 7036169588fSAndreas DannenbergDescription: 7046169588fSAndreas Dannenberg This entry configures the input dynamic power path management voltage of 7056169588fSAndreas Dannenberg bq24257-type charger devices. Once the supply drops to the configured 7066169588fSAndreas Dannenberg voltage, the input current limit is reduced down to prevent the further 7076169588fSAndreas Dannenberg drop of the supply. When the IC enters this mode, the charge current is 7086169588fSAndreas Dannenberg lower than the set value. See device datasheet for details. 7096169588fSAndreas Dannenberg 7106169588fSAndreas Dannenberg Valid values: 71134433332SMauro Carvalho Chehab 7126169588fSAndreas Dannenberg - 4200000, 4280000, 4360000, 4440000, 4520000, 4600000, 4680000, 7136169588fSAndreas Dannenberg 4760000 (all uV) 7146169588fSAndreas Dannenberg 7156169588fSAndreas DannenbergWhat: /sys/class/power_supply/bq24257-charger/high_impedance_enable 7166169588fSAndreas DannenbergDate: October 2015 7176169588fSAndreas DannenbergKernelVersion: 4.4.0 7186169588fSAndreas DannenbergContact: Andreas Dannenberg <dannenberg@ti.com> 7196169588fSAndreas DannenbergDescription: 7206169588fSAndreas Dannenberg This entry allows enabling the high-impedance mode of bq24257-type 7216169588fSAndreas Dannenberg charger devices. If enabled, it places the charger IC into low power 7226169588fSAndreas Dannenberg standby mode with the switch mode controller disabled. When disabled, 7236169588fSAndreas Dannenberg the charger operates normally. See device datasheet for details. 7246169588fSAndreas Dannenberg 7256169588fSAndreas Dannenberg Valid values: 72634433332SMauro Carvalho Chehab 7276169588fSAndreas Dannenberg - 1: enabled 7286169588fSAndreas Dannenberg - 0: disabled 7296169588fSAndreas Dannenberg 7306169588fSAndreas DannenbergWhat: /sys/class/power_supply/bq24257-charger/sysoff_enable 7316169588fSAndreas DannenbergDate: October 2015 7326169588fSAndreas DannenbergKernelVersion: 4.4.0 7336169588fSAndreas DannenbergContact: Andreas Dannenberg <dannenberg@ti.com> 7346169588fSAndreas DannenbergDescription: 7356169588fSAndreas Dannenberg This entry allows enabling the sysoff mode of bq24257-type charger 7366169588fSAndreas Dannenberg devices. If enabled and the input is removed, the internal battery FET 7376169588fSAndreas Dannenberg is turned off in order to reduce the leakage from the BAT pin to less 7386169588fSAndreas Dannenberg than 1uA. Note that on some devices/systems this disconnects the battery 7396169588fSAndreas Dannenberg from the system. See device datasheet for details. 7406169588fSAndreas Dannenberg 7416169588fSAndreas Dannenberg Valid values: 74234433332SMauro Carvalho Chehab 7436169588fSAndreas Dannenberg - 1: enabled 7446169588fSAndreas Dannenberg - 0: disabled 745feabe49eSSebastian Reichel 746feabe49eSSebastian ReichelWhat: /sys/class/power_supply/<supply_name>/manufacture_year 747feabe49eSSebastian ReichelDate: January 2020 748feabe49eSSebastian ReichelContact: linux-pm@vger.kernel.org 749feabe49eSSebastian ReichelDescription: 750feabe49eSSebastian Reichel Reports the year (following Gregorian calendar) when the device has been 751feabe49eSSebastian Reichel manufactured. 752feabe49eSSebastian Reichel 753feabe49eSSebastian Reichel Access: Read 75454a19b4dSMauro Carvalho Chehab 755feabe49eSSebastian Reichel Valid values: Reported as integer 756feabe49eSSebastian Reichel 757feabe49eSSebastian ReichelWhat: /sys/class/power_supply/<supply_name>/manufacture_month 758feabe49eSSebastian ReichelDate: January 2020 759feabe49eSSebastian ReichelContact: linux-pm@vger.kernel.org 760feabe49eSSebastian ReichelDescription: 761feabe49eSSebastian Reichel Reports the month when the device has been manufactured. 762feabe49eSSebastian Reichel 763feabe49eSSebastian Reichel Access: Read 76454a19b4dSMauro Carvalho Chehab 765feabe49eSSebastian Reichel Valid values: 1-12 766feabe49eSSebastian Reichel 767feabe49eSSebastian ReichelWhat: /sys/class/power_supply/<supply_name>/manufacture_day 768feabe49eSSebastian ReichelDate: January 2020 769feabe49eSSebastian ReichelContact: linux-pm@vger.kernel.org 770feabe49eSSebastian ReichelDescription: 771feabe49eSSebastian Reichel Reports the day of month when the device has been manufactured. 772feabe49eSSebastian Reichel 773feabe49eSSebastian Reichel Access: Read 774feabe49eSSebastian Reichel Valid values: 1-31 775