Re: [PATCH 1/3] phy: core: add generic MIPI C-PHY configuration API
From: Michael Riesch
Date: Tue Nov 24 2026 - 07:02:47 EST
Hi Bryan,
On 11/24/26 12:51, Bryan O'Donoghue wrote:
> On 24/11/2026 10:13, Michael Riesch wrote:
>> 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?!
>
> Might be the case alright. We have two approaches we can take. Something
> like DPHY which populates just about everything in the configuration
> struct or just add stuff in as needed.
>
> Maybe the PHY does need to know the symbol rate.. In our case on qcom we
> vote for bandwidth in on the CSI decoder side.
>
> But maybe there's a use case for the PHY to know that rate..
Fortunately, that is a kernel space API, so not *that* critical.
Then I guess we can put the symbol rate in there. If it is unused, there
is not much damage done, I would say. Plus there is the possibility to
remove it too, right.
Just my € 0.02.
Best regards,
Michael
>
> ---
> bod