/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_pm.c | 1 // SPDX-License-Identifier: MIT 7 #include <linux/suspend.h> 28 static void user_forcewake(struct intel_gt *gt, bool suspend) in user_forcewake() argument 30 int count = atomic_read(>->user_wakeref); in user_forcewake() 33 /* Inside suspend/resume so single threaded, no races to worry about. */ in user_forcewake() 38 if (suspend) { in user_forcewake() 39 GEM_BUG_ON(count > atomic_read(>->wakeref.count)); in user_forcewake() 40 atomic_sub(count, >->wakeref.count); in user_forcewake() 42 atomic_add(count, >->wakere in user_forcewake() [all...] |
/linux/Documentation/driver-api/driver-model/ |
H A D | driver.rst | 11 be multiple devices in a system that a driver supports, struct 37 .suspend = eepro100_suspend, 42 model because the bus they belong to has a bus-specific structure with 43 bus-specific fields that cannot be generalized. 48 completely bus-specific. Defining them as bus-specific entities would 49 sacrifice type-safety, so we keep bus-specific structures around. 51 Bus-specific drivers should include a generic struct device_driver in 52 the definition of the bus-specific driver. Like this:: 59 A definition that included bus-specific fields would look like 69 .suspend = eepro100_suspend, [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-hugsun-x99.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /dts-v1/; 3 #include <dt-bindings/pwm/pwm.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/interrupt-controller/irq.h> 20 stdout-path = "serial2:1500000n8"; 23 clkin_gmac: external-gmac-clock { 24 compatible = "fixed-clock"; 25 clock-frequency = <125000000>; 26 clock-output-names = "clkin_gmac"; [all …]
|
H A D | rk3399-pinebook-pro.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include <dt-bindings/input/gpio-keys.h> 10 #include <dt-bindings/input/linux-event-codes.h> 11 #include <dt-bindings/pwm/pwm.h> 12 #include <dt-bindings/usb/pd.h> 13 #include <dt-bindings/leds/common.h> 18 compatible = "pine64,pinebook-pro", "rockchip,rk3399"; 19 chassis-type = "laptop"; 28 stdout-path = "serial2:1500000n8"; [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-var-dart.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Support for Variscite DART-MX6 Module 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/sound/fsl-imx-audmux.h> 18 reg_3p3v: regulator-3p3v { 19 compatible = "regulator-fixed"; 20 regulator-name = "3P3V"; 21 regulator-min-microvolt = <3300000>; 22 regulator-max-microvolt = <3300000>; 23 regulator-always-on; [all …]
|
H A D | imx6ull-colibri-iris-v2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2018-2022 Toradex 6 #include "imx6ull-colibri-iris.dtsi" 9 reg_3v3_vmmc: regulator-3v3-vmmc { 10 compatible = "regulator-fixed"; 11 regulator-name = "3v3_vmmc"; 12 regulator-min-microvolt = <3300000>; 13 regulator-max-microvolt = <3300000>; 15 startup-delay-us = <100>; 16 enable-active-high; [all …]
|
H A D | imx6ull-myir-mys-6ulx.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/pwm/pwm.h> 12 model = "MYiR MYS-6ULX Single Board Computer"; 16 stdout-path = &uart1; 19 reg_vdd_5v: regulator-vdd-5v { 20 compatible = "regulator-fixed"; 21 regulator-name = "VDD_5V"; 22 regulator-min-microvolt = <5000000>; [all …]
|
H A D | imx6sx-nitrogen6sx.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR X11 6 /dts-v1/; 12 compatible = "boundary,imx6sx-nitrogen6sx", "fsl,imx6sx"; 19 backlight-lvds { 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 4 8 16 32 64 128 255>; 23 default-brightness-level = <6>; 24 power-supply = <®_3p3v>; 27 reg_1p8v: regulator-1p8v { 28 compatible = "regulator-fixed"; [all …]
|
H A D | imx6q-pistachio.dts | 6 * This file is dual-licensed: you can use it either under the terms 16 * This file is distributed in the hope that it will be useful, 25 * files (the "Software"), to deal in the Software without 33 * included in all copies or substantial portions of the Software. 38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42 * OTHER DEALINGS IN THE SOFTWARE. 45 /dts-v1/; 47 #include <dt-bindings/gpio/gpio.h> [all …]
|
H A D | imx6-logicpd-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/input.h> 10 stdout-path = &uart1; 18 reg_wl18xx_vmmc: regulator-wl18xx { 19 compatible = "regulator-fixed"; 20 regulator-name = "vwl1837"; 21 regulator-min-microvolt = <3300000>; 22 regulator-max-microvolt = <3300000>; 24 startup-delay-us = <70000>; [all …]
|
H A D | imx7d-meerkat96.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 6 /dts-v1/; 12 compatible = "novtech,imx7d-meerkat96", "fsl,imx7d"; 15 stdout-path = &uart6; 23 reg_wlreg_on: regulator-wlreg-on { 24 compatible = "regulator-fixed"; 25 pinctrl-names = "default"; 26 pinctrl-0 = <&pinctrl_wlreg_on>; 27 regulator-name = "wlreg_on"; 28 regulator-min-microvolt = <3300000>; [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | marvell-bt-8xxx.txt | 2 ------ 9 - compatible : should be one of the following: 10 * "marvell,sd8897-bt" (for SDIO) 11 * "marvell,sd8997-bt" (for SDIO) 16 - marvell,cal-data: Calibration data downloaded to the device during 20 - marvell,wakeup-pin: It represents wakeup pin number of the bluetooth chip. 22 - marvell,wakeup-gap-ms: wakeup gap represents wakeup latency of the host 25 - interrupt-names: Used only for USB based devices (See below) 26 - interrupts : specifies the interrupt pin number to the cpu. For SDIO, the 27 driver will use the first interrupt specified in the interrupt [all …]
|
/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am62-verdin-wifi.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62 11 wifi_pwrseq: wifi-pwrseq { 12 compatible = "mmc-pwrseq-simple"; 13 pinctrl-names = "default"; 14 pinctrl-0 = <&pinctrl_wifi_en>; 15 reset-gpios = <&main_gpio0 22 GPIO_ACTIVE_LOW>; 19 /* On-module Wi-Fi */ 21 pinctrl-names = "default"; 22 pinctrl-0 = <&pinctrl_sdhci2>; [all …]
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | rohm,bd71815-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/regulator/rohm,bd71815-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ROHM BD71815 Power Management Integrated Circuit regulators 10 - Matti Vaittinen <mazziesaccount@gmail.com> 14 see Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml. 16 The regulator controller is represented as a sub-node of the PMIC node 33 regulator-name: 37 "^((ldo|buck)[1-5]|ldolpsr|ldodvref)$": [all …]
|
/linux/drivers/clk/tegra/ |
H A D | clk-device.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 #include <linux/clk-provider.h> 18 * This driver manages performance state of the core power domain for the 33 struct device *dev = clk_dev->dev; in tegra_clock_set_pd_state() 38 if (opp == ERR_PTR(-ERANGE)) { in tegra_clock_set_pd_state() 41 * may have uninitiated clock rate that is overly high. In in tegra_clock_set_pd_state() 43 * need to set up performance state of the power domain and in tegra_clock_set_pd_state() 71 mutex_lock(&clk_dev->lock); in tegra_clock_change_notify() 74 if (cnd->new_rate > cnd->old_rate) in tegra_clock_change_notify() 75 err = tegra_clock_set_pd_state(clk_dev, cnd->new_rate); in tegra_clock_change_notify() [all …]
|
/linux/include/linux/clk/ |
H A D | tegra.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2012-2020, NVIDIA CORPORATION. All rights reserved. 16 * keep waiting until the CPU in reset state 18 * put the CPU in reset state 22 * CPU clock un-gate 27 * suspend: 28 * save the clock settings when CPU go into low-power state 30 * restore the clock settings when CPU exit low-power state 40 void (*suspend)(void); member 50 if (WARN_ON(!tegra_cpu_car_ops->wait_for_reset)) in tegra_wait_cpu_in_reset() [all …]
|
/linux/include/linux/ |
H A D | pm_domain.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * pm_domain.h - Definitions and headers related to device power domains. 25 * PD_FLAG_NO_DEV_LINK: As the default behaviour creates a device-link 29 * PD_FLAG_DEV_LINK_ON: Add the DL_FLAG_RPM_ACTIVE to power-on the 31 * device-links. 35 * index in the array of the pd_names. If pd_names 60 * These flags may be set in the struct generic_pm_domain's flags field by a 68 * ->power_on|off(), doesn't sleep. Hence, these 70 * enables genpd to power on/off the PM domain, 76 * GENPD_FLAG_ALWAYS_ON: Instructs genpd to always keep the PM domain [all …]
|
/linux/drivers/pmdomain/renesas/ |
H A D | rmobile-sysc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * rmobile power management support 9 * based on pm-sh7372.c 25 #define SPDCR 0x08 /* SYS Power Down Control Register */ 27 #define PSTR 0x80 /* Power Status Register */ 35 int (*suspend)(void); member 49 unsigned int mask = BIT(rmobile_pd->bit_shift); in rmobile_pd_power_down() 52 if (rmobile_pd->suspend) { in rmobile_pd_power_down() 53 int ret = rmobile_pd->suspend(); in rmobile_pd_power_down() 59 if (readl(rmobile_pd->base + PSTR) & mask) { in rmobile_pd_power_down() [all …]
|
/linux/Documentation/driver-api/ |
H A D | device_link.rst | 23 suspend/resume and shutdown ordering. 25 Device links allow representation of such dependencies in the driver core. 27 In its standard or *managed* form, a device link combines *both* dependency 28 types: It guarantees correct suspend/resume and shutdown ordering between a 35 suspend/resume and shutdown ordering is needed, the device link may 36 simply be set up with the ``DL_FLAG_STATELESS`` flag. In other words, 41 is instructed to runtime resume the supplier and keep it active 47 The earliest point in time when device links can be added is after 52 remains in a consistent state: E.g. a device link cannot be added in 53 the midst of a suspend/resume transition, so either commencement of [all …]
|
/linux/net/mac80211/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020-2021, 2023-2024 Intel Corporation 11 #include "driver-ops.h" 18 cfg80211_sched_scan_stopped_locked(local->hw.wiphy, 0); in ieee80211_sched_scan_cancel() 27 if (!local->open_count) in __ieee80211_suspend() 28 goto suspend; in __ieee80211_suspend() 30 local->suspending = true; in __ieee80211_suspend() 42 !(wowlan && wowlan->any)) { in __ieee80211_suspend() 43 lockdep_assert_wiphy(local->hw.wiphy); in __ieee80211_suspend() 44 list_for_each_entry(sta, &local->sta_list, list) { in __ieee80211_suspend() [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | power-management.rst | 1 .. _usb-power-management: 3 Power Management for USB 7 :Date: Last-updated: February 2014 11 --------- 12 * What is Power Management? 17 * Changing the default idle-delay time 19 * The driver interface for Power Management 25 * USB Port Power Control 26 * User Interface for Port Power Control 27 * Suggested Userspace Port Power Policy [all …]
|
/linux/arch/arm/boot/dts/synaptics/ |
H A D | berlin2cd-valve-steamlink.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 19 gpio-restart { 20 compatible = "gpio-restart"; 22 active-delay = <100>; 23 inactive-delay = <10>; 24 wait-delay = <100>; 30 cpu-supply = <&vcpu>; 31 operating-points = < [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos5420-peach-pit.dts | 1 // SPDX-License-Identifier: GPL-2.0 8 /dts-v1/; 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/clock/maxim,max77802.h> 13 #include <dt-bindings/regulator/maxim,max77802.h> 14 #include <dt-bindings/sound/samsung-i2s.h> 16 #include "exynos5420-cpus.dtsi" 21 compatible = "google,pit-rev16", [all …]
|
H A D | exynos5800-peach-pi.dts | 1 // SPDX-License-Identifier: GPL-2.0 8 /dts-v1/; 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/clock/maxim,max77802.h> 13 #include <dt-bindings/regulator/maxim,max77802.h> 14 #include <dt-bindings/sound/samsung-i2s.h> 16 #include "exynos5420-cpus.dtsi" 21 compatible = "google,pi-rev16", [all …]
|
/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-gxbb-wetek.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include "meson-gxbb.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/leds/common.h> 19 stdout-path = "serial0:115200n8"; 28 compatible = "gpio-leds"; 30 led-power { 31 /* red in suspend or power-off */ 35 default-state = "on"; 36 panic-indicator; [all …]
|