Skip to content

Commit 60e2bf7

Browse files
committed
Merge tag 'input-for-v6.3-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input updates from Dmitry Torokhov: - a set of tweaks to iqs269a touch controller driver - a fix for ads7846 driver to properly handle 7845 chip - cap11xx driver will support cap1203, cap1293 and cap1298 models - xpad driver will support 8BitDo Pro 2 Wired Controller - input drivers have been switched to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() - other miscellaneous fixes and tweaks * tag 'input-for-v6.3-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (113 commits) dt-bindings: input: iqs626a: Redefine trackpad property types Input: iqs626a - drop unused device node references dt-bindings: input: touchscreen: st,stmfts: convert to dtschema Input: cyttsp5 - fix bitmask for touch buttons Input: exc3000 - properly stop timer on shutdown Input: synaptics-rmi4 - fix SPI device ID Input: cap11xx - add support for cap1203, cap1293 and cap1298 dt-bindings: input: microchip,cap11xx: add cap1203, cap1293 and cap1298 Input: pmic8xxx-keypad - fix a Kconfig spelling mistake & hyphenation Input: edt-ft5x06 - fix typo in a comment Input: tegra-kbc - use devm_platform_get_and_ioremap_resource() Input: st-keyscan - use devm_platform_get_and_ioremap_resource() Input: spear-keyboard - use devm_platform_get_and_ioremap_resource() Input: olpc_apsp - use devm_platform_get_and_ioremap_resource() Input: arc_ps2 - use devm_platform_get_and_ioremap_resource() Input: apbps2 - use devm_platform_get_and_ioremap_resource() Input: altera_ps2 - use devm_platform_get_and_ioremap_resource() Input: ads7846 - don't check penirq immediately for 7845 Input: ads7846 - always set last command to PWRDOWN Input: ads7846 - don't report pressure for ads7845 ...
2 parents 116b411 + 7ae9fb1 commit 60e2bf7

File tree

116 files changed

+810
-883
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+810
-883
lines changed

Documentation/devicetree/bindings/input/iqs626a.yaml

Lines changed: 67 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -564,16 +564,6 @@ patternProperties:
564564
2: Partial
565565
3: Full
566566
567-
azoteq,ati-base:
568-
$ref: /schemas/types.yaml#/definitions/uint32-array
569-
minItems: 6
570-
maxItems: 9
571-
items:
572-
minimum: 45
573-
maximum: 300
574-
default: [45, 45, 45, 45, 45, 45, 45, 45, 45]
575-
description: Specifies each individual trackpad channel's ATI base.
576-
577567
azoteq,ati-target:
578568
$ref: /schemas/types.yaml#/definitions/uint32
579569
multipleOf: 32
@@ -620,17 +610,6 @@ patternProperties:
620610
description:
621611
Tightens the ATI band from 1/8 to 1/16 of the desired target.
622612

623-
azoteq,thresh:
624-
$ref: /schemas/types.yaml#/definitions/uint32-array
625-
minItems: 6
626-
maxItems: 9
627-
items:
628-
minimum: 0
629-
maximum: 255
630-
default: [0, 0, 0, 0, 0, 0, 0, 0, 0]
631-
description:
632-
Specifies each individual trackpad channel's touch threshold.
633-
634613
azoteq,hyst:
635614
$ref: /schemas/types.yaml#/definitions/uint32
636615
minimum: 0
@@ -720,6 +699,28 @@ patternProperties:
720699
Specifies the number of points across which an axial gesture must
721700
travel in order to be interpreted as a flick or swipe.
722701

