Home
last modified time | relevance | path

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

12

/kernel/linux/linux-6.6/drivers/power/supply/
Dcw2015_battery.c1 // SPDX-License-Identifier: GPL-2.0
8 * Authors: xuhuicong <xhc@rock-chips.com>
24 #include <linux/devm-helpers.h>
65 struct power_supply_battery_info *battery; member
89 ret = regmap_bulk_read(cw_bat->regmap, reg, &value, sizeof(value)); in cw_read_word()
104 ret = regmap_read(cw_bat->regmap, CW2015_REG_MODE, &reg_val); in cw_update_profile()
110 dev_err(cw_bat->dev, in cw_update_profile()
111 "Gauge is in sleep mode, can't update battery info\n"); in cw_update_profile()
112 return -EINVAL; in cw_update_profile()
115 /* write new battery info */ in cw_update_profile()
[all …]
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 …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dcw2015_battery.c1 // SPDX-License-Identifier: GPL-2.0
8 * Authors: xuhuicong <xhc@rock-chips.com>
64 struct power_supply_battery_info battery; member
88 ret = regmap_bulk_read(cw_bat->regmap, reg, &value, sizeof(value)); in cw_read_word()
103 ret = regmap_read(cw_bat->regmap, CW2015_REG_MODE, &reg_val); in cw_update_profile()
109 dev_err(cw_bat->dev, in cw_update_profile()
110 "Gauge is in sleep mode, can't update battery info\n"); in cw_update_profile()
111 return -EINVAL; in cw_update_profile()
114 /* write new battery info */ in cw_update_profile()
115 ret = regmap_raw_write(cw_bat->regmap, CW2015_REG_BATINFO, in cw_update_profile()
[all …]
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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
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 …]
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 …]
/kernel/linux/linux-6.6/drivers/platform/surface/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # Microsoft Surface Platform-Specific Drivers
7 bool "Microsoft Surface Platform-Specific Device Drivers"
11 Say Y here to get to see options for platform-specific device drivers
29 be called surface3-wmi.
32 tristate "Surface 3 battery platform operation region support"
37 region of the Surface 3 battery platform driver.
47 on 5th- and 6th-generation Microsoft Surface devices (including
54 Specifically, this driver may be needed for battery status reporting,
55 thermal sensor access, and real-time clock information, depending on
[all …]
Dsurface_aggregator_registry.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Registry for non-platform/non-ACPI SSAM client devices, i.e. devices that
6 * cannot be auto-detected. Provides device-hubs and performs instantiation
9 * Copyright (C) 2020-2022 Maximilian Luz <luzmaximilian@gmail.com>
22 /* -- Device registry. ------------------------------------------------------ */
27 * function, each encoded as two-digit hexadecimal, separated by ':'. In other
32 * Where, 'dd', 'cc', 'tt', 'ii', and 'ff' are the two-digit hexadecimal
59 /* Primary battery. */
65 /* Secondary battery (Surface Book 3). */
71 /* Platform profile / performance-mode device. */
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
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.
18 - $ref: power-supply.yaml#
27 cellwise,battery-profile:
[all …]
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 <mazziesaccount@gmail.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 …]
/kernel/linux/linux-6.6/drivers/platform/x86/
Dthinkpad_acpi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * thinkpad_acpi.c - ThinkPad ACPI Extras
5 * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net>
6 * Copyright (C) 2006-2009 Henrique de Moraes Holschuh <hmh@hmh.eng.br>
16 * 2007-10-20 changelog trimmed down
18 * 2007-03-27 0.14 renamed to thinkpad_acpi and moved to
21 * 2006-11-22 0.13 new maintainer
23 * not be updated further in-file.
25 * 2005-03-17 0.11 support for 600e, 770x
28 * 2005-01-16 0.9 use MODULE_VERSION
[all …]
Dideapad-laptop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ideapad-laptop.c - Lenovo IdeaPad ACPI Extras
23 #include <linux/input/sparse-keymap.h>
34 #include "ideapad-laptop.h"
38 #include <dt-bindings/leds/common.h>
90 * These correspond to the number of supported states - 1
164 "Enable DYTC version 4 platform-profile support. "
165 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
171 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
176 "Enable driver based updates of the fn-lock LED on fn-lock changes. "
[all …]
Dasus-wmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright(C) 2010-2011 Corentin Chary <corentin.chary@gmail.com>
22 #include <linux/hwmon-sysfs.h>
25 #include <linux/input/sparse-keymap.h>
31 #include <linux/platform_data/x86/asus-wmi.h>
41 #include <acpi/battery.h>
44 #include "asus-wmi.h"
57 #define ASUS_WMI_MGMT_GUID "97845ED0-4E6D-11DE-8A39-0800200C9A66"
158 u16 mfun; /* probably "Multi-function" to be called */
159 u16 sfun; /* probably "Sub-function" to be called */
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
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 …]
/kernel/linux/linux-6.6/drivers/platform/x86/hp/
Dhp-wmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 #include <linux/input/sparse-keymap.h>
35 MODULE_ALIAS("wmi:95F24279-4D7B-4334-9387-ACCDC67EF61C");
36 MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4");
38 #define HPWMI_EVENT_GUID "95F24279-4D7B-4334-9387-ACCDC67EF61C"
39 #define HPWMI_BIOS_GUID "5FB7F034-2C63-45e9-BE91-3D44E2C707E4"
49 * "OMEN", and it can use the thermal profile stuff if the "Feature" array
62 * profile version 0 by the Omen Command Center app, regardless of what
105 * were introduced that exceeds 128-byte data size. Changes to handle
281 return -EINVAL; in encode_outsize_for_pvsz()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
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.
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-firmware-acpi55 image: The image bitmap. Currently a 32-bit BMP.
73 processors, PCI root bridges etc. A hotplug profile for a given
80 hotplug profile:
93 cause -EINVAL to be returned.
117 such as a battery, or a processor.
/kernel/linux/linux-6.6/Documentation/power/powercap/
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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/
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 …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/rockchip/
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>
10 #include <dt-bindings/interrupt-controller/irq.h>
14 model = "BQ Edison2 Quad-Core";
15 compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
29 compatible = "pwm-backlight";
30 power-supply = <&vsys>;
34 gpio-keys {
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
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 …]
/kernel/linux/linux-6.6/include/linux/platform_data/
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
77 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
78 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
79 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
81 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
82 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
83 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
84 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */
[all …]
/kernel/linux/linux-5.10/include/linux/platform_data/
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 …]
/kernel/linux/linux-5.10/Documentation/arm64/
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 …]

12