|
|
Log in / Subscribe / Register

Add support for nuvoton ma35d1 keypad controller

From:  Ming-Jen Chen <mjchen0829-AT-gmail.com>
To:  linux-kernel-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, linux-input-AT-vger.kernel.org, linux-arm-kernel-AT-lists.infradead.org, mjchen0829-AT-gmail.com, sudeep.holla-AT-arm.com, arnd-AT-arndb.de, peng.fan-AT-nxp.com, conor+dt-AT-kernel.org, krzk+dt-AT-kernel.org, robh-AT-kernel.org, dmitry.torokhov-AT-gmail.com
Subject:  [PATCH v4 0/2] Add support for nuvoton ma35d1 keypad controller
Date:  Wed, 04 Dec 2024 02:10:12 +0000
Message-ID:  <20241204021014.5083-1-mjchen0829@gmail.com>
Archive-link:  Article

This patch series adds keypad driver for the nuvoton ma35 ARMv8 SoC.
It includes DT binding documentation and the ma35d1 keypad driver.

v4:
  - Update nuvoton,ma35d1-keypad.yaml
    - Kept the same order of properties as in the required block.
    - Changed register addresses to lowercase.
v3:
  - Update nuvoton,ma35d1-keypad.yaml
    - Removed vendor-specific properties and replaced them with common properties
  - Update ma35d1_keypad.c
    - Modified the driver to reflect changes in the YAML properties
v2:
  - Update nuvoton,ma35d1-keypad.yaml
    - Fixed warnings and errors generated by running checkpatch.pl
    - Removed the previous version's properties and rewrote the
      properties in the Device Tree schema.
    - Renamed the Device Tree binding file to nuvoton,ma35d1-keypad.yaml
  - Update Kconfig
    - Added COMPILE_TEST to the depends on line in the Kconfig
  - Update ma35d1_keypad.c
    - Refactored error handling within the probe function.
    - Fixed the mixed use of devm and non-devm resource management.
    - Corrected alignment issues in the code.
    - Updated suspend and resume handling methods.
    - Fixed variable naming to remove camel casing.
    - Used for_each_set_bit() to check key states.
    - Modified the code to align with updates in the device tree binding

Ming-Jen Chen (2):
  input: keypad: add new keypad driver for MA35D1
  dt-bindings: input: Add Nuvoton MA35D1 keypad

 .../bindings/input/nuvoton,ma35d1-keypad.yaml |  69 ++++
 drivers/input/keyboard/Kconfig                |  10 +
 drivers/input/keyboard/Makefile               |   1 +
 drivers/input/keyboard/ma35d1_keypad.c        | 386 ++++++++++++++++++
 4 files changed, 466 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/nuvoton,ma35d1-keypad.yaml
 create mode 100644 drivers/input/keyboard/ma35d1_keypad.c

-- 
2.25.1




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