Home
last modified time | relevance | path

Searched +full:bat +full:- +full:temp +full:- +full:ok (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A Dqcom,pm8941-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8941-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Switch-Mode Battery Charger and Boost
10 - Sebastian Reichel <sre@kernel.org>
15 - qcom,pm8226-charger
16 - qcom,pm8941-charger
23 - description: charge done
24 - description: charge fast mode
[all …]
/openbmc/linux/arch/arm/boot/dts/qcom/
H A Dpm8226.dtsi1 // 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 …]
H A Dpm8941.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>
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 …]
/openbmc/linux/drivers/power/supply/
H A Dda9052-battery.c1 // SPDX-License-Identifier: GPL-2.0-or-later
185 static int da9052_read_chgend_current(struct da9052_battery *bat, in da9052_read_chgend_current() argument
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()
202 static int da9052_read_chg_current(struct da9052_battery *bat, int *current_mA) in da9052_read_chg_current() argument
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
[all …]
H A 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 …]
H A Dab8500_fg.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2012
5 * Main and Back-up battery management driver.
7 * Note: Backup battery management is required in case of Li-Ion battery and not
37 #include <linux/fixp-arith.h>
39 #include "ab8500-bm.h"
49 /* Currents higher than -500mA (dissipating) will make compensation unstable */
50 #define IGNORE_VBAT_HIGHCUR -500000
63 * struct ab8500_fg_interrupts - ab8500 fg interrupts
158 * struct ab8500_fg - ab8500 FG device information
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_bmap.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
65 * leaf entries, is controlled by the size of the on-disk extent count. in xfs_bmap_compute_maxlevels()
83 minleafrecs = mp->m_bmap_dmnr[0]; in xfs_bmap_compute_maxlevels()
84 minnoderecs = mp->m_bmap_dmnr[1]; in xfs_bmap_compute_maxlevels()
92 mp->m_bm_maxlevels[whichfork] = level; in xfs_bmap_compute_maxlevels()
93 ASSERT(mp->m_bm_maxlevels[whichfork] <= xfs_bmbt_maxlevels_ondisk()); in xfs_bmap_compute_maxlevels()
100 if (mp->m_sb.sb_inodesize == 256) in xfs_bmap_compute_attr_offset()
101 return XFS_LITINO(mp) - XFS_BMDR_SPACE_CALC(MINABTPTRS); in xfs_bmap_compute_attr_offset()
111 cur->bc_rec.b = *irec; in xfs_bmbt_lookup_eq()
[all …]