| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ |
| H A D | battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 14 In smart batteries, these are typically stored in non-volatile memory 16 no appropriate non-volatile memory, or it is unprogrammed/incorrect. 27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle. 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery 34 over-voltage-threshold-microvolt: [all …]
|
| H A D | sc27xx-fg.txt | 4 - compatible: Should be one of the following: 5 "sprd,sc2720-fgu", 6 "sprd,sc2721-fgu", 7 "sprd,sc2723-fgu", 8 "sprd,sc2730-fgu", 9 "sprd,sc2731-fgu". 10 - reg: The address offset of fuel gauge unit. 11 - battery-detect-gpios: GPIO for battery detection. 12 - io-channels: Specify the IIO ADC channels to get temperature and charge voltage. 13 - io-channel-names: Should be "bat-temp" or "charge-vol". [all …]
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | sc27xx_fuel_gauge.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/nvmem-consumer.h> 82 * @total_cap: the total capacity of the battery in mAh 83 * @init_cap: the initial capacity of the battery in mAh 84 * @alarm_cap: the alarm capacity 89 * @table_len: the capacity table length 90 * @resist_table_len: the resistance table length 94 * @cap_table: capacity table with corresponding ocv 95 * @resist_table: resistance percent table with corresponding temperature 124 static int sc27xx_fgu_cap_to_clbcnt(struct sc27xx_fgu_data *data, int capacity); [all …]
|
| H A D | power_supply_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 53 if (supply->supplied_from) { in __power_supply_is_supplied_by() 54 if (!supplier->desc->name) in __power_supply_is_supplied_by() 56 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by() 57 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 60 if (!supply->desc->name) in __power_supply_is_supplied_by() 62 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by() 63 if (!strcmp(supplier->supplied_to[i], supply->desc->name)) in __power_supply_is_supplied_by() 76 if (pst->desc->external_power_changed) in __power_supply_changed_work() [all …]
|
| H A D | rk817_battery.c | 18 #define pr_fmt(fmt) "rk817-bat: " fmt 81 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument 82 (capacity * samp_res * 3600 / 172 * 1000) 644 return (get_boot_sec() > x) ? (get_boot_sec() - x) : 0; in base2sec() 649 static u32 interpolate(int value, u32 *table, int size) in interpolate() argument 655 if (value < table[i]) in interpolate() 660 d = (value - table[i - 1]) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 661 d /= table[i] - table[i - 1]; in interpolate() 662 d = d + (i - 1) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 683 c = -c; in ab_div_c() [all …]
|
| H A D | rk816_battery.c | 5 * Author: chenjh <chenjh@rock-chips.com> 51 #define BAT_INFO(fmt, args...) pr_info("rk816-bat: "fmt, ##args) 316 return (get_boot_sec() > x) ? (get_boot_sec() - x) : 0; in base2sec() 326 static u32 interpolate(int value, u32 *table, int size) in interpolate() argument 332 if (value < table[i]) in interpolate() 337 d = (value - table[i - 1]) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 338 d /= table[i] - table[i - 1]; in interpolate() 339 d = d + (i - 1) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 360 c = -c; in ab_div_c() 367 ans = -ans; in ab_div_c() [all …]
|
| H A D | rk818_battery.c | 5 * chenjh <chenjh@rock-chips.com> 51 #define BAT_INFO(fmt, args...) pr_info("rk818-bat: "fmt, ##args) 275 return (get_boot_sec() > x) ? (get_boot_sec() - x) : 0; in base2sec() 285 static u32 interpolate(int value, u32 *table, int size) in interpolate() argument 291 if (value < table[i]) in interpolate() 296 d = (value - table[i - 1]) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 297 d /= table[i] - table[i - 1]; in interpolate() 298 d = d + (i - 1) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 319 c = -c; in ab_div_c() 326 ans = -ans; in ab_div_c() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/sprd/ |
| H A D | sp9860g-1h10.dts | 6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 /dts-v1/; 17 compatible = "sprd,sp9860g-1h10", "sprd,sc9860"; 34 stdout-path = "serial1:115200n8"; 37 reserved-memory { 38 #address-cells = <2>; 39 #size-cells = <2>; 44 compatible = "simple-battery"; 45 charge-full-design-microamp-hours = <1900000>; 46 charge-term-current-microamp = <120000>; [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power_supply/ |
| H A D | rk817-battery.txt | 1 rk817-battery 5 - compatible: "rk817,battery" 6 - ocv_table: ocv voltage and soc relation table 7 - design_capacity: real capacity tested by tool 8 - design_qmax: nominal capacity * 1.1 11 - sleep_enter_current: current threshold of enter relax mode 12 - sleep_exit_current: current threshold of exit relax mode 13 - sleep_filter_current: current threshold of valid relax mode 14 - power_off_thresd: vsys voltage threshold of power off 15 - zero_algorithm_vol: voltage threshold of discharge zero algorithm [all …]
|
| H A D | rk816-battery.txt | 1 rk816-battery 5 - compatible: "rk816-battery" 6 - ocv_table: ocv voltage and soc relation table 7 - design_capacity: real capacity tested by tool 8 - design_qmax: nominal capacity * 1.1 9 - max_input_current: maximum current from adapter 10 - max_chrg_current: maximum current for battery charge 11 - max_chrg_voltage: maximum charge voltage for battery 14 - sleep_enter_current: current threshold of enter relax mode 15 - sleep_exit_current: current threshold of exit relax mode [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | power_supply.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 30 * For systems where the charger determines the maximum battery capacity 262 /* Run-time specific power supply configuration */ 385 int ocv; /* microVolts */ member 386 int capacity; /* percent */ member 401 * The default field value is -EINVAL. 406 int energy_full_design_uwh; /* microWatt-hours */ 407 int charge_full_design_uah; /* microAmp-hours */ 467 extern int power_supply_ocv2cap_simple(struct power_supply_battery_ocv_table *table, 468 int table_len, int ocv); [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/ |
| H A D | fg_rk817.c | 4 * SPDX-License-Identifier: GPL-2.0+ 14 #include <dm/uclass-internal.h> 19 #include <linux/usb/phy-rockchip-usb2.h> 185 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument 186 (capacity * samp_res * 3600 / 172 * 1000) 207 POWER_SUPPLY_TYPE_USB_FLOATING, /* DCP without shorting D+/D- */ 262 static u32 interpolate(int value, u32 *table, int size) in interpolate() argument 268 if (value < table[i]) in interpolate() 273 d = (value - table[i - 1]) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 274 d /= table[i] - table[i - 1]; in interpolate() [all …]
|
| H A D | fg_rk816.c | 4 * SPDX-License-Identifier: GPL-2.0+ 16 #include <dm/uclass-internal.h> 21 #include <linux/usb/phy-rockchip-usb2.h> 34 #define BAT_INFO(fmt, args...) printf("rk816-bat: "fmt, ##args) 203 * If sample resistor changes, we need caculate a new CHRG_CUR_SEL[] table. 206 * 1. find 20mR(default) current charge table, that is: 214 * 3. from step2, we get Rfac, then we can get new charge current table by 20mR 215 * charge table: 216 * Iorg: member from 20mR charge table; Inew: new member for charge table. 252 return pmic_reg_read(di->dev->parent, reg); in rk816_bat_read() [all …]
|
| H A D | fg_rk818.c | 4 * SPDX-License-Identifier: GPL-2.0+ 15 #include <dm/uclass-internal.h> 20 #include <linux/usb/phy-rockchip-usb2.h> 33 #define BAT_INFO(fmt, args...) printf("rk818-bat: "fmt, ##args) 248 return pmic_reg_read(di->dev->parent, reg); in rk818_bat_read() 253 pmic_reg_write(di->dev->parent, reg, buf); in rk818_bat_write() 268 return (di->remain_cap + di->fcc / 200) * 100 / DIV(di->fcc); in rk818_bat_get_rsoc() 345 di->poffset = rk818_bat_read(di, POFFSET_REG); in rk818_bat_init_coffset() 346 if (!di->poffset) in rk818_bat_init_coffset() 347 di->poffset = DEFAULT_POFFSET; in rk818_bat_init_coffset() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | wlioctl.h | 26 * <<Broadcom-WL-IPTag/Dual:>> 62 * BCME_.. error codes are extended by various features - e.g. FTM, NAN, SAE etc. 69 * The error codes -4096 ... -5119 are reserved for firmware signing. 71 * Next available (inclusive) range: [-8*1024 + 1, -7*1024] 76 /* 11ax trigger frame format - versioning info */ 122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t)))) 142 #define DFS_SCAN_S_IDLE -1 227 * will see OBSS, [means that, we false detected that OBSS-is-gone 537 #define WL_GSCAN_INFO_FIXED_FIELD_SIZE (sizeof(wl_gscan_bss_info_t) - sizeof(wl_bss_info_t)) 595 uint8 bsscolor_index; /**< bsscolor index 0-1 */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | wlioctl.h | 26 * <<Broadcom-WL-IPTag/Dual:>> 62 * BCME_.. error codes are extended by various features - e.g. FTM, NAN, SAE etc. 69 * The error codes -4096 ... -5119 are reserved for firmware signing. 71 * Next available (inclusive) range: [-8*1024 + 1, -7*1024] 76 /* 11ax trigger frame format - versioning info */ 122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t)))) 142 #define DFS_SCAN_S_IDLE -1 227 * will see OBSS, [means that, we false detected that OBSS-is-gone 537 #define WL_GSCAN_INFO_FIXED_FIELD_SIZE (sizeof(wl_gscan_bss_info_t) - sizeof(wl_bss_info_t)) 595 uint8 bsscolor_index; /**< bsscolor index 0-1 */ [all …]
|
| /OK3568_Linux_fs/kernel/android/ |
| H A D | abi_gki_aarch64.xml | 1 <abi-corpus-group version='2.0' architecture='elf-arm-aarch64'> 2 <abi-corpus version='2.0' path='vmlinux' architecture='elf-arm-aarch64'> 3 <elf-function-symbols> 4 …<elf-symbol name='PDE_DATA' type='func-type' binding='global-binding' visibility='default-visibili… 5 …<elf-symbol name='__ClearPageMovable' type='func-type' binding='global-binding' visibility='defaul… 6 …<elf-symbol name='__SetPageMovable' type='func-type' binding='global-binding' visibility='default-… 7 …<elf-symbol name='___pskb_trim' type='func-type' binding='global-binding' visibility='default-visi… 8 …<elf-symbol name='___ratelimit' type='func-type' binding='global-binding' visibility='default-visi… 9 …<elf-symbol name='__alloc_disk_node' type='func-type' binding='global-binding' visibility='default… 10 …<elf-symbol name='__alloc_pages_nodemask' type='func-type' binding='global-binding' visibility='de… [all …]
|