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(-)
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
--
2.34.1
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 -- With best wishes Dmitry
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? -- With best wishes Dmitry
© 2016 - 2024 Red Hat, Inc.