/linux/drivers/power/supply/ |
H A D | lego_ev3_battery.c | 46 val->intval = batt->technology; in lego_ev3_battery_get_property() 50 ret = iio_read_channel_processed(batt->iio_v, &val->intval); in lego_ev3_battery_get_property() 54 val->intval *= 2000; in lego_ev3_battery_get_property() 55 val->intval += 50000; in lego_ev3_battery_get_property() 58 ret = iio_read_channel_processed(batt->iio_i, &val2); in lego_ev3_battery_get_property() 64 val->intval += val2; in lego_ev3_battery_get_property() 67 val->intval = batt->v_max; in lego_ev3_battery_get_property() 70 val->intval = batt->v_min; in lego_ev3_battery_get_property() 74 ret = iio_read_channel_processed(batt->iio_i, &val->intval); in lego_ev3_battery_get_property() 78 val->intval *= 20000; in lego_ev3_battery_get_property() [all …]
|
H A D | qcom_smbb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * This driver is for the multi-block Switch-Mode Battery Charger and Boost 6 * integrated, single-cell lithium-ion battery charger. 8 * Sub-components: 9 * - Charger core 10 * - Buck 11 * - DC charge-path 12 * - USB charge-path 13 * - Battery interface 14 * - Boost (not implemented) [all …]
|
H A D | max17040_battery.c | 1 // SPDX-License-Identifier: GPL-2.0 4 // fuel-gauge systems for lithium-ion (Li+) batteries 160 return regmap_write(chip->regmap, MAX17040_CMD, chip->data.reset_val); in max17040_reset() 165 level = 32 - level * (chip->quirk_double_soc ? 2 : 1); in max17040_set_low_soc_alert() 166 return regmap_update_bits(chip->regmap, MAX17040_CONFIG, in max17040_set_low_soc_alert() 172 return regmap_update_bits(chip->regmap, MAX17040_CONFIG, in max17040_set_soc_alert() 178 u16 mask = chip->data.rcomp_bytes == 2 ? in max17040_set_rcomp() 181 return regmap_update_bits(chip->regmap, MAX17040_CONFIG, mask, rcomp); in max17040_set_rcomp() 186 struct chip_data *d = &chip->data; in max17040_raw_vcell_to_uvolts() 188 return (vcell >> d->vcell_shift) * d->vcell_mul / d->vcell_div; in max17040_raw_vcell_to_uvolts() [all …]
|
H A D | surface_battery.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Battery driver for 7th-generation Microsoft Surface devices via Surface 6 * Copyright (C) 2019-2021 Maximilian Luz <luzmaximilian@gmail.com> 22 /* -- SAM interface. --- [all...] |
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | richtek,rt9471.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alina Yu <alina_yu@richtek.com> 11 - ChiYuan Huang <cy_huang@richtek.com> 14 RT9471 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for 19 https://www.richtek.com/assets/product_file/RT9471=RT9471D/DS9471D-02.pdf 28 charge-enable-gpios: 32 wakeup-source: true 37 usb-otg-vbus-regulator: [all …]
|
H A D | richtek,rt9467.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 11 - ChiaEn Wu <chiaen_wu@richtek.com> 14 RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for 16 MOSFETs, input current sensing and regulation, high-accuracy voltage 20 The RT9467 also features USB On-The-Go (OTG) support. It also integrates 21 D+/D- pin for USB host/charging port detection. 24 https://www.richtek.com/assets/product_file/RT9467/DS9467-01.pdf [all …]
|
H A D | lego,ev3-battery.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David Lechner <david@lechnology.com> 11 - Sebastian Reichel <sre@kernel.org> 14 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery. 15 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is 19 - $ref: power-supply.yaml# 23 const: lego,ev3-battery [all …]
|
H A D | bq256xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Andrew Davis <afd@ti.com> 14 The bq256xx devices are a family of highly-integrated battery charge 15 management and system power management ICs for single cell Li-ion and Li- 19 - https://www.ti.com/lit/ds/symlink/bq25600.pdf 20 - https://www.ti.com/lit/ds/symlink/bq25601.pdf 21 - https://www.ti.com/lit/ds/symlink/bq25600d.pdf 22 - https://www.ti.com/lit/ds/symlink/bq25601d.pdf [all …]
|
H A D | bq24190.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI BQ2419x Li-Ion Batter [all...] |
H A D | bq2415x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI bq2415x Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24150 20 - ti,bq24150a 21 - ti,bq24151 22 - ti,bq24151a [all …]
|
H A D | bq24735.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI BQ24735 Li-Ion Battery Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 27 ti,ac-detect-gpios: 35 ti,charge-current: 43 ti,charge-voltage: 51 ti,input-current: [all …]
|
H A D | bq25890.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - enum: 20 - ti,bq25890 21 - items: 22 - enum: [all …]
|
H A D | bq24257.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Bq24250, bq24251 and bq24257 Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24250 20 - ti,bq24251 21 - ti,bq24257 29 ti,battery-regulation-voltage: [all …]
|
/linux/tools/testing/selftests/power_supply/ |
H A D | test_power_supply_properties.sh | 2 # SPDX-License-Identifier: GPL-2.0 11 DIR="$(dirname "$(readlink -f "$0")")" 36 if [ $# -eq 0 ]; then 47 if [ ! -d "$SYSFS_SUPPLIES"/"$DEVNAME" ]; then 77 test_sysfs_prop_optional_list technology "Unknown","NiMH","Li-ion","Li-poly","LiFe","NiCd","LiMn" 86 # Technically the power-supply class does not limit reported values. 87 # E.g. one could expose an RTC backup-battery, which goes below 1.5V or 89 # have a step-up capable regulator behind the battery and operate with 91 # 1.8V-60V to catch drivers reporting incorrectly scaled values. E.g. a
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | mediatek,mt6370.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 MT6370 is a highly-integrated smart power management IC, which includes a 14 single cell Li-Ion/Li-Polymer switching battery charger, a USB Type-C & 26 wakeup-source: true 31 interrupt-controller: true 33 "#interrupt-cells": 46 const: mediatek,mt6370-adc [all …]
|
/linux/arch/arm/mach-sa1100/ |
H A D | assabet.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-sa1100/assabet.c 7 * This file contains all Assabet-specific tweaks. 14 #include <linux/gpio/gpio-reg.h> 18 #include <linux/platform_data/sa11x0-serial.h> 34 #include <asm/mach-types.h> 37 #include <asm/pgtable-hwdef.h> 44 #include <linux/platform_data/mfd-mcp-sa11x0.h> 83 assabet_bcr_gc->set_multiple(assabet_bcr_gc, &m, &v); in ASSABET_BCR_frob() 93 gc = gpio_reg_init(NULL, reg, -1, 32, "assabet", 0xff000000, def_val, in assabet_init_gpio() [all …]
|
/linux/arch/arm/boot/dts/ti/davinci/ |
H A D | da850-lego-ev3.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 8 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/linux-event-codes.h> 11 #include <dt-bindings/pwm/pwm.h> 32 compatible = "gpio-keys"; 34 pinctrl-names = "default"; 35 pinctrl-0 = <&button_bias>; 75 * The EV3 has two built-in bi-color LEDs behind the buttons. 78 compatible = "gpio-leds"; [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 5 Contact: linux-pm@vger.kernel.org 14 Contact: linux-pm@vger.kernel.org 23 Contact: linux-pm@vger.kernel.org 32 Contact: linux-pm@vger.kernel.org 43 Contact: linux-pm@vger.kernel.org 66 Contact: linux-pm@vger.kernel.org 81 Contact: linux-pm@vger.kernel.org 94 read-only reporting, unless the 'online' state of the supply 106 Contact: linux-pm@vger.kernel.org 124 Contact: linux-p [all...] |
/linux/drivers/media/usb/gspca/ |
H A D | mr97310a.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 * Thomas Kaiser <thomas@kaiser-linux.li> 21 * Thomas Kaiser <thomas@kaiser-linux.li> and 63 MODULE_DESCRIPTION("GSPCA/Mars-Semi MR97310A USB Camera Driver"); 67 static int force_sensor_type = -1; 69 MODULE_PARM_DESC(force_sensor_type, "Force sensor type (-1 (auto), 0 or 1)"); 122 /* the bytes to write are in gspca_dev->usb_buf */ 127 rc = usb_bulk_msg(gspca_dev->dev, in mr_write() 128 usb_sndbulkpipe(gspca_dev->dev, 4), in mr_write() 129 gspca_dev->usb_buf, len, NULL, 500); in mr_write() [all …]
|
/linux/drivers/input/joystick/ |
H A D | xpad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2002 Marko Friedemann <mfr@bmx-chemnitz.de> 16 * - information from http://euc.jp/periphs/xbox-controller.ja.html 17 * - the iForce driver drivers/char/joystick/iforce.c 18 * - the skeleton-driver drivers/usb/usb-skeleton.c 19 * - Xbox 360 information http://www.free60.org/wiki/Gamepad 20 * - Xbox One information https://github.com/quantus/xbox-one-controller-protocol 23 * - ITO Takayuki for providing essential xpad information on his website 24 * - Vojtech Pavlik - iforce driver / input subsystem 25 * - Greg Kroah-Hartman - usb-skeleton driver [all …]
|
/linux/ |
H A D | MAINTAINERS | 5 --------------------------------------------------- 21 W: *Web-page* with status/info 23 B: URI for where to file *bugs*. A web-page with detailed bug 28 patches to the given subsystem. This is either an in-tree file, 29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst 46 N: [^a-z]tegra all files whose path contains tegra 64 ---------------- 83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS) 85 L: linux-scsi@vger.kernel.org 88 F: drivers/scsi/3w-* [all …]
|