Skip to contentSkip to conversation

The u-boot supports i2c-over-hid?

DISCUSSION [email protected] 2 participants 4 messages Apr 13, 2023 – Apr 19, 2023

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw

Hi,

+Heinrich Schuchardt +Heiko Schocher

Quoted 4 lines · On Thu, 13 Apr 2023 at 08:58, [email protected] <[email protected]> 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

#2 lore raw

hi,
For i2c interface keyboard, how should we implement u-boot driver?
Do you have any suggestions

[email protected]

From: Simon Glass
Date: 2023-04-19 09:45
To: [email protected]
CC: u-boot
Subject: Re: The u-boot supports i2c-over-hid?
Hi,

+Heinrich Schuchardt +Heiko Schocher

Quoted 4 lines · On Thu, 13 Apr 2023 at 08:58, [email protected] <[email protected]> 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

#3 lore raw

Hi,

Quoted 5 lines · On Wed, 19 Apr 2023 at 20:33, [email protected] <[email protected]> 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.

Quoted 17 lines

________________________________
[email protected]

From: Simon Glass
Date: 2023-04-19 09:45
To: [email protected]
CC: u-boot
Subject: Re: The u-boot supports i2c-over-hid?
Hi,

+Heinrich Schuchardt +Heiko Schocher

Quoted 1 line · On Thu, 13 Apr 2023 at 08:58, [email protected] <[email protected]> wrote:
Quoted 7 lines
Quoted 3 lines

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