| /linux/drivers/input/misc/ |
| H A D | palmas-pwrbutton.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Texas Instruments' Palmas Power Button Input Driver 5 * Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/ 26 * struct palmas_pwron - Palmas power on data 40 * struct palmas_pwron_config - configuration of palmas power on 42 * @pwron_debounce_val: value for debounce of power button 50 * palmas_power_button_work() - Detects the button release event 51 * @work: work item to detect button release 58 struct input_dev *input_dev = pwron->input_dev; in palmas_power_button_work() 62 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work() [all …]
|
| H A D | cpcap-pwrbutton.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * CPCAP Power Button Input Driver 17 #include <linux/mfd/motorola-cpcap.h> 30 struct cpcap_power_button *button = _button; in powerbutton_irq() local 33 val = cpcap_sense_virq(button->regmap, irq); in powerbutton_irq() 35 dev_err(button->dev, "irq read failed: %d", val); in powerbutton_irq() 39 pm_wakeup_event(button->dev, 0); in powerbutton_irq() 40 input_report_key(button->idev, KEY_POWER, val); in powerbutton_irq() 41 input_sync(button->idev); in powerbutton_irq() 48 struct cpcap_power_button *button; in cpcap_power_button_probe() local [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | joystick-parport.rst | 3 .. _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/Documentation/devicetree/bindings/input/ |
| H A D | ti,palmas-pwrbutton.txt | 1 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 …]
|
| /linux/arch/arm/boot/dts/marvell/ |
| H A D | kirkwood-dnskw.dtsi | 1 // 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 pinctrl-0 = <&pmx_button_power &pmx_button_unmount 13 pinctrl-names = "default"; 15 button-power { 16 label = "Power button"; 20 button-eject { [all …]
|
| H A D | kirkwood-iomega_ix2_200.dts | 1 // 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 …]
|
| H A D | kirkwood-netxbig.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 * Based on netxbig_v2-setup.c, 14 #include <dt-bindings/leds/leds-netxbig.h> 16 #include "kirkwood-6281.dtsi" 21 stdout-path = &uart0; 33 #address-cells = <1>; 34 #size-cells = <1>; 35 compatible = "mxicy,mx25l4005a", "jedec,spi-nor"; 37 spi-max-frequency = <20000000>; 42 label = "u-boot"; [all …]
|
| H A D | kirkwood-netgear_readynas_duo_v2.dts | 1 // 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 …]
|
| H A D | armada-xp-lenovo-ix4-300d.dts | 1 // 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 …]
|
| /linux/drivers/platform/surface/ |
| H A D | surfacepro3_button.c | 1 // 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/arch/arm/boot/dts/broadcom/ |
| H A D | bcm4709-buffalo-wxr-1900dhp.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 4 * DTS for Buffalo WXR-1900DHP 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 15 compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708"; 16 model = "Buffalo WXR-1900DHP"; 29 compatible = "gpio-leds"; 31 led-usb { 36 led-power-amber { 37 label = "bcm53xx:amber:power"; [all …]
|
| /linux/arch/arm64/boot/dts/apple/ |
| H A D | s800x-ipad5.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 8 #include "s800-0-3-common.dtsi" 9 #include <dt-bindings/input/input.h> 12 chassis-type = "tablet"; 14 gpio-keys { 15 compatible = "gpio-keys"; 17 button-home { 18 label = "Home Button"; 21 wakeup-source; 24 button-power { [all …]
|
| H A D | t8010-ipad6.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 9 #include "t8010-common.dtsi" 10 #include <dt-bindings/input/input.h> 13 chassis-type = "tablet"; 15 gpio-keys { 16 compatible = "gpio-keys"; 18 button-home { 19 label = "Home Button"; 22 wakeup-source; 25 button-power { [all …]
|
| H A D | s800x-6s.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 8 #include "s800-0-3-common.dtsi" 9 #include <dt-bindings/input/input.h> 12 chassis-type = "handset"; 14 gpio-keys { 15 compatible = "gpio-keys"; 17 button-home { 18 label = "Home Button"; 21 wakeup-source; 24 button-power { [all …]
|
| H A D | s800x-se.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 8 #include "s800-0-3-common.dtsi" 9 #include <dt-bindings/input/input.h> 12 chassis-type = "handset"; 14 gpio-keys { 15 compatible = "gpio-keys"; 17 button-home { 18 label = "Home Button"; 21 wakeup-source; 24 button-power { [all …]
|
| H A D | t8010-n112.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 7 /dts-v1/; 10 #include "t8010-common.dtsi" 11 #include <dt-bindings/input/input.h> 14 compatible = "apple,n112", "apple,t8010", "apple,arm-platform"; 16 chassis-type = "handset"; 18 gpio-keys { 19 compatible = "gpio-keys"; 21 button-home { 22 label = "Home Button"; [all …]
|
| H A D | t7000-n102.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 7 /dts-v1/; 10 #include "t7000-common.dtsi" 11 #include "t7000-handheld.dtsi" 12 #include <dt-bindings/input/input.h> 15 compatible = "apple,n102", "apple,t7000", "apple,arm-platform"; 17 chassis-type = "handset"; 19 gpio-keys { 20 compatible = "gpio-keys"; 22 button-home { [all …]
|
| H A D | s5l8960x-air1.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 10 #include "s5l8960x-common.dtsi" 11 #include "s5l8965x-opp.dtsi" 12 #include <dt-bindings/input/input.h> 15 chassis-type = "tablet"; 17 gpio-keys { 18 compatible = "gpio-keys"; 20 button-home { 21 label = "Home Button"; 24 wakeup-source; [all …]
|
| H A D | t7000-6.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 7 #include <dt-bindings/input/input.h> 9 #include "t7000-common.dtsi" 10 #include "t7000-handheld.dtsi" 13 chassis-type = "handset"; 15 gpio-keys { 16 compatible = "gpio-keys"; 18 button-home { 19 label = "Home Button"; 22 wakeup-source; [all …]
|
| H A D | t7000-mini4.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 9 #include "t7000-common.dtsi" 10 #include "t7000-handheld.dtsi" 11 #include <dt-bindings/input/input.h> 14 chassis-type = "tablet"; 16 gpio-keys { 17 compatible = "gpio-keys"; 19 button-home { 20 label = "Home Button"; 23 wakeup-source; [all …]
|
| H A D | s5l8960x-mini2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 10 #include "s5l8960x-common.dtsi" 11 #include "s5l8960x-opp.dtsi" 12 #include <dt-bindings/input/input.h> 15 chassis-type = "tablet"; 17 gpio-keys { 18 compatible = "gpio-keys"; 20 button-home { 21 label = "Home Button"; 24 wakeup-source; [all …]
|
| H A D | s5l8960x-5s.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 10 #include "s5l8960x-common.dtsi" 11 #include "s5l8960x-opp.dtsi" 12 #include <dt-bindings/input/input.h> 15 chassis-type = "handset"; 17 gpio-keys { 18 compatible = "gpio-keys"; 20 button-home { 21 label = "Home Button"; 24 wakeup-source; [all …]
|
| /linux/drivers/parisc/ |
| H A D | power.c | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * HP PARISC soft power switch driver 5 * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de> 8 * Support of the soft power switch button may be enabled or disabled at 9 * runtime through the "/proc/sys/kernel/power" procfs entry. 28 /* how often should the power button be polled ? */ 31 /* how long does the power button needs to be down until we react ? */ 64 /* wait until the button was pressed for 1 second */ in process_shutdown() 79 /* main power switch task struct */ 82 /* filename in /proc which can be used to enable/disable the power switch */ [all …]
|
| /linux/drivers/platform/x86/intel/ |
| H A D | hid.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Intel HID event & 5 button array driver 12 #include <linux/input/sparse-keymap.h> 21 TABLET_SW_AUTO = -1, 30 "Enable 5 Button Array support. " 31 "If you need this please report this to: platform-driver-x86@vger.kernel.org"); 36 "Enable SW_TABLET_MODE reporting -1:auto 0:off 1:at-first-event 2:at-probe. " 37 "If you need this please report this to: platform-driver-x86@vger.kernel.org"); 64 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */ 65 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */ [all …]
|
| /linux/drivers/soc/loongson/ |
| H A D | loongson2_pm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Loongson-2 PM Support 100 struct input_dev *button; in loongson2_power_button_init() local 102 button = input_allocate_device(); in loongson2_power_button_init() 104 return -ENOMEM; in loongson2_power_button_init() 106 button->name = "Power Button"; in loongson2_power_button_init() 107 button->phys = "pm/button/input0"; in loongson2_power_button_init() 108 button->id.bustype = BUS_HOST; in loongson2_power_button_init() 109 button->dev.parent = NULL; in loongson2_power_button_init() 110 input_set_capability(button, EV_KEY, KEY_POWER); in loongson2_power_button_init() [all …]
|