1. 07 Jan, 2019 4 commits
  2. 04 Jan, 2019 2 commits
    • Hans de Goede's avatar
      Input: soc_button_array - fix mapping of the 5th GPIO in a PNP0C40 device · e9eb788f
      Hans de Goede authored
      The Microsoft documenation for the PNP0C40 device aka the
      "Windows-compatible button array" describes the 5th GpioInt listed in
      the resources as: '5. Interrupt corresponding to the "Rotation Lock"
      button, if supported'.
      
      Notice this describes the 5th entry as a button while we sofar have been
      mapping it to EV_SW, SW_ROTATE_LOCK. On my Point of View TAB P1006W-232
      which actually comes with a rotation-lock button, the button indeed is a
      button and not a slider/switch. An image search for other Windows tablets
      has found 2 more models with a rotation-lock button and on both of those
      it too is a push-button and not a slider/switch.
      
      Further evidence can be found in the HUT extension HUTRR52 from Microsoft
      which adds rotation lock support to the HUT, which describes 2 different
      usages: "0xC9 System Display Rotation Lock Button" and
      "0xCA System Display Rotation Lock Slider Switch" note that switch is seen
      as a separate thing here and the non switch wording is an exact match for
      the "Windows-compatible button array" spec wording.
      
      TL;DR: our current mapping of the 5th GPIO to SW_ROTATE_LOCK is wrong
      because the 5th GPIO is for a push-button not a switch.
      
      This commit fixes this by maping the 5th GPIO to KEY_ROTATE_LOCK_TOGGLE.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      e9eb788f
    • Hans de Goede's avatar
      Input: soc_button_array - add usage-page 0x01 usage-id 0xca mapping · 39be9b6d
      Hans de Goede authored
      The ACPI0011 _DSD button descriptor on a CHT based Intel Compute Sticks
      contains a mapping for usage-page 0x01 usage-id 0xca.
      
      As described in hutrr52_system_display_rotation_lock_controls_0.pdf this
      should be mapped as a "System Display Rotation Lock Slider Switch", this
      commit adds support for this, silencing the following warning:
      
      soc_button_array ACPI0011:00: Unknown button index 4 upage 01 usage ca,
      ignoring
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      39be9b6d
  3. 29 Dec, 2018 1 commit
  4. 22 Dec, 2018 1 commit
  5. 21 Dec, 2018 3 commits
  6. 09 Dec, 2018 1 commit
  7. 03 Dec, 2018 1 commit
  8. 15 Nov, 2018 6 commits
  9. 19 Oct, 2018 1 commit
  10. 17 Oct, 2018 1 commit
  11. 15 Oct, 2018 3 commits
  12. 12 Oct, 2018 1 commit
    • Hans de Goede's avatar
      Input: of_touchscreen - add support for touchscreen-min-x|y · d9265e8a
      Hans de Goede authored
      Some touchscreens, depending on the firmware and/or the digitizer, report
      coordinates which never reach 0 along one or both of their axis.
      
      This has been seen for example on the Silead touchscreens on a Onda V891w
      and a Point of View mobii TAB-P800w(v2.0).
      
      This commit adds support for touchscreen-min-x and touchscreen-min-y
      device-properties which can be set to communicate the actual start
      coordinates (rather then 0,0) to userspace.
      
      This commit also drop the "(in pixels)" comment from the documentation
      of the touchscreen-size-x and touchscreen-size-y properties. The comment
      suggested that there is a relation between the range of reported
      coordinates and the display resolution, which is only true for some
      devices. The "(in pixels)" comment is replaced with "(maximum x coordinate
      reported + 1)" to mirror the language describing the new touchscreen-min-x
      and -min-y properties.
      
      When set this fixes e.g. not being able to click things in the GNOME3
      top-bar on the 2 example tablets.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      d9265e8a
  13. 11 Oct, 2018 2 commits
  14. 05 Oct, 2018 2 commits
  15. 01 Oct, 2018 1 commit
  16. 29 Sep, 2018 3 commits
  17. 08 Aug, 2018 3 commits
  18. 02 Aug, 2018 3 commits
  19. 01 Aug, 2018 1 commit