dt-bindings: input: touchscreen: iqs5xx: Add bindings
Subsystems (2)
PATCH 1/2 dt-bindings: input: touchscreen: iqs5xx: Add bindings
This patch adds binding documentation for the Azoteq IQS550/572/525 family of trackpad/touchscreen controllers.
--- .../bindings/input/touchscreen/iqs5xx.txt | 123 +++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 124 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +123 -0
@@ -0,0 +1,123 @@ +Azoteq IQS550/572/525 Trackpad/Touchscreen Controller + +Required properties: + +- compatible : One of "azoteq,iqs550", "azoteq,iqs572" or + "azoteq,iqs525". + +- reg : I2C slave address for the device. + +- interrupts : GPIO to which the device's RDY output is + connected (see [0] for more information). + +- reset-gpios : GPIO to which the device's NRST input is + connected (see [1] for more information). + Hardware reset access is required so as to + facilitate in-system firmware replacement. + +Optional properties: + +- azoteq,exp-ver-major : Major field of the export file version number + (0 through 255 inclusive). This property must + be specified as a '/bits/ 8' value. + +- azoteq,exp-ver-minor : Minor field of the export file version number + (0 through 255 inclusive). This property must + be specified as a '/bits/ 8' value. + + The export file version number is a customer- + assigned parameter embedded in the device's + firmware at the time it is exported from the + manufacturer's PC-based configuration tool. + + If the export file version number stored in + the device's nonvolatile memory does not match + the number specified here, the driver replaces + the firmware on the device with that which is + stored on the local filesystem (for which the + export file version number must match). + + If both major and minor fields are omitted or + specified as zero, the driver does not query + the device's export file version number. + +- touchscreen-min-x : Minimum horizontal coordinate that can be + reported by the device. If this property is + omitted, zero is used. + +- touchscreen-min-y : Minimum vertical coordinate that can be + reported by the device. If this property is + omitted, zero is used. + +- touchscreen-size-x : Horizontal resolution (in pixels) of the touch + area. If this property is omitted, the default + horizontal resolution embedded in the device's + firmware is used. + +- touchscreen-size-y : Vertical resolution (in pixels) of the touch + area. If this property is omitted, the default + vertical resolution embedded in the device's + firmware is used. + +- touchscreen-max-pressure : Maximum touch strength that can be reported by + the device, specified as the sum of the deltas + across all channels impacted by a touch event. + A channel's delta is calculated as its count + value minus a reference, where the count value + is inversely proportional to the channel's + capacitance. The maximum touch strength is + therefore dependent on hardware configuration + and can vary by application. + +- touchscreen-fuzz-x : Hysteresis level (in pixels) applied to the + horizontal coordinates reported by the device. + +- touchscreen-fuzz-y : Hysteresis level (in pixels) applied to the + vertical coordinates reported by the device. + +- touchscreen-fuzz-pressure : Hysteresis level applied to the strength level + reported by the device, specified in the same + units as touchscreen-max-pressure (deltas). + +- touchscreen-inverted-x : Boolean to indicate that the horizontal axis + of the touch area is inverted. Inversion is + applied relative to that which may already be + embedded in the device's firmware. + +- touchscreen-inverted-y : Boolean to indicate that the vertical axis + of the touch area is inverted. Inversion is + applied relative to that which may already be + embedded in the device's firmware. + +- touchscreen-swapped-x-y : Boolean to indicate that the horizontal and + vertical axes of the touch area are swapped. + Transposition is applied relative to that + which may already be embedded in the device's + firmware. + +[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt +[1]: Documentation/devicetree/bindings/gpio/gpio.txt + +Example: + + &i2c1 { + /* ... */ + + iqs550: iqs550@74 { + compatible = "azoteq,iqs550"; + reg = <0x74>; + interrupt-parent = <&gpio>; + interrupts = <17 1>; + reset-gpios = <&gpio 27 0>; + + azoteq,exp-ver-major = /bits/ 8 <1>; + azoteq,exp-ver-minor = /bits/ 8 <0>; + + touchscreen-size-x = <640>; + touchscreen-size-y = <480>; + + touchscreen-max-pressure = <16000>; + }; + + /* ... */ + };
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -49,6 +49,7 @@ avia avia semiconductor avic Shanghai AVIC Optoelectronics Co., Ltd. axentia Axentia Technologies AB axis Axis Communications AB +azoteq Azoteq (Pty) Ltd bananapi BIPAI KEJI LIMITED bhf Beckhoff Automation GmbH & Co. KG boe BOE Technology Group Co., Ltd.
Signature · 1 line
2.7.4
PATCH 2/2 input: touchscreen: Add support for Azoteq IQS550/572/525
This patch adds support for the Azoteq IQS550/572/525 family of trackpad/touchscreen controllers.
--- drivers/input/touchscreen/Kconfig | 10 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/iqs5xx.c | 1071 ++++++++++++++++++++++++++++++++++++ 3 files changed, 1082 insertions(+) create mode 100644 drivers/input/touchscreen/iqs5xx.c
drivers/input/touchscreen/Kconfig +10 -0
@@ -1286,4 +1286,14 @@ config TOUCHSCREEN_ROHM_BU21023 To compile this driver as a module, choose M here: the module will be called bu21023_ts. +config TOUCHSCREEN_IQS5XX + tristate "Azoteq IQS550/572/525 trackpad/touchscreen controller" + depends on I2C + help + Say Y to enable support for the Azoteq IQS550/572/525 + family of trackpad/touchscreen controllers. + + To compile this driver as a module, choose M here: the + module will be called iqs5xx. + endif
drivers/input/touchscreen/Makefile +1 -0
@@ -108,3 +108,4 @@ obj-$(CONFIG_TOUCHSCREEN_ZET6223) += zet6223.o obj-$(CONFIG_TOUCHSCREEN_ZFORCE) += zforce_ts.o obj-$(CONFIG_TOUCHSCREEN_COLIBRI_VF50) += colibri-vf50-ts.o obj-$(CONFIG_TOUCHSCREEN_ROHM_BU21023) += rohm_bu21023.o +obj-$(CONFIG_TOUCHSCREEN_IQS5XX) += iqs5xx.o
drivers/input/touchscreen/iqs5xx.c new file +1071 -0
1,071 lines not on this page · raw message
Signature · 1 line
2.7.4
Rob Herring
maintainerQuoted 16 lines · Jeff LaBundy
This patch adds binding documentation for the Azoteq IQS550/572/525 family of trackpad/touchscreen controllers.
Signed-off-by Jeff LaBundy <[email protected]>--- .../bindings/input/touchscreen/iqs5xx.txt | 123 +++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 124 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txtDocumentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +0
-0
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 6
Quoted 6 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +6
-0@@ -0,0 +1,123 @@ +Azoteq IQS550/572/525 Trackpad/Touchscreen Controller + +Required properties: + +- compatible : One of "azoteq,iqs550", "azoteq,iqs572" or + "azoteq,iqs525".
Format as 1 per line please.
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 16
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +10
-0+ +- reg : I2C slave address for the device. + +- interrupts : GPIO to which the device's RDY output is + connected (see [0] for more information). + +- reset-gpios : GPIO to which the device's NRST input is + connected (see [1] for more information). + Hardware reset access is required so as to + facilitate in-system firmware replacement.
Active low?
Quoted 70 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +70
-0+ +Optional properties: + +- azoteq,exp-ver-major : Major field of the export file version number + (0 through 255 inclusive). This property must + be specified as a '/bits/ 8' value. + +- azoteq,exp-ver-minor : Minor field of the export file version number + (0 through 255 inclusive). This property must + be specified as a '/bits/ 8' value. + + The export file version number is a customer- + assigned parameter embedded in the device's + firmware at the time it is exported from the + manufacturer's PC-based configuration tool. + + If the export file version number stored in + the device's nonvolatile memory does not match + the number specified here, the driver replaces + the firmware on the device with that which is + stored on the local filesystem (for which the + export file version number must match). + + If both major and minor fields are omitted or + specified as zero, the driver does not query + the device's export file version number. + +- touchscreen-min-x : Minimum horizontal coordinate that can be + reported by the device. If this property is + omitted, zero is used. + +- touchscreen-min-y : Minimum vertical coordinate that can be + reported by the device. If this property is + omitted, zero is used. + +- touchscreen-size-x : Horizontal resolution (in pixels) of the touch + area. If this property is omitted, the default + horizontal resolution embedded in the device's + firmware is used. + +- touchscreen-size-y : Vertical resolution (in pixels) of the touch + area. If this property is omitted, the default + vertical resolution embedded in the device's + firmware is used. + +- touchscreen-max-pressure : Maximum touch strength that can be reported by + the device, specified as the sum of the deltas + across all channels impacted by a touch event. + A channel's delta is calculated as its count + value minus a reference, where the count value + is inversely proportional to the channel's + capacitance. The maximum touch strength is + therefore dependent on hardware configuration + and can vary by application. + +- touchscreen-fuzz-x : Hysteresis level (in pixels) applied to the + horizontal coordinates reported by the device. + +- touchscreen-fuzz-y : Hysteresis level (in pixels) applied to the + vertical coordinates reported by the device. + +- touchscreen-fuzz-pressure : Hysteresis level applied to the strength level + reported by the device, specified in the same + units as touchscreen-max-pressure (deltas). + +- touchscreen-inverted-x : Boolean to indicate that the horizontal axis + of the touch area is inverted. Inversion is + applied relative to that which may already be + embedded in the device's firmware. +
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 96
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +10
-0+- touchscreen-inverted-y : Boolean to indicate that the vertical axis + of the touch area is inverted. Inversion is + applied relative to that which may already be + embedded in the device's firmware. + +- touchscreen-swapped-x-y : Boolean to indicate that the horizontal and + vertical axes of the touch area are swapped. + Transposition is applied relative to that + which may already be embedded in the device's + firmware.
No need to define all these standard properties again. Just reference touchscreen.txt. If you have any additional constraints, then add them here.
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 106
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +10
-0+ +[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt +[1]: Documentation/devicetree/bindings/gpio/gpio.txt + +Example: + + &i2c1 { + /* ... */ + + iqs550: iqs550@74 {
touchscreen@74
Quoted 32 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +17
-0+ compatible = "azoteq,iqs550"; + reg = <0x74>; + interrupt-parent = <&gpio>; + interrupts = <17 1>; + reset-gpios = <&gpio 27 0>; + + azoteq,exp-ver-major = /bits/ 8 <1>; + azoteq,exp-ver-minor = /bits/ 8 <0>; + + touchscreen-size-x = <640>; + touchscreen-size-y = <480>; + + touchscreen-max-pressure = <16000>; + }; + + /* ... */ + };Documentation/devicetree/bindings/vendor-prefixes.txt +1
-0@@ -49,6 +49,7 @@ avia avia semiconductor avic Shanghai AVIC Optoelectronics Co., Ltd. axentia Axentia Technologies AB axis Axis Communications AB +azoteq Azoteq (Pty) Ltd bananapi BIPAI KEJI LIMITED bhf Beckhoff Automation GmbH & Co. KG boe BOE Technology Group Co., Ltd.Signature · 1 line
2.7.4
Thank you for your review Rob; acknowledged/agreed on all counts and I will address your feedback in a v2.
Quoted 171 lines · Rob Herring
Quoted 16 lines · Jeff LaBundy
This patch adds binding documentation for the Azoteq IQS550/572/525 family of trackpad/touchscreen controllers.
Signed-off-by Jeff LaBundy <[email protected]>--- .../bindings/input/touchscreen/iqs5xx.txt | 123 +++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 124 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txtDocumentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +0
-0Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 6
Quoted 6 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +6
-0@@ -0,0 +1,123 @@ +Azoteq IQS550/572/525 Trackpad/Touchscreen Controller + +Required properties: + +- compatible : One of "azoteq,iqs550", "azoteq,iqs572" or + "azoteq,iqs525".Format as 1 per line please.
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 16
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +10
-0+ +- reg : I2C slave address for the device. + +- interrupts : GPIO to which the device's RDY output is + connected (see [0] for more information). + +- reset-gpios : GPIO to which the device's NRST input is + connected (see [1] for more information). + Hardware reset access is required so as to + facilitate in-system firmware replacement.Active low?
Quoted 70 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +70
-0+ +Optional properties: + +- azoteq,exp-ver-major : Major field of the export file version number + (0 through 255 inclusive). This property must + be specified as a '/bits/ 8' value. + +- azoteq,exp-ver-minor : Minor field of the export file version number + (0 through 255 inclusive). This property must + be specified as a '/bits/ 8' value. + + The export file version number is a customer- + assigned parameter embedded in the device's + firmware at the time it is exported from the + manufacturer's PC-based configuration tool. + + If the export file version number stored in + the device's nonvolatile memory does not match + the number specified here, the driver replaces + the firmware on the device with that which is + stored on the local filesystem (for which the + export file version number must match). + + If both major and minor fields are omitted or + specified as zero, the driver does not query + the device's export file version number. + +- touchscreen-min-x : Minimum horizontal coordinate that can be + reported by the device. If this property is + omitted, zero is used. + +- touchscreen-min-y : Minimum vertical coordinate that can be + reported by the device. If this property is + omitted, zero is used. + +- touchscreen-size-x : Horizontal resolution (in pixels) of the touch + area. If this property is omitted, the default + horizontal resolution embedded in the device's + firmware is used. + +- touchscreen-size-y : Vertical resolution (in pixels) of the touch + area. If this property is omitted, the default + vertical resolution embedded in the device's + firmware is used. + +- touchscreen-max-pressure : Maximum touch strength that can be reported by + the device, specified as the sum of the deltas + across all channels impacted by a touch event. + A channel's delta is calculated as its count + value minus a reference, where the count value + is inversely proportional to the channel's + capacitance. The maximum touch strength is + therefore dependent on hardware configuration + and can vary by application. + +- touchscreen-fuzz-x : Hysteresis level (in pixels) applied to the + horizontal coordinates reported by the device. + +- touchscreen-fuzz-y : Hysteresis level (in pixels) applied to the + vertical coordinates reported by the device. + +- touchscreen-fuzz-pressure : Hysteresis level applied to the strength level + reported by the device, specified in the same + units as touchscreen-max-pressure (deltas). + +- touchscreen-inverted-x : Boolean to indicate that the horizontal axis + of the touch area is inverted. Inversion is + applied relative to that which may already be + embedded in the device's firmware. +Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 96
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +10
-0+- touchscreen-inverted-y : Boolean to indicate that the vertical axis + of the touch area is inverted. Inversion is + applied relative to that which may already be + embedded in the device's firmware. + +- touchscreen-swapped-x-y : Boolean to indicate that the horizontal and + vertical axes of the touch area are swapped. + Transposition is applied relative to that + which may already be embedded in the device's + firmware.No need to define all these standard properties again. Just reference touchscreen.txt. If you have any additional constraints, then add them here.
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt line 106
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +10
-0+ +[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt +[1]: Documentation/devicetree/bindings/gpio/gpio.txt + +Example: + + &i2c1 { + /* ... */ + + iqs550: iqs550@74 {touchscreen@74
Quoted 32 lines
Documentation/devicetree/bindings/input/touchscreen/iqs5xx.txt new file +17
-0+ compatible = "azoteq,iqs550"; + reg = <0x74>; + interrupt-parent = <&gpio>; + interrupts = <17 1>; + reset-gpios = <&gpio 27 0>; + + azoteq,exp-ver-major = /bits/ 8 <1>; + azoteq,exp-ver-minor = /bits/ 8 <0>; + + touchscreen-size-x = <640>; + touchscreen-size-y = <480>; + + touchscreen-max-pressure = <16000>; + }; + + /* ... */ + };Documentation/devicetree/bindings/vendor-prefixes.txt +1
-0@@ -49,6 +49,7 @@ avia avia semiconductor avic Shanghai AVIC Optoelectronics Co., Ltd. axentia Axentia Technologies AB axis Axis Communications AB +azoteq Azoteq (Pty) Ltd bananapi BIPAI KEJI LIMITED bhf Beckhoff Automation GmbH & Co. KG boe BOE Technology Group Co., Ltd.Signature · 1 line
2.7.4