/Linux-v6.6/drivers/power/supply/ |
D | cw2015_battery.c | 1 // 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, ®_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 …]
|
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-v6.6/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. 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 …]
|
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-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 …]
|
/Linux-v6.6/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. 18 - $ref: power-supply.yaml# 27 cellwise,battery-profile: [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 <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 …]
|
/Linux-v6.6/drivers/platform/x86/ |
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/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 …]
|
D | ideapad-laptop.c | 1 // 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 …]
|
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-v6.6/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-v6.6/drivers/platform/x86/hp/ |
D | hp-wmi.c | 1 // 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 …]
|
/Linux-v6.6/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-v6.6/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-v6.6/arch/arm/boot/dts/rockchip/ |
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> 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 …]
|
/Linux-v6.6/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 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 …]
|
/Linux-v6.6/drivers/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 33 #include <linux/hwmon-sysfs.h> 68 * - battery 70 * - balanced 72 * - performance 74 * battery 76 * On older GPUs, the vbios provided a special power state for battery 77 * operation. Selecting battery switched to this state. This is no 104 return -EPERM; in amdgpu_get_power_dpm_state() 105 if (adev->in_suspend && !adev->in_runpm) in amdgpu_get_power_dpm_state() 106 return -EPERM; in amdgpu_get_power_dpm_state() [all …]
|
/Linux-v6.6/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"; 20 chassis-type = "laptop"; [all …]
|
/Linux-v6.6/Documentation/arch/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: AGDI, BGRT, CEDT, CPEP, CSRT, DBG2, DRTM, ECDT, FACS, FPDT, 24 - Not supported: AEST, APMT, BOOT, DBGP, DMAR, ETDT, HPET, IVRS, LPIT, 41 This table describes a non-maskable event, that is used by the platform 68 Optional, not currently supported, with no real use-case for an 83 time as ARM-compatible hardware is available, and the specification 151 UEFI-based; if it is UEFI-based, this table may be supplied. When this 167 the hardware reduced profile, and only 64-bit address fields will 184 filled in properly - that the PSCI_COMPLIANT flag is set and that [all …]
|
/Linux-v6.6/drivers/misc/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 27 See Documentation/misc-devices/ad525x_dpot.rst for the 40 module will be called ad525x_dpot-i2c. 51 module will be called ad525x_dpot-spi. 65 This option enables device driver support for in-band access to the 78 website <https://www-03.ibm.com/systems/info/x86servers/serverproven/compat/us/> 189 called smpro-errmon. 199 called smpro-misc. 202 tristate "CS5535/CS5536 Geode Multi-Function General Purpose Timer (MFGPT) support" 209 than the generic PIT, and are suitable for use as high-res timers. [all …]
|
/Linux-v6.6/drivers/hid/ |
D | hid-debug.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * (c) 1999 Andreas Gal <gal@cs.uni-magdeburg.de> 4 * (c) 2000-2001 Vojtech Pavlik <vojtech@ucw.cz> 5 * (c) 2007-2009 Jiri Kosina 13 * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: 29 #include <linux/hid-debug.h> 85 {0, 0x90, "D-PadUp"}, 86 {0, 0x91, "D-PadDown"}, 87 {0, 0x92, "D-PadRight"}, 88 {0, 0x93, "D-PadLeft"}, [all …]
|
/Linux-v6.6/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> 9 #include <linux/blk-integrity.h> 16 #include <linux/backing-dev.h> 27 #include <linux/nvme-auth.h> 92 * nvme_wq - hosts nvme related works that are not reset or delete 93 * nvme_reset_wq - hosts nvme reset works 94 * nvme_delete_wq - hosts nvme delete works 97 * keep-alive, periodic reconnects etc. nvme_reset_wq [all …]
|
/Linux-v6.6/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> 52 static int report_key_events = -1; 57 static int hw_changes_brightness = -1; 61 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness"); 70 static int only_lcd = -1; 128 u32 display_index:4; /* A zero-based instance of the Display */ 133 u32 depend_on_vga:1; /* Non-VGA output device whose power is related to 135 u32 pipe_id:3; /* For VGA multiple-head devices. */ [all …]
|
/Linux-v6.6/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 …]
|