/openbmc/linux/drivers/base/power/ |
H A D | wakeup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/power/wakeup.c - System wakeup events framework 27 * if wakeup events are registered during or immediately before the transition. 31 /* First wakeup IRQ seen by the kernel in the last cycle. */ 39 * Combined counters of registered wakeup events and wakeup events in progress. 46 #define MAX_IN_PROGRESS ((1 << IN_PROGRESS_BITS) - 1) 77 * wakeup_source_create - Create a struct wakeup_source object. 78 * @name: Name of the new wakeup source. 93 ws->name = ws_name; in wakeup_source_create() 98 ws->id = id; in wakeup_source_create() [all …]
|
H A D | wakeup_stats.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Wakeup statistics in sysfs 6 * Copyright (c) 2019 Greg Kroah-Hartman <gregkh@linuxfoundation.org> 29 return sysfs_emit(buf, "%lu\n", ws->_name); \ 43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show() 54 ktime_t total_time = ws->total_time; in total_time_ms_show() 56 if (ws->active) { in total_time_ms_show() 57 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show() 70 ktime_t max_time = ws->max_time; in max_time_ms_show() 72 if (ws->active) { in max_time_ms_show() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pm_wakeup.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * pm_wakeup.h - Power management wakeup interface 21 * struct wakeup_source - Representation of wakeup sources 23 * @name: Name of the wakeup source 24 * @id: Wakeup source id 25 * @entry: Wakeup source list entry 26 * @lock: Wakeup source lock 28 * @timer: Wakeup timer list 29 * @timer_expires: Wakeup timer expiration 30 * @total_time: Total time this wakeup source has been active. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/ |
H A D | wakeup-source.txt | 1 Specifying wakeup capability for devices 5 ---------------- 6 Nodes that describe devices which has wakeup capability must contain an 7 "wakeup-source" boolean property. 9 Also, if device is marked as a wakeup source, then all the primary 10 interrupt(s) can be used as wakeup interrupt(s). 12 However if the devices have dedicated interrupt as the wakeup source 14 interrupt name. In such cases only that interrupt can be used as wakeup 18 --------------------------------------------------------- 20 1. "gpio-key,wakeup" Documentation/devicetree/bindings/input/gpio-keys{,-polled}.txt [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A D | isil,isl12057.txt | 8 ("wakeup-source") to handle the specific use-case found 9 on at least three in-tree users of the chip (NETGEAR ReadyNAS 102, 104 10 and 2120 ARM-based NAS); On those devices, the IRQ#2 pin of the chip 13 RTC alarm rings. In order to mark the device has a wakeup source and 20 - "compatible": must be "isil,isl12057" 21 - "reg": I2C bus address of the device 25 - "wakeup-source": mark the chip as a wakeup source, independently of 38 that the pinctrl-related properties below are given for completeness and 41 "interrupt-parent" and "interrupts" are usually sufficient): 60 pinctrl-0 = <&rtc_alarm_pin>; [all …]
|
H A D | rtc-opal.txt | 1 IBM OPAL real-time clock 2 ------------------------ 5 - compatible: Should be "ibm,opal-rtc" 8 - wakeup-source: Decides if the wakeup is supported or not 9 (Legacy property supported: "has-tpo") 13 compatible = "ibm,opal-rtc"; 14 wakeup-source;
|
/openbmc/linux/Documentation/power/ |
H A D | suspend-and-interrupts.rst | 10 ----------------------------------- 14 ->prepare, ->suspend and ->suspend_late callbacks have been executed for all 29 Device IRQs are re-enabled during system resume, right before the "early" phase 30 of resuming devices (that is, before starting to execute ->resume_early 35 ------------------------ 38 suspend-resume cycle, including the "noirq" phases of suspending and resuming 41 but also to IPIs and to some other special-purpose interrupts. 44 requesting a special-purpose interrupt. It causes suspend_device_irqs() to 46 expected during the suspend-resume cycle, but does not guarantee that the 47 interrupt will wake the system from a suspended state -- for such cases it is [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-power | 15 labels, which may be "mem" (suspend), "standby" (power-on 16 suspend), "freeze" (suspend-to-idle) and "disk" (hibernation). 21 See Documentation/admin-guide/pm/sleep-states.rst for more 39 See Documentation/admin-guide/pm/sleep-states.rst for more 47 suspend-to-disk mechanism. Reading from this file returns 51 'firmware' - means that the memory image will be saved to disk 55 'platform' - the memory image will be saved by the kernel and 59 'shutdown' - the memory image will be saved by the kernel and 62 'reboot' - the memory image will be saved by the kernel and 66 two testing modes of the suspend-to-disk mechanism: 'testproc' [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | mediatek,mtk-xhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/usb/mediatek,mtk-xhci.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Chunfeng Yun <chunfeng.yun@mediatek.com> 14 - $ref: usb-xhci.yaml 19 case 2: supports dual-role mode, and the host is based on xHCI driver. 25 - enum: 26 - mediatek,mt2701-xhci 27 - mediatek,mt2712-xhci [all …]
|
H A D | mediatek,mtu3.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Chunfeng Yun <chunfeng.yun@mediatek.com> 14 - $ref: usb-drd.yaml 23 - enum: 24 - mediatek,mt2712-mtu3 25 - mediatek,mt8173-mtu3 26 - mediatek,mt8183-mtu3 27 - mediatek,mt8186-mtu3 [all …]
|
H A D | richtek,rt1719.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Richtek RT1719 sink-only Type-C PD controller 10 - ChiYuan Huang <cy_huang@richtek.com> 13 The RT1719 is a sink-only USB Type-C controller that complies with the latest 14 USB Type-C and PD standards. It does the USB Type-C detection including attach 17 support for alternative interfaces of the Type-C specification. 22 - richtek,rt1719 30 wakeup-source: [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3-ldp.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 7 #include <dt-bindings/input/input.h> 9 #include "omap-gpmc-smsc911x.dtsi" 13 compatible = "ti,omap3-ldp", "ti,omap3430", "ti,omap3"; 22 cpu0-supply = <&vcc>; 27 compatible = "gpio-keys"; 28 pinctrl-names = "default"; 29 pinctrl-0 = <&gpio_key_pins>; [all …]
|
H A D | omap3-pandora-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <dt-bindings/input/input.h> 14 cpu0-supply = <&vcc>; 29 #clock-cells = <0>; 30 compatible = "fixed-clock"; 31 clock-frequency = <26000000>; 35 compatible = "connector-analog-tv"; 40 remote-endpoint = <&venc_out>; 45 gpio-leds { 47 compatible = "gpio-leds"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/renesas/ |
H A D | emev2-kzm9d.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the KZM9D board 7 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 29 stdout-path = "serial1:115200n8"; 33 compatible = "gpio-keys"; 35 debounce-interval = <50>; 36 wakeup-source; [all …]
|
H A D | r8a7793-gose.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the Gose board 5 * Copyright (C) 2014-2015 Renesas Electronics Corporation 9 * SSI-AK4643 36 /dts-v1/; 38 #include <dt-bindings/gpio/gpio.h> 39 #include <dt-bindings/input/input.h> 59 stdout-path = "serial0:115200n8"; 68 compatible = "gpio-keys"; 70 pinctrl-0 = <&keyboard_pins>; [all …]
|
H A D | r8a7792-blanche.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the Blanche board 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 25 stdout-path = "serial0:115200n8"; 33 d3_3v: regulator-3v3 { 34 compatible = "regulator-fixed"; 35 regulator-name = "D3.3V"; 36 regulator-min-microvolt = <3300000>; [all …]
|
H A D | r8a7791-koelsch.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the Koelsch board 6 * Copyright (C) 2013-2014 Renesas Solutions Corp. 11 * SSI-AK4643 38 /dts-v1/; 40 #include <dt-bindings/gpio/gpio.h> 41 #include <dt-bindings/input/input.h> 63 stdout-path = "serial0:115200n8"; 77 #address-cells = <1>; 78 #size-cells = <1>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | r8a7793-gose.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the Gose board 5 * Copyright (C) 2014-2015 Renesas Electronics Corporation 9 * SSI-AK4643 36 /dts-v1/; 38 #include <dt-bindings/gpio/gpio.h> 39 #include <dt-bindings/input/input.h> 56 stdout-path = "serial0:115200n8"; 64 gpio-keys { 65 compatible = "gpio-keys"; [all …]
|
H A D | r8a7792-blanche.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the Blanche board 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 25 stdout-path = "serial0:115200n8"; 33 d3_3v: regulator-3v3 { 34 compatible = "regulator-fixed"; 35 regulator-name = "D3.3V"; 36 regulator-min-microvolt = <3300000>; [all …]
|
H A D | at91sam9261ek.dts | 2 * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board 4 * Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com> 8 /dts-v1/; 17 stdout-path = "serial0:115200n8"; 26 clock-frequency = <32768>; 30 clock-frequency = <18432000>; 41 atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>; 45 bits-per-pixel = <16>; 46 atmel,lcdcon-backlight; 49 atmel,guard-time = <1>; [all …]
|
H A D | r8a7791-koelsch.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree Source for the Koelsch board 6 * Copyright (C) 2013-2014 Renesas Solutions Corp. 11 * SSI-AK4643 38 /dts-v1/; 40 #include <dt-bindings/gpio/gpio.h> 41 #include <dt-bindings/input/input.h> 60 stdout-path = "serial0:115200n8"; 74 #address-cells = <1>; 75 #size-cells = <1>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/soc/fsl/ |
H A D | rcpm.txt | 2 ------------------------------------------- 3 The RCPM performs all device-level tasks associated with device run control 7 - reg : Offset and length of the register set of the RCPM block. 8 - #fsl,rcpm-wakeup-cells : The number of IPPDEXPCR register cells in the 9 fsl,rcpm-wakeup property. 10 - compatible : Must contain a chip-specific RCPM block compatible string 11 and (if applicable) may contain a chassis-version RCPM compatible 12 string. Chip-specific strings are of the form "fsl,<chip>-rcpm", 14 * "fsl,p2041-rcpm" 15 * "fsl,p5020-rcpm" [all …]
|
/openbmc/linux/drivers/soc/fsl/ |
H A D | rcpm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rcpm.c - Freescale QorIQ RCPM driver 5 // Copyright 2019-2020 NXP 34 np = of_find_compatible_node(NULL, NULL, "fsl,ls1021a-scfg"); in copy_ippdexpcr1_setting() 50 * rcpm_pm_prepare - performs device-level tasks associated with power 51 * management, such as programming related to the wakeup source control. 61 struct device_node *np = dev->of_node; in rcpm_pm_prepare() 67 return -EINVAL; in rcpm_pm_prepare() 69 base = rcpm->ippdexpcr_base; in rcpm_pm_prepare() 72 /* Begin with first registered wakeup source */ in rcpm_pm_prepare() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | gpio-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 15 - gpio-keys 16 - gpio-keys-polled 23 poll-interval: true 26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc… 42 linux,input-type: [all …]
|
/openbmc/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-kizbox3-hs.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * at91-kizbox3-hs.dts - Device Tree file for Overkiz KIZBOX3-HS board 11 /dts-v1/; 12 #include "at91-kizbox3_common.dtsi" 15 model = "Overkiz KIZBOX3-HS"; 16 compatible = "overkiz,kizbox3-hs", "atmel,sama5d2", "atmel,sama5"; 18 led-controller-1 { 21 led-1 { 25 led-2 { 29 led-3 { [all …]
|