Re: [PATCH 1/3] phy: core: add generic MIPI C-PHY configuration API

From: Michael Riesch

Date: Tue Nov 24 2026 - 05:14:13 EST


Hi Anusha, hi Bryan,

Thanks for your work. I am working on CSI C-PHY support for the Rockchip
RK3588 MIPI D-PHY/C-PHY Combo PHY and would love to see this landing in
mainline.

On 10/24/26 01:20, Anusha Arun Nandi wrote:
> [...]
>> The CSID needs to know the symbol rate - so that it can vote on the
>> appropriate NOC/CamNOC clocks/rails but... does the PHY driver itself
>> need to know that ? It does not, symbol_rate is not required in this
>> struct no more than it is in DPHY.
>>
> Yes agree. I was thinking the same. We would not need the symbol_rate in
> the struct.

How would a timing calculation like in the Rockchip downstream [0] work
then? Can this table be implemented once in a common helper, and the
resulting values are passed via the struct?

I am new to this spec so please bear with me, but it feels the symbol
rate should be in the struct?!

>> Sample principle.
>>
>> So _really_ thinking about this I suggest
>>
>> - Following the DPHY example
>> - Including all of the CPHY specific timings
>>   The ones you posted, plus the few I found missing
>>   Any other relevant CPHY timings we may have missed
>> - Include the helper functions in drivers/phy/phy-core-mipi-cphy.c
>>   IMO we should use defines not hard-coded constants for the
>>   specification of the timings here, unlike the DPHY code
>>
> These comments will be addressed in the next version.

Is there any ETA on that? (Just thinking about whether I should test
base on top of this version or wait for the next one).

Thanks and best regards,
Michael

[0]
https://github.com/rockchip-linux/kernel/blob/77168c8d5ab82399f65a80e9f807b50ba37cf483/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c#L237