i3c: master: svc: Add basic HDR mode support
authorFrank Li <Frank.Li@nxp.com>
Thu, 6 Nov 2025 17:36:03 +0000 (12:36 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Nov 2025 23:39:08 +0000 (00:39 +0100)
commit4e7263b87ca362825beeac669dcbe24aae2c6257
tree6c41f3ebadf4b4879f27c39ab1b93f5b0a7b88ac
parent108420fe2100b0c9cfb2d3598681eab3724247b9
i3c: master: svc: Add basic HDR mode support

Add basic HDR mode support for the svs I3C master driver.

Only support for private transfers and does not support sending CCC
commands in HDR mode.

Key differences:
- HDR uses commands (0x00-0x7F for write, 0x80-0xFF for read) to
distinguish transfer direction.
- HDR read/write commands must be written to FIFO before issuing the I3C
address command. The hardware automatically sends the standard CCC command
to enter HDR mode.
- HDR exit pattern must be sent instead of send a stop after transfer
completion.
- Read/write data size must be an even number.

Co-developed-by: Carlos Song <carlos.song@nxp.com>
Signed-off-by: Carlos Song <carlos.song@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251106-i3c_ddr-v11-4-33a6a66ed095@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/svc-i3c-master.c