Home
last modified time | relevance | path

Searched +full:ocv +full:- +full:capacity +full:- +full:table +full:- +full:0 (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/nvmem-consumer.h>
18 #define SC27XX_MODULE_EN0 0xc08
19 #define SC27XX_CLK_EN0 0xc18
24 #define SC27XX_FGU_START 0x0
25 #define SC27XX_FGU_CONFIG 0x4
26 #define SC27XX_FGU_ADC_CONFIG 0x8
27 #define SC27XX_FGU_STATUS 0xc
28 #define SC27XX_FGU_INT_EN 0x10
29 #define SC27XX_FGU_INT_CLR 0x14
[all …]
H A Dab8500_bmdata.c1 // SPDX-License-Identifier: GPL-2.0
6 #include "ab8500-bm.h"
20 { .ocv = 4186000, .capacity = 100},
21 { .ocv = 4163000, .capacity = 99},
22 { .ocv = 4114000, .capacity = 95},
23 { .ocv = 4068000, .capacity = 90},
24 { .ocv = 3990000, .capacity = 80},
25 { .ocv = 3926000, .capacity = 70},
26 { .ocv = 3898000, .capacity = 65},
27 { .ocv = 3866000, .capacity = 60},
[all …]
H A Dsamsung-sdi-battery.c1 // SPDX-License-Identifier: GPL-2.0
14 #include "samsung-sdi-battery.h"
24 * depending on the VBAT voltage, so look this up from a table. Different
428 * so this represents the capacity ratio at different temperatures.
430 * FIXME: the proper table is missing: Samsung does not provide the necessary
441 { .temp = -10, .resistance = 100 },
442 { .temp = -20, .resistance = 100 },
446 * Capacity tables for different Open Circuit Voltages (OCV).
447 * These must be sorted by falling OCV value.
451 { .ocv = 4330000, .capacity = 100},
[all …]
H A Dpower_supply_core.c1 // SPDX-License-Identifier: GPL-2.0-only
25 #include <linux/fixp-arith.h>
27 #include "samsung-sdi-battery.h"
48 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by()
52 if (supply->supplied_from) { in __power_supply_is_supplied_by()
53 if (!supplier->desc->name) in __power_supply_is_supplied_by()
55 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()
56 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by()
59 if (!supply->desc->name) in __power_supply_is_supplied_by()
61 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by()
[all …]
H A Drk817_charger.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/devm-helpers.h>
34 * Note how highest value corresponding to 0x7 is the lowest
68 * soc - state of charge - like the BSP this is stored as a percentage,
78 * Capacity of battery when fully charged, equal or less than design
79 * capacity depending upon wear. BSP kernel saves to nvram in mAh,
118 #define CHARGE_TO_ADC(capacity, res_div) \ argument
119 (capacity * res_div * 3600 / 172 * 1000)
143 return -EINVAL; in rk817_chg_cur_to_reg()
166 return -EINVAL; in rk817_chg_cur_from_reg()
[all …]
/linux/Documentation/devicetree/bindings/power/supply/
H A Dbattery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
14 In smart batteries, these are typically stored in non-volatile memory
16 no appropriate non-volatile memory, or it is unprogrammed/incorrect.
27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle.
28 The phandle's property should be named "monitored-battery".
32 const: simple-battery
34 device-chemistry:
[all …]
H A Dsc27xx-fg.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
18 - sprd,sc2720-fgu
19 - sprd,sc2721-fgu
20 - sprd,sc2723-fgu
21 - sprd,sc2730-fgu
[all …]
/linux/include/linux/
H A Dpower_supply.h1 /* SPDX-License-Identifier: GPL-2.0-only */
29 * For systems where the charger determines the maximum battery capacity
35 POWER_SUPPLY_STATUS_UNKNOWN = 0,
44 POWER_SUPPLY_CHARGE_TYPE_UNKNOWN = 0,
56 POWER_SUPPLY_HEALTH_UNKNOWN = 0,
74 POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0,
84 POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0,
93 POWER_SUPPLY_SCOPE_UNKNOWN = 0,
100 POWER_SUPPLY_PROP_STATUS = 0,
180 POWER_SUPPLY_TYPE_UNKNOWN = 0,
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3326-odroid-go2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Advance";
13 compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326";
15 analog_sticks: adc-joystick {
16 compatible = "adc-joystick";
17 io-channels = <&saradc 1>,
19 poll-interval = <60>;
20 #address-cells = <1>;
[all …]
H A Drk3566-anbernic-rg353vs.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rg353x.dtsi"
21 compatible = "simple-battery";
22 charge-full-design-microamp-hours = <3151000>;
23 charge-term-current-microamp = <300000>;
24 constant-charge-current-max-microamp = <2000000>;
[all …]
H A Drk3566-anbernic-rg353v.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rg353x.dtsi"
22 compatible = "simple-battery";
23 charge-full-design-microamp-hours = <3151000>;
24 charge-term-current-microamp = <300000>;
25 constant-charge-current-max-microamp = <2000000>;
[all …]
H A Drk3566-anbernic-rg353ps.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rg353x.dtsi"
21 compatible = "simple-battery";
22 charge-full-design-microamp-hours = <3472000>;
23 charge-term-current-microamp = <300000>;
24 constant-charge-current-max-microamp = <2000000>;
[all …]
H A Drk3566-anbernic-rg353p.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rg353x.dtsi"
22 compatible = "simple-battery";
23 charge-full-design-microamp-hours = <3472000>;
24 charge-term-current-microamp = <300000>;
25 constant-charge-current-max-microamp = <2000000>;
[all …]
H A Drk3326-odroid-go2-v11.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Advance Black Edition";
13 compatible = "hardkernel,rk3326-odroid-go2-v11", "rockchip,rk3326";
19 analog_sticks: adc-joystick {
20 compatible = "adc-joystick";
21 io-channels = <&saradc 1>,
23 poll-interval = <60>;
24 #address-cells = <1>;
[all …]
H A Drk3326-odroid-go3.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Super";
13 compatible = "hardkernel,rk3326-odroid-go3", "rockchip,rk3326";
15 joystick_mux_controller: mux-controller {
16 compatible = "gpio-mux";
18 #mux-control-cells = <0>;
20 mux-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>,
24 joystick_mux: adc-mux {
[all …]
H A Drk3566-anbernic-rg-arc.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rgxx3.dtsi"
12 compatible = "pwm-backlight";
13 power-supply = <&vcc_sys>;
14 pwms = <&pwm4 0 25000 0>;
18 compatible = "simple-battery";
[all …]
H A Drk3566-anbernic-rg503.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rgxx3.dtsi"
20 adc-joystick {
21 compatible = "adc-joystick";
22 io-channels = <&adc_mux 0>,
26 pinctrl-0 = <&joy_mux_en>;
[all …]
H A Drk3566-powkiddy-rk2023.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/soc/rockchip,vop2.h>
13 chassis-type = "handset";
21 adc-joystick {
22 compatible = "adc-joystick";
[all …]
H A Drk3326-gameforce-chi.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
16 chassis-type = "handset";
24 stdout-path = "serial2:115200n8";
27 adc_joystick: adc-joystick {
28 compatible = "adc-joystick";
[all …]
/linux/arch/arm64/boot/dts/sprd/
H A Dsp9860g-1h10.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
16 compatible = "sprd,sp9860g-1h10", "sprd,sc9860";
28 reg = <0x0 0x80000000 0 0x60000000>,
29 <0x1 0x80000000 0 0x60000000>;
33 stdout-path = "serial1:115200n8";
36 gpio-keys {
37 compatible = "gpio-keys";
39 key-volumedown {
43 debounce-interval = <2>;
[all …]
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8916-wingtech-wt865x8.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
4 #include "msm8916-modem-qdsp6.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
17 stdout-path = "serial0";
20 headphones_switch: audio-switch {
21 compatible = "simple-audio-amplifier";
23 pinctrl-0 = <&headphones_switch_default>;
24 pinctrl-names = "default";
[all …]
H A Dmsm8916-lg-m216.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
13 chassis-type = "handset";
22 stdout-path = "serial0";
26 compatible = "simple-battery";
27 voltage-min-design-microvolt = <3300000>;
28 voltage-max-design-microvolt = <4350000>;
[all …]
H A Dmsm8916-gplus-fl8005a.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
15 chassis-type = "tablet";
24 stdout-path = "serial0";
28 compatible = "simple-battery";
[all …]
H A Dmsm8916-longcheer-l8150.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/leds/common.h>
16 chassis-type = "handset";
25 stdout-path = "serial0";
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Drockchip,rk817.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chris Zhong <zyw@rock-chips.com>
11 - Zhang Qing <zhangqing@rock-chips.com>
21 - rockchip,rk809
22 - rockchip,rk817
30 '#clock-cells':
32 See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
33 minimum: 0
[all …]

12