1. 09 Jan, 2022 3 commits
    • Linus Walleij's avatar
      Input: zinitix - handle proper supply names · c54be0e3
      Linus Walleij authored
      The supply names of the Zinitix touchscreen were a bit confused, the new
      bindings rectifies this.
      
      To deal with old and new devicetrees, first check if we have "vddo" and in
      case that exists assume the old supply names. Else go and look for the new
      ones.
      
      We cannot just get the regulators since we would get an OK and a dummy
      regulator: we need to check explicitly for the old supply name.
      
      Use struct device *dev as a local variable instead of the I2C client since
      the device is what we are actually obtaining the resources from.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      [Slightly changed the legacy regulator detection]
      Signed-off-by: default avatarNikita Travkin <nikita@trvn.ru>
      Link: https://lore.kernel.org/r/20220106072840.36851-4-nikita@trvn.ruSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      c54be0e3
    • Linus Walleij's avatar
      dt-bindings: input/ts/zinitix: Convert to YAML, fix and extend · fdbb8025
      Linus Walleij authored
      This converts the Zinitix BT4xx and BT5xx touchscreen bindings to YAML,
      fix them up a bit and extends them.
      
      We list all the existing BT4xx and BT5xx components with compatible
      strings.  These are all similar, use the same bindings and work in
      similar ways.
      
      We rename the supplies from the erroneous vdd/vddo to the actual supply
      names vcca/vdd as specified on the actual component. It is long
      established that supplies shall be named after the supply pin names of a
      component.  The confusion probably stems from that in a certain product
      the rails to the component were named vdd/vddo. Drop some notes on how OS
      implementations should avoid confusion by first looking for vddo, and if
      that exists assume the legacy binding pair and otherwise use vcca/vdd.
      
      Add reset-gpios as sometimes manufacturers pulls a GPIO line to the reset
      line on the chip.
      
      Add optional touchscreen-fuzz-x and touchscreen-fuzz-y properties.
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      [Fixed dt_schema_check]
      Signed-off-by: default avatarNikita Travkin <nikita@trvn.ru>
      Link: https://lore.kernel.org/r/20220106072840.36851-3-nikita@trvn.ruSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      fdbb8025
    • Hans de Goede's avatar
      Input: axp20x-pek - revert "always register interrupt handlers" change · 8a78050e
      Hans de Goede authored
      The power button on Cherry Trail systems with an AXP288 PMIC is connected
      to both the power button pin of the PMIC as well as to a power button GPIO
      on the Cherry Trail SoC itself. This leads to double power button event
      reporting which is a problem.
      
      Since reporting power button presses through the PMIC is not supported on
      all PMICs used on Cherry Trail systems, we want to keep the GPIO
      power button events, so the axp20x-pek code checks for the presence of
      a GPIO power button and in that case does not register its input-device.
      
      On most systems the GPIO power button also can wake-up the system from
      suspend, so the axp20x-pek driver would also not register its interrupt
      handler. But on some systems there was a bug causing wakeup by the GPIO
      power button handler to not work.
      
      Commit 9747070c ("Input: axp20x-pek - always register interrupt
      handlers") was added as a work around for this registering the axp20x-pek
      interrupts, but not the input-device on Cherry Trail systems.
      
      In the mean time the root-cause of the GPIO power button wakeup events
      not working has been found and fixed by the "pinctrl: cherryview: Do not
      allow the same interrupt line to be used by 2 pins" patch,
      so this is no longer necessary.
      
      This reverts the workaround going back to only registering the
      interrupt handlers on systems where we also register the input-device.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
      Link: https://lore.kernel.org/r/20220106111647.66520-1-hdegoede@redhat.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      8a78050e
  2. 04 Jan, 2022 1 commit
  3. 20 Dec, 2021 5 commits
  4. 13 Dec, 2021 4 commits
  5. 09 Dec, 2021 2 commits
  6. 07 Dec, 2021 2 commits
  7. 29 Nov, 2021 2 commits
  8. 10 Nov, 2021 6 commits
  9. 06 Nov, 2021 1 commit
  10. 05 Nov, 2021 1 commit
  11. 03 Nov, 2021 1 commit
  12. 02 Nov, 2021 1 commit
  13. 31 Oct, 2021 7 commits
  14. 30 Oct, 2021 4 commits