702+
patternProperties:
703+
"^channel-[0-8]$":
704+
type: object
705+
description: Represents a single trackpad channel.
706+
707+
properties:
708+
azoteq,thresh:
709+
$ref: /schemas/types.yaml#/definitions/uint32
710+
minimum: 0
711+
maximum: 255
712+
default: 0
713+
description: Specifies the threshold for the channel.
714+
715+
azoteq,ati-base:
716+
$ref: /schemas/types.yaml#/definitions/uint32
717+
minimum: 45
718+
maximum: 300
719+
default: 45
720+
description: Specifies the channel's ATI base.
721+
722+
additionalProperties: false
723+
723724
dependencies:
724725
azoteq,gesture-swipe: ["linux,keycodes"]
725726
azoteq,timeout-tap-ms: ["linux,keycodes"]
@@ -780,14 +781,8 @@ examples:
780781
azoteq,filt-str-lp-cnt = <1>;
781782
782783
azoteq,hyst = <4>;
783-
azoteq,thresh = <35>, <40>, <40>,
784-
<38>, <33>, <38>,
785-
<35>, <35>, <35>;
786784
787785
azoteq,ati-mode = <3>;
788-
azoteq,ati-base = <195>, <195>, <195>,
789-
<195>, <195>, <195>,
790-
<195>, <195>, <195>;
791786
azoteq,ati-target = <512>;
792787
793788
azoteq,proj-bias = <1>;
@@ -804,6 +799,51 @@ examples:
804799
azoteq,timeout-swipe-ms = <800>;
805800
azoteq,timeout-tap-ms = <400>;
806801
azoteq,thresh-swipe = <40>;
802+
803+
channel-0 {
804+
azoteq,thresh = <35>;
805+
azoteq,ati-base = <195>;
806+
};
807+
808+
channel-1 {
809+
azoteq,thresh = <40>;
810+
azoteq,ati-base = <195>;
811+
};
812+
813+
channel-2 {
814+
azoteq,thresh = <40>;
815+
azoteq,ati-base = <195>;
816+
};
817+
818+
channel-3 {
819+
azoteq,thresh = <38>;
820+
azoteq,ati-base = <195>;
821+
};
822+
823+
channel-4 {
824+
azoteq,thresh = <33>;
825+
azoteq,ati-base = <195>;
826+
};
827+
828+
channel-5 {
829+
azoteq,thresh = <38>;
830+
azoteq,ati-base = <195>;
831+
};
832+
833+
channel-6 {
834+
azoteq,thresh = <35>;
835+
azoteq,ati-base = <195>;
836+
};
837+
838+
channel-7 {
839+
azoteq,thresh = <35>;
840+
azoteq,ati-base = <195>;
841+
};
842+
843+
channel-8 {
844+
azoteq,thresh = <35>;
845+
azoteq,ati-base = <195>;
846+
};
807847
};
808848
809849
/*

Documentation/devicetree/bindings/input/microchip,cap11xx.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ properties:
1919
- microchip,cap1106
2020
- microchip,cap1126
2121
- microchip,cap1188
22+
- microchip,cap1203
2223
- microchip,cap1206
24+
- microchip,cap1293
25+
- microchip,cap1298
2326

2427
reg:
2528
maxItems: 1

Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/touchscreen/st,stmfts.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ST-Microelectronics FingerTip touchscreen controller
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
12+
description:
13+
The ST-Microelectronics FingerTip device provides a basic touchscreen
14+
functionality. Along with it the user can enable the touchkey which can work
15+
as a basic HOME and BACK key for phones.
16+
17+
allOf:
18+
- $ref: touchscreen.yaml#
19+
20+
properties:
21+
compatible:
22+
const: st,stmfts
23+
24+
reg:
25+
maxItems: 1
26+
27+
avdd-supply:
28+
description: Analogic power supply
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
ledvdd-supply:
34+
description: Power supply to the touch key leds
35+
36+
touch-key-connected:
37+
type: boolean
38+
description: The touchkey feature is connected
39+
40+
vdd-supply:
41+
description: Power supply
42+
43+
required:
44+
- compatible
45+
- reg
46+
- avdd-supply
47+
- interrupts
48+
- vdd-supply
49+
50+
unevaluatedProperties: false
51+
52+
examples:
53+
- |
54+
#include <dt-bindings/interrupt-controller/irq.h>
55+
56+
i2c {
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
60+
touchscreen@49 {
61+
compatible = "st,stmfts";
62+
reg = <0x49>;
63+
interrupt-parent = <&gpa1>;
64+
interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
65+
touchscreen-size-x = <1599>;
66+
touchscreen-size-y = <2559>;
67+
touch-key-connected;
68+
avdd-supply = <&ldo30_reg>;
69+
vdd-supply = <&ldo31_reg>;
70+
ledvdd-supply = <&ldo33_reg>;
71+
};
72+
};

drivers/input/input.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/proc_fs.h>
2020
#include <linux/sched.h>
2121
#include <linux/seq_file.h>
22+
#include <linux/pm.h>
2223
#include <linux/poll.h>
2324
#include <linux/device.h>
2425
#include <linux/kstrtox.h>
@@ -1828,7 +1829,6 @@ static int input_uninhibit_device(struct input_dev *dev)
18281829
return ret;
18291830
}
18301831

1831-
#ifdef CONFIG_PM_SLEEP
18321832
static int input_dev_suspend(struct device *dev)
18331833
{
18341834
struct input_dev *input_dev = to_input_dev(dev);
@@ -1903,15 +1903,12 @@ static const struct dev_pm_ops input_dev_pm_ops = {
19031903
.poweroff = input_dev_poweroff,
19041904
.restore = input_dev_resume,
19051905
};
1906-
#endif /* CONFIG_PM */
19071906

