Message ID | 20241202-dp_mst_bindings-v1-2-9a9a43b0624a@quicinc.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | dt-bindings: msm/dp: add support for pixel clock to driver another stream | expand |
On 03/12/2024 04:31, Abhinav Kumar wrote: > Document the assigned-clock-parents better for the DP controller node > to indicate its functionality better. You change the clocks entirely, not "document". I would say that's an ABI break if it really is a Linux requirement. You could avoid any problems by just dropping the property from binding. > > Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com> > --- > Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > index 35ae2630c2b3..9fe2bf0484d8 100644 > --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > @@ -72,8 +72,8 @@ properties: > > assigned-clock-parents: > items: > - - description: phy 0 parent > - - description: phy 1 parent > + - description: Link clock PLL output provided by PHY block > + - description: Stream 0 pixel clock PLL output provided by PHY block Best regards, Krzysztof
On Tue, Dec 03, 2024 at 09:01:31AM +0100, Krzysztof Kozlowski wrote: > On 03/12/2024 04:31, Abhinav Kumar wrote: > > Document the assigned-clock-parents better for the DP controller node > > to indicate its functionality better. > > > You change the clocks entirely, not "document". I would say that's an > ABI break if it really is a Linux requirement. You could avoid any > problems by just dropping the property from binding. But if you take a look at the existing usage, the proposed change matches the behaviour. So, I'd say, it's really a change that makes documentation follow the actual hardware. > > > > > Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com> > > --- > > Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > index 35ae2630c2b3..9fe2bf0484d8 100644 > > --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > @@ -72,8 +72,8 @@ properties: > > > > assigned-clock-parents: > > items: > > - - description: phy 0 parent > > - - description: phy 1 parent > > + - description: Link clock PLL output provided by PHY block > > + - description: Stream 0 pixel clock PLL output provided by PHY block > > > Best regards, > Krzysztof
On Tue, Dec 03, 2024 at 03:41:48PM +0200, Dmitry Baryshkov wrote: > On Tue, Dec 03, 2024 at 09:01:31AM +0100, Krzysztof Kozlowski wrote: > > On 03/12/2024 04:31, Abhinav Kumar wrote: > > > Document the assigned-clock-parents better for the DP controller node > > > to indicate its functionality better. > > > > > > You change the clocks entirely, not "document". I would say that's an > > ABI break if it really is a Linux requirement. You could avoid any > > problems by just dropping the property from binding. > > But if you take a look at the existing usage, the proposed change > matches the behaviour. So, I'd say, it's really a change that makes > documentation follow the actual hardware. First, this should be in the commit msg, instead of "document better to indicate functionality better". Second, what is the point of documenting it in the first place if you can change it and changing has no impact? So maybe just drop? Best regards, Krzysztof
On Wed, Dec 04, 2024 at 09:02:18AM +0100, Krzysztof Kozlowski wrote: > On Tue, Dec 03, 2024 at 03:41:48PM +0200, Dmitry Baryshkov wrote: > > On Tue, Dec 03, 2024 at 09:01:31AM +0100, Krzysztof Kozlowski wrote: > > > On 03/12/2024 04:31, Abhinav Kumar wrote: > > > > Document the assigned-clock-parents better for the DP controller node > > > > to indicate its functionality better. > > > > > > > > > You change the clocks entirely, not "document". I would say that's an > > > ABI break if it really is a Linux requirement. You could avoid any > > > problems by just dropping the property from binding. > > > > But if you take a look at the existing usage, the proposed change > > matches the behaviour. So, I'd say, it's really a change that makes > > documentation follow the actual hardware. > > First, this should be in the commit msg, instead of "document better to > indicate functionality better". > > Second, what is the point of documenting it in the first place if you > can change it and changing has no impact? So maybe just drop? So, do you suggest setting both of the property descriptions to true? Or dropping them completely and using unevaluatedProperties instead of additionalProperties?
diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index 35ae2630c2b3..9fe2bf0484d8 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -72,8 +72,8 @@ properties: assigned-clock-parents: items: - - description: phy 0 parent - - description: phy 1 parent + - description: Link clock PLL output provided by PHY block + - description: Stream 0 pixel clock PLL output provided by PHY block phys: maxItems: 1
Document the assigned-clock-parents better for the DP controller node to indicate its functionality better. Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com> --- Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)