| /Linux-v5.15/drivers/power/supply/ |
| D | cw2015_battery.c | 1 // 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, ®_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 …]
|
| D | bd99954-charger.c | 1 // 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 …]
|
| /Linux-v5.15/drivers/platform/surface/ |
| D | Kconfig | 1 # 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. 38 tristate "Surface 3 battery platform operation region support" 42 region of the Surface 3 battery platform driver. 52 on 5th- and 6th-generation Microsoft Surface devices (including 59 Specifically, this driver may be needed for battery status reporting, 60 thermal sensor access, and real-time clock information, depending on [all …]
|
| D | surface_aggregator_registry.c | 1 // 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-2021 Maximilian Luz <luzmaximilian@gmail.com> 25 /* -- Device registry. ------------------------------------------------------ */ 30 * function, each encoded as two-digit hexadecimal, separated by ':'. In other 35 * Where, 'dd', 'cc', 'tt', 'ii', and 'ff' are the two-digit hexadecimal 56 /* Primary battery. */ 62 /* Secondary battery (Surface Book 3). */ 68 /* Platform profile / performance-mode device. */ [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/power/supply/ |
| D | cw2015_battery.yaml | 1 # 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 …]
|
| D | rohm,bd99954.yaml | 1 # 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 …]
|
| /Linux-v5.15/drivers/gpu/drm/radeon/ |
| D | radeon_pm.c | 24 #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 …]
|
| D | trinity_dpm.c | 306 struct trinity_ps *ps = rps->ps_priv; in trinity_get_ps() 313 struct trinity_power_info *pi = rdev->pm.dpm.priv; in trinity_get_pi() 348 if (pi->override_dynamic_mgpg && (hw_rev == 0)) in trinity_gfx_powergating_initialize() 505 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating() 507 if (pi->enable_mg_clock_gating) in trinity_enable_clock_power_gating() 509 if (pi->enable_gfx_power_gating) in trinity_enable_clock_power_gating() 511 if (pi->enable_mg_clock_gating) { in trinity_enable_clock_power_gating() 515 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating() 517 if (pi->enable_gfx_dynamic_mgpg) in trinity_enable_clock_power_gating() 519 if (pi->enable_gfx_power_gating) in trinity_enable_clock_power_gating() [all …]
|
| /Linux-v5.15/drivers/platform/x86/ |
| D | hp-wmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 #include <linux/input/sparse-keymap.h> 33 MODULE_ALIAS("wmi:95F24279-4D7B-4334-9387-ACCDC67EF61C"); 34 MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4"); 36 static int enable_tablet_mode_sw = -1; 38 MODULE_PARM_DESC(enable_tablet_mode_sw, "Enable SW_TABLET_MODE reporting (-1=auto, 0=no, 1=yes)"); 40 #define HPWMI_EVENT_GUID "95F24279-4D7B-4334-9387-ACCDC67EF61C" 41 #define HPWMI_BIOS_GUID "5FB7F034-2C63-45e9-BE91-3D44E2C707E4" 189 return -EINVAL; in encode_outsize_for_pvsz() 212 * -EINVAL if the query was not successful at all [all …]
|
| D | thinkpad_acpi.c | 1 // 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 …]
|
| D | asus-wmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright(C) 2010-2011 Corentin Chary <corentin.chary@gmail.com> 22 #include <linux/input/sparse-keymap.h> 32 #include <linux/hwmon-sysfs.h> 35 #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" 134 u16 mfun; /* probably "Multi-function" to be called */ 135 u16 sfun; /* probably "Sub-function" to be called */ [all …]
|
| D | ideapad-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ideapad-laptop.c - Lenovo IdeaPad ACPI Extras 22 #include <linux/input/sparse-keymap.h> 36 #include <dt-bindings/leds/common.h> 42 "26CAB2E5-5CF1-46AE-AAC3-4A12B6BA50E6", /* Yoga 3 */ 43 "56322276-8493-4CE8-A783-98C991274F5E", /* Yoga 700 */ 44 "8FC0DE0C-B4E4-43FD-B0F3-8871711C1294", /* Legion 5 */ 167 return -EIO; in eval_int() 178 return ACPI_FAILURE(status) ? -EIO : 0; in exec_simple_method() 215 return -EIO; in eval_int_with_arg() [all …]
|
| D | sony-laptop.c | 1 // 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 …]
|
| /Linux-v5.15/Documentation/ABI/testing/ |
| D | sysfs-firmware-acpi | 55 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.
|
| /Linux-v5.15/Documentation/power/powercap/ |
| D | dtpm.rst | 1 .. 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 …]
|
| /Linux-v5.15/arch/arm/boot/dts/ |
| D | rk3188-bqedison2qc.dts | 1 // 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"; 28 compatible = "pwm-backlight"; 29 power-supply = <&vsys>; 33 gpio-keys { 34 compatible = "gpio-keys"; [all …]
|
| /Linux-v5.15/include/linux/platform_data/ |
| D | cros_ec_commands.h | 1 /* 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 …]
|
| /Linux-v5.15/drivers/gpu/drm/amd/pm/ |
| D | amdgpu_pm.c | 33 #include <linux/hwmon-sysfs.h> 93 * - battery 95 * - balanced 97 * - performance 99 * battery 101 * On older GPUs, the vbios provided a special power state for battery 102 * operation. Selecting battery switched to this state. This is no 125 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; in amdgpu_get_power_dpm_state() 130 return -EPERM; in amdgpu_get_power_dpm_state() 131 if (adev->in_suspend && !adev->in_runpm) in amdgpu_get_power_dpm_state() [all …]
|
| /Linux-v5.15/Documentation/arm64/ |
| D | acpi_object_usage.rst | 16 - 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, IBFT, 24 - Not supported: BOOT, DBGP, DMAR, ETDT, HPET, IVRS, LPIT, MSDM, OEMx, 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 …]
|
| /Linux-v5.15/arch/arm64/boot/dts/rockchip/ |
| D | rk3399-pinebook-pro.dts | 1 // 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"; 28 stdout-path = "serial2:1500000n8"; [all …]
|
| /Linux-v5.15/drivers/nvme/host/ |
| D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2011-2014, Intel Corporation. 8 #include <linux/blk-mq.h> 15 #include <linux/backing-dev.h> 84 * nvme_wq - hosts nvme related works that are not reset or delete 85 * nvme_reset_wq - hosts nvme reset works 86 * nvme_delete_wq - hosts nvme delete works 89 * keep-alive, periodic reconnects etc. nvme_reset_wq 131 if (test_and_set_bit(NVME_NS_DEAD, &ns->flags)) in nvme_set_queue_dying() 134 blk_set_queue_dying(ns->queue); in nvme_set_queue_dying() [all …]
|
| /Linux-v5.15/drivers/acpi/ |
| D | acpi_video.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * video.c - ACPI Video Driver 7 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net> 50 static int disable_backlight_sysfs_if = -1; 55 static int report_key_events = -1; 60 static int hw_changes_brightness = -1; 64 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness"); 73 static int only_lcd = -1; 132 u32 display_index:4; /* A zero-based instance of the Display */ 137 u32 depend_on_vga:1; /* Non-VGA output device whose power is related to [all …]
|
| /Linux-v5.15/Documentation/admin-guide/ |
| D | devices.txt | 1 0 Unnamed devices (e.g. non-device mounts) 7 2 = /dev/kmem OBSOLETE - replaced by /proc/kcore 11 6 = /dev/core OBSOLETE - replaced by /proc/kcore 18 12 = /dev/oldmem OBSOLETE - replaced by /proc/vmcore 31 2 char Pseudo-TTY masters 37 Pseudo-tty's are named as follows: 40 the 1st through 16th series of 16 pseudo-ttys each, and 44 These are the old-style (BSD) PTY devices; Unix98 106 3 char Pseudo-TTY slaves 112 These are the old-style (BSD) PTY devices; Unix98 [all …]
|
| /Linux-v5.15/ |
| D | MAINTAINERS | 9 ------------------------- 30 ``diff -u`` to make the patch easy to merge. Be prepared to get your 40 See Documentation/process/coding-style.rst for guidance here. 46 See Documentation/process/submitting-patches.rst for details. 57 include a Signed-off-by: line. The current version of this 59 Documentation/process/submitting-patches.rst. 70 that the bug would present a short-term risk to other users if it 76 Documentation/admin-guide/security-bugs.rst for details. 81 --------------------------------------------------- 97 W: *Web-page* with status/info [all …]
|