From: "Nuno Sá" <noname.nuno@gmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Michael Hennerich <michael.hennerich@analog.com>,
Linus Walleij <linus.walleij@linaro.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Lee Jones <lee@kernel.org>,
linux-arm-kernel@lists.infradead.org,
Utsav Agarwal <utsav.agarwal@analog.com>
Subject: Re: [PATCH] Input: keypad-nomadik-ske - remove the driver
Date: Mon, 09 Sep 2024 12:34:41 +0200 [thread overview]
Message-ID: <d120435769b4ada07c9377bc5659c234dd35e636.camel@gmail.com> (raw)
In-Reply-To: <ZtszE9A-576SmvsX@google.com>
On Fri, 2024-09-06 at 09:51 -0700, Dmitry Torokhov wrote:
> Hi Nuno,
>
> On Fri, Sep 06, 2024 at 10:38:35AM +0200, Nuno Sá wrote:
> >
> > Hi Dmitry,
> >
> > This is not forgotten and I plan to start working on this early next week.
> >
> > One thing I noticed and I might as well just ask before starting the work,
> > is that
> > the platform data allows, in theory, for you to have holes in your keymap
> > [1]. Like
> > enabling row 1 and 3 skipping 2. AFAICT, the matrix stuff does not allow
> > this out of
> > the box as we just define the number of rows/cols and then without any other
> > property
> > we assume (I think) that the map is contiguous.
> >
> > This is just early thinking but one way to support the current behavior
> > would be 2
> > custom DT properties that would be 2 u32 arrays specifying the enabled
> > columns and
> > rows. Out of it, we could build row and col masks and get the total number
> > of cols
> > and rows that we could pass to matrix_keypad_build_keymap().
>
> I'd ask DT maintainers but in my opinion we could add 2 u32 scalar
> properties to specify row and col masks (either enabled or disabled,
> whatever is more convenient) and then indeed we could figure out the
> resulting size of key matrix and use matrix_keypad_build_keymap() to
> load it.
>
Alright, I'll see how it looks like and DT maintainers can then comment on it.
I'm afraid they can complain about the masks (for not being super user friendly)
but I think key arrays should be acceptable. I'll try the masks anyways...
- Nuno Sá
>
next prev parent reply other threads:[~2024-09-09 10:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 18:54 [PATCH] Input: keypad-nomadik-ske - remove the driver Dmitry Torokhov
2024-08-19 9:29 ` Arnd Bergmann
2024-08-19 14:54 ` Dmitry Torokhov
2024-08-27 9:52 ` Hennerich, Michael
2024-09-06 8:38 ` Nuno Sá
2024-09-06 16:51 ` Dmitry Torokhov
2024-09-09 10:34 ` Nuno Sá [this message]
2024-08-24 14:35 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d120435769b4ada07c9377bc5659c234dd35e636.camel@gmail.com \
--to=noname.nuno@gmail.com \
--cc=arnd@arndb.de \
--cc=dmitry.torokhov@gmail.com \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=utsav.agarwal@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).