Re: [PATCH v5 2/8] dt-bindings: input: apple: Add DockChannel HID transport

From: Michael Reeves

Date: Tue Nov 10 2026 - 08:31:35 EST


On Tue, Nov 10, 2026 at 8:20 PM Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
> Just an enum instead of items and const below.

Thanks, will do in next version.

> > + apple,has-stm:
> > + type: boolean
> > + description:
> > + Specifies that the coprocessor provides STM device and serial
> > + number query endpoints that must be ready before registering HID devices.
>
> Isn't this implied by the compatible?
>

No, it isn't, because whether there's an STM or not is decided by the
type of trackpad
used, not the SoC or even the MTP coprocessor itself. My wording in
the description
wasn't great and I will make that clearer in v6.

Rob suggested apple,has-stm as feedback on v4[1], we used to have it
as a separate
empty node.

Right now, as a heuristic SoC works because the only device to have the "cheap"
trackpad (and thus no STM) is the MacBook Neo, which is the only
device with A18 Pro.

But that isn't guaranteed to be the same in future. I don't think it's
right to base STM
presence off something which actually isn't the actual determinant,
and just a byproduct.

> > +
> > + hid-country-code:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description:
> > + HID country code for the keyboard layout variant.
>
> What is the meaning of values? Do they map to any existing ABI? Like USB
> HID? Otherwise, why country code is 32 bit integer instead of ISO3166
> codes? As pointed last time, this should go probably to a common hid
> schema.

It is USB HID country code. I will specify that in the description in
next version.

Would you like me to add it to
Documentation/devicetree/bindings/input/input.yaml,
or make a new hid.yaml in that same folder?

>
> No default? Not required?
>

I will make it have a default of 0 in v6, so that way it can be
omitted by the Linux
DT. The intention is that the bootloader fills/adds it.

> > + hid-country-code = <0>;
>
> Which country is 0? Isn't this just a default?
>

It is "Not Localized". As said above I will make this the default in v6.

Thanks,
Michael

[1] https://lore.kernel.org/asahi/20260925-apple-mtp-keyboard-final-v4-0-304c267518f4@xxxxxxxxx/T/#mc53edc016ef1484c18e217b941b927bbf86f2cea