-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Open
Labels
Description
We are developing zephyr i3c driver for our device which has a i3c secondary controller. The secondary controller will come up as target on the bus initially. We don't see enough support in current Zephyr i3c for implementing the secondary controller as target.
- Zephyr supports two APIs-
i3c_target_register
andi3c_target_unregister
to register the target to the controller. The registration uses thei3c_target_config
to configure the target. But we really need fields fromi3c_config_target
like PID, HDR modes, MRL, MWL as well to configure the target.
Both structures are defined in target_device.h
Feature Request 1: i3c_target_register
and i3c_target_unregister
APIs need updates to incorporate the i3c_config_target
fields
- The target callbacks structure
i3c_target_callbacks
has read and write function which are byte oriented. I think we need to expand this to be buffer pointer and data length. We can't be processing byte by byte for I3C.
Feature request 2: Request to update i3c target callback functions to operate using buffer instead of byte by byte