-
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.
Prepare input updates for 6.8 merge window.
- Loading branch information
Showing
56 changed files
with
1,626 additions
and
545 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml
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,63 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/input/adafruit,seesaw-gamepad.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Adafruit Mini I2C Gamepad with seesaw | ||
|
||
maintainers: | ||
- Anshul Dalal <anshulusr@gmail.com> | ||
|
||
description: | | ||
Adafruit Mini I2C Gamepad | ||
+-----------------------------+ | ||
| ___ | | ||
| / \ (X) | | ||
| | S | __ __ (Y) (A) | | ||
| \___/ |ST| |SE| (B) | | ||
| | | ||
+-----------------------------+ | ||
S -> 10-bit precision bidirectional analog joystick | ||
ST -> Start | ||
SE -> Select | ||
X, A, B, Y -> Digital action buttons | ||
Datasheet: https://cdn-learn.adafruit.com/downloads/pdf/gamepad-qt.pdf | ||
Product page: https://www.adafruit.com/product/5743 | ||
Arduino Driver: https://github.com/adafruit/Adafruit_Seesaw | ||
properties: | ||
compatible: | ||
const: adafruit,seesaw-gamepad | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
description: | ||
The gamepad's IRQ pin triggers a rising edge if interrupts are enabled. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
joystick@50 { | ||
compatible = "adafruit,seesaw-gamepad"; | ||
interrupts = <18 IRQ_TYPE_EDGE_RISING>; | ||
reg = <0x50>; | ||
}; | ||
}; |
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,68 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/input/gpio-mouse.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: GPIO attached mouse | ||
|
||
description: | | ||
This simply uses standard GPIO handles to define a simple mouse connected | ||
to 5-7 GPIO lines. | ||
maintainers: | ||
- Anshul Dalal <anshulusr@gmail.com> | ||
|
||
properties: | ||
compatible: | ||
const: gpio-mouse | ||
|
||
scan-interval-ms: | ||
maxItems: 1 | ||
|
||
up-gpios: | ||
maxItems: 1 | ||
|
||
down-gpios: | ||
maxItems: 1 | ||
|
||
left-gpios: | ||
maxItems: 1 | ||
|
||
right-gpios: | ||
maxItems: 1 | ||
|
||
button-left-gpios: | ||
maxItems: 1 | ||
|
||
button-middle-gpios: | ||
maxItems: 1 | ||
|
||
button-right-gpios: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- scan-interval-ms | ||
- up-gpios | ||
- down-gpios | ||
- left-gpios | ||
- right-gpios | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
gpio-mouse { | ||
compatible = "gpio-mouse"; | ||
scan-interval-ms = <50>; | ||
up-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | ||
down-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||
left-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; | ||
right-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; | ||
button-left-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; | ||
button-middle-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; | ||
button-right-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; | ||
}; |
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.