Re: [PATCH] Input: tca6416-keypad - Add OF support for driver instantiation
From: Tomas Jurena
Date: Wed Jun 11 2025 - 12:10:56 EST
On Tue, Jun 10, 2025 at 01:15:42PM -0500, Rob Herring wrote:
> On Tue, Jun 10, 2025 at 05:46:10PM +0200, Tomáš Juřena wrote:
> > From: Tomas Jurena <jurenatomas@xxxxxxxxx>
> >
> > Adds support for instantiating the tca6416-keypad driver via
> > Device Tree. If no platform data is present, the driver can now be
> > probed based on OF bindings.
> >
> > A corresponding Device Tree binding document is added at:
> > Documentation/devicetree/bindings/input/tca6416-keypad.yaml
> >
> > This allows the driver to be used in systems that rely solely on the
> > Device Tree for hardware description, such as embedded ARM platforms.
> >
> > Tested on Toradex Ixora 1.3A board and Apalis imx8 SOM.
>
> We already have a GPIO driver for this chip. Would the
> gpio-keys driver work here instead? Seems to work for
> arch/arm/boot/dts/ti/omap/am3517-evm-ui.dtsi.
>
I was not aware of this. Anyway, I tested this today, and it seems to work just fine with my hardware. There is no need for this change from my side.