* The u-boot supports i2c-over-hid?
@ 2023-04-13 10:40 skyonce
2023-04-19 1:45 ` Simon Glass
0 siblings, 1 reply; 4+ messages in thread
From: skyonce @ 2023-04-13 10:40 UTC (permalink / raw)
To: u-boot
Hello,
I would like to ask whether i2c-over-hid is not supported under u-boot at present. At present, we have this development need. I would like to ask whether it is feasible to transplant i2c-over-hid from kernel. If not, is there any other way?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: The u-boot supports i2c-over-hid?
2023-04-13 10:40 The u-boot supports i2c-over-hid? skyonce
@ 2023-04-19 1:45 ` Simon Glass
2023-04-19 8:33 ` skyonce
0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2023-04-19 1:45 UTC (permalink / raw)
To: skyonce@126.com; +Cc: u-boot
Hi,
+Heinrich Schuchardt +Heiko Schocher
On Thu, 13 Apr 2023 at 08:58, skyonce@126.com <skyonce@126.com> wrote:
>
> Hello,
> I would like to ask whether i2c-over-hid is not supported under u-boot at present. At present, we have this development need. I would like to ask whether it is feasible to transplant i2c-over-hid from kernel. If not, is there any other way?
>
I don't see any support for it. Yes, bringing things in from Linux is
a common approach. Some changes are needed for driver model and some
differing APIs.
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: The u-boot supports i2c-over-hid?
2023-04-19 1:45 ` Simon Glass
@ 2023-04-19 8:33 ` skyonce
2023-04-19 22:40 ` Simon Glass
0 siblings, 1 reply; 4+ messages in thread
From: skyonce @ 2023-04-19 8:33 UTC (permalink / raw)
To: Simon Glass; +Cc: u-boot
hi,
For i2c interface keyboard, how should we implement u-boot driver?
Do you have any suggestions
skyonce@126.com
From: Simon Glass
Date: 2023-04-19 09:45
To: skyonce@126.com
CC: u-boot
Subject: Re: The u-boot supports i2c-over-hid?
Hi,
+Heinrich Schuchardt +Heiko Schocher
On Thu, 13 Apr 2023 at 08:58, skyonce@126.com <skyonce@126.com> wrote:
>
> Hello,
> I would like to ask whether i2c-over-hid is not supported under u-boot at present. At present, we have this development need. I would like to ask whether it is feasible to transplant i2c-over-hid from kernel. If not, is there any other way?
>
I don't see any support for it. Yes, bringing things in from Linux is
a common approach. Some changes are needed for driver model and some
differing APIs.
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: The u-boot supports i2c-over-hid?
2023-04-19 8:33 ` skyonce
@ 2023-04-19 22:40 ` Simon Glass
0 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2023-04-19 22:40 UTC (permalink / raw)
To: skyonce@126.com; +Cc: u-boot
Hi,
On Wed, 19 Apr 2023 at 20:33, skyonce@126.com <skyonce@126.com> wrote:
>
> hi,
> For i2c interface keyboard, how should we implement u-boot driver?
>
> Do you have any suggestions
Please try to avoid top posting. See below.
>
>
> ________________________________
> skyonce@126.com
>
>
> From: Simon Glass
> Date: 2023-04-19 09:45
> To: skyonce@126.com
> CC: u-boot
> Subject: Re: The u-boot supports i2c-over-hid?
> Hi,
>
> +Heinrich Schuchardt +Heiko Schocher
>
> On Thu, 13 Apr 2023 at 08:58, skyonce@126.com <skyonce@126.com> wrote:
> >
> > Hello,
> > I would like to ask whether i2c-over-hid is not supported under u-boot at present. At present, we have this development need. I would like to ask whether it is feasible to transplant i2c-over-hid from kernel. If not, is there any other way?
> >
>
> I don't see any support for it. Yes, bringing things in from Linux is
> a common approach. Some changes are needed for driver model and some
> differing APIs.
Do you mean HID over I2C? I cannot see anything for the other way
around. But for i2c over hid, see cros_ec_i2c.c which implements I2C
over a Chromium OS EC interface.
For HID over I2C, you could start with a simple driver which uses I2C
to communicate with the device. It would need a new uclass, so it can
be a proper driver. For plumbing it into U-Boot, keyboard-uclass.c
shows how this is done today.
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-19 22:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-13 10:40 The u-boot supports i2c-over-hid? skyonce
2023-04-19 1:45 ` Simon Glass
2023-04-19 8:33 ` skyonce
2023-04-19 22:40 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox