/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 …]
|
/linux/Documentation/devicetree/bindings/power/ |
H A D | wakeup-source.txt | 1 Specifying wakeup capability for devices 5 ---------------- 6 Nodes that describe devices which have wakeup capability may contain a 7 "wakeup-source" boolean property. 9 If the device is marked as a wakeup-source, interrupt wake capability depends 10 on the device specific "interrupt-names" property. If no interrupts are labeled 14 However if a device has a dedicated interrupt as the wakeup source, then it 16 cases only that interrupt can be used as a wakeup interrupt. 18 While various legacy interrupt names exist, new devices should use "wakeup" as 22 --------------------------------------------------------- [all …]
|
/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… 35 - items: [all …]
|
H A D | elan,ekth3000.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 13 - $ref: touchscreen/touchscreen.yaml# 25 wakeup-source: 27 description: touchpad can be used as a wakeup source 29 vcc-supply: 40 elan,middle-button: 52 touchscreen-size-x: true [all …]
|
/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 …]
|
/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;
|
/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 …]
|
H A D | charger-manager.rst | 7 Charger Manager provides in-kernel battery charger management that 8 requires temperature monitoring during suspend-to-RAM state 12 Charger Manager is a platform_driver with power-supply-class entries. 13 An instance of Charger Manager (a platform-device created with Charger-Manager) 26 own power-supply-class and each power-supply-class can provide 28 aggregates charger-related information from multiple sources and 29 shows combined information as a single power-supply-class. 31 * Support for in suspend-to-RAM polling (with suspend_again callback) 32 While the battery is being charged and the system is in suspend-to-RAM, 50 * Support for premature full-battery event handling [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
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 …]
|
/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 …]
|
/linux/Documentation/devicetree/bindings/soc/fsl/ |
H A D | fsl,rcpm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 The RCPM performs all device-level tasks associated with device run control 14 - Frank Li <Frank.Li@nxp.com> 19 - items: 20 - enum: 21 - fsl,p2041-rcpm 22 - fsl,p3041-rcpm 23 - fsl,p4080-rcpm [all …]
|
/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 …]
|
/linux/arch/mips/alchemy/devboards/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <asm/mach-au1x00/au1000.h> 13 #include <asm/mach-au1x00/gpio-au1000.h> 14 #include <asm/mach-db1x00/bcsr.h> 19 * can be used by userspace to en/disable all au1x-provided wakeup 21 * is to trigger a wakeup. 45 /* enable GPIO based wakeup */ in db1x_pm_enter() 48 /* clear and setup wake cause and source */ in db1x_pm_enter() 54 /* setup 1Hz-timer-based wakeup: wait for reg access */ in db1x_pm_enter() 91 printk(KERN_ERR "db1x: no wakeup source activated!\n"); in db1x_pm_begin() [all …]
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | elan,elants_i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David Heidelberg <david@ixit.cz> 13 - $ref: touchscreen.yaml# 18 - enum: 19 - elan,ektf3624 20 - elan,ekth3500 21 - items: 22 - const: elan,ekth3915 [all …]
|
H A D | ilitek_ts_i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 13 - $ref: touchscreen.yaml# 18 - ilitek,ili210x 19 - ilitek,ili2117 20 - ilitek,ili2120 21 - ilitek,ili2130 22 - ilitek,ili2131 [all …]
|
/linux/Documentation/usb/ |
H A D | chipidea.rst | 6 ----------------------------------- 12 ------------------------- 29 otg-rev = <0x0200>; 30 adp-disable; 33 ------------------- 41 The A-device (with micro A plug inserted) should enumerate B-device. 45 On B-device:: 49 B-device should take host role and enumerate A-device. 51 4) A-device switch back to host. 53 On B-device:: [all …]
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8183-kukui-jacuzzi-pico6.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 7 #include "mt8183-kukui-jacuzzi.dtsi" 8 #include "mt8183-kukui-audio-ts3a227e-max98357a.dtsi" 12 chassis-type = "convertible"; 13 compatible = "google,pico-sku2", "google,pico", "mediatek,mt8183"; 15 bt_wakeup: bt-wakeup { 16 compatible = "gpio-keys"; 17 pinctrl-names = "default"; 18 pinctrl-0 = <&bt_pins_wakeup>; [all …]
|
/linux/Documentation/virt/kvm/ |
H A D | halt-polling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 vcpus of a single vcore have ceded, the host kernel polls for wakeup conditions 16 the order of a few micro-seconds, although performance benefits are workload 17 dependent. In the event that no wakeup source arrives during the polling 20 wakeup periods where the time spent halt polling is minimised and the time 27 The powerpc kvm-hv specific case is implemented in: 39 kvm_vcpu->halt_poll_ns 41 or in the case of powerpc kvm-hv, in the vcore struct: 43 kvmppc_vcore->halt_poll_ns 47 During polling if a wakeup source is received within the halt polling interval, [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | richtek,rt9471.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alina Yu <alina_yu@richtek.com> 11 - ChiYuan Huang <cy_huang@richtek.com> 14 RT9471 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for 19 https://www.richtek.com/assets/product_file/RT9471=RT9471D/DS9471D-02.pdf 28 charge-enable-gpios: 32 wakeup-source: true 37 usb-otg-vbus-regulator: [all …]
|
H A D | richtek,rt9467.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 11 - ChiaEn Wu <chiaen_wu@richtek.com> 14 RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for 16 MOSFETs, input current sensing and regulation, high-accuracy voltage 20 The RT9467 also features USB On-The-Go (OTG) support. It also integrates 21 D+/D- pin for USB host/charging port detection. 24 https://www.richtek.com/assets/product_file/RT9467/DS9467-01.pdf [all …]
|
/linux/arch/arm64/boot/dts/arm/ |
H A D | juno-motherboard.dtsi | 4 * Copyright (c) 2013-2014 ARM Ltd 11 mb_clk24mhz: clock-24000000 { 12 compatible = "fixed-clock"; 13 #clock-cells = <0>; 14 clock-frequency = <24000000>; 15 clock-output-names = "juno_mb:clk24mhz"; 18 mb_clk25mhz: clock-25000000 { 19 compatible = "fixed-clock"; 20 #clock-cells = <0>; 21 clock-frequency = <25000000>; [all …]
|