forked from torvalds/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 branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/dtor/input Pull input updates from Dmitry Torokhov: - a new driver for SparkFun Qwiic Joystick - pm8941-pwrkey driver now supports PMK8350 - a bunch of assorted driver fixes * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (44 commits) Input: joydev - prevent use of not validated data in JSIOCSBTNMAP ioctl Input: hideep - fix the uninitialized use in hideep_nvm_unlock() Input: trackpoint - use kobj_to_dev() Input: atkbd - use kobj_to_dev() Input: tsc200x-core - use kobj_to_dev() Input: ims-pcu - use kobj_to_dev() Input: cros_ec_keyb - use kobj_to_dev() API dt-bindings: input: touchscreen: st1232: Convert to json-schema Input: i8042 - fix typos in comments Input: add SparkFun Qwiic Joystick driver dt-bindings: Add vendor prefix and bindings for Qwiic Joystick Input: cy8ctmg110_ts - switch to using gpiod API Input: cy8ctmg110_ts - switch to using managed resources Input: cy8ctmg110_ts - use endian helpers when converting data on wire Input: cy8ctmg110_ts - let I2C core configure wake interrupt Input: cy8ctmg110_ts - do not hardcode as wakeup source Input: cy8ctmg110_ts - do not hard code interrupt trigger Input: cy8ctmg110_ts - rely on platform code to supply interrupt Input: resistive-adc-touch - fix uninitialized variable 'press' Input: pm8941-pwrkey - add support for PMK8350 PON_HLOS PMIC peripheral ...
- Loading branch information
Showing
39 changed files
with
836 additions
and
394 deletions.
There are no files selected for viewing
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
148 changes: 148 additions & 0 deletions
148
Documentation/devicetree/bindings/input/touchscreen/cypress,cy8ctma340.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,148 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma340.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Cypress CY8CTMA340 series touchscreen controller bindings | ||
|
||
description: The Cypress CY8CTMA340 series (also known as "CYTTSP" after | ||
the marketing name Cypress TrueTouch Standard Product) touchscreens can | ||
be connected to either I2C or SPI buses. | ||
|
||
maintainers: | ||
- Javier Martinez Canillas <[email protected]> | ||
- Linus Walleij <[email protected]> | ||
|
||
allOf: | ||
- $ref: touchscreen.yaml# | ||
|
||
properties: | ||
$nodename: | ||
pattern: "^touchscreen(@.*)?$" | ||
|
||
compatible: | ||
oneOf: | ||
- const: cypress,cy8ctma340 | ||
- const: cypress,cy8ctst341 | ||
- const: cypress,cyttsp-spi | ||
description: Legacy compatible for SPI connected CY8CTMA340 | ||
deprecated: true | ||
- const: cypress,cyttsp-i2c | ||
description: Legacy compatible for I2C connected CY8CTMA340 | ||
deprecated: true | ||
|
||
reg: | ||
description: I2C address when used on the I2C bus, or the SPI chip | ||
select index when used on the SPI bus | ||
|
||
clock-frequency: | ||
description: I2C client clock frequency, defined for host when using | ||
the device on the I2C bus | ||
minimum: 0 | ||
maximum: 400000 | ||
|
||
spi-max-frequency: | ||
description: SPI clock frequency, defined for host, defined when using | ||
the device on the SPI bus. The throughput is maximum 2 Mbps so the | ||
typical value is 2000000, if higher rates are used the total throughput | ||
needs to be restricted to 2 Mbps. | ||
minimum: 0 | ||
maximum: 6000000 | ||
|
||
interrupts: | ||
description: Interrupt to host | ||
maxItems: 1 | ||
|
||
vcpin-supply: | ||
description: Analog power supply regulator on VCPIN pin | ||
|
||
vdd-supply: | ||
description: Digital power supply regulator on VDD pin | ||
|
||
reset-gpios: | ||
description: Reset line for the touchscreen, should be tagged | ||
as GPIO_ACTIVE_LOW | ||
|
||
bootloader-key: | ||
description: the 8-byte bootloader key that is required to switch | ||
the chip from bootloader mode (default mode) to application mode | ||
$ref: /schemas/types.yaml#/definitions/uint8-array | ||
minItems: 8 | ||
maxItems: 8 | ||
|
||
touchscreen-size-x: true | ||
touchscreen-size-y: true | ||
touchscreen-fuzz-x: true | ||
touchscreen-fuzz-y: true | ||
|
||
active-distance: | ||
description: the distance in pixels beyond which a touch must move | ||
before movement is detected and reported by the device | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
minimum: 0 | ||
maximum: 15 | ||
|
||
active-interval-ms: | ||
description: the minimum period in ms between consecutive | ||
scanning/processing cycles when the chip is in active mode | ||
minimum: 0 | ||
maximum: 255 | ||
|
||
lowpower-interval-ms: | ||
description: the minimum period in ms between consecutive | ||
scanning/processing cycles when the chip is in low-power mode | ||
minimum: 0 | ||
maximum: 2550 | ||
|
||
touch-timeout-ms: | ||
description: minimum time in ms spent in the active power state while no | ||
touches are detected before entering low-power mode | ||
minimum: 0 | ||
maximum: 2550 | ||
|
||
use-handshake: | ||
description: enable register-based handshake (boolean). This should only | ||
be used if the chip is configured to use 'blocking communication with | ||
timeout' (in this case the device generates an interrupt at the end of | ||
every scanning/processing cycle) | ||
$ref: /schemas/types.yaml#/definitions/flag | ||
|
||
additionalProperties: false | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- bootloader-key | ||
- touchscreen-size-x | ||
- touchscreen-size-y | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
spi { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
num-cs = <1>; | ||
cs-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; | ||
touchscreen@0 { | ||
compatible = "cypress,cy8ctma340"; | ||
reg = <0>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <20 IRQ_TYPE_EDGE_FALLING>; | ||
reset-gpios = <&gpio 21 GPIO_ACTIVE_LOW>; | ||
vdd-supply = <&ldo_aux1_reg>; | ||
vcpin-supply = <&ldo_aux2_reg>; | ||
bootloader-key = /bits/ 8 <0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07>; | ||
touchscreen-size-x = <480>; | ||
touchscreen-size-y = <800>; | ||
active-interval-ms = <0>; | ||
touch-timeout-ms = <255>; | ||
lowpower-interval-ms = <10>; | ||
}; | ||
}; | ||
... |
93 changes: 0 additions & 93 deletions
93
Documentation/devicetree/bindings/input/touchscreen/cyttsp.txt
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
33 changes: 0 additions & 33 deletions
33
Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.txt
This file was deleted.
Oops, something went wrong.
86 changes: 86 additions & 0 deletions
86
Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.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,86 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/input/touchscreen/resistive-adc-touch.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Generic resistive touchscreen ADC | ||
|
||
maintainers: | ||
- Oleksij Rempel <[email protected]> | ||
|
||
description: | | ||
Generic ADC based resistive touchscreen controller | ||
The device must be connected to an ADC device that provides channels for | ||
position measurement and optional pressure. | ||
allOf: | ||
- $ref: touchscreen.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: resistive-adc-touch | ||
|
||
io-channels: | ||
minItems: 2 | ||
items: | ||
- description: x | ||
- description: y | ||
- description: pressure (optional) | ||
- description: z1 (optional) | ||
- description: z2 (optional) | ||
|
||
io-channel-names: | ||
oneOf: | ||
- items: | ||
- enum: [x, y] | ||
- enum: [x, y] | ||
- items: | ||
- enum: [x, y, pressure] | ||
- enum: [x, y, pressure] | ||
- enum: [x, y, pressure] | ||
- items: | ||
- enum: [x, y, z1, z2] | ||
- enum: [x, y, z1, z2] | ||
- enum: [x, y, z1, z2] | ||
- enum: [x, y, z1, z2] | ||
|
||
touchscreen-size-x: true | ||
touchscreen-size-y: true | ||
touchscreen-fuzz-x: true | ||
touchscreen-fuzz-y: true | ||
touchscreen-inverted-x: true | ||
touchscreen-inverted-y: true | ||
touchscreen-swapped-x-y: true | ||
touchscreen-min-pressure: true | ||
touchscreen-x-plate-ohms: true | ||
|
||
additionalProperties: false | ||
|
||
required: | ||
- compatible | ||
- io-channels | ||
- io-channel-names | ||
|
||
examples: | ||
- | | ||
touchscreen { | ||
compatible = "resistive-adc-touch"; | ||
io-channels = <&adc 24>, <&adc 25>; | ||
io-channel-names = "y", "x"; | ||
}; | ||
- | | ||
touchscreen { | ||
compatible = "resistive-adc-touch"; | ||
touchscreen-min-pressure = <50000>; | ||
io-channels = <&adc 24>, <&adc 25>, <&adc 26>; | ||
io-channel-names = "y", "pressure", "x"; | ||
}; | ||
- | | ||
touchscreen { | ||
compatible = "resistive-adc-touch"; | ||
touchscreen-min-pressure = <50000>; | ||
io-channels = <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>; | ||
io-channel-names = "x", "z1", "z2", "y"; | ||
touchscreen-x-plate-ohms = <800>; | ||
}; |
Oops, something went wrong.