From: Rob Herring <robh@kernel.org>
To: Yureka Lilian <yureka@cyberchaos.dev>
Cc: Michael Reeves <michael.reeves077@gmail.com>,
Sven Peter <sven@kernel.org>, Janne Grunau <j@jannau.net>,
Neal Gompa <neal@gompa.dev>,
Jassi Brar <jassisinghbrar@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Hector Martin <marcan@marcan.st>,
"Joerg Roedel (AMD)" <joro@8bytes.org>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <bentiss@kernel.org>,
asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
iommu@lists.linux.dev, linux-input@vger.kernel.org,
Julian Braha <julianbraha@gmail.com>,
Sasha Finkelstein <k@chaosmail.tech>
Subject: Re: [PATCH v4 04/10] dt-bindings: input: apple: Add DockChannel HID transport
Date: Tue, 6 Oct 2026 13:50:39 -0500 [thread overview]
Message-ID: <20261006185039.GE2194299-robh@kernel.org> (raw)
In-Reply-To: <2687bc3e-b73a-415c-8c68-8249e1fe4e6b@cyberchaos.dev>
On Tue, Oct 06, 2026 at 08:09:47PM +0200, Yureka Lilian wrote:
>
> On 10/6/26 18:00, Rob Herring wrote:
> > On Fri, Sep 25, 2026 at 10:09:31PM +1000, Michael Reeves wrote:
> > [...]
> > > +
> > > + mboxes:
> > > + items:
> > > + - description: ASC mailbox used for RTKit control
> > > + - description: DockChannel FIFO mailbox used for HID packets
> > > +
> > > + mbox-names:
> > > + items:
> > > + - const: asc
> > > + - const: dockchannel
> > > +
> > > + iommus:
> > > + maxItems: 1
> > > +
> > > + stm:
> > > + type: object
> > > + description:
> > > + STM interface providing the vendor, product and version identifiers
> > > + and serial number shared by the HID devices. When present, the host
> > > + must query this interface before registering the keyboard.
> > > + additionalProperties: false
> > An empty node is unusual. Why can't you just query the STM interface and
> > treat it not existing or having those properties the same as no 'stm'
> > node.
>
> The issue is there is no indicator for the stm *not* being present: We boot
> the MTP coprocessor, and then receive a message when the stm is available.
> In that case we know it's ready and we can proceed with obtaining the serial
> numbers and registering the hid devices. But if there is no stm, we simply
> do not get the stm ready message, and the hid devices are never registered
> (this is the case in the original downstream Asahi dockchannel-hid). To make
> the stm optional *without* taking the information from the device tree, this
> would require some sort of timeout for waiting for the stm ready message. I
> outlined the available options in this thread[1] and argued the empty stm
> subnode makes sense, since this is describing a peripheral which may or may
> not be present (and this information is useful to initialize the device
> properly).
>
> Link[1]: https://lore.kernel.org/asahi/bbaca769-312c-4a24-9524-16cb2b4f277f@cyberchaos.dev/
Okay, but you don't need a node here. Just an 'apple,has-stm' or similar
property will suffice.
Rob
next prev parent reply other threads:[~2026-10-06 18:50 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 12:09 [PATCH v4 00/10] Add support for Apple Silicon DockChannel internal keyboards Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:09 ` [PATCH v4 01/10] dt-bindings: mailbox: apple: Add M3 ASC mailbox compatibles Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:09 ` [PATCH v4 02/10] dt-bindings: mailbox: apple: Add DockChannel mailbox Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-10-06 15:55 ` Rob Herring (Arm)
2026-09-25 12:09 ` [PATCH v4 03/10] dt-bindings: iommu: apple,dart: Add M3 compatibles Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:09 ` [PATCH v4 04/10] dt-bindings: input: apple: Add DockChannel HID transport Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:16 ` sashiko-bot
2026-10-06 16:00 ` Rob Herring
2026-10-06 18:09 ` Yureka Lilian
2026-10-06 18:50 ` Rob Herring [this message]
2026-09-25 12:09 ` [PATCH v4 05/10] mailbox: apple: Add DockChannel FIFO controller Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:18 ` sashiko-bot
2026-09-25 12:09 ` [PATCH v4 06/10] soc: apple: rtkit: Add tracekit endpoint Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:09 ` [PATCH v4 07/10] HID: apple: Add support for DockChannel HID keyboards Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:09 ` [PATCH v4 08/10] HID: apple: Add DockChannel HID transport driver Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:09 ` [PATCH v4 09/10] arm64: dts: apple: Add MTP DockChannel HID nodes Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
2026-09-25 12:09 ` [PATCH v4 10/10] arm64: dts: apple: Enable DockChannel HID on M2 and M3 laptops Michael Reeves via B4 Relay
2026-09-25 12:09 ` Michael Reeves
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=20261006185039.GE2194299-robh@kernel.org \
--to=robh@kernel.org \
--cc=asahi@lists.linux.dev \
--cc=bentiss@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=iommu@lists.linux.dev \
--cc=j@jannau.net \
--cc=jassisinghbrar@gmail.com \
--cc=jikos@kernel.org \
--cc=joro@8bytes.org \
--cc=julianbraha@gmail.com \
--cc=k@chaosmail.tech \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=michael.reeves077@gmail.com \
--cc=neal@gompa.dev \
--cc=robin.murphy@arm.com \
--cc=sven@kernel.org \
--cc=will@kernel.org \
--cc=yureka@cyberchaos.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.