forked from grate-driver/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'input-for-v5.20-rc0' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/dtor/input Pull input updates from Dmitry Torokhov: - changes to input core to properly queue synthetic events (such as autorepeat) and to release multitouch contacts when an input device is inhibited or suspended - reworked quirk handling in i8042 driver that consolidates multiple DMI tables into one and adds several quirks for TUXEDO line of laptops - update to mt6779 keypad to better reflect organization of the hardware - changes to mtk-pmic-keys driver preparing it to handle more variants - facelift of adp5588-keys driver - improvements to iqs7222 driver - adjustments to various DT binding documents for input devices - other assorted driver fixes. * tag 'input-for-v5.20-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (54 commits) Input: adc-joystick - fix ordering in adc_joystick_probe() dt-bindings: input: ariel-pwrbutton: use spi-peripheral-props.yaml Input: deactivate MT slots when inhibiting or suspending devices Input: properly queue synthetic events dt-bindings: input: iqs7222: Use central 'linux,code' definition Input: i8042 - add dritek quirk for Acer Aspire One AO532 dt-bindings: input: gpio-keys: accept also interrupt-extended dt-bindings: input: gpio-keys: reference input.yaml and document properties dt-bindings: input: gpio-keys: enforce node names to match all properties dt-bindings: input: Convert adc-keys to DT schema dt-bindings: input: Centralize 'linux,input-type' definition dt-bindings: input: Use common 'linux,keycodes' definition dt-bindings: input: Centralize 'linux,code' definition dt-bindings: input: Increase maximum keycode value to 0x2ff Input: mt6779-keypad - implement row/column selection Input: mt6779-keypad - match hardware matrix organization Input: i8042 - add additional TUXEDO devices to i8042 quirk tables Input: goodix - switch use of acpi_gpio_get_*_resource() APIs Input: i8042 - add TUXEDO devices to i8042 quirk tables Input: i8042 - add debug output for quirks ...
- Loading branch information
Showing
34 changed files
with
1,709 additions
and
1,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/input/adc-keys.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: ADC attached resistor ladder buttons | ||
|
||
maintainers: | ||
- Alexandre Belloni <alexandre.belloni@bootlin.com> | ||
|
||
allOf: | ||
- $ref: input.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: adc-keys | ||
|
||
io-channels: | ||
maxItems: 1 | ||
|
||
io-channel-names: | ||
const: buttons | ||
|
||
keyup-threshold-microvolt: | ||
description: | ||
Voltage above or equal to which all the keys are considered up. | ||
|
||
poll-interval: true | ||
autorepeat: true | ||
|
||
patternProperties: | ||
'^button-': | ||
type: object | ||
$ref: input.yaml# | ||
additionalProperties: false | ||
description: | ||
Each button (key) is represented as a sub-node. | ||
|
||
properties: | ||
label: true | ||
|
||
linux,code: true | ||
|
||
press-threshold-microvolt: | ||
description: | ||
Voltage above or equal to which this key is considered pressed. No | ||
two values of press-threshold-microvolt may be the same. All values | ||
of press-threshold-microvolt must be less than | ||
keyup-threshold-microvolt. | ||
|
||
required: | ||
- linux,code | ||
- press-threshold-microvolt | ||
|
||
required: | ||
- compatible | ||
- io-channels | ||
- io-channel-names | ||
- keyup-threshold-microvolt | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/input/input.h> | ||
// +--------------------------------+------------------------+ | ||
// | 2.000.000 <= value | no key pressed | | ||
// +--------------------------------+------------------------+ | ||
// | 1.500.000 <= value < 2.000.000 | KEY_VOLUMEUP pressed | | ||
// +--------------------------------+------------------------+ | ||
// | 1.000.000 <= value < 1.500.000 | KEY_VOLUMEDOWN pressed | | ||
// +--------------------------------+------------------------+ | ||
// | 500.000 <= value < 1.000.000 | KEY_ENTER pressed | | ||
// +--------------------------------+------------------------+ | ||
// | value < 500.000 | no key pressed | | ||
// +--------------------------------+------------------------+ | ||
adc-keys { | ||
compatible = "adc-keys"; | ||
io-channels = <&lradc 0>; | ||
io-channel-names = "buttons"; | ||
keyup-threshold-microvolt = <2000000>; | ||
button-up { | ||
label = "Volume Up"; | ||
linux,code = <KEY_VOLUMEUP>; | ||
press-threshold-microvolt = <1500000>; | ||
}; | ||
button-down { | ||
label = "Volume Down"; | ||
linux,code = <KEY_VOLUMEDOWN>; | ||
press-threshold-microvolt = <1000000>; | ||
}; | ||
button-enter { | ||
label = "Enter"; | ||
linux,code = <KEY_ENTER>; | ||
press-threshold-microvolt = <500000>; | ||
}; | ||
}; | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.