19081907
static const struct device_type input_dev_type = {
19091908
.groups = input_dev_attr_groups,
19101909
.release = input_dev_release,
19111910
.uevent = input_dev_uevent,
1912-
#ifdef CONFIG_PM_SLEEP
1913-
.pm = &input_dev_pm_ops,
1914-
#endif
1911+
.pm = pm_sleep_ptr(&input_dev_pm_ops),
19151912
};
19161913

19171914
static char *input_devnode(const struct device *dev, umode_t *mode)

drivers/input/joystick/xpad.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ static const struct xpad_device {
359359
{ 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
360360
{ 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
361361
{ 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
362+
{ 0x2dc8, 0x3106, "8BitDo Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
362363
{ 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 },
363364
{ 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 },
364365
{ 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 },
@@ -492,6 +493,7 @@ static const struct usb_device_id xpad_table[] = {
492493
XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */
493494
XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
494495
XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */
496+
XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller */
495497
XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller for Xbox */
496498
XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */
497499
XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */

drivers/input/keyboard/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ config KEYBOARD_PMIC8XXX
557557
help
558558
Say Y here if you want to enable the driver for the PMIC8XXX
559559
keypad provided as a reference design from Qualcomm. This is intended
560-
to support upto 18x8 matrix based keypad design.
560+
to support up to 18x8 matrix-based keypad design.
561561

562562
To compile this driver as a module, choose M here: the module will
563563
be called pmic8xxx-keypad.

drivers/input/keyboard/applespi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ static int applespi_poweroff_late(struct device *dev)
18761876
return 0;
18771877
}
18781878

1879-
static int __maybe_unused applespi_suspend(struct device *dev)
1879+
static int applespi_suspend(struct device *dev)
18801880
{
18811881
struct spi_device *spi = to_spi_device(dev);
18821882
struct applespi_data *applespi = spi_get_drvdata(spi);
@@ -1903,7 +1903,7 @@ static int __maybe_unused applespi_suspend(struct device *dev)
19031903
return 0;
19041904
}
19051905

1906-
static int __maybe_unused applespi_resume(struct device *dev)
1906+
static int applespi_resume(struct device *dev)
19071907
{
19081908
struct spi_device *spi = to_spi_device(dev);
19091909
struct applespi_data *applespi = spi_get_drvdata(spi);
@@ -1947,15 +1947,15 @@ static const struct acpi_device_id applespi_acpi_match[] = {
19471947
MODULE_DEVICE_TABLE(acpi, applespi_acpi_match);
19481948

19491949
static const struct dev_pm_ops applespi_pm_ops = {
1950-
SET_SYSTEM_SLEEP_PM_OPS(applespi_suspend, applespi_resume)
1951-
.poweroff_late = applespi_poweroff_late,
1950+
SYSTEM_SLEEP_PM_OPS(applespi_suspend, applespi_resume)
1951+
.poweroff_late = pm_sleep_ptr(applespi_poweroff_late),
19521952
};
19531953

19541954
static struct spi_driver applespi_driver = {
19551955
.driver = {
19561956
.name = "applespi",
19571957
.acpi_match_table = applespi_acpi_match,
1958-
.pm = &applespi_pm_ops,
1958+
.pm = pm_sleep_ptr(&applespi_pm_ops),
19591959
},
19601960
.probe = applespi_probe,
19611961
.remove = applespi_remove,

0 commit comments

Comments
 (0)