| /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> 56 #define SC27XX_FGU_CLBCNT_DELTA_INT BIT(2) 67 #define SC27XX_FGU_SAMPLE_HZ 2 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 [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 | 8 * the Free Software Foundation; either version 2 of the License, or 18 #define pr_fmt(fmt) "rk817-bat: " fmt 67 #define OCV_SAMP_8MIN (0x00 << 2) 81 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument 82 (capacity * samp_res * 3600 / 172 * 1000) 90 #define TEMP_85C (0x00 << 2) 91 #define TEMP_95C (0x01 << 2) 92 #define TEMP_105C (0x02 << 2) 93 #define TEMP_115C (0x03 << 2) 138 #define SAMPLE_RES_DIV2 2 [all …]
|
| H A D | rk816_battery.c | 5 * Author: chenjh <chenjh@rock-chips.com> 9 * version 2, as published by the Free Software Foundation. 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() 341 d = i * ((MAX_INTERPOLATE + size / 2) / size); in interpolate() [all …]
|
| H A D | rk818_battery.c | 5 * chenjh <chenjh@rock-chips.com> 9 * version 2, as published by the Free Software Foundation. 51 #define BAT_INFO(fmt, args...) pr_info("rk818-bat: "fmt, ##args) 77 #define SAMPLE_RES_DIV2 2 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() [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 | 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/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> 166 #define SAMPLE_RES_DIV2 2 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() [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) 39 #define TEMP_115C (0x03 << 2) 51 #define CHRG_TIMER_CCCV_EN (1 << 2) 92 #define USB_CLIMIT_EN (1 << 2) 203 * If sample resistor changes, we need caculate a new CHRG_CUR_SEL[] table. 206 * 1. find 20mR(default) current charge table, that is: 209 * 2. caculate Rfac(not care much, just using it) by sample resistor(ie. Rsam); [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) 38 #define TEMP_105C (0x02 << 2) 51 #define CHRG_TIMER_CCCV_EN (1 << 2) 98 #define USB_CLIMIT_EN (1 << 2) 122 #define SAMPLE_RES_DIV2 2 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | wlioctl.h | 13 * under the terms of the GNU General Public License version 2 (the "GPL"), 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 */ 109 #define MAX_NUM_D11CORES 2 122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t)))) 142 #define DFS_SCAN_S_IDLE -1 145 #define DFS_SCAN_S_INPROGESS 2 [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | wlioctl.h | 13 * under the terms of the GNU General Public License version 2 (the "GPL"), 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 */ 109 #define MAX_NUM_D11CORES 2 122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t)))) 142 #define DFS_SCAN_S_IDLE -1 145 #define DFS_SCAN_S_INPROGESS 2 [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 …]
|