|
|
Subscribe / Log in / New account

add mtk matrix keypad driver for keypad on MTK SoC

From:  fengping.yu <fengping.yu-AT-mediatek.com>
To:  Dmitry Torokhov <dmitry.torokhov-AT-gmail.com>, Rob Herring <robh+dt-AT-kernel.org>, Andy Shevchenko <andriy.shevchenko-AT-linux.intel.com>, Marco Felsch <m.felsch-AT-pengutronix.de>, Matthias Brugger <matthias.bgg-AT-gmail.com>
Subject:  [PATCH V3] add mtk matrix keypad driver for keypad on MTK SoC
Date:  Tue, 14 Jan 2020 20:27:37 +0800
Message-ID:  <20200114122738.103344-1-fengping.yu@mediatek.com>
Cc:  devicetree-AT-vger.kernel.org, linux-mediatek-AT-lists.infradead.org, linux-kernel-AT-vger.kernel.org, linux-arm-kernel-AT-lists.infradead.org, linux-input-AT-vger.kernel.org
Archive-link:  Article


Change since V2:
- add wakeup source optional property in dts node
- update debounce time as microsecond
- remove origin hw-map-num and hw-init-map properties
- use matrix-map to define keypad rows, columns and keymap
- remove tasklet and use thread irq to deal with keypad interrupt
- use devm_XXX API to get device resources
- modify dts parser using matrix-map API
- modify irq handlers using for_each_set_bit to detect which key status changed
- remove surplus log 
- remove surpluse header file
- replace readw with memcpy_fromio to get keypad status registers value
- fixed other issue according reviewer comments

fengping.yu (2):
  dt-bindings: add matrix keypad documentation
  drivers: input: keyboard: add mtk keypad driver

 .../devicetree/bindings/input/mtk-kpd.txt     |  55 ++++
 arch/arm64/configs/defconfig                  |   1 +
 drivers/input/keyboard/Kconfig                |   8 +
 drivers/input/keyboard/Makefile               |   1 +
 drivers/input/keyboard/mtk-kpd.c              | 280 ++++++++++++++++++
 5 files changed, 345 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/mtk-kpd.txt
 create mode 100644 drivers/input/keyboard/mtk-kpd.c
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel


Copyright © 2020, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds