Home
last modified time | relevance | path

Searched +full:battery +full:- +full:profile (Results 1 – 25 of 80) sorted by relevance

1234

/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dcw2017_battery.c1 // SPDX-License-Identifier: GPL-2.0
7 * Authors: Shunqing Chen <csq@rock-chips.com>
73 struct power_supply_battery_info battery; member
102 ret = regmap_bulk_read(cw_bat->regmap, reg, &value, sizeof(value)); in cw_read_word()
114 regmap_write(cw_bat->regmap, CW2017_REG_MODE_CONFIG, reg_val); in cw2017_enable()
117 regmap_write(cw_bat->regmap, CW2017_REG_MODE_CONFIG, reg_val); in cw2017_enable()
120 regmap_write(cw_bat->regmap, CW2017_REG_MODE_CONFIG, reg_val); in cw2017_enable()
130 /* write new battery info */ in cw_update_profile()
131 ret = regmap_raw_write(cw_bat->regmap, CW2017_REG_BATINFO, in cw_update_profile()
132 cw_bat->bat_profile, in cw_update_profile()
[all …]
H A Dcw2015_battery.c1 // SPDX-License-Identifier: GPL-2.0
8 * Authors: xuhuicong <xhc@rock-chips.com>
64 struct power_supply_battery_info battery; member
90 ret = regmap_bulk_read(cw_bat->regmap, reg, &value, sizeof(value)); in cw_read_word()
105 ret = regmap_read(cw_bat->regmap, CW2015_REG_MODE, &reg_val); in cw_update_profile()
111 dev_err(cw_bat->dev, in cw_update_profile()
112 "Gauge is in sleep mode, can't update battery info\n"); in cw_update_profile()
113 return -EINVAL; in cw_update_profile()
116 /* write new battery info */ in cw_update_profile()
117 ret = regmap_raw_write(cw_bat->regmap, CW2015_REG_BATINFO, in cw_update_profile()
[all …]
H A Dcw221x_battery.c1 // SPDX-License-Identifier: GPL-2.0
7 * Author: Xu Shengfei <xsf@rock-chips.com>
28 pr_info("FG_CW221X: %s-%d:" fmt, __func__, __LINE__, ##arg); \
31 #define CW_PROPERTIES "cw221X-bat"
141 dev_err(&client->dev, "IIC error %d\n", ret); in cw_read()
155 dev_err(&client->dev, "IIC error %d\n", ret); in cw_write()
172 dev_err(&client->dev, "IIC error %d\n", ret); in cw_read_word()
178 dev_err(&client->dev, "IIC error %d\n", ret); in cw_read_word()
185 dev_err(&client->dev, "IIC error %d\n", ret); in cw_read_word()
196 /* CW221X iic write profile function */
[all …]
H A Dbd99954-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * The battery charging profile of BD99954.
17 * Curve (2) represents battery voltage.
20 * a) Trickle-charge with constant current (8).
21 * b) pre-charge with constant current (6)
22 * c) fast-charge, first with constant current (5) phase. After
23 * the battery voltage has reached target level (4) we have constant
30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------.
32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5)
34 * . + /- -- .
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/
H A Dcw2015_battery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Battery driver for CW2015 shuntless fuel gauge by CellWise.
10 - Tobias Schramm <t.schramm@manjaro.org>
13 The driver can utilize information from a simple-battery linked via a
14 phandle in monitored-battery. If specified the driver uses the
15 charge-full-design-microamp-hours property of the battery.
24 cellwise,battery-profile:
26 This property specifies characteristics of the battery used. The format
[all …]
H A Drohm,bd99954.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ROHM BD99954 Battery charger
10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
11 - Markus Laine <markus.laine@fi.rohmeurope.com>
12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com>
15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion
16 secondary battery intended to be used in space-constraint equipment such
17 as Low profile Notebook PC, Tablets and other applications. BD99954
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/
H A Dcw2017_battery.txt1 Binding for CW201X Battery
4 - compatible: Should contain one of the following:
6 - reg: integer, smbus address of the device.
8 - cellwise,monitor-interval-ms: integer, delay time of queue_delayed_work (ms);
9 - cellwise,battery-profile: battery curve information;
10 - cellwise,dual-cell: dual battery;
11 - cellwise,design-capacity-amh: the battery design capacity;
12 - cellwise,alert-level: the specified soc alert threshold;
22 cellwise,battery-profile = /bits/ 8
31 cellwise,dual-cell;
[all …]
H A Dcw221x_battery.txt1 Binding for CW221X Battery
4 - compatible: Should contain one of the following:
6 - reg: integer, smbus address of the device.
8 - cellwise,battery-profile: battery curve information;
18 cellwise,battery-profile = /bits/ 8
/OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/
H A Dfg_cw201x.c2 * (C) Copyright 2008-2015 Fuzhou Rockchip Electronics Co., Ltd
4 * SPDX-License-Identifier: GPL-2.0+
13 #include <linux/usb/phy-rockchip-usb2.h>
15 #include <power/battery.h>
69 ret = dm_i2c_read(cw201x->dev, reg, &val, 1); in cw201x_read()
72 cw201x->dev, reg); in cw201x_read()
83 ret = dm_i2c_write(cw201x->dev, reg, &val, 1); in cw201x_write()
86 cw201x->dev, reg); in cw201x_write()
110 struct udevice *dev = cw201x->dev; in cw201x_parse_config_info()
114 size = sizeof(*cw201x->cw_bat_config_info) * len; in cw201x_parse_config_info()
[all …]
H A Dfg_cw221x.c4 * SPDX-License-Identifier: GPL-2.0+
13 #include <linux/usb/phy-rockchip-usb2.h>
129 ret = dm_i2c_read(cw221x->dev, reg, &val, 1); in cw221x_read()
143 ret = dm_i2c_write(cw221x->dev, reg, &val, 1); in cw221x_write()
176 if (!dev_read_prop(dev, "cellwise,battery-profile", &len) || in cw221x_ofdata_to_platdata()
178 cw221x->bat_profile = config_profile_info; in cw221x_ofdata_to_platdata()
182 CW_DBG("cw221x: use dts profile\n"); in cw221x_ofdata_to_platdata()
183 size = sizeof(*cw221x->bat_profile) * len; in cw221x_ofdata_to_platdata()
184 cw221x->bat_profile = calloc(size, 1); in cw221x_ofdata_to_platdata()
185 if (!cw221x->bat_profile) { in cw221x_ofdata_to_platdata()
[all …]
/OK3568_Linux_fs/u-boot/doc/
H A DREADME.power-framework5 # SPDX-License-Identifier: GPL-2.0+
9 ------------
11 This document describes the second version of the u-boot's PMIC (Power
16 ----------
18 Boards supported by u-boot are getting increasingly complex. Developers and
20 devices are now available on the board - namely power managers (PMIC), fuel
21 gauges (FG), micro USB interface controllers (MUIC), batteries, multi-function
25 -----------------------------------
28 The same device - e.g. MAX8997 uses two different I2C busses and addresses.
36 one operation - e.g. PMIC enables LDO.
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_pm.c24 #include <linux/hwmon-sysfs.h>
44 "Battery",
61 int found_instance = -1; in radeon_pm_get_type_index()
63 for (i = 0; i < rdev->pm.num_power_states; i++) { in radeon_pm_get_type_index()
64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
71 return rdev->pm.default_power_state_index; in radeon_pm_get_type_index()
76 if ((rdev->pm.pm_method == PM_METHOD_DPM) && rdev->pm.dpm_enabled) { in radeon_pm_acpi_event_handler()
77 mutex_lock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler()
79 rdev->pm.dpm.ac_power = true; in radeon_pm_acpi_event_handler()
81 rdev->pm.dpm.ac_power = false; in radeon_pm_acpi_event_handler()
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/dool/dool/
H A D0001-Fix-rename-in-docs.patch2 From: Alexander Stein <alexander.stein@tq-group.com>
10 Upstream-Status: Pending
13 Signed-off-by: Alexander Stein <alexander.stein@tq-group.com>
14 ---
15 docs/dool.1.adoc | 108 +++++++++++++++++++++++------------------------
16 1 file changed, 54 insertions(+), 54 deletions(-)
18 diff --git a/docs/dool.1.adoc b/docs/dool.1.adoc
20 --- a/docs/dool.1.adoc
22 @@ -1,35 +1,35 @@
23 -= dstat(1)
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-firmware-acpi12 image: The image bitmap. Currently a 32-bit BMP.
30 processors, PCI root bridges etc. A hotplug profile for a given
37 hotplug profile:
50 cause -EINVAL to be returned.
74 such as a battery, or a processor.
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dcros_ec_commands.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * NOTE: This file is auto-generated from ChromeOS EC Open Source code from
52 * The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff
73 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
74 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
75 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
77 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
78 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
79 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
80 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Drk3188-bqedison2qc.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
8 #include <dt-bindings/i2c/i2c.h>
9 #include <dt-bindings/input/input.h>
13 model = "BQ Edison2 Quad-Core";
14 compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
22 compatible = "pwm-backlight";
23 power-supply = <&vsys>;
27 gpio-keys {
28 compatible = "gpio-keys";
[all …]
/OK3568_Linux_fs/kernel/Documentation/power/powercap/
H A Ddtpm.rst1 .. SPDX-License-Identifier: GPL-2.0
15 reduce the battery charging because the dissipated power is too high
20 profile: it has the knowledge of the platform.
48 `-- pkg
50 |-- pd0 (cpu0-3)
52 `-- pd1 (cpu4-5)
56 SoC (400mW - 3100mW)
58 `-- pkg (400mW - 3100mW)
60 |-- pd0 (100mW - 700mW)
62 `-- pd1 (300mW - 2400mW)
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/pm/
H A Damdgpu_pm.c36 #include <linux/hwmon-sysfs.h>
89 * - battery
91 * - balanced
93 * - performance
95 * battery
97 * On older GPUs, the vbios provided a special power state for battery
98 * operation. Selecting battery switched to this state. This is no
125 return -EPERM; in amdgpu_get_power_dpm_state()
127 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_state()
129 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3588s-tablet.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/usb/pd.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/input/rk-input.h>
12 #include <dt-bindings/display/drm_mipi_dsi.h>
13 #include <dt-bindings/display/rockchip_vop.h>
14 #include <dt-bindings/sensor-dev.h>
16 #include "rk3588-android.dtsi"
[all …]
H A Drk3399-pinebook-pro.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include <dt-bindings/input/gpio-keys.h>
10 #include <dt-bindings/input/linux-event-codes.h>
11 #include <dt-bindings/pwm/pwm.h>
12 #include <dt-bindings/usb/pd.h>
13 #include <dt-bindings/leds/common.h>
15 #include "rk3399-opp.dtsi"
19 compatible = "pine64,pinebook-pro", "rockchip,rk3399";
22 stdout-path = "serial2:1500000n8";
[all …]
/OK3568_Linux_fs/kernel/Documentation/arm64/
H A Dacpi_object_usage.rst16 - Required: DSDT, FADT, GTDT, MADT, MCFG, RSDP, SPCR, XSDT
18 - Recommended: BERT, EINJ, ERST, HEST, PCCT, SSDT
20 - Optional: BGRT, CPEP, CSRT, DBG2, DRTM, ECDT, FACS, FPDT, IORT,
24 - Not supported: BOOT, DBGP, DMAR, ETDT, HPET, IBFT, IVRS, LPIT,
47 Optional, not currently supported, with no real use-case for an
55 time as ARM-compatible hardware is available, and the specification
123 UEFI-based; if it is UEFI-based, this table may be supplied. When this
139 the hardware reduced profile, and only 64-bit address fields will
156 filled in properly - that the PSCI_COMPLIANT flag is set and that
157 PSCI_USE_HVC is set or unset as needed (see table 5-37).
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Dsony-laptop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2004-2005 Stelian Pop <stelian@popies.net>
6 * Copyright (C) 2007-2009 Mattia Dongili <malattia@linux.it>
14 * Copyright (C) 2001-2005 Stelian Pop <stelian@popies.net>
18 * Copyright (C) 2001-2002 Alcôve <www.alcove.com>
24 * Copyright (C) 2000 Takaya Kinjo <t-kinjo@tc4.so-net.ne.jp>
51 #include <linux/sony-laptop.h>
66 #define SONY_NC_CLASS "sony-nc"
70 #define SONY_PIC_CLASS "sony-pic"
105 static int minor = -1;
[all …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/aw87xxx/
H A Daw_monitor.c35 #include <linux/dma-mapping.h>
64 if (header->bin_data_type != DATA_TYPE_MONITOR_ANALOG) { in aw_monitor_check_header_v_1_0_0()
66 return -EINVAL; in aw_monitor_check_header_v_1_0_0()
69 if (header->bin_data_size != AW_MONITOR_HDR_DATA_SIZE) { in aw_monitor_check_header_v_1_0_0()
71 return -EINVAL; in aw_monitor_check_header_v_1_0_0()
74 if (header->data_byte_len != AW_MONITOR_HDR_DATA_BYTE_LEN) { in aw_monitor_check_header_v_1_0_0()
76 return -EINVAL; in aw_monitor_check_header_v_1_0_0()
80 if (header->bin_data_ver == i) { in aw_monitor_check_header_v_1_0_0()
86 return -EINVAL; in aw_monitor_check_header_v_1_0_0()
104 return -EINVAL; in aw_monitor_check_data_v1_size()
[all …]
/OK3568_Linux_fs/external/rkwifibt-app/rv1109_1126/
HDlibrkwifibt.so__gmon_start__ _ITM_deregisterTMCloneTable _ITM_registerTMCloneTable __cxa_finalize memset strlen strcat syslog strcmp strncpy __stack_chk_fail __stack_chk_guard strcpy strtoul RK_wifi_register_callback strncmp __ctype_b_loc memmove exec_command ...
/OK3568_Linux_fs/external/rkwifibt-app/lib32/
HDlibrkwifibt.so__gmon_start__ _fini _ITM_deregisterTMCloneTable _ITM_registerTMCloneTable __cxa_finalize _Jv_RegisterClasses memset strlen strcat syslog strcmp strncpy strcpy strtoul RK_wifi_register_callback strncmp __ctype_b_loc memmove exec_command ...

1234