/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | mediatek,pmic-keys.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/mediatek,pmic-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen Zhong <chen.zhong@mediatek.com> 13 - $ref: input.yaml# 19 by the PMIC that is defined as a Multi-Function Device (MFD). 27 - mediatek,mt6323-keys 28 - mediatek,mt6331-keys 29 - mediatek,mt6357-keys [all …]
|
H A D | azoteq,iqs7222.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 21 - azoteq,iqs7222a 22 - azoteq,iqs7222b 23 - azoteq,iqs7222c 24 - azoteq,iqs7222d 29 irq-gpios: 32 Specifies the GPIO connected to the device's active-low RDY output. [all …]
|
/openbmc/phosphor-buttons/inc/ |
H A D | button_handler.hpp | 45 * There are 3 buttons supported - Power, ID, and Reset. 47 * check for that button on D-Bus before listening for its signals. 62 * @param[in] bus - sdbusplus connection object 68 * @brief The handler for a power button press 72 * @param[in] msg - sdbusplus message from signal 77 * @brief The handler for an ID button press 81 * @param[in] msg - sdbusplus message from signal 86 * @brief The handler for a reset button press 90 * @param[in] msg - sdbusplus message from signal 95 * @brief The handler for a OCP debug card host selector button press [all …]
|
/openbmc/linux/drivers/input/mouse/ |
H A D | trackpoint.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 47 * Mode manipulation 49 #define TP_SET_SOFT_TRANS 0x4E /* Set mode */ 50 #define TP_CANCEL_SOFT_TRANS 0xB9 /* Cancel mode */ 51 #define TP_SET_HARD_TRANS 0x45 /* Mode can only be set */ 67 #define TP_REACH 0x57 /* Backup for Z-axis press */ 70 /* with Z-axis pressed) */ 75 #define TP_THRESH 0x5C /* Minimum value for a Z-axis press */ 76 #define TP_UP_THRESH 0x5A /* Used to generate a 'click' on Z-axis */ 77 #define TP_Z_TIME 0x5E /* How sharp of a press */ [all …]
|
/openbmc/linux/drivers/platform/x86/intel/ |
H A D | vbtn.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/input/sparse-keymap.h> 19 /* Returned when NOT in tablet mode on some HP Stream x360 11 models */ 21 /* When NOT in tablet mode, VGBS returns with the flag 0x40 */ 38 { KE_KEY, 0xC0, { KEY_POWER } }, /* power key press */ 40 { KE_KEY, 0xC2, { KEY_LEFTMETA } }, /* 'Windows' key press */ 42 { KE_KEY, 0xC4, { KEY_VOLUMEUP } }, /* volume-up key press */ 43 { KE_IGNORE, 0xC5, { KEY_VOLUMEUP } }, /* volume-up key release */ 44 { KE_KEY, 0xC6, { KEY_VOLUMEDOWN } }, /* volume-down key press */ 45 { KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } }, /* volume-down key release */ [all …]
|
H A D | hid.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/input/sparse-keymap.h> 20 TABLET_SW_AUTO = -1, 30 "If you need this please report this to: platform-driver-x86@vger.kernel.org"); 35 "Enable SW_TABLET_MODE reporting -1:auto 0:off 1:at-first-event 2:at-probe. " 36 "If you need this please report this to: platform-driver-x86@vger.kernel.org"); 38 /* When NOT in tablet mode, VGBS returns with the flag 0x40 */ 58 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */ 59 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */ 68 /* 13 has two different meanings in the spec -- ignore it. */ [all …]
|
/openbmc/linux/scripts/kconfig/ |
H A D | mconf.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 5 * Introduced single menu mode (show all sub-menus in one large tree). 6 * 2002-11-06 Petr Baudis <pasky@ucw.cz> 27 "--------\n" 29 "Features can either be built-in, modularized, or ignored. Parameters\n" 36 " - - are selected by other feature,\n" 41 "keys and press <Y> to build it in, <M> to make it a module or\n" 42 "<N> to remove it. You may also press the <Space Bar> to cycle\n" 43 "through the available options (i.e. Y->N->M->Y).\n" [all …]
|
H A D | nconf.c | 1 // SPDX-License-Identifier: GPL-2.0 20 "------------\n" 27 " of <?> <h>, or if in a data entry window then press <F1>.\n" 31 "------------\n" 33 "build. Kernel features can either be built-in, modularized, or removed.\n" 40 " - - are selected by another feature\n" 46 "listed below and press <y> to build it in, <m> to make it a module or\n" 47 "<n> to remove it. You may press the <Space> key to cycle through the\n" 50 "A trailing \"--->\" designates a submenu, a trailing \"----\" an\n" 54 "----------------------------------------------------------------------\n" [all …]
|
/openbmc/phosphor-buttons/src/ |
H A D | button_handler.cpp | 7 #include <phosphor-logging/lg2.hpp> 26 {"chassis-on", Chassis::Transition::On}, 27 {"chassis-off", Chassis::Transition::Off}, 28 {"chassis-cycle", Chassis::Transition::PowerCycle}}; 53 /* So far, there are two modes for multi-host power control in Handler() 54 - host select button mode, e.g.: Yosemite V2 in Handler() 58 - multi power button mode, e.g.: Greatlakes in Handler() 75 if (gpioConfig.contains("multi-action")) in Handler() 78 const auto& multiActCfg = gpioConfig["multi-action"]; in Handler() 85 mapEntry[duration] = chassisPwrCtl->second; in Handler() [all …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | mconf.c | 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 5 * Introduced single menu mode (show all sub-menus in one large tree). 6 * 2002-11-06 Petr Baudis <pasky@ucw.cz> 27 "--------\n" 29 "Features can either be built-in, modularized, or ignored. Parameters\n" 36 " - - are selected by other feature,\n" 41 "keys and press <Y> to build it in, <M> to make it a module or\n" 42 "<N> to remove it. You may also press the <Space Bar> to cycle\n" 43 "through the available options (i.e. Y->N->M->Y).\n" 48 "----------\n" [all …]
|
H A D | nconf.c | 20 "------------\n" 27 " of <?> <h>, or if in a data entry window then press <F1>.\n" 31 "------------\n" 33 "build. Kernel features can either be built-in, modularized, or removed.\n" 40 " - - are selected by another feature\n" 46 "listed below and press <y> to build it in, <m> to make it a module or\n" 47 "<n> to remove it. You may press the <Space> key to cycle through the\n" 50 "A trailing \"--->\" designates a submenu, a trailing \"----\" an\n" 54 "----------------------------------------------------------------------\n" 66 "Start incremental, case-insensitive search for STRING in menu entries,\n" [all …]
|
/openbmc/u-boot/cmd/ |
H A D | load.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2000-2004 8 * Serial up- and download support 21 static ulong load_serial_ymodem(ulong offset, int mode); 25 static ulong load_serial(long offset); 35 /* -------------------------------------------------------------------- */ 41 long offset = 0; in do_load_serial() 49 load_baudrate = current_baudrate = gd->baudrate; in do_load_serial() 70 printf("## Switch baudrate to %d bps and press ENTER ...\n", in do_load_serial() 73 gd->baudrate = load_baudrate; in do_load_serial() [all …]
|
/openbmc/linux/Documentation/admin-guide/laptops/ |
H A D | thinkpad-acpi.rst | 9 - Borislav Deianov <borislav@users.sf.net> 10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br> 12 http://ibm-acpi.sf.net/ 19 This driver used to be named ibm-acpi until kernel 2.6.21 and release 20 0.13-20070314. It used to be in the drivers/acpi tree, but it was 21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel 25 The driver is named "thinkpad-acpi". In some places, like module 29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too 30 long due to length limitations on some Linux kernel versions. 33 ------ [all …]
|
/openbmc/linux/drivers/platform/surface/ |
H A D | surfacepro3_button.c | 1 // SPDX-License-Identifier: GPL-2.0-only 70 unsigned long pushed; 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() 111 dev_warn_once(&device->dev, "Tablet mode is not supported\n"); in surface_button_notify() 114 dev_info_ratelimited(&device->dev, in surface_button_notify() 118 input = button->input; in surface_button_notify() 122 pm_wakeup_dev_event(&device->dev, 0, button->suspended); in surface_button_notify() [all …]
|
/openbmc/linux/arch/arm/mach-lpc32xx/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arch/arm/mach-lpc32xx/pm.c 15 * direct-run, and halt modes. When switching between halt and run modes, 16 * the CPU transistions through direct-run mode. For Linux, direct-run 17 * mode is not used in normal operation. Halt mode is used when the 20 * Run mode: 23 * the HCLK_PLL rate. Linux runs in this mode. 25 * Direct-run mode: 28 * source or the frequency of the main oscillator. In this mode, the 31 * Halt mode: [all …]
|
/openbmc/linux/drivers/iio/pressure/ |
H A D | mprls0025pa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MPRLS0025PA - Honeywell MicroPressure pressure sensor series driver 5 * Copyright (c) Andreas Klinger <ak@it-klinger.de> 8 * https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/ 9 * products/sensors/pressure-sensors/board-mount-pressure-sensors/ 10 * micropressure-mpr-series/documents/ 11 * sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf 13 * 7-bit I2C default slave address: 0x18 46 * pressure = (press_cnt - outputmin) * scale + pmin 48 * * pressure - measured pressure in Pascal [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wcd-mbhc-v2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. 14 #include "wcd-mbhc-v2.h" 53 /* Delayed work to report long button press */ 68 unsigned long event_state; 69 unsigned long jiffies_atreport; 72 /* Holds type of Headset - Mono/Stereo */ 74 /* Holds mbhc detection method - ADC/Legacy */ 81 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field() 84 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field() [all …]
|
/openbmc/linux/Documentation/input/devices/ |
H A D | atarikbd.rst | 12 provides a convenient connection point for a mouse and switch-type joysticks. 13 The ikbd processor also maintains a time-of-day clock with one second 18 The ikbd communicates with the main processor over a high speed bi-directional 28 keyboard scan codes for each key press and release. The key scan make (key 41 0xF8-0xFB relative mouse position records (lsbs determined by 43 0xFC time-of-day 49 The two shift keys return different scan codes in this mode. The ENTER key 67 --------------------------- 69 In relative position mode, the ikbd will return relative mouse position 81 (regardless of keyboard mode):: [all …]
|
/openbmc/linux/Documentation/core-api/ |
H A D | debugging-via-ohci1394.rst | 2 Using physical DMA provided by OHCI-1394 FireWire controllers for debugging 6 ------------ 9 to the OHCI-1394 specification which defines the controller to be a PCI 12 PCI-Bus master DMA after applying filters defined by the OHCI-1394 driver. 15 ask the OHCI-1394 controller to perform read and write requests on 28 more common hardware such as x86, x86-64 and PowerPC. 34 Together with a early initialization of the OHCI-1394 controller for debugging, 35 this facility proved most useful for examining long debugs logs in the printk 41 ------- 43 The firewire-ohci driver in drivers/firewire uses filtered physical [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-saitek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Fixes the HID report descriptor by removing a non-existent axis and 7 * clearing the constant bit on the input reports for buttons and d-pad. 8 * (This module is based on "hid-ortek".) 12 * Fixes the mode button which cycles through three constantly pressed 13 * buttons. All three press events are mapped to one button and the 25 #include "hid-ids.h" 32 unsigned long quirks; 33 int mode; member 39 unsigned long quirks = id->driver_data; in saitek_probe() [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | spkguide.txt | 16 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A 25 http://linux-speakup.org/. Speakup is a set of patches to the standard 72 acntsa -- Accent SA 73 acntpc -- Accent PC 74 apollo -- Apollo 75 audptr -- Audapter 76 bns -- Braille 'n Speak 77 dectlk -- DecTalk Express (old and new, db9 serial only) 78 decext -- DecTalk (old) External 79 dtlk -- DoubleTalk PC [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | iqs7222.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 116 [IQS7222_REG_GRP_CYCLE] = "cycle-%d", 117 [IQS7222_REG_GRP_CHAN] = "channel-%d", 118 [IQS7222_REG_GRP_SLDR] = "slider-%d", 120 [IQS7222_REG_GRP_GPIO] = "gpio-%d", 150 .name = "event-prox", 155 .name = "event-touch", 162 { .name = "event-press", }, 164 .name = "event-tap", 171 .name = "event-swipe-pos", [all …]
|
/openbmc/linux/drivers/media/pci/saa7134/ |
H A D | saa7134-input.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #include "saa7134-reg.h" 36 printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \ 43 /* -------------------- GPIO generic keycode builder -------------------- */ 47 struct saa7134_card_ir *ir = dev->remote; in build_key() 51 switch (dev->board) { in build_key() 62 if (ir->polling) { in build_key() 63 if (ir->last_gpio == gpio) in build_key() 65 ir->last_gpio = gpio; in build_key() 68 data = ir_extract_bits(gpio, ir->mask_keycode); in build_key() [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | mtk-pmic-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 56 u32 rst_lprst_mask; /* Long-press reset timeout bitmask */ 150 kregs_home = keys->keys[MTK_PMIC_HOMEKEY_INDEX].regs; in mtk_pmic_keys_lp_reset_setup() 151 kregs_pwr = keys->keys[MTK_PMIC_PWRKEY_INDEX].regs; in mtk_pmic_keys_lp_reset_setup() 153 error = of_property_read_u32(keys->dev->of_node, "power-off-time-sec", in mtk_pmic_keys_lp_reset_setup() 158 mask = regs->rst_lprst_mask; in mtk_pmic_keys_lp_reset_setup() 159 value = long_press_debounce << (ffs(regs->rst_lprst_mask) - 1); in mtk_pmic_keys_lp_reset_setup() 161 error = of_property_read_u32(keys->dev->of_node, in mtk_pmic_keys_lp_reset_setup() 162 "mediatek,long-press-mode", in mtk_pmic_keys_lp_reset_setup() 169 value |= kregs_home->rst_en_mask; in mtk_pmic_keys_lp_reset_setup() [all …]
|
/openbmc/linux/tools/testing/selftests/timers/ |
H A D | leap-a-day.c | 9 * kernel's leap-second behavior, as well as how well applications 10 * handle the leap-second discontinuity. 12 * Usage: leap-a-day [-s] [-i <num>] 15 * -s: Each iteration, set the date to 10 seconds before midnight GMT. 21 * -i: Number of iterations to run (default: infinite) 27 * $ gcc leap-a-day.c -o leap-a-day -lrt 71 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() 75 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 103 * -stable), had an issue with the state machine in clear_time_state() 123 /* Make sure we cleanup on ctrl-c */ [all …]
|