Hi Cody,

Thank you for the K3 display series ("drm/spacemit: add SpacemiT K3
display support", v3).

I have a question about the K1. I work on a device with the K1 (a product
built on the MUSE Pi Pro board) that has a small MIPI DSI panel, and I
would like it to work with a mainline kernel.

I compared the K1 DPU in the vendor kernel with the K3 DPU in your series.
They look like two generations of the same Saturn design:

- The pixel format numbers of the RDMA layers are the same.
- The bits of the pipeline control words are the same (output enable in
  bit 18, the video mode word 0x821).
- The RDMA register block has the same shape, moved by one word.
- The interrupt names are the same.

But the layout is different: the register window is half the size, and the
control, timing, composer and interrupt blocks are at other offsets. The K1
has its timing registers in the output control block, where the K3 has a
separate timing block.

Do you or SpacemiT plan to add the K1 to this driver?

If not, I would like to do it once your series is merged. For now I have a
small local driver for the K1 only, to bring up the panel: one CRTC, one
plane, direct register writes without the command list and the DPU MMU,
plus a driver for the K1 DSI host. It builds but it is not tested on
hardware yet, so I do not send it now. I only want to avoid duplicate work
and to learn which way you prefer:

1. Would a K1 variant fit into your driver, for example with a second
   register map and a second back end next to dpu_saturn_hee.c? In v3 you
   removed the ops table, so I am not sure which structure you want.
2. Is there register documentation for the K1 DPU that can be shared? I
   took several values from the vendor boot loader without knowing what
   they mean.

Thank you,
Long Zhi

Reply via email to