| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ |
| H A D | summit,smb347-charger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: "http://devicetree.org/schemas/power/supply/summit,smb347-charger.yaml#" 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 10 - David Heidelberg <david@ixit.cz> 11 - Dmitry Osipenko <digetx@gmail.com> 16 - summit,smb345 17 - summit,smb347 18 - summit,smb358 26 monitored-battery: [all …]
|
| H A D | rohm,bd99954.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> 11 - Markus Laine <markus.laine@fi.rohmeurope.com> 12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com> 15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion 16 secondary battery intended to be used in space-constraint equipment such 18 provides a Dual-source Battery Charger, two port BC1.2 detection and a 28 # Curve (1) represents charging current. [all …]
|
| H A D | bq25980.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - Dan Murphy <dmurphy@ti.com> 12 - Ricardo Rivera-Matos <r-rivera-matos@ti.com> 16 for use in high-power density portable electronics. These inductorless 21 - $ref: power-supply.yaml# 26 - ti,bq25980 27 - ti,bq25975 28 - ti,bq25960 [all …]
|
| H A D | battery.yaml | 1 # 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 over-voltage-threshold-microvolt: [all …]
|
| H A D | bq2515x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 8 title: TI bq2515x 500-mA Linear charger family 11 - Dan Murphy <dmurphy@ti.com> 12 - Ricardo Rivera-Matos <r-rivera-matos@ti.com> 18 push-button controller. 27 - ti,bq25150 28 - ti,bq25155 34 ac-detect-gpios: [all …]
|
| H A D | sgm41542_charger.txt | 4 - compatible: "sgm,sgm41542" for sgm41542 Charger Power Supply 5 - monitored-battery: phandle of battery characteristics devicetree node 6 - input-voltage-limit-microvolt: integer, input voltage level in uV, used to 7 decrease voltage level when the over current 9 - input-current-limit-microamp: integer, input current value in uA drained by the 13 - vbus5v0_typec: 23 input-voltage-limit-microvolt = <4500000>; 24 input-current-limit-microamp = <3000000>; 25 monitored-battery = <&bat>; 27 vbus5v0_typec: vbus5v0-typec { [all …]
|
| H A D | max77650-charger.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/max77650-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bartosz Golaszewski <bgolaszewski@baylibre.com> 16 The charger is represented as a sub-node of the PMIC node on the device tree. 20 const: maxim,max77650-charger 22 input-voltage-min-microvolt: 28 input-current-limit-microamp: 30 CHGIN input current limit (in microamps). [all …]
|
| H A D | sc8551_charger.txt | 4 - compatible: "sc,sc8551-standalone" for sc8551 Charger Power Supply 5 - monitored-battery: phandle of battery characteristics devicetree node 6 - interrupts: Interrupt mapping for GPIO IRQ. Use in conjunction with 7 "interrupt-parent". If an interrupt is not provided the driver will switch 10 - input-voltage-limit-microvolt: integer, input voltage level in uV, used to 11 decrease voltage level when the over current 13 - input-current-limit-microamp: integer, input current value in uA drained by the 16 - sc,sc8551,bat-ovp-disable: enable the battery over voltage protection 17 - sc,sc8551,bat-ocp-disable: enable the battery over current protection 18 - sc,sc8551,bus-ocp-disable: enable the bus over voltage protection [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/ |
| H A D | richtek,rtmv20-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 Richtek RTMV20 is a load switch current regulator that can supply up to 6A. 17 the others for outputs (fsin1 and fsin2). Strobe input to start the current 27 wakeup-source: true 32 enable-gpios: 36 richtek,ld-pulse-delay-us: [all …]
|
| H A D | regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Voltage/Current Regulators 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 14 regulator-name: 18 regulator-min-microvolt: 21 regulator-max-microvolt: 24 regulator-microvolt-offset: [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/dac/ |
| H A D | ad5758.txt | 4 - compatible: Must be "adi,ad5758" 5 - reg: SPI chip select number for the device 6 - spi-max-frequency: Max SPI frequency to use (< 50000000) 7 - spi-cpha: is the only mode that is supported 11 - adi,dc-dc-mode: Mode of operation of the dc-to-dc converter 19 In this mode, the VDPC+ voltage is user-programmable to 24 current or voltage output at the VIOUT pin. Only one mode 28 * 1: DPC current mode 30 * 3: PPC current mode 32 Depending on the selected output mode (voltage or current) one of the [all …]
|
| /OK3568_Linux_fs/u-boot/test/dm/ |
| H A D | regulator.c | 7 * SPDX-License-Identifier: GPL-2.0+ 15 #include <dm/device-internal.h> 19 #include <dm/uclass-internal.h> 74 ut_asserteq_str(devname, dev_by_devname->name); in dm_test_power_regulator_get() 83 ut_asserteq_str(platname, uc_pdata->name); in dm_test_power_regulator_get() 104 /* Set and get Voltage of BUCK1 - set to 'min' constraint */ in dm_test_power_regulator_set_get_voltage() 111 val_set = uc_pdata->min_uV; in dm_test_power_regulator_set_get_voltage() 123 /* Test regulator set and get Current method */ 131 /* Set and get the Current of LDO1 - set to 'min' constraint */ in dm_test_power_regulator_set_get_current() 138 val_set = uc_pdata->min_uA; in dm_test_power_regulator_set_get_current() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/backlight/ |
| H A D | qcom-wled.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <bjorn.andersson@linaro.org> 11 - Kiran Gunda <kgunda@codeaurora.org> 21 - qcom,pm8941-wled 22 - qcom,pmi8998-wled 23 - qcom,pm660l-wled 24 - qcom,pm8150l-wled [all …]
|
| /OK3568_Linux_fs/kernel/drivers/leds/ |
| H A D | leds-is31fl319x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2015-16 Golden Delicious Computers 44 /* CS (Current Setting) in CONFIG2 register */ 105 { .compatible = "si-en,sn3199", .data = &is31fl3199_cdef, }, 115 struct is31fl319x_chip *is31 = led->chip; in is31fl319x_brightness_set() 116 int chan = led - is31->leds; in is31fl319x_brightness_set() 121 dev_dbg(&is31->client->dev, "%s %d: %d\n", __func__, chan, brightness); in is31fl319x_brightness_set() 123 mutex_lock(&is31->lock); in is31fl319x_brightness_set() 126 ret = regmap_write(is31->regmap, IS31FL319X_PWM(chan), brightness); in is31fl319x_brightness_set() 130 /* read current brightness of all PWM channels */ in is31fl319x_brightness_set() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/dac/ |
| H A D | ad5758.c | 1 // SPDX-License-Identifier: GPL-2.0 102 * struct ad5758_state - driver instance specific data 108 * @dc_dc_ilim: variable which stores the dc-to-dc converter current limit 131 * 1000: 0 mA to 20 mA current range 132 * 1001: 0 mA to 24 mA current range 133 * 1010: 4 mA to 20 mA current range 134 * 1011: ±20 mA current range 135 * 1100: ±24 mA current range 136 * 1101: -1 mA to +22 mA current range 161 { AD5758_RANGE_PLUSMINUS_5V, -5000000, 5000000 }, [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/charge/ |
| H A D | sgm41542_charger.c | 4 * SPDX-License-Identifier: GPL-2.0+ 10 #include <irq-generic.h> 12 #include <linux/usb/phy-rockchip-usb2.h> 107 /* precharge current */ 114 /* termination current */ 121 /* charge current */ 141 /* iindpm current */ 185 POWER_SUPPLY_TYPE_USB_FLOATING, /* DCP without shorting D+/D- */ 193 ret = dm_i2c_read(charger->dev, reg, &val, 1); in sgm41542_read() 207 ret = dm_i2c_write(charger->dev, reg, &val, 1); in sgm41542_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | smb347-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #include <dt-bindings/power/summit,smb347-charger.h> 26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1 28 /* Use default factory programmed value for hard/soft temperature limit */ 29 #define SMB3XX_TEMP_USE_DEFAULT -273 34 * reloaded from non-volatile registers after POR. 132 * struct smb347_charger - smb347 charger instance 142 * @max_charge_current: maximum current (in uA) the battery can be charged 144 * @pre_charge_current: current (in uA) to use in pre-charging phase 145 * @termination_current: current (in uA) used to determine when the [all …]
|
| H A D | bd99954-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * Curve (1) represents charging current. 20 * a) Trickle-charge with constant current (8). 21 * b) pre-charge with constant current (6) 22 * c) fast-charge, first with constant current (5) phase. After 24 * voltage phase until charging current has dropped to termination 30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------. 32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5) 34 * . + /- -- . 35 * . +`/- + . [all …]
|
| H A 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. */ 95 rv = regmap_update_bits(chg->map, in max77650_charger_set_vchgin_min() [all …]
|
| H A D | power_supply_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 53 if (supply->supplied_from) { in __power_supply_is_supplied_by() 54 if (!supplier->desc->name) in __power_supply_is_supplied_by() 56 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by() 57 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 60 if (!supply->desc->name) in __power_supply_is_supplied_by() 62 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by() 63 if (!strcmp(supplier->supplied_to[i], supply->desc->name)) in __power_supply_is_supplied_by() 76 if (pst->desc->external_power_changed) in __power_supply_changed_work() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | max77650.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MAX77650 ultra low-power PMIC from Maxim Integrated. 10 - Bartosz Golaszewski <bgolaszewski@baylibre.com> 13 MAX77650 is an ultra-low power PMIC providing battery charging and power 14 supply for low-power IoT and wearable applications. 16 The GPIO-controller module is represented as part of the top-level PMIC 19 For device-tree bindings of other sub-modules (regulator, power supply, 21 sub-system directories. [all …]
|
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | of_regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 [PM_SUSPEND_STANDBY] = "regulator-state-standby", 20 [PM_SUSPEND_MEM] = "regulator-state-mem", 21 [PM_SUSPEND_MAX] = "regulator-state-disk", 29 struct regulation_constraints *constraints = &(*init_data)->constraints; in of_get_regulation_constraints() 37 n_phandles = of_count_phandle_with_args(np, "regulator-coupled-with", in of_get_regulation_constraints() 41 constraints->name = of_get_property(np, "regulator-name", NULL); in of_get_regulation_constraints() 43 if (!of_property_read_u32(np, "regulator-min-microvolt", &pval)) in of_get_regulation_constraints() 44 constraints->min_uV = pval; in of_get_regulation_constraints() 46 if (!of_property_read_u32(np, "regulator-max-microvolt", &pval)) in of_get_regulation_constraints() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hwmon/ |
| H A D | adm1177.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2015-2019 Analog Devices Inc. 27 * struct adm1177_state - driver instance specific data 30 * @r_sense_uohm current sense resistor value 31 * @alert_threshold_ua current limit for shutdown 44 return i2c_master_recv(st->client, data, num); in adm1177_read_raw() 49 return i2c_smbus_write_byte(st->client, cmd); in adm1177_write_cmd() 58 val = 0xFFULL * alert_threshold_ua * st->r_sense_uohm; in adm1177_write_alert_thr() 64 ret = i2c_smbus_write_byte_data(st->client, ADM1177_REG_ALERT_TH, in adm1177_write_alert_thr() 69 st->alert_threshold_ua = alert_threshold_ua; in adm1177_write_alert_thr() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | omap3-n900.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi> 7 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 14 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall 16 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch" 17 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no 33 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3"; 46 cpu0-supply = <&vcc>; [all …]
|
| /OK3568_Linux_fs/u-boot/include/power/ |
| H A D | regulator.h | 2 * Copyright (C) 2014-2015 Samsung Electronics 5 * SPDX-License-Identifier: GPL-2.0+ 12 * U-Boot Voltage/Current Regulator 19 * The regulator uclass - is based on uclass platform data which is allocated, 20 * automatically for each regulator device on bind and 'dev->uclass_platdata' 22 * The uclass file: 'drivers/power/regulator/regulator-uclass.c' 24 * The regulator device - is based on driver's model 'struct udevice'. 26 * - devname - the regulator device's name: 'dev->name' 27 * - platname - the device's platdata's name. So in the code it looks like: 28 * 'uc_pdata = dev->uclass_platdata'; 'name = uc_pdata->name'. [all …]
|