Re: [PATCH 1/3] phy: core: add generic MIPI C-PHY configuration API
From: Anusha Arun Nandi
Date: Tue Nov 24 2026 - 15:21:23 EST
Hi Michael, Hi Bryan,
We are planning to send out a patch series that provides a unified
framework for D-PHY, C-PHY and other supported PHY within a single
driver, while keeping the design extensible for future PHY-specific
requirements and enhancements.
Best regards,
Anusha
On 11/24/2026 4:18 AM, Bryan O'Donoghue wrote:
> On 24/11/2026 12:01, Michael Riesch wrote:
>>>> 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
>
> An equally valid argument sure.
>
> ---
> bod