Home
last modified time | relevance | path

Searched +full:pm +full:- +full:device +full:- +full:disabled (Results 1 – 25 of 134) sorted by relevance

123456

/Zephyr-latest/dts/arm/ambiq/
Dambiq_apollo3_blue.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <arm/armv7-m.dtsi>
6 #include <zephyr/dt-bindings/adc/adc.h>
7 #include <zephyr/dt-bindings/i2c/i2c.h>
8 #include <zephyr/dt-bindings/gpio/gpio.h>
12 uartclk: apb-pclk {
13 compatible = "fixed-clock";
14 clock-frequency = <DT_FREQ_M(24)>;
15 #clock-cells = <0>;
20 #address-cells = <1>;
[all …]
Dambiq_apollo3p_blue.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <arm/armv7-m.dtsi>
6 #include <zephyr/dt-bindings/adc/adc.h>
7 #include <zephyr/dt-bindings/i2c/i2c.h>
8 #include <zephyr/dt-bindings/gpio/gpio.h>
12 uartclk: apb-pclk {
13 compatible = "fixed-clock";
14 clock-frequency = <DT_FREQ_M(24)>;
15 #clock-cells = <0>;
20 #address-cells = <1>;
[all …]
/Zephyr-latest/tests/subsys/pm/power_mgmt/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
9 power-states {
11 compatible = "zephyr,power-state";
12 power-state-name = "suspend-to-idle";
15 compatible = "zephyr,power-state";
16 power-state-name = "standby";
17 zephyr,pm-device-disabled;
23 compatible = "test-device-pm";
27 compatible = "test-device-pm";
31 compatible = "test-device-pm";
[all …]
/Zephyr-latest/include/zephyr/pm/
Ddevice_runtime.h5 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/device.h>
19 * @brief Device Runtime Power Management API
20 * @defgroup subsys_pm_device_runtime Device Runtime
27 * @brief Automatically enable device runtime based on devicetree properties
30 * zephyr,pm-device-runtime-auto property in pm.yaml and z_sys_init_run_level.
32 * @param dev Device instance.
34 * @retval 0 If the device runtime PM is enabled successfully or it has not
35 * been requested for this device in devicetree.
36 * @retval -errno Other negative errno, result of enabled device runtime PM.
[all …]
Ddevice.h4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/device.h>
20 * @brief Device Power Management API
21 * @defgroup subsys_pm_device Device
28 struct device;
30 /** @brief Device PM flags. */
32 /** Indicate if the device is busy or not. */
34 /** Indicate if the device failed to power up. */
36 /** Indicate if the device has claimed a power domain */
39 * Indicates whether or not the device is capable of waking the system
[all …]
/Zephyr-latest/dts/bindings/base/
Dpm.yaml2 # SPDX-License-Identifier: Apache-2.0
4 # Properties for Power Management (PM)
7 wakeup-source:
10 Property to identify that a device can be used as wake up source.
13 device that tells the system that the device is capable of
16 Wake up capable devices are disabled (interruptions will not wake up
19 zephyr,pm-device-runtime-auto:
22 Automatically configure the device for runtime power management after the
25 zephyr,disabling-power-states:
28 List of power states that will disable this device power.
/Zephyr-latest/doc/services/pm/
Ddevice.rst1 Device Power Management
7 Device power management (PM) on Zephyr is a feature that enables devices to
10 selected, device drivers implementing power management will be able to take
11 advantage of the device power management subsystem.
13 Zephyr supports two methods of device power management:
15 - :ref:`Device Runtime Power Management <pm-device-runtime-pm>`
16 - :ref:`System-Managed Device Power Management <pm-device-system-pm>`
18 .. _pm-device-runtime-pm:
20 Device Runtime Power Management
23 Device runtime power management involves coordinated interaction between
[all …]
Dpower_domain.rst1 .. _pm-power-domain:
11 generic fashion. Application code that is using device A does not need to know
12 that device B is on the same power domain and should also be configured into a
25 .. _pm-domain-work-flow:
42 action -> devA [label="pm_device_get()"]
43 devA:se -> domain:n [label="pm_device_get()"]
45 domain -> devB [label="action_cb(PM_DEVICE_ACTION_TURN_ON)"]
46 domain:sw -> devA:sw [label="action_cb(PM_DEVICE_ACTION_TURN_ON)"]
50 ----------------------
55 only using device power management. To solve this problem, SoCs
[all …]
/Zephyr-latest/tests/subsys/pm/device_driver_init/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
8 * the PM API as this test runs without the PM api enabled.
13 #include <zephyr/pm/device.h>
14 #include <zephyr/pm/device_runtime.h>
27 zassert_equal(rc, 0, "Device state retrieval failed"); \
28 zassert_equal(state, value, "Unexpected device state");
35 state = -1; in ZTEST()
37 "Invalid device state"); in ZTEST()
38 /* No device runtime PM, starts on */ in ZTEST()
44 "Invalid device state"); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/pm/device_driver_init/
Dapp.overlay3 compatible = "power-domain-gpio";
4 enable-gpios = <&gpio0 0 0>;
5 #power-domain-cells = <0>;
9 compatible = "power-domain-gpio";
10 enable-gpios = <&gpio0 1 0>;
11 power-domains = <&test_reg>;
12 #power-domain-cells = <0>;
16 compatible = "power-domain-gpio";
17 enable-gpios = <&gpio0 2 0>;
18 power-domains = <&test_reg>;
[all …]
/Zephyr-latest/dts/bindings/rtc/
Dnxp,pcf8523.yaml1 # Copyright (c) 2019-2023 Henrik Brix Andersen <henrik@brixandersen.dk>
2 # SPDX-License-Identifier: Apache-2.0
9 - name: rtc-device.yaml
10 - name: i2c-device.yaml
11 - name: pm.yaml
12 property-allowlist:
13 - wakeup-source
16 quartz-load-femtofarads:
19 - 7000
20 - 12500
[all …]
/Zephyr-latest/samples/boards/st/power_mgmt/serial_wakeup/
DREADME.rst1 .. zephyr:code-sample:: stm32_pm_serial_wakeup
3 :relevant-api: subsys_pm_device
13 .. _stm32-pm-serial-wakeup-sample-requirements:
18 1. The board should support enabling PM. For a STM32 based target, it means that
20 in core sleep states, as LPTIM (:dtcompatible:`st,stm32-lptim`).
22 2. The serial port used by the shell should be configured, using device tree, to
25 - Clocked by an oscillator available in Stop mode (LSE, LSI) or an oscillator capable
26 that can be requested dynamically by device on activity detection (HSI on STM32WB).
27 - Matching oscillator sources should be enabled
28 - If LSE is selected as clock source and shell serial port is a LPUART current speed
[all …]
/Zephyr-latest/dts/arm/nordic/
Dnrf91_peripherals.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 flash_controller: flash-controller@39000 {
8 compatible = "nordic,nrf91-flash-controller";
10 partial-erase;
12 #address-cells = <1>;
13 #size-cells = <1>;
17 compatible = "soc-nv-flash";
18 erase-block-size = <4096>;
19 write-block-size = <4>;
24 compatible = "nordic,nrf-saadc";
[all …]
Dnrf5340_cpuapp_peripherals.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/regulator/nrf5x.h>
10 compatible = "nordic,nrf-dcnf";
15 oscillators: clock-controller@4000 {
16 compatible = "nordic,nrf53-oscillators";
20 compatible = "nordic,nrf53-lfxo";
21 #clock-cells = <0>;
22 clock-frequency = <32768>;
26 compatible = "nordic,nrf53-hfxo";
27 #clock-cells = <0>;
[all …]
/Zephyr-latest/dts/common/nordic/
Dnrf54l20.dtsi4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/adc/nrf-saadc-nrf54l.h>
10 #include <zephyr/dt-bindings/regulator/nrf5x.h>
12 /delete-node/ &sw_pwm;
15 #address-cells = <1>;
16 #size-cells = <1>;
19 #address-cells = <1>;
20 #size-cells = <0>;
23 compatible = "arm,cortex-m33f";
26 clock-frequency = <DT_FREQ_M(128)>;
[all …]
Dnrf9280.dtsi4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/adc/nrf-saadc.h>
10 #include <zephyr/dt-bindings/misc/nordic-nrf-ficr-nrf9230-engb.h>
11 #include <zephyr/dt-bindings/misc/nordic-domain-id-nrf9230.h>
12 #include <zephyr/dt-bindings/misc/nordic-owner-id-nrf9230.h>
13 #include <zephyr/dt-bindings/reserved-memory/nordic-owned-memory.h>
15 /delete-node/ &sw_pwm;
18 #address-cells = <1>;
19 #size-cells = <1>;
22 #address-cells = <1>;
[all …]
/Zephyr-latest/dts/bindings/power/
Dzephyr,power-state.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "zephyr,power-state"
9 power-state-name:
14 - "active"
15 - "runtime-idle"
16 - "suspend-to-idle"
17 - "standby"
18 - "suspend-to-ram"
19 - "suspend-to-disk"
20 - "soft-off"
[all …]
/Zephyr-latest/arch/arm/core/cortex_m/
Disr_wrapper.c2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
6 * SPDX-License-Identifier: Apache-2.0
11 * @brief ARM Cortex-M wrapper for ISRs with parameter
18 #include <zephyr/pm/pm.h>
41 * All interrupts are disabled when handling idle wakeup. For tickless in _isr_wrapper()
43 * device for the next timer deadline is not interrupted. For in _isr_wrapper()
44 * non-tickless idle, this ensures that the clearing of the kernel idle in _isr_wrapper()
46 * is called with interrupts disabled. in _isr_wrapper()
51 * is only necessary for the Cortex-M because it is the only ARM in _isr_wrapper()
64 /* re-enable interrupts */ in _isr_wrapper()
[all …]
/Zephyr-latest/soc/nxp/imxrt/imxrt5xx/cm33/
Dpower.c4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/device.h>
8 #include <zephyr/pm/pm.h>
27 /* FIXME: When this function is entered the Kernel has disabled in pm_state_set()
/Zephyr-latest/dts/bindings/sensor/
Dst,lsm6dso-common.yaml2 # SPDX-License-Identifier: Apache-2.0
5 When setting the accel-pm, accel-range, accel-odr, gyro-pm, gyro-range,
6 gyro-odr properties in a .dts or .dtsi file you may include lsm6dso.h
10 #include <zephyr/dt-bindings/sensor/lsm6dso.h>
15 accel-pm = <LSM6DSO_DT_XL_ULP_MODE>;
16 accel-range = <LSM6DSO_DT_FS_8G>;
17 accel-odr = <LSM6DSO_DT_ODR_1Hz6>;
18 gyro-pm = <LSM6DSO_DT_GY_NORMAL_MODE>;
19 gyro-range = <LSM6DSO_DT_FS_2000DPS>;
20 gyro-odr = <LSM6DSO_DT_ODR_6667Hz>;
[all …]
/Zephyr-latest/dts/xtensa/intel/
Dintel_adsp_ace30_ptl.dtsi4 * SPDX-License-Identifier: Apache-2.0
12 #address-cells = <1>;
13 #size-cells = <0>;
17 compatible = "cdns,tensilica-xtensa-lx7";
19 cpu-power-states = <&d0i3 &d3>;
20 i-cache-line-size = <64>;
21 d-cache-line-size = <64>;
26 compatible = "cdns,tensilica-xtensa-lx7";
28 cpu-power-states = <&d0i3 &d3>;
33 compatible = "cdns,tensilica-xtensa-lx7";
[all …]
Dintel_adsp_ace30.dtsi4 * SPDX-License-Identifier: Apache-2.0
12 #address-cells = <1>;
13 #size-cells = <0>;
17 compatible = "cdns,tensilica-xtensa-lx7";
19 cpu-power-states = <&d0i3 &d3>;
20 i-cache-line-size = <64>;
21 d-cache-line-size = <64>;
26 compatible = "cdns,tensilica-xtensa-lx7";
28 cpu-power-states = <&d0i3 &d3>;
33 compatible = "cdns,tensilica-xtensa-lx7";
[all …]
Dintel_adsp_ace20_lnl.dtsi4 * SPDX-License-Identifier: Apache-2.0
12 #address-cells = <1>;
13 #size-cells = <0>;
17 compatible = "cdns,tensilica-xtensa-lx7";
19 cpu-power-states = <&d0i3 &d3>;
20 i-cache-line-size = <64>;
21 d-cache-line-size = <64>;
26 compatible = "cdns,tensilica-xtensa-lx7";
28 cpu-power-states = <&d0i3 &d3>;
33 compatible = "cdns,tensilica-xtensa-lx7";
[all …]
/Zephyr-latest/subsys/shell/modules/
Ddevice_service.c5 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/device.h>
13 #include <zephyr/pm/device.h>
14 #include <zephyr/pm/device_runtime.h>
17 static const char *get_device_name(const struct device *dev, in get_device_name()
21 const char *name = dev->name; in get_device_name()
38 static int cmd_device_list_visitor(const struct device *dev, in cmd_device_list_visitor()
43 shell_fprintf(ctx->sh, SHELL_NORMAL, " requires: %s\n", in cmd_device_list_visitor()
44 get_device_name(dev, ctx->buf, ctx->buf_size)); in cmd_device_list_visitor()
53 const struct device *devlist; in cmd_device_list()
[all …]
/Zephyr-latest/tests/subsys/pm/device_runtime_api/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/pm/device.h>
9 #include <zephyr/pm/device_runtime.h>
13 static const struct device *test_dev;
40 /* check API always returns 0 when runtime PM is disabled */ in test_api_setup()
48 /* enable runtime PM */ in test_api_setup()
55 /* enabling again should succeed (no-op) */ in test_api_setup()
65 /* let test driver finish async PM (in case it was left pending due to in test_api_teardown()
72 /* disable runtime PM, make sure device is left into active state */ in test_api_teardown()
81 * @brief Test the behavior of the device runtime PM API.
[all …]

123456