Re: [PATCH v1 3/3] dt-bindings: google,cros-ec-keyb: add fn-key and f-keymap props
From: Dmitry Torokhov
Date: Thu Dec 11 2025 - 23:44:05 EST
On Wed, Dec 10, 2025 at 06:00:29PM +0000, Fabio Baltieri wrote:
> Hey Rob, thanks for the review.
>
> On Tue, Dec 09, 2025 at 01:22:43PM -0600, Rob Herring wrote:
> > On Tue, Dec 09, 2025 at 03:47:06PM +0000, Fabio Baltieri wrote:
> > > + fn-key:
> > > + $ref: /schemas/types.yaml#/definitions/uint32
> > > + description: |
> > > + An u32 containing the coordinate of the Fn key, use the MATRIX_KEY(row,
> > > + col, code) macro, code is ignored.
> > > +
> > > + fn-keymap:
> >
> > If keymap is linux,keymap, then this should perhaps be linux,fn-keymap.
> > Depends if we still think linux,keymap is Linux specific?
>
> I'm open for suggestions, trying to understand the pattern, these are
> specific to this binding I think if anything they should be
> google,fn-key and google,fn-keymap, similarly to the existing
> google,needs-ghost-filter -- no idea why function-row-physmap was not
> prefixed but I guess it slipped in and now it's not worth changing it.
Just double the number of rows in the regular keymap to accommodate the
FN modifier, no need for separate keymap. Also no need to have fn-key
property, use whatever key that reports KEY_FN. See how it is done in
drivers/input/keyboard/tegra-kbc.c
Thanks.
--
Dmitry