Commit 3e51108c authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull input updates from Dmitry Torokhov:

 - support for NT36672A touchscreen added to novatek-nvt-ts driver

 - a change to ads7846 driver to prevent XPT2046 from locking up

 - a change switching platform input dirves back to using remove()
   method (from remove_new())

 - updates to a number of input drivers to use the new cleanup
   facilities (__free(...), guard(), and scoped-guard()) which ensure
   that the resources and locks are released properly and automatically

 - other assorted driver cleanups and fixes.

* tag 'input-for-v6.13-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (109 commits)
  Input: mpr121 - use devm_regulator_get_enable_read_voltage()
  Input: sun4i-lradc-keys - don't include 'pm_wakeup.h' directly
  Input: spear-keyboard - don't include 'pm_wakeup.h' directly
  Input: cypress-sf - constify struct i2c_device_id
  Input: ads7846 - increase xfer array size in 'struct ser_req'
  Input: fix the input_event struct documentation
  Input: i8042 - fix typo dublicate to duplicate
  Input: ads7846 - add dummy command register clearing cycle
  Input: cs40l50 - fix wrong usage of INIT_WORK()
  Input: introduce notion of passive observers for input handlers
  Input: maple_keyb - use guard notation when acquiring mutex
  Input: locomokbd - use guard notation when acquiring spinlock
  Input: hilkbd - use guard notation when acquiring spinlock
  Input: synaptics-rmi4 - switch to using cleanup functions in F34
  Input: synaptics - fix a typo
  dt-bindings: input: rotary-encoder: Fix "rotary-encoder,rollover" type
  Input: omap-keypad - use guard notation when acquiring mutex
  Input: imagis - fix warning regarding 'imagis_3038_data' being unused
  Input: userio - remove unneeded semicolon
  Input: sparcspkr - use cleanup facility for device_node
  ...
parents 919464de 0201710b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ properties:
      - mediatek,mt6331-keys
      - mediatek,mt6357-keys
      - mediatek,mt6358-keys
      - mediatek,mt6359-keys
      - mediatek,mt6397-keys

  power-off-time-sec: true
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ properties:
      device, hence no steps need to be passed.

  rotary-encoder,rollover:
    $ref: /schemas/types.yaml#/definitions/int32
    $ref: /schemas/types.yaml#/definitions/flag
    description:
      Automatic rollover when the rotary value becomes
      greater than the specified steps or smaller than 0. For absolute axis only.
+62 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/touchscreen/novatek,nvt-ts.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Novatek NVT Touchscreen Controller

maintainers:
  - Hans de Goede <hdegoede@redhat.com>

allOf:
  - $ref: touchscreen.yaml#

properties:
  compatible:
    enum:
      - novatek,nt11205-ts
      - novatek,nt36672a-ts

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  reset-gpios:
    maxItems: 1

  vcc-supply: true
  iovcc-supply: true

required:
  - compatible
  - reg
  - interrupts

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
        touchscreen@1 {
            compatible = "novatek,nt36672a-ts";
            reg = <0x01>;
            interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_RISING>;
            reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
            vcc-supply = <&vreg_l22a_2p85>;
            iovcc-supply = <&vreg_l14a_1p8>;
            pinctrl-0 = <&ts_int_default &ts_reset_default>;
            pinctrl-1 = <&ts_int_sleep &ts_reset_sleep>;
            pinctrl-names = "default", "sleep";
            touchscreen-size-x = <1080>;
            touchscreen-size-y = <2246>;
        };
    };

...
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ events on a read. Their layout is::
	    struct timeval time;
	    unsigned short type;
	    unsigned short code;
	    unsigned int value;
	    int value;
    };

``time`` is the timestamp, it returns the time at which the event happened.
+1 −0
Original line number Diff line number Diff line
@@ -16570,6 +16570,7 @@ NOVATEK NVT-TS I2C TOUCHSCREEN DRIVER
M:	Hans de Goede <hdegoede@redhat.com>
L:	linux-input@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml
F:	drivers/input/touchscreen/novatek-nvt-ts.c
NSDEPS
Loading