/linux/drivers/power/supply/ |
H A D | ipaq_micro_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/mfd/ipaq-micro.h> 43 u8 chemistry; member 61 ipaq_micro_tx_msg_sync(mb->micro, &msg_battery); in micro_battery_work() 69 * byte 1: chemistry in micro_battery_work() 73 * byte 5-9: same for battery 2 in micro_battery_work() 75 mb->ac = msg_battery.rx_data[0]; in micro_battery_work() 76 mb->chemistry = msg_battery.rx_data[1]; in micro_battery_work() 77 mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + in micro_battery_work() 79 mb->flag = msg_battery.rx_data[4]; in micro_battery_work() [all …]
|
H A D | qcom_battmgr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. 191 /* mWh or mAh, based on info->power_unit */ 285 struct device *dev; 322 reinit_completion(&battmgr->ack); in qcom_battmgr_request() 324 battmgr->error = 0; in qcom_battmgr_request() 326 ret = pmic_glink_send(battmgr->client, data, len); in qcom_battmgr_request() 330 left = wait_for_completion_timeout(&battmgr->ack, HZ); in qcom_battmgr_request() 332 return -ETIMEDOUT; in qcom_battmgr_request() 334 return battmgr->error; in qcom_battmgr_request() [all …]
|
H A D | power_supply_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <linux/device.h> 24 #include <linux/fixp-arith.h> 26 #include "samsung-sdi-battery.h" 47 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 51 if (supply->supplied_from) { in __power_supply_is_supplied_by() 52 if (!supplier->desc->name) in __power_supply_is_supplied_by() 54 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by() 55 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 58 if (!supply->desc->name) in __power_supply_is_supplied_by() [all …]
|
/linux/drivers/platform/x86/x86-android-tablets/ |
H A D | shared-psy-info.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 2021-2023 Hans de Goede <hdegoede@redhat.com> 17 #include "shared-psy-info.h" 20 const char * const tusb1211_chg_det_psy[] = { "tusb1211-charger-detect" }; 21 const char * const bq24190_psy[] = { "bq24190-charger" }; 22 const char * const bq25890_psy[] = { "bq25890-charger-0" }; 25 PROPERTY_ENTRY_STRING_ARRAY("supplied-from", bq24190_psy), 34 PROPERTY_ENTRY_STRING_ARRAY("supplied-from", bq25890_psy), 96 PROPERTY_ENTRY_STRING("compatible", "simple-battery"), 97 PROPERTY_ENTRY_STRING("device-chemistry", "lithium-ion-polymer"), [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | samsung,battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 14 of lithium ion chemistry devices used for mobile phones, laptops and other 17 product, so product device trees can specify these batteries. Operating 24 - const: samsung,eb-l1m7flu 25 description: 3.8V 1500 mAh battery used in Samsung GT-I8190 26 - const: samsung,eb425161la 27 description: 3.8V 1500 mAh battery used in Samsung SGH-T599 and SGH-I407 [all …]
|
H A D | battery.yaml | 1 # 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 device-chemistry: [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | colorspaces.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 9 'Color' is a very complex concept and depends on physics, chemistry and 97 the non-linear component value, which is a closer match to the 98 non-linear performance of both the eye and displays. Linear component 99 values are denoted RGB, non-linear are denoted as R'G'B'. In general 102 provide linear RGB colors or to use the built-in openGL support to apply 106 non-linear R'G'B' to non-linear Y'CbCr. This function is determined by 107 the so-called luma coefficients. There may be multiple possible Y'CbCr 142 your display device uses. 157 describes many more aspects of color (physics, chemistry, biology,
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8916-gplus-fl8005a.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8916-pm8916.dtsi" 6 #include "msm8916-modem-qdsp6.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 15 chassis-type = "tablet"; 24 stdout-path = "serial0"; 28 compatible = "simple-battery"; [all …]
|
/linux/Documentation/wmi/devices/ |
H A D | dell-wmi-ddv.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 4 Dell DDV WMI interface driver (dell-wmi-ddv) 10 Many Dell notebooks made after ~2020 support a WMI-based interface for 15 so it was called `DDV`. Currently the ``dell-wmi-ddv`` driver supports 21 trial-and-error, please keep that in mind. 27 including batteries. It has a form similar to `CC-PPPPPP-MMMMM-YMD-SSSS-FFF` 52 …), Locale("MS\\0x409"), Description("WMI Function"), guid("{8A42EA14-4F2A-FD45-6422-0087F7A7E608}"… 62 …[WmiMethodId(6), Implemented, read, write, Description("Return Battery Chemistry Value.")] void Ba… 67 …[WmiMethodId(11), Implemented, read, write, Description("Return Battery Relative State-Of-Charge."… 79 Each WMI method takes an ACPI buffer containing a 32-bit index as input argument, [all …]
|
/linux/include/linux/ |
H A D | power_supply.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 #include <linux/device.h> 233 /* Run-time specific power supply configuration */ 240 /* Device specific sysfs attributes */ 273 * of power supply. If this happens during device probe then it must 274 * not access internal data of device (because probe did not end). 326 struct device dev; 389 * struct power_supply_maintenance_charge_table - setting for maintenace charging 409 * below charge_term_current_ua, and then restart it (if the device is still 422 * +-------------------------------------------------------------------> t [all …]
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra30-asus-tf300tl.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra30-asus-transformer-common.dtsi" 5 #include "tegra30-asus-lvds-display.dtsi" 12 tf300tl-init-hog { 13 gpio-hog; 15 output-low; 27 nvidia,enable-input = <TEGRA_PIN_DISABLE>; 35 nvidia,enable-input = <TEGRA_PIN_ENABLE>; 43 nvidia,enable-input = <TEGRA_PIN_ENABLE>; [all …]
|
H A D | tegra30-lg-p880.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra30-lg-x3.dtsi" 16 pinctrl-names = "default"; 17 pinctrl-0 = <&state_default>; 21 host-wlan-wake { 26 nvidia,enable-input = <TEGRA_PIN_ENABLE>; 29 /* GNSS UART-B pinmux */ 30 uartb-rxd { 35 nvidia,enable-input = <TEGRA_PIN_ENABLE>; [all …]
|
H A D | tegra30-lg-p895.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "tegra30-lg-x3.dtsi" 11 pinctrl-names = "default"; 12 pinctrl-0 = <&state_default>; 15 /* GNSS UART-B pinmux */ 16 uartb-cts-rxd { 22 nvidia,enable-input = <TEGRA_PIN_ENABLE>; 24 uartb-rts-txd { 30 nvidia,enable-input = <TEGRA_PIN_DISABLE>; [all …]
|
H A D | tegra30-asus-tf600t.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/gpio-keys.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/thermal/thermal.h> 10 #include "tegra30-cpu-opp.dtsi" 11 #include "tegra30-cpu-opp-microvolt.dtsi" 16 chassis-type = "convertible"; 34 * pre-existing /chosen node to be available to insert the [all …]
|
H A D | tegra30-asus-p1801-t.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/gpio-keys.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/thermal/thermal.h> 9 #include "tegra30-cpu-opp.dtsi" 10 #include "tegra30-cpu-opp-microvolt.dtsi" 13 model = "Asus Portable AiO P1801-T"; 14 compatible = "asus,p1801-t", "nvidia,tegra30"; 15 chassis-type = "convertible"; [all …]
|
H A D | tegra30-pegatron-chagall.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/gpio-keys.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/thermal/thermal.h> 9 #include "tegra30-cpu-opp.dtsi" 10 #include "tegra30-cpu-opp-microvolt.dtsi" 11 #include "tegra30-asus-lvds-display.dtsi" 16 chassis-type = "tablet"; 35 * pre-existing /chosen node to be available to insert the [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6ull-uti260b.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 // Copyright (C) 2022-2024 Sebastian Reichel <sre@kernel.org> 4 /dts-v1/; 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/clock/imx6ul-clock.h> 9 #include <dt-bindings/leds/common.h> 12 model = "UNI-T UTi260B Thermal Camera"; 13 compatible = "uni-t,uti260b", "fsl,imx6ull"; 16 stdout-path = "serial0:115200n8"; [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3568-photonicat.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/soc/rockchip,vop2.h> 23 compatible = "simple-battery"; 24 device-chemistry = "lithium-ion"; 25 charge-full-design-microamp-hours = <6800000>; 26 energy-full-design-microwatt-hours = <25000000>; 27 voltage-max-design-microvolt = <4200000>; [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos4412-p4note.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos4412 based p4note device family base DT. 4 * Based on exynos4412-midas.dtsi. 10 /dts-v1/; 12 #include "exynos4412-ppmu-common.dtsi" 14 #include <dt-bindings/clock/maxim,max77686.h> 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/linux-event-codes.h> 17 #include <dt-bindings/interrupt-controller/irq.h> 18 #include <dt-bindings/power/summit,smb347-charger.h> [all …]
|