Skip to content

Commit bf4ed21

Browse files
committed
Merge branch 'next' into for-linus
Prepare input updates for 6.5 merge window.
2 parents feee70f + 8c9cce9 commit bf4ed21

File tree

124 files changed

+901
-485
lines changed

Some content is hidden

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

124 files changed

+901
-485
lines changed

Documentation/devicetree/bindings/input/atmel,maxtouch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ description: |
1414
Atmel maXTouch touchscreen or touchpads such as the mXT244
1515
and similar devices.
1616
17+
allOf:
18+
- $ref: input.yaml#
19+
1720
properties:
1821
compatible:
1922
const: atmel,maxtouch
@@ -60,6 +63,10 @@ properties:
6063
or experiment to determine which bit corresponds to which input. Use
6164
KEY_RESERVED for unused padding values.
6265
66+
linux,keycodes:
67+
minItems: 1
68+
maxItems: 8
69+
6370
atmel,wakeup-method:
6471
$ref: /schemas/types.yaml#/definitions/uint32
6572
description: |

Documentation/devicetree/bindings/input/cypress,cyapa.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/cypress,cyapa.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cypress All Points Addressable (APA) I2C Touchpad / Trackpad
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: cypress,cyapa
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
maxItems: 1
21+
22+
wakeup-source: true
23+
24+
vcc-supply:
25+
description: 3.3V power
26+
27+
required:
28+
- compatible
29+
- reg
30+
- interrupts
31+
32+
additionalProperties: false
33+
34+
examples:
35+
- |
36+
#include <dt-bindings/interrupt-controller/irq.h>
37+
38+
i2c {
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
trackpad@67 {
43+
reg = <0x67>;
44+
compatible = "cypress,cyapa";
45+
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
46+
interrupt-parent = <&gpx1>;
47+
wakeup-source;
48+
};
49+
};

Documentation/devicetree/bindings/input/pwm-vibrator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ properties:
3232
minItems: 1
3333
maxItems: 2
3434

35+
enable-gpios: true
36+
3537
vcc-supply: true
3638

3739
direction-duty-cycle-ns:

Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ properties:
4040
linux,keycodes:
4141
description: EV_ABS specific event code generated by the axis.
4242

43+
wakeup-source: true
44+
4345
patternProperties:
4446
"^button@[0-9]+$":
4547
type: object

Documentation/input/devices/xpad.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ xpad - Linux USB driver for Xbox compatible controllers
44

55
This driver exposes all first-party and third-party Xbox compatible
66
controllers. It has a long history and has enjoyed considerable usage
7-
as Window's xinput library caused most PC games to focus on Xbox
7+
as Windows' xinput library caused most PC games to focus on Xbox
88
controller compatibility.
99

1010
Due to backwards compatibility all buttons are reported as digital.
11-
This only effects Original Xbox controllers. All later controller models
11+
This only affects Original Xbox controllers. All later controller models
1212
have only digital face buttons.
1313

1414
Rumble is supported on some models of Xbox 360 controllers but not of
1515
Original Xbox controllers nor on Xbox One controllers. As of writing
16-
the Xbox One's rumble protocol has not been reverse engineered but in
16+
the Xbox One's rumble protocol has not been reverse-engineered but in
1717
the future could be supported.
1818

1919

@@ -82,7 +82,7 @@ I've tested this with Stepmania, and it works quite well.
8282
Unknown Controllers
8383
-------------------
8484

85-
If you have an unknown xbox controller, it should work just fine with
85+
If you have an unknown Xbox controller, it should work just fine with
8686
the default settings.
8787

8888
HOWEVER if you have an unknown dance pad not listed below, it will not
@@ -123,7 +123,7 @@ can be found on the net ([1]_, [2]_, [3]_).
123123

124124
Thanks to the trip splitter found on the cable you don't even need to cut the
125125
original one. You can buy an extension cable and cut that instead. That way,
126-
you can still use the controller with your X-Box, if you have one ;)
126+
you can still use the controller with your Xbox, if you have one ;)
127127

128128

129129

Documentation/input/gamepad.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Gamepads report the following events:
184184

185185
Many pads also have a third button which is branded or has a special symbol
186186
and meaning. Such buttons are mapped as BTN_MODE. Examples are the Nintendo
187-
"HOME" button, the XBox "X"-button or Sony "PS" button.
187+
"HOME" button, the Xbox "X" button or the Sony PlayStation "PS" button.
188188

189189
- Rumble:
190190

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2575,9 +2575,9 @@ F: arch/arm/boot/dts/qcom-*.dtsi
25752575
F: arch/arm/configs/qcom_defconfig
25762576
F: arch/arm/mach-qcom/
25772577
F: arch/arm64/boot/dts/qcom/
2578+
F: drivers/*/*/pm8???-*
25782579
F: drivers/*/*/qcom*
25792580
F: drivers/*/*/qcom/
2580-
F: drivers/*/pm8???-*
25812581
F: drivers/*/qcom*
25822582
F: drivers/*/qcom/
25832583
F: drivers/bluetooth/btqcomsmd.c

drivers/input/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ config INPUT_EVBUG
168168

169169
config INPUT_KUNIT_TEST
170170
tristate "KUnit tests for Input" if !KUNIT_ALL_TESTS
171-
depends on INPUT && KUNIT=y
171+
depends on INPUT && KUNIT
172172
default KUNIT_ALL_TESTS
173173
help
174174
Say Y here if you want to build the KUnit tests for the input

drivers/input/gameport/gameport.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include <linux/stddef.h>
1313
#include <linux/module.h>
14+
#include <linux/io.h>
1415
#include <linux/ioport.h>
1516
#include <linux/init.h>
1617
#include <linux/gameport.h>
@@ -21,8 +22,6 @@
2122
#include <linux/mutex.h>
2223
#include <linux/timekeeping.h>
2324

24-
/*#include <asm/io.h>*/
25-
2625
MODULE_AUTHOR("Vojtech Pavlik <[email protected]>");
2726
MODULE_DESCRIPTION("Generic gameport layer");
2827
MODULE_LICENSE("GPL");
@@ -518,6 +517,16 @@ void gameport_set_phys(struct gameport *gameport, const char *fmt, ...)
518517
}
519518
EXPORT_SYMBOL(gameport_set_phys);
520519

520+
static void gameport_default_trigger(struct gameport *gameport)
521+
{
522+
outb(0xff, gameport->io);
523+
}
524+
525+
static unsigned char gameport_default_read(struct gameport *gameport)
526+
{
527+
return inb(gameport->io);
528+
}
529+
521530
/*
522531
* Prepare gameport port for registration.
523532
*/
@@ -536,6 +545,11 @@ static void gameport_init_port(struct gameport *gameport)
536545
if (gameport->parent)
537546
gameport->dev.parent = &gameport->parent->dev;
538547

548+
if (!gameport->trigger)
549+
gameport->trigger = gameport_default_trigger;
550+
if (!gameport->read)
551+
gameport->read = gameport_default_read;
552+
539553
INIT_LIST_HEAD(&gameport->node);
540554
spin_lock_init(&gameport->timer_lock);
541555
timer_setup(&gameport->poll_timer, gameport_run_poll_handler, 0);

0 commit comments

Comments
 (0)