Home
last modified time | relevance | path

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

1234

/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 …]
/kernel/linux/linux-4.19/drivers/power/supply/
Dqcom_smbb.c12 * This driver is for the multi-block Switch-Mode Battery Charger and Boost
14 * integrated, single-cell lithium-ion battery charger.
16 * Sub-components:
17 * - Charger core
18 * - Buck
19 * - DC charge-path
20 * - USB charge-path
21 * - Battery interface
22 * - Boost (not implemented)
23 * - Misc
[all …]
Dmax14577_charger.c2 * max14577_charger.c - Battery charger driver for the Maxim 14577/77836
21 #include <linux/mfd/max14577-private.h>
57 static int max14577_get_charger_state(struct max14577_charger *chg, int *val) in max14577_get_charger_state() argument
59 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state()
65 * - CHGCTRL2/MBCHOSTEN == 1 in max14577_get_charger_state()
66 * - STATUS2/CGMBC == 1 in max14577_get_charger_state()
69 * - handle FULL after Top-off timer (EOC register may be off in max14577_get_charger_state()
71 * - handle properly dead-battery charging (respect timer) in max14577_get_charger_state()
72 * - handle timers (fast-charge and prequal) /MBCCHGERR/ in max14577_get_charger_state()
88 /* Charger or USB-cable is connected */ in max14577_get_charger_state()
[all …]
Dmax8903_charger.c2 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45 POWER_SUPPLY_PROP_STATUS, /* Charger status output */
58 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property()
59 if (gpio_is_valid(data->pdata->chg)) { in max8903_get_property()
60 if (gpio_get_value(data->pdata->chg) == 0) in max8903_get_property()
61 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8903_get_property()
62 else if (data->usb_in || data->ta_in) in max8903_get_property()
63 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in max8903_get_property()
65 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in max8903_get_property()
[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-4.19/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
78 desc->bcdUSB = cpu_to_le16(0x0100); in ast_vhub_patch_dev_desc_usb1()
79 desc->bDeviceProtocol = 0; in ast_vhub_patch_dev_desc_usb1()
[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 …]
/kernel/linux/linux-4.19/include/linux/power/
Dmax8903_charger.h2 * max8903_charger.h - Maxim 8903 USB/Adapter Charger Driver
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 * cen, chg, flt, dcm and usus are optional.
30 * dok and uok are not optional depending on the status of
36 int chg; /* Charger status output */ member
38 int dcm; /* Current-Limit Mode input (1: DC, 2: USB) */
/kernel/linux/linux-4.19/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
7 - cm-num-chargers : number of chargers
8 - cm-chargers : name of chargers
9 - cm-fuel-gauge : name of battery fuel gauge
10 - subnode <regulator> :
11 - cm-regulator-name : name of charger regulator
12 - subnode <cable> :
13 - cm-cable-name : name of charger cable
[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-4.19/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 …]
/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-4.19/Documentation/devicetree/bindings/gpio/
Dgpio-pca953x.txt4 - compatible: Has to contain one of the following:
34 - gpio-controller: if used as gpio expander.
35 - #gpio-cells: if used as gpio expander.
36 - interrupt-controller: if to be used as interrupt expander.
37 - #interrupt-cells: if to be used as interrupt expander.
40 - interrupts: interrupt specifier for the device's interrupt output.
41 - reset-gpios: GPIO specification for the RESET input. This is an
43 - vcc-supply: power supply regulator.
51 pinctrl-names = "default";
52 pinctrl-0 = <&pinctrl_pca9505>;
[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-4.19/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 …]

1234