Home
last modified time | relevance | path

Searched +full:power +full:- +full:button (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/Linux-v5.15/drivers/input/misc/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
21 reporting power button status.
31 reporting power button status.
40 Say Y here to use the PowerOn Key for ST-Ericsson's AB8500
41 Mix-Sig PMIC.
44 will be called ab8500-ponkey.
64 module will be called ad714x-i2c.
74 module will be called ad714x-spi.
77 tristate "Dell Wyse 3020 Power Button Driver"
81 Say Y to enable support for reporting power button status on
[all …]
Dpalmas-pwrbutton.c2 * Texas Instruments' Palmas Power Button Input Driver
4 * Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/
33 * struct palmas_pwron - Palmas power on data
47 * struct palmas_pwron_config - configuration of palmas power on
49 * @pwron_debounce_val: value for debounce of power button
57 * palmas_power_button_work() - Detects the button release event
58 * @work: work item to detect button release
65 struct input_dev *input_dev = pwron->input_dev; in palmas_power_button_work()
69 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work()
72 dev_err(input_dev->dev.parent, in palmas_power_button_work()
[all …]
Dcpcap-pwrbutton.c2 * CPCAP Power Button Input Driver
25 #include <linux/mfd/motorola-cpcap.h>
38 struct cpcap_power_button *button = _button; in powerbutton_irq() local
41 val = cpcap_sense_virq(button->regmap, irq); in powerbutton_irq()
43 dev_err(button->dev, "irq read failed: %d", val); in powerbutton_irq()
47 pm_wakeup_event(button->dev, 0); in powerbutton_irq()
48 input_report_key(button->idev, KEY_POWER, val); in powerbutton_irq()
49 input_sync(button->idev); in powerbutton_irq()
56 struct cpcap_power_button *button; in cpcap_power_button_probe() local
60 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe()
[all …]
Dsoc_button_array.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Supports for the button array on SoC tablets originally running
48 * Some 2-in-1s which use the soc_button_array driver have this ugly issue in
49 * their DSDT where the _LID method modifies the irq-type settings of the GPIOs
50 * used for the power and home buttons. The intend of this AML code is to
53 * problematic because when re-enabling the irq, which happens whenever _LID
55 * irq-type to IRQ_TYPE_LEVEL_LOW. Where as the gpio-keys driver programs the
57 * To work around this we don't set gpio_keys_button.gpio on these 2-in-1s,
65 * Acer Switch 10 SW5-012. _LID method messes with home- and
66 * power-button GPIO IRQ settings. When (re-)enabling the irq
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/input/
Dti,palmas-pwrbutton.txt1 Texas Instruments Palmas family power button module
7 This module provides a simple power button event via an Interrupt.
10 - compatible: should be one of the following
11 - "ti,palmas-pwrbutton": For Palmas compatible power on button
12 - interrupts: Interrupt number of power button submodule on device.
16 - ti,palmas-long-press-seconds: Duration in seconds which the power
17 button should be kept pressed for Palmas to power off automatically.
20 - ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds
21 which the power button should be kept pressed for Palmas to register
29 compatible = "ti,palmas-pwrbutton";
[all …]
Dtps65218-pwrbutton.txt1 Texas Instruments TPS65217 and TPS65218 power button
6 This driver provides a simple power button event via an Interrupt.
9 - compatible: should be "ti,tps65217-pwrbutton" or "ti,tps65218-pwrbutton"
12 - interrupts: should be one of the following
13 - <2>: For controllers compatible with tps65217
14 - <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218
19 tps65217-pwrbutton {
20 compatible = "ti,tps65217-pwrbutton";
26 power-button {
27 compatible = "ti,tps65218-pwrbutton";
/Linux-v5.15/Documentation/input/devices/
Djoystick-parport.rst3 .. _joystick-parport:
9 :Copyright: |copy| 1998-2000 Vojtech Pavlik <vojtech@ucw.cz>
10 :Copyright: |copy| 1998 Andree Borrmann <a.borrmann@tu-bs.de>
18 Any information in this file is provided as-is, without any guarantee that
36 Many console and 8-bit computer gamepads and joysticks are supported. The
40 ------------
57 The main problem with PC parallel ports is that they don't have +5V power
58 source on any of their pins. So, if you want a reliable source of power
59 for your pads, use either keyboard or joystick port, and make a pass-through
60 cable. You can also pull the power directly from the power supply (the red
[all …]
/Linux-v5.15/drivers/platform/surface/
Dsurfacepro3_button.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * power/home/volume button support for
16 #include <acpi/button.h>
44 MODULE_DESCRIPTION("Surface Pro3 Button Driver");
48 * Power button, Home button, Volume buttons support is supposed to
76 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local
82 /* Power button press,release handle */ in surface_button_notify()
89 /* Home button press,release handle */ in surface_button_notify()
96 /* Volume up button press,release handle */ in surface_button_notify()
103 /* Volume down button press,release handle */ in surface_button_notify()
[all …]
/Linux-v5.15/drivers/acpi/
Dtiny-power-button.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <acpi/button.h>
8 MODULE_DESCRIPTION("ACPI Tiny Power Button Driver");
13 MODULE_PARM_DESC(power_signal, "Power button sends this signal to init");
33 .name = "tiny-power-button",
34 .class = "tiny-power-button",
DKconfig1 # SPDX-License-Identifier: GPL-2.0
10 bool "ACPI (Advanced Configuration and Power Interface) Support"
16 Advanced Configuration and Power Interface (ACPI) support for
17 Linux requires an ACPI-compliant platform (hardware/firmware),
18 and assumes the presence of OS-directed configuration and power
23 legacy configuration and power management interfaces, including
24 the Plug-and-Play BIOS specification (PnP BIOS), the
25 MultiProcessor Specification (MPS), and the Advanced Power
30 <https://01.org/linux-acpi>
37 ACPI is an open industry specification originally co-developed by
[all …]
/Linux-v5.15/drivers/platform/x86/intel/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
11 various Intel x86 platforms, including vendor-specific
43 tristate "Intel Virtual Button"
49 This driver provides support for the Intel Virtual Button interface.
50 Some laptops require this driver for power button support.
61 Power Management Event (PME) to the Power Management Controller (PMC)
95 tristate "Intel Cherry Trail Dollar Cove TI power button driver"
99 This option adds a power button driver for Dollar Cove TI
106 tristate "Intel Merrifield Basin Cove power button driver"
110 This option adds a power button driver for Basin Cove PMIC
[all …]
Dhid.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Intel HID event & 5 button array driver
12 #include <linux/input/sparse-keymap.h>
36 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */
37 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */
46 /* 13 has two different meanings in the spec -- ignore it. */
54 /* 27: wake -- needs special handling */
58 /* 5 button array notification value. */
106 * Some convertible use the intel-hid ACPI interface to report SW_TABLET_MODE,
115 DMI_MATCH(DMI_PRODUCT_NAME, "HP Spectre x360 Convertible 15-df0xxx"),
[all …]
/Linux-v5.15/arch/arm/boot/dts/
Dkirkwood-netgear_readynas_duo_v2.dts1 // SPDX-License-Identifier: GPL-2.0+
8 /dts-v1/;
11 #include "kirkwood-6282.dtsi"
15 …compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,k…
24 stdout-path = &uart0;
28 pinctrl: pin-controller@10000 {
29 pmx_button_power: pmx-button-power {
34 pmx_button_backup: pmx-button-backup {
39 pmx_button_reset: pmx-button-reset {
44 pmx_led_blue_power: pmx-led-blue-power {
[all …]
Darmada-xp-lenovo-ix4-300d.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for Lenovo Iomega ix4-300d
8 /dts-v1/;
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include "armada-xp-mv78230.dtsi"
15 model = "Lenovo Iomega ix4-300d";
16 compatible = "lenovo,ix4-300d", "marvell,armadaxp-mv78230",
17 "marvell,armadaxp", "marvell,armada-370-xp";
20 stdout-path = "serial0:115200n8";
[all …]
Dkirkwood-netgear_readynas_nv+_v2.dts1 // SPDX-License-Identifier: GPL-2.0+
8 /dts-v1/;
11 #include "kirkwood-6282.dtsi"
15 …compatible = "netgear,readynas-nv+-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,k…
24 stdout-path = &uart0;
28 pinctrl: pin-controller@10000 {
29 pmx_button_power: pmx-button-power {
34 pmx_button_backup: pmx-button-backup {
39 pmx_button_reset: pmx-button-reset {
44 pmx_led_blue_power: pmx-led-blue-power {
[all …]
Dkirkwood-dnskw.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 #include "kirkwood-6281.dtsi"
6 model = "D-Link DNS NASes (kirkwood-based)";
7 compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
10 compatible = "gpio-keys";
11 #address-cells = <1>;
12 #size-cells = <0>;
13 pinctrl-0 = <&pmx_button_power &pmx_button_unmount
15 pinctrl-names = "default";
17 power {
[all …]
Darmada-370-netgear-rn102.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include "armada-370.dtsi"
16 compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp";
19 stdout-path = "serial0:115200n8";
32 internal-regs {
45 nr-ports = <1>;
50 pinctrl-0 = <&ge1_rgmii_pins>;
[all …]
Darmada-370-dlink-dns327l.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for D-Link DNS-327L
12 /dts-v1/;
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-370.dtsi"
19 model = "D-Link DNS-327L";
22 "marvell,armada-370-xp";
25 stdout-path = &uart0;
38 internal-regs {
[all …]
Darmada-370-netgear-rn104.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include "armada-370.dtsi"
16 compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp";
19 stdout-path = "serial0:115200n8";
32 internal-regs {
44 pinctrl-0 = <&ge0_rgmii_pins>;
45 pinctrl-names = "default";
[all …]
Dkirkwood-iomega_ix2_200.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include "kirkwood-6281.dtsi"
8 model = "Iomega StorCenter ix2-200";
9 compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
18 stdout-path = &uart0;
22 pinctrl: pin-controller@10000 {
23 pinctrl-0 = < &pmx_led_sata_brt_ctrl_1
33 pinctrl-names = "default";
35 pmx_button_reset: pmx-button-reset {
[all …]
/Linux-v5.15/drivers/parisc/
Dpower.c2 * linux/drivers/parisc/power.c
3 * HP PARISC soft power switch support driver
5 * Copyright (c) 2001-2007 Helge Deller <deller@gmx.de>
33 * Support of the soft power switch button may be enabled or disabled at
34 * runtime through the "/proc/sys/kernel/power" procfs entry.
54 /* how often should the power button be polled ? */
57 /* how long does the power button needs to be down until we react ? */
90 /* wait until the button was pressed for 1 second */ in process_shutdown()
105 /* main power switch task struct */
108 /* filename in /proc which can be used to enable/disable the power switch */
[all …]
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-firmware-acpi55 image: The image bitmap. Currently a 32-bit BMP.
93 cause -EINVAL to be returned.
107 as the power button, it can also handle a variable
183 ff_pwr_btn Power Button
187 ff_slp_btn Sleep Button
218 Let's take power button fixed event for example, please kill acpid
220 when pressing the power button::
224 # press the power button for 3 times;
230 # press the power button for 3 times;
241 # press the power button for 3 times;
[all …]
/Linux-v5.15/arch/sh/boards/mach-landisk/
Dirq.c1 // SPDX-License-Identifier: GPL-2.0
3 * arch/sh/boards/mach-landisk/irq.c
5 * I-O DATA Device, Inc. LANDISK Support
7 * Copyright (C) 2005-2007 kogiidena
18 #include <mach-landisk/mach/iodata_landisk.h>
29 POWER, /* Power swtich */ enumerator
30 BUTTON, /* Button swtich */ enumerator
41 INTC_IRQ(POWER, IRQ_POWER),
42 INTC_IRQ(BUTTON, IRQ_BUTTON),
48 { BUTTON, POWER, FATA, ATA,
/Linux-v5.15/arch/mips/boot/dts/ingenic/
Dgcw0.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 #include <dt-bindings/clock/ingenic,tcu.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/iio/adc/ingenic,adc.h>
9 #include <dt-bindings/input/input.h>
29 stdout-path = "serial2:57600n8";
33 compatible = "regulator-fixed";
34 regulator-name = "vcc";
36 regulator-min-microvolt = <3300000>;
[all …]
/Linux-v5.15/arch/arm/mach-orion5x/
Ddns323-setup.c2 * arch/arm/mach-orion5x/dns323-setup.c
32 #include <asm/mach-types.h>
36 #include <plat/orion-gpio.h>
79 * Check for devices with hard-wired IRQs. in dns323_pci_map_irq()
82 if (irq != -1) in dns323_pci_map_irq()
85 return -1; in dns323_pci_map_irq()
111 * Layout as used by D-Link:
112 * 0x00000000-0x00010000 : "MTD1"
113 * 0x00010000-0x00020000 : "MTD2"
114 * 0x00020000-0x001a0000 : "Linux Kernel"
[all …]

12345678910>>...20