Home
last modified time | relevance | path

Searched +full:ocv +full:- +full:capacity +full:- +full:table +full:- +full:0 (Results 1 – 17 of 17) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/nvmem-consumer.h>
18 #define SC27XX_MODULE_EN0 0xc08
19 #define SC27XX_CLK_EN0 0xc18
24 #define SC27XX_FGU_START 0x0
25 #define SC27XX_FGU_CONFIG 0x4
26 #define SC27XX_FGU_ADC_CONFIG 0x8
27 #define SC27XX_FGU_STATUS 0xc
28 #define SC27XX_FGU_INT_EN 0x10
29 #define SC27XX_FGU_INT_CLR 0x14
[all …]
H A Dpower_supply_core.c1 // 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 Drk817_battery.c18 #define pr_fmt(fmt) "rk817-bat: " fmt
51 } while (0)
59 #define ENABLE 0x01
60 #define DISABLE 0x00
63 #define MAX_INT 0x7FFF
66 #define OCV_SAMP_MIN_MSK 0x0c
67 #define OCV_SAMP_8MIN (0x00 << 2)
69 #define ADC_CAL_8MIN 0x00
81 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument
82 (capacity * samp_res * 3600 / 172 * 1000)
[all …]
H A Drk816_battery.c5 * Author: chenjh <chenjh@rock-chips.com>
41 static int dbg_enable = 0;
49 } while (0)
51 #define BAT_INFO(fmt, args...) pr_info("rk816-bat: "fmt, ##args)
68 #define DEFAULT_ENERGY_MODE 0
79 #define VIRTUAL_USB_ONLINE 0
114 #define ADC_CUR_MSK 0x03
115 #define ADC_CUR_20UA 0x00
116 #define ADC_CUR_40UA 0x01
117 #define ADC_CUR_60UA 0x02
[all …]
H A Drk818_battery.c5 * chenjh <chenjh@rock-chips.com>
41 static int dbg_enable = 0;
49 } while (0)
51 #define BAT_INFO(fmt, args...) pr_info("rk818-bat: "fmt, ##args)
66 #define DEFAULT_COFFSET 0x832
68 #define DEFAULT_ENERGY_MODE 0
69 #define INVALID_COFFSET_MIN 0x780
70 #define INVALID_COFFSET_MAX 0x980
136 #define ADC_CUR_MSK 0x03
137 #define ADC_CUR_20UA 0x00
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/
H A Dbattery.yaml1 # 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 Dsc27xx-fg.txt4 - 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/arch/arm64/boot/dts/sprd/
H A Dsp9860g-1h10.dts6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 /dts-v1/;
17 compatible = "sprd,sp9860g-1h10", "sprd,sc9860";
29 reg = <0x0 0x80000000 0 0x60000000>,
30 <0x1 0x80000000 0 0x60000000>;
34 stdout-path = "serial1:115200n8";
37 reserved-memory {
38 #address-cells = <2>;
39 #size-cells = <2>;
44 compatible = "simple-battery";
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power_supply/
H A Drk817-battery.txt1 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 Drk816-battery.txt1 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 Dpower_supply.h1 /* SPDX-License-Identifier: GPL-2.0-only */
30 * For systems where the charger determines the maximum battery capacity
36 POWER_SUPPLY_STATUS_UNKNOWN = 0,
45 POWER_SUPPLY_CHARGE_TYPE_UNKNOWN = 0,
62 POWER_SUPPLY_HEALTH_UNKNOWN = 0,
79 POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0,
89 POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0,
98 POWER_SUPPLY_SCOPE_UNKNOWN = 0,
105 POWER_SUPPLY_PROP_STATUS = 0,
219 POWER_SUPPLY_TYPE_UNKNOWN = 0,
[all …]
/OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/
H A Dfg_rk817.c4 * SPDX-License-Identifier: GPL-2.0+
14 #include <dm/uclass-internal.h>
19 #include <linux/usb/phy-rockchip-usb2.h>
23 static int dbg_enable = 0;
29 } while (0)
32 #define ENABLE 0x01
33 #define DISABLE 0x00
36 #define MAX_INT 0x7FFF
38 #define ADC_CONFIG0 0x0050
39 #define CUR_ADC_CFG0 0x0051
[all …]
H A Dfg_rk816.c4 * SPDX-License-Identifier: GPL-2.0+
16 #include <dm/uclass-internal.h>
21 #include <linux/usb/phy-rockchip-usb2.h>
26 static int dbg_enable = 0;
32 } while (0)
34 #define BAT_INFO(fmt, args...) printf("rk816-bat: "fmt, ##args)
39 #define TEMP_115C (0x03 << 2)
40 #define FB_TEMP_MSK 0x0c
43 #define FINISH_100MA (0x00 << 6)
44 #define FINISH_150MA (0x01 << 6)
[all …]
H A Dfg_rk818.c4 * SPDX-License-Identifier: GPL-2.0+
15 #include <dm/uclass-internal.h>
20 #include <linux/usb/phy-rockchip-usb2.h>
25 static int dbg_enable = 0;
31 } while (0)
33 #define BAT_INFO(fmt, args...) printf("rk818-bat: "fmt, ##args)
38 #define TEMP_105C (0x02 << 2)
39 #define FB_TEMP_MSK 0x0c
42 #define FINISH_100MA (0x00 << 6)
43 #define FINISH_150MA (0x01 << 6)
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/
H A Dwlioctl.h26 * <<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 */
77 #define TRIG_FRAME_FORMAT_11AX_DRAFT_1P1 0
107 #define BCM_IOV_XTLV_VERSION 0
118 #define DFS_PREFCHANLIST_VER 0x01
122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t))))
135 #if defined(NDIS) && (NDISVER >= 0x0620)
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/
H A Dwlioctl.h26 * <<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 */
77 #define TRIG_FRAME_FORMAT_11AX_DRAFT_1P1 0
107 #define BCM_IOV_XTLV_VERSION 0
118 #define DFS_PREFCHANLIST_VER 0x01
122 (sizeof(wl_dfs_forced_t) + (((n) < 1) ? (0) : (((n) - 1)* sizeof(chanspec_t))))
135 #if defined(NDIS) && (NDISVER >= 0x0620)
[all …]
/OK3568_Linux_fs/kernel/android/
H A Dabi_gki_aarch64.xml1 <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 …]