| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | rk817_battery.c | 695 static int rk817_bat_field_read(struct rk817_battery_device *battery, in rk817_bat_field_read() argument 701 ret = regmap_field_read(battery->rmap_fields[field_id], &val); in rk817_bat_field_read() 708 static int rk817_bat_field_write(struct rk817_battery_device *battery, in rk817_bat_field_write() argument 712 return regmap_field_write(battery->rmap_fields[field_id], val); in rk817_bat_field_write() 716 static int rk817_bat_get_coffset(struct rk817_battery_device *battery) in rk817_bat_get_coffset() argument 720 coffset_value |= rk817_bat_field_read(battery, CAL_OFFSET_H) << 8; in rk817_bat_get_coffset() 721 coffset_value |= rk817_bat_field_read(battery, CAL_OFFSET_L); in rk817_bat_get_coffset() 726 static void rk817_bat_set_coffset(struct rk817_battery_device *battery, int val) in rk817_bat_set_coffset() argument 731 rk817_bat_field_write(battery, CAL_OFFSET_H, buf); in rk817_bat_set_coffset() 733 rk817_bat_field_write(battery, CAL_OFFSET_L, buf); in rk817_bat_set_coffset() [all …]
|
| H A D | rt5033_battery.c | 17 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_capacity() local 20 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity() 27 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_present() local 30 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present() 38 struct rt5033_battery *battery = i2c_get_clientdata(client); in rt5033_battery_get_watt_prop() local 60 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop() 61 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop() 72 struct rt5033_battery *battery = power_supply_get_drvdata(psy); in rt5033_battery_get_property() local 78 val->intval = rt5033_battery_get_watt_prop(battery->client, in rt5033_battery_get_property() 82 val->intval = rt5033_battery_get_present(battery->client); in rt5033_battery_get_property() [all …]
|
| H A D | Kconfig | 45 battery class devices. 48 tristate "Generic battery support using IIO" 51 Say Y here to enable support for the generic battery driver 55 tristate "MAX8925 battery charger support" 58 Say Y here to enable support for the battery charger in the Maxim 62 tristate "WM831X backup battery charger support" 65 Say Y here to enable support for the backup battery charger 88 tristate "Marvell 88PM860x battery driver" 91 Say Y here to enable battery monitor for Marvell 88PM860x chip. 94 tristate "ADP5061 battery charger driver" [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/ |
| H A D | fg_rk817.c | 308 static int rk817_bat_read(struct rk817_battery_device *battery, u8 reg) in rk817_bat_read() argument 310 return pmic_reg_read(battery->dev->parent, reg); in rk817_bat_read() 313 static void rk817_bat_write(struct rk817_battery_device *battery, in rk817_bat_write() argument 316 pmic_reg_write(battery->dev->parent, reg, buf); in rk817_bat_write() 319 static int rk817_bat_get_vaclib0(struct rk817_battery_device *battery) in rk817_bat_get_vaclib0() argument 323 vcalib_value |= rk817_bat_read(battery, VCALIB0_H) << 8; in rk817_bat_get_vaclib0() 324 vcalib_value |= rk817_bat_read(battery, VCALIB0_L); in rk817_bat_get_vaclib0() 329 static int rk817_bat_get_vaclib1(struct rk817_battery_device *battery) in rk817_bat_get_vaclib1() argument 333 vcalib_value |= rk817_bat_read(battery, VCALIB1_H) << 8; in rk817_bat_get_vaclib1() 334 vcalib_value |= rk817_bat_read(battery, VCALIB1_L); in rk817_bat_get_vaclib1() [all …]
|
| H A D | spl_fg_rk817.c | 32 static u8 rk817_bat_read(struct rk817_battery_device *battery, u8 reg) in rk817_bat_read() argument 37 ret = dm_i2c_read(battery->dev, reg, &buf, 1); in rk817_bat_read() 47 static int rk817_bat_write(struct rk817_battery_device *battery, in rk817_bat_write() argument 52 ret = dm_i2c_write(battery->dev, reg, &buf, 1); in rk817_bat_write() 62 static int rk817_bat_get_vaclib0(struct rk817_battery_device *battery) in rk817_bat_get_vaclib0() argument 66 val |= rk817_bat_read(battery, VCALIB0_L) << 0; in rk817_bat_get_vaclib0() 67 val |= rk817_bat_read(battery, VCALIB0_H) << 8; in rk817_bat_get_vaclib0() 72 static int rk817_bat_get_vaclib1(struct rk817_battery_device *battery) in rk817_bat_get_vaclib1() argument 76 val |= rk817_bat_read(battery, VCALIB1_L) << 0; in rk817_bat_get_vaclib1() 77 val |= rk817_bat_read(battery, VCALIB1_H) << 8; in rk817_bat_get_vaclib1() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/acpi/ |
| H A D | battery.c | 144 static inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument 146 return battery->device->status.battery_present; in acpi_battery_present() 149 static int acpi_battery_technology(struct acpi_battery *battery) in acpi_battery_technology() argument 151 if (!strcasecmp("NiCd", battery->type)) in acpi_battery_technology() 153 if (!strcasecmp("NiMH", battery->type)) in acpi_battery_technology() 155 if (!strcasecmp("LION", battery->type)) in acpi_battery_technology() 157 if (!strncasecmp("LI-ION", battery->type, 6)) in acpi_battery_technology() 159 if (!strcasecmp("LiP", battery->type)) in acpi_battery_technology() 164 static int acpi_battery_get_state(struct acpi_battery *battery); 166 static int acpi_battery_is_charged(struct acpi_battery *battery) in acpi_battery_is_charged() argument [all …]
|
| H A D | sbs.c | 90 struct acpi_battery battery[MAX_SBS_BAT]; member 100 static int acpi_battery_get_state(struct acpi_battery *battery); 110 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument 112 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale() 115 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument 117 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale() 120 static inline int acpi_battery_mode(struct acpi_battery *battery) in acpi_battery_mode() argument 122 return (battery->mode & 0x8000); in acpi_battery_mode() 125 static inline int acpi_battery_scale(struct acpi_battery *battery) in acpi_battery_scale() argument 127 return (acpi_battery_mode(battery) ? 10 : 1) * in acpi_battery_scale() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ |
| H A D | charger-manager.txt | 8 - cm-fuel-gauge : name of battery fuel gauge 20 - cm-name : charger manager's name (default : "battery") 25 - cm-battery-stat : battery status - 0 for battery always present, 1 for no 26 battery, 2 to check presence via fuel gauge, or 3 to check presence 29 - cm-fullbatt-voltage : voltage (in uV) of full battery 30 - cm-fullbatt-soc : state of charge to consider as full battery 31 - cm-fullbatt-capacity : capcity (in uAh) to consider as full battery 33 - cm-battery-* : threshold battery temperature for charging 34 -cold : critical cold temperature of battery for charging 36 -hot : critical hot temperature of battery for charging [all …]
|
| H A D | axp20x_battery.txt | 1 AXP20x and AXP22x battery power supply 5 "x-powers,axp209-battery-power-supply" 6 "x-powers,axp221-battery-power-supply" 7 "x-powers,axp813-battery-power-supply" 11 The supported devices can read the battery voltage, charge and discharge 12 currents of the battery by reading ADC channels from the ADC. 17 battery_power_supply: battery-power-supply { 18 compatible = "x-powers,axp209-battery-power-supply";
|
| H A D | bq24190.txt | 13 - monitored-battery: phandle of battery characteristics devicetree node 14 The charger uses the following battery properties: 16 phase (typically 20% of battery capacity). 18 battery voltage is above recharge threshold, and the current is below 19 this setting (typically 10% of battery capacity). 20 See also Documentation/devicetree/bindings/power/supply/battery.txt 21 - ti,system-minimum-microvolt: when power is connected and the battery is below 37 bat: battery { 38 compatible = "simple-battery"; 48 monitored-battery = <&bat>;
|
| H A D | rx51-battery.txt | 1 Binding for Nokia N900 battery 3 The Nokia N900 battery status can be read via the TWL4030's A/D converter. 7 * "nokia,n900-battery" 12 * "bsi" - The ADC channel for battery size identification 13 * "vbat" - The ADC channel to measure the battery voltage 17 battery: n900-battery { 18 compatible = "nokia,n900-battery";
|
| H A D | sc2731_charger.txt | 1 Spreadtrum SC2731 PMIC battery charger binding 9 - monitored-battery: phandle of battery characteristics devicetree node. 10 The charger uses the following battery properties: 13 See Documentation/devicetree/bindings/power/supply/battery.txt 17 bat: battery { 18 compatible = "simple-battery"; 38 monitored-battery = <&bat>;
|
| H A D | sbs,sbs-manager.txt | 16 four smart battery devices at address 0xb. The driver actually implements this 36 battery@b { 37 compatible = "ti,bq2060", "sbs,sbs-battery"; 39 sbs,battery-detect-gpios = <&batman 1 1>; 48 battery@b { 49 compatible = "ti,bq2060", "sbs,sbs-battery"; 51 sbs,battery-detect-gpios = <&batman 2 1>; 60 battery@b { 61 compatible = "ti,bq2060", "sbs,sbs-battery"; 63 sbs,battery-detect-gpios = <&batman 3 1>;
|
| H A D | lego_ev3_battery.txt | 4 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery. 5 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is 6 detected by a key switch in the battery compartment. 9 - compatible: Must be "lego,ev3-battery" 12 - rechargeable-gpios: phandle to the rechargeable battery indication gpio 16 battery { 17 compatible = "lego,ev3-battery";
|
| H A D | sc27xx-fg.txt | 11 - battery-detect-gpios: GPIO for battery detection. 18 - monitored-battery: Phandle of battery characteristics devicetree node. 19 See Documentation/devicetree/bindings/power/supply/battery.txt 23 bat: battery { 24 compatible = "simple-battery"; 51 battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; 56 monitored-battery = <&bat>;
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ab8500/ |
| H A D | fg.txt | 10 main-charger, usb-combo-charger and battery-temperature-monitoring. 16 - battery = Shall be battery specific information 20 battery = <&ab8500_battery>; 27 'battery technology type' used. 31 A boolean value indicating thermistor interface to battery 34 'btemp' and 'batctrl' are the pins interfaced for battery temperature 36 coefficient) resister is interfaced external to battery whereas 37 'batctrl' pin is used when NTC resister is internal to battery. 43 indicates: NTC resister is internal to battery, 'batctrl' is used 47 NTC resister is external to battery and 'btemp' signal is used [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rtc/ |
| H A D | rtc-palmas.txt | 10 - ti,backup-battery-chargeable: The Palmas series device like TPS65913 or 11 TPS80036 supports the backup battery for powering the RTC when main 12 battery is removed or in very low power state. The backup battery 14 battery is chargeable or not. If charging battery then driver can 16 - ti,backup-battery-charge-high-current: Enable high current charging in 17 backup battery. Device supports the < 100uA and > 100uA charging. 19 charge battery to lower current i.e. < 100uA. 28 ti,backup-battery-chargeable; 29 ti,backup-battery-charge-high-current;
|
| /OK3568_Linux_fs/kernel/Documentation/power/ |
| H A D | charger-manager.rst | 7 Charger Manager provides in-kernel battery charger management that 9 and where each battery may have multiple chargers attached and the userland 14 represents an independent battery with chargers. If there are multiple 27 different information about the battery status. This framework 32 While the battery is being charged and the system is in suspend-to-RAM, 33 we may need to monitor the battery health by looking at the ambient or 34 battery temperature. We can accomplish this by waking up the system 36 monitoring the battery health and tasks, and user processes that are 41 only affects the charging time, but the lifespan of the battery. 50 * Support for premature full-battery event handling [all …]
|
| H A D | power_supply_class.rst | 7 Power supply class used to represent battery, UPS, AC or DC power supply 25 typically expected feedback of battery charging/fully charged status and 64 | of battery, this class distinguish these terms. Don't mix them!** | 85 `BATTERY_STATUS_*` values, as defined in battery.h. 94 indicates the power supply (battery or charger) connected 98 represents health of the battery, values corresponds to 99 POWER_SUPPLY_HEALTH_*, defined in battery.h. 102 open circuit voltage of the battery. 106 Maximal/minimal means values of voltages when battery considered 108 between voltage and battery capacity, but some dumb [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/hwmon/ |
| H A D | da9052.rst | 27 Channel 1 ICH - internal battery charger current measurement 28 Channel 2 TBAT - output from the battery NTC 29 Channel 3 VBAT - measurement of the battery voltage 36 Channel 9 VBBAT - measurement of the backup battery voltage 39 By using sysfs attributes we can measure the system voltage VDDOUT, the battery 40 charging current ICH, battery temperature TBAT, battery junction temperature 41 TJUNC, battery voltage VBAT and the back up battery voltage VBBAT. 48 The battery voltage is calculated as: 52 The backup battery voltage is calculated as: 63 Temperatures are sampled by a 10 bit ADC. Junction and battery temperatures [all …]
|
| /OK3568_Linux_fs/yocto/meta-qt5/recipes-qt/qt5/qtsystems/ |
| H A D | 0001-qtsystems-install-files-only-once.patch | 14 examples/systeminfo/qml-battery/qml-battery.pro | 3 +-- 30 diff --git a/examples/systeminfo/qml-battery/qml-battery.pro b/examples/systeminfo/qml-battery/qml-… 32 --- a/examples/systeminfo/qml-battery/qml-battery.pro 33 +++ b/examples/systeminfo/qml-battery/qml-battery.pro 37 target.path = $$[QT_INSTALL_EXAMPLES]/systeminfo/qml-battery 38 -app.path = $$[QT_INSTALL_EXAMPLES]/systeminfo/qml-battery 43 qml-battery.qrc
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power_supply/ |
| H A D | rk816-battery.txt | 1 rk816-battery 5 - compatible: "rk816-battery" 10 - max_chrg_current: maximum current for battery charge 11 - max_chrg_voltage: maximum charge voltage for battery 21 - monitor_sec: poll seconds for battery delay work 22 - virtual_power: test mode for none battery 23 - energy_mode: try to use all power of battery 39 battery { 40 compatible = "rk816-battery";
|
| H A D | rk817-battery.txt | 1 rk817-battery 5 - compatible: "rk817,battery" 17 - monitor_sec: poll seconds for battery delay work 18 - virtual_power: test mode for none battery 19 - energy_mode: try to use all power of battery 29 battery { 30 compatible = "rk817,battery";
|
| /OK3568_Linux_fs/buildroot/package/matchbox-panel/ |
| H A D | 0003-mb-applet-battery.patch | 1 mb-applet-battery: don't declare line_parse as static 4 mb-applet-battery.c: In function 'read_apm': 5 mb-applet-battery.c:181:2: error: invalid storage class for function 'line_parse' 10 …urN matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c matchbox-panel-0.9.3/applets/mb-applet-b… 11 --- matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c 2006-02-07 23:27:24.000000000 +0100 12 +++ matchbox-panel-0.9.3/applets/mb-applet-battery.c 2015-05-02 17:13:00.843578796 +0200
|
| /OK3568_Linux_fs/kernel/drivers/block/ |
| H A D | umem.c | 130 } battery[2]; member 655 if (card->battery[0].good && card->battery[1].good) in set_fault_to_battery_status() 657 else if (card->battery[0].warned || card->battery[1].warned) in set_fault_to_battery_status() 659 else if (!card->battery[0].good && !card->battery[1].good) in set_fault_to_battery_status() 667 static int check_battery(struct cardinfo *card, int battery, int status) in check_battery() argument 669 if (status != card->battery[battery].good) { in check_battery() 670 card->battery[battery].good = !card->battery[battery].good; in check_battery() 671 card->battery[battery].last_change = jiffies; in check_battery() 673 if (card->battery[battery].good) { in check_battery() 675 "Battery %d now good\n", battery + 1); in check_battery() [all …]
|