/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-samsung-laptop | 4 Contact: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 14 - "silent" 15 - "normal" 16 - "overclock" 27 Description: Max battery charge level can be modified, battery cycle 28 life can be extended by reducing the max battery charge 31 - 0 means normal battery mode (100% charge) 32 - 1 means battery life extender mode (80% charge) 39 when your laptop is powered off.
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
H A D | spl_power_init.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <asm/arch/imx-regs.h> 24 * mxs_power_clock2xtal() - Switch CPU core clock source to 24MHz XTAL 39 &clkctrl_regs->hw_clkctrl_clkseq_set); in mxs_power_clock2xtal() 43 * mxs_power_clock2pll() - Switch CPU core clock source to PLL 46 * to PLL. This can only be called once the PLL has re-locked and once 63 setbits_le32(&clkctrl_regs->hw_clkctrl_pll0ctrl0, in mxs_power_clock2pll() 71 setbits_le32(&clkctrl_regs->hw_clkctrl_clkseq, in mxs_power_clock2pll() 76 * mxs_power_set_auto_restart() - Set the auto-restart bit 87 debug("SPL: Setting auto-restart bit\n"); in mxs_power_set_auto_restart() [all …]
|
/openbmc/linux/kernel/power/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 8 powered and thus its contents are preserved, such as the 9 suspend-to-RAM state (e.g. the ACPI S3 state). 30 user-space before invoking suspend. There's a run-time switch 32 This setting changes the default for the run-tim switch. Say Y 60 for suspend states like suspend-to-RAM (STR) often don't work very 72 <file:Documentation/power/swsusp-and-swap-files.rst>). 100 The default resume partition is the partition that the suspend- 101 to-disk implementation will look for a suspended disk image. 135 non-zero numbered CPU, it may define ARCH_SUSPEND_NONZERO_CPU. This [all …]
|
/openbmc/linux/drivers/mtd/devices/ |
H A D | ms02-nv.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * DEC MS02-NV (54-20948-01) battery backed-up NVRAM module for 16 * 0x000000 - 0x3fffff SRAM 17 * 0x400000 - 0x7fffff CSR 22 * 0x000000 - 0x0003ff diagnostic area, destroyed upon a reboot 23 * 0x000400 - ENDofRAM storage area, available to operating systems 29 * containing no valid data, and disables the battery resulting in 31 * for the start address of the user-available is 0x001000 which is 36 * operating system, a magic ID to distinguish a MS02-NV board from 42 * The firmware only handles the MS02-NV board if installed in the [all …]
|
/openbmc/linux/drivers/platform/x86/intel/ |
H A D | bytcrc_pwrsrc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Power-source driver for Bay Trail Crystal Cove PMIC 33 /* bit 2 */ "Battery", 41 /* bit 3 */ "critical battery temperature", 44 /* bit 6 */ "battery removal", 50 /* bit 1 */ "BATID reporting battery removal", 57 /* bit 1 */ "a battery insertion", 76 struct crc_pwrsrc_data *data = seq->private; in pwrsrc_show() 80 ret = regmap_read(data->regmap, CRYSTALCOVE_SPWRSRC_REG, ®_val); in pwrsrc_show() 84 crc_pwrsrc_log(seq, "System powered", pwrsrc_pwrsrc_info, reg_val); in pwrsrc_show() [all …]
|
/openbmc/linux/Documentation/power/ |
H A D | power_supply_class.rst | 7 Power supply class used to represent battery, UPS, AC or DC power supply 8 properties to user-space. 25 typically expected feedback of battery charging/fully charged status and 60 +--------------------------------------------------------------------------+ 61 | **Charge/Energy/Capacity - how to not confuse** | 62 +--------------------------------------------------------------------------+ 64 | of battery, this class distinguish these terms. Don't mix them!** | 66 | - `CHARGE_*` | 68 | - `ENERGY_*` | 70 | - `CAPACITY` | [all …]
|
/openbmc/linux/Documentation/timers/ |
H A D | no_hz.rst | 2 NO_HZ: Reducing Scheduling-Clock Ticks 7 reduce the number of scheduling-clock interrupts, thereby improving energy 9 some types of computationally intensive high-performance computing (HPC) 10 applications and for real-time applications. 12 There are three main ways of managing scheduling-clock interrupts 13 (also known as "scheduling-clock ticks" or simply "ticks"): 15 1. Never omit scheduling-clock ticks (CONFIG_HZ_PERIODIC=y or 16 CONFIG_NO_HZ=n for older kernels). You normally will -not- 19 2. Omit scheduling-clock ticks on idle CPUs (CONFIG_NO_HZ_IDLE=y or 23 3. Omit scheduling-clock ticks on CPUs that are either idle or that [all …]
|
/openbmc/linux/drivers/ata/pata_parport/ |
H A D | friq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * friq.c is a low-level protocol driver for the Freecom "IQ" 9 * Freecom uses this adapter in a battery powered external 10 * CD-ROM drive. It is also used in LS-120 drives by 13 * The battery powered drive requires software support to 19 * used to conserve battery power. 41 * cont = 0 - access the IDE register file 42 * cont = 1 - access the IDE command set 73 switch (pi->mode) { in friq_read_block_int() 90 ph = 2 - ph; in friq_read_block_int() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | ina3221.txt | 5 - compatible: Must be "ti,ina3221" 6 - reg: I2C address 9 - ti,single-shot: This chip has two power modes: single-shot (chip takes one 13 but the single-shot mode is more power-friendly and useful 14 for battery-powered device which cares power consumptions 16 If this property is present, the single-shot mode will be 22 - #address-cells: Required only if a child node is present. Must be 1. 23 - #size-cells: Required only if a child node is present. Must be 0. 27 - reg: Must be 0, 1 or 2, corresponding to IN1, IN2 or IN3 port of INA3221 30 - label: Name of the input source [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | rt9455_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for Richtek RT9455WSC battery charger. 21 #define RT9455_DRIVER_NAME "rt9455-charger" 165 #define GET_MASK(fid) (BIT(rt9455_reg_fields[fid].msb + 1) - \ 169 * Each array initialised below shows the possible real-world values for a 171 * ascending order. The index of each real-world value represents the value 180 * When the charger is in charge mode, REG02[7:2] represent battery regulation 265 for (i = 0; i < tbl_size - 1; i++) in rt9455_find_idx() 269 return (tbl_size - 1); in rt9455_find_idx() 279 ret = regmap_field_read(info->regmap_fields[field], &v); in rt9455_get_field_val() [all …]
|
H A D | sc27xx_fuel_gauge.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/nvmem-consumer.h> 75 * @battery: battery power supply 78 * @gpiod: GPIO for battery detection 79 * @channel: IIO channel to get battery temperature 81 * @internal_resist: the battery internal resistance in mOhm 82 * @total_cap: the total capacity of the battery in mAh 83 * @init_cap: the initial capacity of the battery in mAh 87 * @min_volt: the minimum drained battery voltage in microvolt 100 struct power_supply *battery; member [all …]
|
/openbmc/linux/kernel/rcu/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # RCU-related configuration options 11 # Dynticks-idle tracking 26 thousands of CPUs, but for which real-time response 37 designed for UP systems from which real-time response 42 bool "Make expert-level adjustments to RCU configuration" 46 expert-level adjustments to RCU configuration. By default, 47 no such adjustments can be made, which has the often-beneficial 48 side-effect of preventing "make oldconfig" from asking you all 52 Say Y if you need to make expert-level adjustments to RCU. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | tps65910.txt | 4 - compatible: "ti,tps65910" or "ti,tps65911" 5 - reg: I2C slave address 6 - interrupts: the interrupt outputs of the controller 7 - #gpio-cells: number of cells to describe a GPIO, this should be 2. 10 - gpio-controller: mark the device as a GPIO controller 11 - #interrupt-cells: the number of cells to describe an IRQ, this should be 2. 14 Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 15 - regulators: This is the list of child nodes that specify the regulator 20 The regulator is matched with the regulator-compatible. 22 The valid regulator-compatible values are: [all …]
|
H A D | tps6507x.txt | 4 - compatible: "ti,tps6507x" 5 - reg: I2C slave address 6 - regulators: This is the list of child nodes that specify the regulator 11 The regulator is matched with the regulator-compatible. 13 The valid regulator-compatible values are: 15 - xxx-supply: Input voltage supply regulator. 19 If some of input supply is powered through battery or always-on 23 vindcdc1_2-supply: VDCDC1 and VDCDC2 input. 24 vindcdc3-supply : VDCDC3 input. 25 vldo1_2-supply : VLDO1 and VLDO2 input. [all …]
|
H A D | rohm,bd71815-pmic.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mfd/rohm,bd71815-pmic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Matti Vaittinen <mazziesaccount@gmail.com> 13 BD71815AGW is a single-chip power management ICs for battery-powered 15 for LED and a 500 mA single-cell linear charger. Also included is a Coulomb 16 counter, a real-time clock (RTC), and a 32.768 kHz clock gate and two GPOs. 30 gpio-controller: true 32 "#gpio-cells": [all …]
|
H A D | rohm,bd71828-pmic.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mfd/rohm,bd71828-pmic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Matti Vaittinen <mazziesaccount@gmail.com> 13 BD71828GW is a single-chip power management IC for battery-powered portable 15 single-cell linear charger. Also included is a Coulomb counter, a real-time 30 gpio-controller: true 32 "#gpio-cells": 41 "#clock-cells": [all …]
|
/openbmc/linux/include/uapi/linux/usb/ |
H A D | ch9.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 9 * - the master/host side Linux-USB kernel driver API; 10 * - the "usbfs" user space API; and 11 * - the Linux "gadget" slave/device/peripheral side driver API. 22 * [b] so that accessing bigger-than-a-bytes fields will never 27 * someone that the two other points are non-issues for that 37 /*-------------------------------------------------------------------------*/ 136 * See USB 2.0 spec Table 9-7 150 * See USB 3.0 spec Table 9-7 159 * Suspend Options, Table 9-8 USB 3.0 spec [all …]
|
/openbmc/linux/sound/soc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 18 ASoC provides power efficient ALSA support for embedded battery powered 22 will be called snd-soc-core. 61 test cases against soc-topology.c API. This should be primarily used 121 # generic frame-work
|
/openbmc/linux/arch/arm/boot/dts/ti/davinci/ |
H A D | da850-lego-ev3.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 8 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/linux-event-codes.h> 11 #include <dt-bindings/pwm/pwm.h> 32 compatible = "gpio-keys"; 34 pinctrl-names = "default"; 35 pinctrl-0 = <&button_bias>; 75 * The EV3 has two built-in bi-color LEDs behind the buttons. 78 compatible = "gpio-leds"; [all …]
|
/openbmc/docs/designs/ |
H A D | device-tree-gpio-naming.md | 12 subsystem. The replacement is a "descriptor-based" character device interface. 25 specific field used to name the GPIOs in the DTS is `gpio-line-names`. This 29 scheme in the face of a universe of potential use-cases. 37 - Ensure common function GPIOs within OpenBMC use the same naming convention 52 Pattern: `*-button` 55 BMC-less machines use a button to trigger system behavior and in a BMC-managed 59 #### power-button 68 - `host*-ready`: Host ready, active high 69 - `host*-ready-n`: Host ready, active low 73 - host0-ready [all …]
|
H A D | power-recovery.md | 11 Modern computer systems have a feature, automated power-on recovery, which in 19 occur. For example, some systems have op-panels, and on these op-panels there 30 A brownout is another scenario that commonly utilizes automated power-on 33 be retained. On some systems, it's desired to utilize the automated power-on 48 [PowerRestorePolicy][pdi-restore] property out in phosphor-dbus-interface 54 [openbmc/phosphor-state-manager][state-mgr] supports this property as defined in 55 the phosphor-dbus-interface. 59 ### Automated Power-On Recovery 66 - Do nothing when power is lost to the system (this will be the default) 67 - Always power the system on and boot the host [all …]
|
/openbmc/linux/drivers/power/reset/ |
H A D | odroid-go-ultra-poweroff.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 * - RK818 (manages the battery and USB-C power supply) 18 * - RK817 19 * Both PMICs feeds power to the S922X SoC, so they must be powered-off in sequence. 20 * Vendor does power-off the RK817 first, then the RK818 so here we follow this sequence. 31 struct odroid_go_ultra_poweroff_data *poweroff_data = data->cb_data; in odroid_go_ultra_poweroff_prepare() 36 rk817 = dev_get_regmap(poweroff_data->rk817, NULL); in odroid_go_ultra_poweroff_prepare() 38 dev_err(poweroff_data->dev, "failed to get rk817 regmap\n"); in odroid_go_ultra_poweroff_prepare() 39 return notifier_from_errno(-EINVAL); in odroid_go_ultra_poweroff_prepare() 43 rk818 = dev_get_regmap(poweroff_data->rk818, NULL); in odroid_go_ultra_poweroff_prepare() [all …]
|
/openbmc/linux/Documentation/spi/ |
H A D | butterfly.rst | 2 spi_butterfly - parport-to-butterfly adapter driver 8 battery powered card with an AVR microcontroller and lots of goodies: 9 sensors, LCD, flash, toggle stick, and more. You can use AVR-GCC to 28 connector pins (used also on non-Butterfly AVR boards). On the parport 32 Signal Butterfly Parport (DB-25) 44 by clearing PORTB.[0-3]); (b) configure the mtd_dataflash driver; and 48 Signal Butterfly Parport (DB-25) 57 the driver for your custom SPI-based protocol. 60 That would let you talk to the AVR using custom SPI-with-USI firmware, 65 Signal Butterfly Parport (DB-25)
|
/openbmc/u-boot/drivers/power/ |
H A D | palmas.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2012-2013 76 * powered by an external 3.3 V regulator, while the output of LDO9 149 * @brief palmas_enable_ss_ldo - Configure EVM board specific configurations 163 * Enable/disable back-up battery (or super cap) charging on TWL6035/37.
|
/openbmc/linux/drivers/rtc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 44 This clock should be battery-backed, so that it reads the correct 45 time when the system boots from a power-off state. Otherwise, your 48 If the clock you specify here is not battery backed, it may still 50 sleep states. Do not specify an RTC here unless it stays powered 92 Say yes here to add support for the non volatile (often battery 141 once-per-second update interrupts, used for synchronization. 159 will be called rtc-test. 173 will be called rtc-88pm860x. 183 will be called rtc-88pm80x. [all …]
|