Home
last modified time | relevance | path

Searched full:power (Results 1 – 25 of 4050) sorted by relevance

12345678910>>...162

/Linux-v5.10/Documentation/devicetree/bindings/soc/rockchip/
Dpower_domain.txt1 * Rockchip Power Domains
3 Rockchip processors include support for multiple power domains which can be
4 powered up/down by software based on different application scenes to save power.
6 Required properties for power domain controller:
8 "rockchip,px30-power-controller" - for PX30 SoCs.
9 "rockchip,rk3036-power-controller" - for RK3036 SoCs.
10 "rockchip,rk3066-power-controller" - for RK3066 SoCs.
11 "rockchip,rk3128-power-controller" - for RK3128 SoCs.
12 "rockchip,rk3188-power-controller" - for RK3188 SoCs.
13 "rockchip,rk3228-power-controller" - for RK3228 SoCs.
[all …]
/Linux-v5.10/drivers/base/power/
Druntime.c3 * drivers/base/power/runtime.c - Helper functions for device runtime PM
17 #include "power.h"
55 * update_pm_runtime_accounting - Update the time accounting of power states
58 * In order to be able to have time accounting of the various power states
69 if (dev->power.disable_depth > 0) in update_pm_runtime_accounting()
72 last = dev->power.accounting_timestamp; in update_pm_runtime_accounting()
75 dev->power.accounting_timestamp = now; in update_pm_runtime_accounting()
87 if (dev->power.runtime_status == RPM_SUSPENDED) in update_pm_runtime_accounting()
88 dev->power.suspended_time += delta; in update_pm_runtime_accounting()
90 dev->power.active_time += delta; in update_pm_runtime_accounting()
[all …]
Dsysfs.c12 #include "power.h"
17 * Runtime power management of a device can be blocked with the help of
19 * the power/control file:
21 * + "auto\n" to allow the device to be power managed at run time;
22 * + "on\n" to prevent the device from being power managed at run time;
25 * subject to automatic power management, depending on their drivers.
26 * Changing this attribute to "on" prevents the driver from power managing
33 * used to activate devices from suspended or low power states. Such
34 * devices have one of three values for the sysfs power/wakeup file:
43 * keyboards and mice (both PS2 and USB styles), power buttons, modems,
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/soc/mediatek/
Dscpsys.txt4 The System Control Processor System (SCPSYS) has several power management
7 The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power
11 power/power-domain.yaml. It provides the power domains defined in
12 - include/dt-bindings/power/mt8173-power.h
13 - include/dt-bindings/power/mt6797-power.h
14 - include/dt-bindings/power/mt6765-power.h
15 - include/dt-bindings/power/mt2701-power.h
16 - include/dt-bindings/power/mt2712-power.h
17 - include/dt-bindings/power/mt7622-power.h
30 - #power-domain-cells: Must be 1
[all …]
/Linux-v5.10/drivers/staging/nvec/
Dnvec_power.c3 * nvec_power: power supply driver for a NVIDIA compliant embedded controller
87 struct nvec_power *power = in nvec_power_notifier() local
95 if (power->on != res->plu) { in nvec_power_notifier()
96 power->on = res->plu; in nvec_power_notifier()
109 static void get_bat_mfg_data(struct nvec_power *power) in get_bat_mfg_data() argument
116 nvec_write_async(power->nvec, buf, 2); in get_bat_mfg_data()
123 struct nvec_power *power = in nvec_power_bat_notifier() local
134 if (power->bat_present == 0) { in nvec_power_bat_notifier()
136 get_bat_mfg_data(power); in nvec_power_bat_notifier()
139 power->bat_present = 1; in nvec_power_bat_notifier()
[all …]
/Linux-v5.10/drivers/power/supply/
Daxp20x_usb_power.c3 * AXP20x PMIC USB power supply status driver
26 #define DRVNAME "axp20x-usb-power-supply"
76 static bool axp20x_usb_vbus_needs_polling(struct axp20x_usb_power *power) in axp20x_usb_vbus_needs_polling() argument
83 if (power->axp20x_id >= AXP221_ID && !power->online) in axp20x_usb_vbus_needs_polling()
91 struct axp20x_usb_power *power = devid; in axp20x_usb_power_irq() local
93 power_supply_changed(power->supply); in axp20x_usb_power_irq()
95 mod_delayed_work(system_wq, &power->vbus_detect, DEBOUNCE_TIME); in axp20x_usb_power_irq()
102 struct axp20x_usb_power *power = in axp20x_usb_power_poll_vbus() local
107 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &val); in axp20x_usb_power_poll_vbus()
112 if (val != power->old_status) in axp20x_usb_power_poll_vbus()
[all …]
Daxp20x_ac_power.c3 * AXP20X and AXP22X PMICs' ACIN power supply driver
40 #define DRVNAME "axp20x-ac-power-supply"
54 struct axp20x_ac_power *power = devid; in axp20x_ac_power_irq() local
56 power_supply_changed(power->supply); in axp20x_ac_power_irq()
65 struct axp20x_ac_power *power = power_supply_get_drvdata(psy); in axp20x_ac_power_get_property() local
70 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &reg); in axp20x_ac_power_get_property()
83 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &reg); in axp20x_ac_power_get_property()
91 ret = regmap_read(power->regmap, AXP20X_PWR_INPUT_STATUS, &reg); in axp20x_ac_power_get_property()
98 if (val->intval && power->has_acin_path_sel) { in axp20x_ac_power_get_property()
99 ret = regmap_read(power->regmap, AXP813_ACIN_PATH_CTRL, in axp20x_ac_power_get_property()
[all …]
Dwm831x_power.c67 * WALL Power
98 * USB Power
510 * posterity, we're probably about to run out of power. */ in wm831x_syslo_irq()
521 dev_dbg(wm831x->dev, "Power source changed\n"); in wm831x_pwr_src_irq()
536 struct wm831x_power *power; in wm831x_power_probe() local
539 power = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_power), in wm831x_power_probe()
541 if (power == NULL) in wm831x_power_probe()
544 power->wm831x = wm831x; in wm831x_power_probe()
545 platform_set_drvdata(pdev, power); in wm831x_power_probe()
548 snprintf(power->wall_name, sizeof(power->wall_name), in wm831x_power_probe()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/power/
Dfsl,imx-gpcv2.yaml4 $id: http://devicetree.org/schemas/power/fsl,imx-gpcv2.yaml#
7 title: Freescale i.MX General Power Controller v2
13 The i.MX7S/D General Power Control (GPC) block contains Power Gating
14 Control (PGC) for various power domains.
16 Power domains contained within GPC node are generic power domain
18 Documentation/devicetree/bindings/power/power-domain.yaml, which are
19 described as subnodes of the power gating controller 'pgc' node.
21 IP cores belonging to a power domain should contain a 'power-domains'
42 description: list of power domains provided by this controller.
45 "power-domain@[0-9]$":
[all …]
Dpower-domain.yaml4 $id: http://devicetree.org/schemas/power/power-domain.yaml#
16 used for power gating of selected IP blocks for power saving by reduced leakage
24 \#power-domain-cells property in the PM domain provider node.
28 pattern: "^(power-controller|power-domain)([@-].*)?$"
34 power-domain provider. The idle state definitions are compatible with the
46 Phandles to the OPP tables of power domains provided by a power domain
47 provider. If the provider provides a single power domain only or all
48 the power domains provided by the provider have identical OPP tables,
52 "#power-domain-cells":
56 domains (e.g. power controllers), but can be any value as specified
[all …]
Dpower_domain.txt4 used for power gating of selected IP blocks for power saving by reduced leakage
12 #power-domain-cells property in the PM domain provider node.
16 See power-domain.yaml.
21 - power-domains : A list of PM domain specifiers, as defined by bindings of
22 the power controller that is the PM domain provider.
25 - power-domain-names : A list of power domain name strings sorted in the same
26 order as the power-domains property. Consumers drivers will use
27 power-domain-names to match power domains with power-domains
35 power-domains = <&power 0>;
36 power-domain-names = "io";
[all …]
Dfsl,imx-gpc.yaml4 $id: http://devicetree.org/schemas/power/fsl,imx-gpc.yaml#
7 title: Freescale i.MX General Power Controller
13 The i.MX6 General Power Control (GPC) block contains DVFS load tracking
14 counters and Power Gating Control (PGC).
16 The power domains are generic power domain providers as documented in
17 Documentation/devicetree/bindings/power/power-domain.yaml. They are
18 described as subnodes of the power gating controller 'pgc' node of the GPC.
20 IP cores belonging to a power domain should contain a 'power-domains'
21 property that is a phandle pointing to the power domain the device belongs
46 description: list of power domains provided by this controller.
[all …]
/Linux-v5.10/Documentation/power/powercap/
Dpowercap.rst2 Power Capping Framework
5 The power capping framework provides a consistent interface between the kernel
6 and the user space that allows power capping drivers to expose the settings to
12 The framework exposes power capping devices to user space via sysfs in the
14 'control types', which correspond to different methods of power capping. For
16 Power Limit" (RAPL) technology, whereas the 'idle-injection' control type
17 corresponds to the use of idle injection for controlling power.
19 Power zones represent different parts of the system, which can be controlled and
20 monitored using the power capping method determined by the control type the
21 given zone belongs to. They each contain attributes for monitoring power, as
[all …]
/Linux-v5.10/Documentation/hwmon/
Docc.rst15 embedded on POWER processors. The OCC is a device that collects and aggregates
17 sensor data as well as perform thermal and power management on the system.
77 power[1-n]_input
78 Latest measured power reading of the component in
80 power[1-n]_average
81 Average power of the component in microwatts.
82 power[1-n]_average_interval
83 The amount of time over which the power average
86 [with power sensor version < 2]
88 power[1-n]_label
[all …]
/Linux-v5.10/drivers/gpu/drm/msm/dp/
Ddp_power.c25 static void dp_power_regulator_disable(struct dp_power_private *power) in dp_power_regulator_disable() argument
27 struct regulator_bulk_data *s = power->supplies; in dp_power_regulator_disable()
28 const struct dp_reg_entry *regs = power->parser->regulator_cfg->regs; in dp_power_regulator_disable()
29 int num = power->parser->regulator_cfg->num; in dp_power_regulator_disable()
41 static int dp_power_regulator_enable(struct dp_power_private *power) in dp_power_regulator_enable() argument
43 struct regulator_bulk_data *s = power->supplies; in dp_power_regulator_enable()
44 const struct dp_reg_entry *regs = power->parser->regulator_cfg->regs; in dp_power_regulator_enable()
45 int num = power->parser->regulator_cfg->num; in dp_power_regulator_enable()
75 static int dp_power_regulator_init(struct dp_power_private *power) in dp_power_regulator_init() argument
77 struct regulator_bulk_data *s = power->supplies; in dp_power_regulator_init()
[all …]
Ddp_power.h12 * sruct dp_power - DisplayPort's power related data
26 * dp_power_init() - enable power supplies for display controller
28 * @power: instance of power module
35 int dp_power_init(struct dp_power *power, bool flip);
40 * @power: instance of power module
43 * This API turns off power and regulators.
45 int dp_power_deinit(struct dp_power *power);
50 * @power: instance of power module
52 * return: status of power clocks
62 * @power: instance of power module
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-class-powercap6 The powercap/ class sub directory belongs to the power cap
8 Documentation/power/powercap/powercap.rst for details.
16 Here <control type> determines how the power is going to be
17 controlled. A <control type> can contain multiple power zones.
24 This allows to enable/disable power capping for a "control type".
25 This status affects every power zone using this "control_type.
27 What: /sys/class/powercap/<control type>/<power zone>
32 A power zone is a single or a collection of devices, which can
33 be independently monitored and controlled. A power zone sysfs
37 What: /sys/class/powercap/<control type>/<power zone>/<child power zone>
[all …]
Dsysfs-power1 What: /sys/power/
5 The /sys/power directory will contain files that will
6 provide a unified interface to the power management
9 What: /sys/power/state
13 The /sys/power/state file controls system sleep states.
15 labels, which may be "mem" (suspend), "standby" (power-on
24 What: /sys/power/mem_sleep
28 The /sys/power/mem_sleep file controls the operating mode of
32 to suspend the system (by writing "mem" to the /sys/power/state
42 What: /sys/power/disk
[all …]
/Linux-v5.10/drivers/soc/bcm/
Dbcm2835-power.c3 * Power domain driver for Broadcom BCM2835
61 /* The power gates must be enabled with this bit before enabling the LDO in the
109 #define PM_READ(reg) readl(power->base + (reg))
110 #define PM_WRITE(reg, val) writel(PM_PASSWORD | (val), power->base + (reg))
129 #define ASB_READ(reg) readl(power->asb + (reg))
130 #define ASB_WRITE(reg, val) writel(PM_PASSWORD | (val), power->asb + (reg))
134 struct bcm2835_power *power; member
151 static int bcm2835_asb_enable(struct bcm2835_power *power, u32 reg) in bcm2835_asb_enable() argument
171 static int bcm2835_asb_disable(struct bcm2835_power *power, u32 reg) in bcm2835_asb_disable() argument
193 struct bcm2835_power *power = pd->power; in bcm2835_power_power_off() local
[all …]
/Linux-v5.10/arch/powerpc/boot/dts/fsl/
De6500_power_isa.dtsi2 * e6500 Power ISA Device Tree Source (include)
37 power-isa-version = "2.06";
38 power-isa-b; // Base
39 power-isa-e; // Embedded
40 power-isa-atb; // Alternate Time Base
41 power-isa-cs; // Cache Specification
42 power-isa-ds; // Decorated Storage
43 power-isa-e.ed; // Embedded.Enhanced Debug
44 power-isa-e.pd; // Embedded.External PID
45 power-isa-e.hv; // Embedded.Hypervisor
[all …]
De5500_power_isa.dtsi2 * e5500 Power ISA Device Tree Source (include)
37 power-isa-version = "2.06";
38 power-isa-b; // Base
39 power-isa-e; // Embedded
40 power-isa-atb; // Alternate Time Base
41 power-isa-cs; // Cache Specification
42 power-isa-ds; // Decorated Storage
43 power-isa-e.ed; // Embedded.Enhanced Debug
44 power-isa-e.pd; // Embedded.External PID
45 power-isa-e.hv; // Embedded.Hypervisor
[all …]
De500mc_power_isa.dtsi2 * e500mc Power ISA Device Tree Source (include)
37 power-isa-version = "2.06";
38 power-isa-b; // Base
39 power-isa-e; // Embedded
40 power-isa-atb; // Alternate Time Base
41 power-isa-cs; // Cache Specification
42 power-isa-ds; // Decorated Storage
43 power-isa-e.ed; // Embedded.Enhanced Debug
44 power-isa-e.pd; // Embedded.External PID
45 power-isa-e.hv; // Embedded.Hypervisor
[all …]
/Linux-v5.10/drivers/acpi/
Ddevice_pm.c3 * drivers/acpi/device_pm.c - ACPI device power management routines.
27 * acpi_power_state_string - String representation of ACPI device power state.
28 * @state: ACPI device power state to return the string representation of.
62 * acpi_device_get_power - Get power state of an ACPI device.
63 * @device: Device to get the power state of.
64 * @state: Place to store the power state of the device.
66 * This function does not update the device's power.state field, but it may
67 * update its parent's power.state field (when the parent's power state is
68 * unknown and the device's power state turns out to be D0).
70 * Also, it does not update power resource reference counters to ensure that
[all …]
/Linux-v5.10/drivers/soc/bcm/bcm63xx/
Dbcm63xx-power.c3 * BCM63xx Power Domain Controller Driver
21 struct bcm63xx_power *power; member
41 struct bcm63xx_power *power = pmd->power; in bcm63xx_power_get_state() local
48 *is_on = !(__raw_readl(power->base) & pmd->mask); in bcm63xx_power_get_state()
55 struct bcm63xx_power *power = pmd->power; in bcm63xx_power_set_state() local
62 spin_lock_irqsave(&power->lock, flags); in bcm63xx_power_set_state()
63 val = __raw_readl(power->base); in bcm63xx_power_set_state()
68 __raw_writel(val, power->base); in bcm63xx_power_set_state()
69 spin_unlock_irqrestore(&power->lock, flags); in bcm63xx_power_set_state()
96 struct bcm63xx_power *power; in bcm63xx_power_probe() local
[all …]
/Linux-v5.10/drivers/power/reset/
DKconfig3 bool "Board level reset or power off"
6 or shut it down, by manipulating the main power supply on the board.
8 Say Y here to enable board reset and power off
13 bool "ams AS3722 power-off driver"
16 This driver supports turning off board via a ams AS3722 power-off.
72 bool "Cortina Gemini power-off driver"
81 bool "GPIO power-off driver"
85 If your board needs a GPIO high/low to power down, say Y and
97 bool "Hisilicon power-off driver"
103 tristate "Buffalo LinkStation power-off driver"
[all …]

12345678910>>...162