| /kernel/linux/linux-6.6/drivers/power/supply/ |
| 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 …]
|
| D | max77650-charger.c | 1 // 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 …]
|
| D | max14577_charger.c | 1 // 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 …]
|
| D | max8903_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver 23 * chg, flt, dcm and usus are optional. 30 struct gpio_desc *chg; /* Charger status output */ member 32 struct gpio_desc *dcm; /* Current-Limit Mode input (1: DC, 2: USB) */ 40 POWER_SUPPLY_PROP_STATUS, /* Charger status output */ 53 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property() 54 if (data->chg) { in max8903_get_property() 55 if (gpiod_get_value(data->chg)) in max8903_get_property() 56 /* CHG asserted */ in max8903_get_property() [all …]
|
| /kernel/linux/linux-5.10/drivers/power/supply/ |
| 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 …]
|
| D | max77650-charger.c | 1 // 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 …]
|
| D | max14577_charger.c | 1 // 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 …]
|
| D | max8903_charger.c | 1 // 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-6.6/drivers/net/ethernet/intel/ice/ |
| D | ice_flex_pipe.c | 1 // SPDX-License-Identifier: GPL-2.0 77 * ice_sect_id - returns section ID 90 * ice_hw_ptype_ena - check if the PTYPE is enabled or not 97 test_bit(ptype, hw->hw_ptype); in ice_hw_ptype_ena() 112 * ice_gen_key_word - generate 16-bits of a key/mask word 120 * This function generates 16-bits from a 8-bit value, an 8-bit don't care mask 121 * and an 8-bit never match mask. The 16-bits of output are divided into 8 bits 133 * ------------------------------ 145 return -EIO; in ice_gen_key_word() 150 /* encode the 8 bits into 8-bit key and 8-bit key invert */ in ice_gen_key_word() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
| D | ice_flex_pipe.c | 1 // 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-6.6/arch/arm/boot/dts/qcom/ |
| D | pm8941.dtsi | 1 // 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> 8 thermal-zones { 9 pm8941-thermal { 10 polling-delay-passive = <100>; 11 polling-delay = <0>; 12 thermal-sensors = <&pm8941_temp>; 40 compatible = "qcom,pm8941", "qcom,spmi-pmic"; [all …]
|
| D | pm8226.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/input/linux-event-codes.h> 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/spmi/spmi.h> 8 thermal-zones { 9 pm8226-thermal { 10 polling-delay-passive = <100>; 11 polling-delay = <0>; 12 thermal-sensors = <&pm8226_temp>; [all …]
|
| /kernel/linux/linux-5.10/include/linux/power/ |
| D | max8903_charger.h | 1 /* 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/ |
| D | qcom-pm8941.dtsi | 1 // 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/Documentation/devicetree/bindings/power/supply/ |
| D | max8903-charger.txt | 4 - 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 …]
|
| D | charger-manager.txt | 1 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-6.6/drivers/usb/gadget/udc/aspeed-vhub/ |
| D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget 5 * hub.c - virtual hub handling 25 #include <linux/dma-mapping.h> 37 * - We may need to indicate TT support 38 * - We may need a device qualifier descriptor 40 * - Make vid/did overridable 41 * - make it look like usb1 if usb1 mode forced 144 * These strings converted to UTF-16 must be smaller than 176 * Mark it as self-powered, I doubt the BMC is powered off in ast_vhub_hub_dev_status() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/ |
| D | hub.c | 1 // 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-6.6/Documentation/devicetree/bindings/power/supply/ |
| D | maxim,max8903.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 19 dok-gpios: 23 uok-gpios: 27 cen-gpios: 31 chg-gpios: 33 description: Charger status pin (active low, input) [all …]
|
| D | charger-manager.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 18 const: charger-manager 20 cm-chargers: 22 $ref: /schemas/types.yaml#/definitions/string-array 24 cm-num-chargers: 28 cm-fuel-gauge: [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/ |
| D | hdmi_hpd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 65 const struct hdmi_platform_config *config = hdmi->config; in enable_hpd_clocks() 66 struct device *dev = &hdmi->pdev->dev; in enable_hpd_clocks() 70 for (i = 0; i < config->hpd_clk_cnt; i++) { in enable_hpd_clocks() 71 if (config->hpd_freq && config->hpd_freq[i]) { in enable_hpd_clocks() 72 ret = clk_set_rate(hdmi->hpd_clks[i], in enable_hpd_clocks() 73 config->hpd_freq[i]); in enable_hpd_clocks() 77 config->hpd_clk_names[i], ret); in enable_hpd_clocks() 80 ret = clk_prepare_enable(hdmi->hpd_clks[i]); in enable_hpd_clocks() 84 config->hpd_clk_names[i], ret); in enable_hpd_clocks() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/msm/hdmi/ |
| D | hdmi_hpd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 65 const struct hdmi_platform_config *config = hdmi->config; in enable_hpd_clocks() 66 struct device *dev = &hdmi->pdev->dev; in enable_hpd_clocks() 70 for (i = 0; i < config->hpd_clk_cnt; i++) { in enable_hpd_clocks() 71 if (config->hpd_freq && config->hpd_freq[i]) { in enable_hpd_clocks() 72 ret = clk_set_rate(hdmi->hpd_clks[i], in enable_hpd_clocks() 73 config->hpd_freq[i]); in enable_hpd_clocks() 77 config->hpd_clk_names[i], ret); in enable_hpd_clocks() 80 ret = clk_prepare_enable(hdmi->hpd_clks[i]); in enable_hpd_clocks() 84 config->hpd_clk_names[i], ret); in enable_hpd_clocks() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/gpio/ |
| D | gpio-pca95xx.yaml | 1 # 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 - items: 20 - const: diodes,pi4ioe5v6534q 21 - const: nxp,pcal6534 22 - items: 23 - enum: [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/gpio/ |
| D | gpio-pca95xx.yaml | 1 # 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-6.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 …]
|