Home
last modified time | relevance | path

Searched +full:chg +full:- +full:status (Results 1 – 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/power/supply/
Dqcom_smbb.c1 // 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 …]
Dmax77650-charger.c1 // SPDX-License-Identifier: GPL-2.0
6 // Battery charger driver for MAXIM 77650/77651 charger/power-supply.
28 /* Charger is in fast-charge constant current mode. */
30 /* Charger is in JEITA modified fast-charge constant-current mode. */
32 /* Charger is in fast-charge constant-voltage mode. */
34 /* Charger is in JEITA modified fast-charge constant-voltage mode. */
36 /* Charger is in top-off mode. */
38 /* Charger is in JEITA modified top-off mode. */
46 /* Charger is suspended due to a fast-charge timer fault. */
88 static int max77650_charger_set_vchgin_min(struct max77650_charger_data *chg, in max77650_charger_set_vchgin_min() argument
[all …]
Dmax14577_charger.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max14577_charger.c - Battery charger driver for the Maxim 14577/77836
11 #include <linux/mfd/max14577-private.h>
47 static int max14577_get_charger_state(struct max14577_charger *chg, int *val) in max14577_get_charger_state() argument
49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state()
55 * - CHGCTRL2/MBCHOSTEN == 1 in max14577_get_charger_state()
56 * - STATUS2/CGMBC == 1 in max14577_get_charger_state()
59 * - handle FULL after Top-off timer (EOC register may be off in max14577_get_charger_state()
61 * - handle properly dead-battery charging (respect timer) in max14577_get_charger_state()
62 * - handle timers (fast-charge and prequal) /MBCCHGERR/ in max14577_get_charger_state()
[all …]
Dmax8903_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver
31 POWER_SUPPLY_PROP_STATUS, /* Charger status output */
44 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property()
45 if (gpio_is_valid(data->pdata->chg)) { in max8903_get_property()
46 if (gpio_get_value(data->pdata->chg) == 0) in max8903_get_property()
47 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8903_get_property()
48 else if (data->usb_in || data->ta_in) in max8903_get_property()
49 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in max8903_get_property()
51 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in max8903_get_property()
[all …]
Dda9052-battery.c1 // SPDX-License-Identifier: GPL-2.0-or-later
171 int status; member
190 if (bat->status == POWER_SUPPLY_STATUS_DISCHARGING) in da9052_read_chgend_current()
191 return -EINVAL; in da9052_read_chgend_current()
193 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_END_REG); in da9052_read_chgend_current()
206 if (bat->status == POWER_SUPPLY_STATUS_DISCHARGING) in da9052_read_chg_current()
207 return -EINVAL; in da9052_read_chg_current()
209 ret = da9052_reg_read(bat->da9052, DA9052_ICHG_AV_REG); in da9052_read_chg_current()
218 static int da9052_bat_check_status(struct da9052_battery *bat, int *status) in da9052_bat_check_status() argument
233 ret = da9052_group_read(bat->da9052, DA9052_STATUS_A_REG, 2, v); in da9052_bat_check_status()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c1 // SPDX-License-Identifier: GPL-2.0
85 * ice_sect_id - returns section ID
109 hdr = (struct ice_buf_hdr *)buf->buf; in ice_pkg_val_buf()
111 section_count = le16_to_cpu(hdr->section_count); in ice_pkg_val_buf()
115 data_end = le16_to_cpu(hdr->data_end); in ice_pkg_val_buf()
133 (ice_seg->device_table + in ice_find_buf_table()
134 le32_to_cpu(ice_seg->device_table_count)); in ice_find_buf_table()
137 (nvms->vers + le32_to_cpu(nvms->table_count)); in ice_find_buf_table()
146 * call is made with the ice_seg parameter non-NULL; on subsequent calls,
156 state->buf_table = ice_find_buf_table(ice_seg); in ice_pkg_enum_buf()
[all …]
/kernel/linux/linux-5.10/include/linux/power/
Dmax8903_charger.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * max8903_charger.h - Maxim 8903 USB/Adapter Charger Driver
15 * cen, chg, flt, dcm and usus are optional.
16 * dok and uok are not optional depending on the status of
22 int chg; /* Charger status output */ member
24 int dcm; /* Current-Limit Mode input (1: DC, 2: USB) */
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dqcom-pm8941.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/interrupt-controller/irq.h>
4 #include <dt-bindings/spmi/spmi.h>
9 compatible = "qcom,pm8941", "qcom,spmi-pmic";
11 #address-cells = <1>;
12 #size-cells = <0>;
15 compatible = "qcom,pm8941-rtc";
18 reg-names = "rtc", "alarm";
23 compatible = "qcom,pm8941-pwrkey";
[all …]
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 …]
Dimx6sl-tolino-shine2hd.dts1 // SPDX-License-Identifier: GPL-2.0
5 * Name on mainboard is: 37NB-E60QF0+4A2 or 37NB-E60QF0+4A3
11 /dts-v1/;
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/gpio/gpio.h>
19 compatible = "kobo,tolino-shine2hd", "fsl,imx6sl";
22 stdout-path = &uart1;
25 gpio_keys: gpio-keys {
26 compatible = "gpio-keys";
27 pinctrl-names = "default";
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dmax8903-charger.txt4 - compatible: "maxim,max8903" for MAX8903 Battery Charger
5 - dok-gpios: Valid DC power has been detected (active low, input), optional if uok-gpios is provided
6 - uok-gpios: Valid USB power has been detected (active low, input), optional if dok-gpios is provid…
9 - cen-gpios: Charge enable pin (active low, output)
10 - chg-gpios: Charger status pin (active low, input)
11 - flt-gpios: Fault pin (active low, output)
12 - dcm-gpios: Current limit mode setting (DC=1 or USB=0, output)
13 - usus-gpios: USB suspend pin (active high, output)
18 max8903-charger {
20 dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
[all …]
Dcharger-manager.txt1 charger-manager bindings
5 - compatible : "charger-manager"
6 - <>-supply : for regulator consumer, named according to cm-regulator-name
7 - cm-chargers : name of chargers
8 - cm-fuel-gauge : name of battery fuel gauge
9 - subnode <regulator> :
10 - cm-regulator-name : name of charger regulator
11 - subnode <cable> :
12 - cm-cable-name : name of charger cable - one of USB, USB-HOST,
13 SDP, DCP, CDP, ACA, FAST-CHARGER, SLOW-CHARGER, WPT,
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c1 // SPDX-License-Identifier: GPL-2.0+
3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
5 * hub.c - virtual hub handling
31 #include <linux/dma-mapping.h>
43 * - We may need to indicate TT support
44 * - We may need a device qualifier descriptor
46 * - Make vid/did overridable
47 * - make it look like usb1 if usb1 mode forced
138 * These strings converted to UTF-16 must be smaller than
170 * Mark it as self-powered, I doubt the BMC is powered off in ast_vhub_hub_dev_status()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/gpio/
Dgpio-pca95xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/gpio-pca95xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Krzysztof Kozlowski <krzk@kernel.org>
19 - exar,xra1202
20 - maxim,max7310
21 - maxim,max7312
22 - maxim,max7313
23 - maxim,max7315
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/
Dhdmi_connector.c1 // SPDX-License-Identifier: GPL-2.0-only
72 const struct hdmi_platform_config *config = hdmi->config; in gpio_config()
77 struct hdmi_gpio_data gpio = config->gpios[i]; in gpio_config()
94 struct hdmi_gpio_data gpio = config->gpios[i]; in gpio_config()
114 const struct hdmi_platform_config *config = hdmi->config; in enable_hpd_clocks()
115 struct device *dev = &hdmi->pdev->dev; in enable_hpd_clocks()
119 for (i = 0; i < config->hpd_clk_cnt; i++) { in enable_hpd_clocks()
120 if (config->hpd_freq && config->hpd_freq[i]) { in enable_hpd_clocks()
121 ret = clk_set_rate(hdmi->hpd_clks[i], in enable_hpd_clocks()
122 config->hpd_freq[i]); in enable_hpd_clocks()
[all …]
/kernel/linux/linux-5.10/sound/pci/echoaudio/
Dechoaudio_dsp.h3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 MA 02111-1307, USA.
26 Translation from C++ and adaptation for use in ALSA-Driver
41 /**** Echo24: Gina24, Layla24, Mona, Mia, Mia-midi ****/
81 * These are the offsets for the memory-mapped DSP registers; the DSP base
133 #define MIDI_IN_SKIP_DATA (-1)
136 /*----------------------------------------------------------------------------
151 -Set the clock select bits in the control register to 0xe (see the #define
154 -Set double-speed mode if you want to use sample rates above 50 kHz
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/qcom/
Dpm8150b.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
7 #include <dt-bindings/iio/qcom,spmi-vadc.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
12 thermal-zones {
14 polling-delay-passive = <100>;
15 polling-delay = <0>;
17 thermal-sensors = <&pm8150b_temp>;
44 compatible = "qcom,pm8150b", "qcom,spmi-pmic";
[all …]
/kernel/linux/linux-5.10/mm/
Dhugetlb.c1 // SPDX-License-Identifier: GPL-2.0-only
84 return page_private(head + 4) == -1UL; in PageHugeFreed()
89 set_page_private(head + 4, -1UL); in SetPageHugeFreed()
102 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()
104 spin_unlock(&spool->lock); in unlock_or_release_subpool()
110 if (spool->min_hpages != -1) in unlock_or_release_subpool()
111 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
112 -spool->min_hpages); in unlock_or_release_subpool()
126 spin_lock_init(&spool->lock); in hugepage_new_subpool()
127 spool->count = 1; in hugepage_new_subpool()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dmax3421-hcd.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: David Mosberger-Tang <davidm@egauge.net>
7 * (C) Copyright 2014 David Mosberger-Tang <davidm@egauge.net>
9 * MAX3421 is a chip implementing a USB 2.0 Full-/Low-Speed host
16 * https://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf
24 * Important note on worst-case (full-speed) packet size constraints
27 * - control: 64 bytes
28 * - isochronous: 1023 bytes
29 * - interrupt: 64 bytes
30 * - bulk: 64 bytes
[all …]
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * of PCI-SCSI IO processors.
6 * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr>
7 * Copyright (c) 2003-2005 Matthew Wilcox <matthew@wil.cx>
10 * Copyright (C) 1998-2000 Gerard Roudier
13 * a port of the FreeBSD ncr driver to Linux-1.2.13.
17 * Stefan Esser <se@mi.Uni-Koeln.de>
25 *-----------------------------------------------------------------------------
55 while (n-- > 0) in sym_printl_hex()
62 sym_print_addr(cp->cmd, "%s: ", label); in sym_print_msg()
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Datmel_mxt_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2011-2014 Atmel Corporation
29 #include <media/v4l2-device.h>
30 #include <media/v4l2-ioctl.h>
31 #include <media/videobuf2-v4l2.h>
32 #include <media/videobuf2-vmalloc.h>
86 /* Define for T6 status byte */
110 /* MXT_TOUCH_MULTI_T9 status */
206 /* Bootloader mode status */
352 return obj->size_minus_one + 1; in mxt_obj_size()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Dtps65010.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * tps65010 - driver for tps6501x power management chips
6 * Copyright (C) 2004-2005 David Brownell
27 /*-------------------------------------------------------------------------*/
37 /*-------------------------------------------------------------------------*/
45 * to tps65010 and tps65012. The tps65013 has a NO_CHG status/irq.
47 * battery-insert != device-on.
84 /*-------------------------------------------------------------------------*/
184 struct tps65010 *tps = s->private; in dbg_show()
190 switch (tps->model) { in dbg_show()
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/hisilicon/
Dhi3660-hikey960.dts1 // SPDX-License-Identifier: GPL-2.0
9 /dts-v1/;
12 #include "hikey960-pinctrl.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/usb/pd.h>
20 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
35 stdout-path = "serial6:115200n8";
44 reserved-memory {
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/rockchip/
Drk3399-orangepi.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "dt-bindings/pwm/pwm.h"
9 #include "dt-bindings/input/input.h"
11 #include "rk3399-opp.dtsi"
15 compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399";
18 stdout-path = "serial2:1500000n8";
21 clkin_gmac: external-gmac-clock {
22 compatible = "fixed-clock";
23 clock-frequency = <125000000>;
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-max8997.c1 // SPDX-License-Identifier: GPL-2.0+
3 // extcon-max8997.c - MAX8997 extcon driver to support MAX8997 MUIC
17 #include <linux/mfd/max8997-private.h>
18 #include <linux/extcon-provider.h>
21 #define DEV_NAME "max8997-muic"
38 { MAX8997_MUICIRQ_ADCError, "muic-ADCERROR" },
39 { MAX8997_MUICIRQ_ADCLow, "muic-ADCLOW" },
40 { MAX8997_MUICIRQ_ADC, "muic-ADC" },
41 { MAX8997_MUICIRQ_VBVolt, "muic-VBVOLT" },
42 { MAX8997_MUICIRQ_DBChg, "muic-DBCHG" },
[all …]

12