Home
last modified time | relevance | path

Searched +full:ocv +full:- +full:capacity +full:- +full:celsius (Results 1 – 15 of 15) sorted by relevance

/openbmc/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 …]
/openbmc/linux/drivers/power/supply/
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 Dpower_supply_core.c1 // SPDX-License-Identifier: GPL-2.0-only
24 #include <linux/fixp-arith.h>
26 #include "samsung-sdi-battery.h"
44 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by()
48 if (supply->supplied_from) { in __power_supply_is_supplied_by()
49 if (!supplier->desc->name) in __power_supply_is_supplied_by()
51 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()
52 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by()
55 if (!supply->desc->name) in __power_supply_is_supplied_by()
57 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by()
[all …]
H A Dsc27xx_fuel_gauge.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/nvmem-consumer.h>
82 * @total_cap: the total capacity of the battery in mAh
83 * @init_cap: the initial capacity of the battery in mAh
84 * @alarm_cap: the alarm capacity
89 * @table_len: the capacity table length
94 * @cap_table: capacity table with corresponding ocv
124 static int sc27xx_fgu_cap_to_clbcnt(struct sc27xx_fgu_data *data, int capacity);
139 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->cur_1000ma_adc); in sc27xx_fgu_adc_to_current()
144 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc); in sc27xx_fgu_adc_to_voltage()
[all …]
/openbmc/linux/include/linux/
H A Dpower_supply.h1 /* SPDX-License-Identifier: GPL-2.0-only */
23 * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise
29 * For systems where the charger determines the maximum battery capacity
226 /* Run-time specific power supply configuration */
344 int ocv; /* microVolts */ member
345 int capacity; /* percent */ member
349 int temp; /* celsius */
359 * struct power_supply_maintenance_charge_table - setting for maintenace charging
392 * +-------------------------------------------------------------------> t
394 * Practically this means that the Li-ions are wandering back and forth in the
[all …]
/openbmc/linux/arch/arm64/boot/dts/sprd/
H A Dsp9860g-1h10.dts6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 /dts-v1/;
17 compatible = "sprd,sp9860g-1h10", "sprd,sc9860";
34 stdout-path = "serial1:115200n8";
37 reserved-memory {
38 #address-cells = <2>;
39 #size-cells = <2>;
44 compatible = "simple-battery";
45 charge-full-design-microamp-hours = <1900000>;
46 charge-term-current-microamp = <120000>;
[all …]
/openbmc/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-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-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-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 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"
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 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 …]