Message ID | 20240313-videocc-sm8150-dt-node-v1-1-ae8ec3c822c2@quicinc.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Add DT support for video clock controller on SM8150 | expand |
On 13/03/2024 12:08, Satya Priya Kakitapalli wrote: > Update the videocc device tree bindings for sm8150 to align with the > latest convention. Everything is an update. Please explain what you did and why. The "why" part you tried to cover but I just don't understand what is "align with the latest convention". What convention? > > Fixes: 35d26e9292e2 ("dt-bindings: clock: Add YAML schemas for the QCOM VIDEOCC clock bindings") What is the bug being fixed here? > Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> > --- > Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml | 1 + > Documentation/devicetree/bindings/clock/qcom,videocc.yaml | 3 --- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > index bad8f019a8d3..e00fdc8ceaa4 100644 > --- a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > +++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > @@ -20,6 +20,7 @@ properties: > enum: > - qcom,sm8450-videocc > - qcom,sm8550-videocc > + - qcom,sm8150-videocc Wrong order. Look at the place from where you copied it. Best regards, Krzysztof
On Wed, 13 Mar 2024 at 13:11, Satya Priya Kakitapalli <quic_skakitap@quicinc.com> wrote: > > Update the videocc device tree bindings for sm8150 to align with the > latest convention. But why? Bindings already exist. There is nothing wrong with them. And sm8150 platform in general uses name-based lookup. > > Fixes: 35d26e9292e2 ("dt-bindings: clock: Add YAML schemas for the QCOM VIDEOCC clock bindings") It is not a fix, there is no bug that this commit is fixing. > Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> > --- > Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml | 1 + > Documentation/devicetree/bindings/clock/qcom,videocc.yaml | 3 --- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > index bad8f019a8d3..e00fdc8ceaa4 100644 > --- a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > +++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > @@ -20,6 +20,7 @@ properties: > enum: > - qcom,sm8450-videocc > - qcom,sm8550-videocc > + - qcom,sm8150-videocc > > reg: > maxItems: 1 > diff --git a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml > index 6999e36ace1b..28d134ad9517 100644 > --- a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml > +++ b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml > @@ -17,7 +17,6 @@ description: | > include/dt-bindings/clock/qcom,videocc-sc7180.h > include/dt-bindings/clock/qcom,videocc-sc7280.h > include/dt-bindings/clock/qcom,videocc-sdm845.h > - include/dt-bindings/clock/qcom,videocc-sm8150.h > include/dt-bindings/clock/qcom,videocc-sm8250.h > > properties: > @@ -26,7 +25,6 @@ properties: > - qcom,sc7180-videocc > - qcom,sc7280-videocc > - qcom,sdm845-videocc > - - qcom,sm8150-videocc > - qcom,sm8250-videocc > > clocks: > @@ -75,7 +73,6 @@ allOf: > enum: > - qcom,sc7180-videocc > - qcom,sdm845-videocc > - - qcom,sm8150-videocc > then: > properties: > clocks: > > -- > 2.25.1 > >
On 3/13/2024 10:21 PM, Krzysztof Kozlowski wrote: > On 13/03/2024 12:08, Satya Priya Kakitapalli wrote: >> Update the videocc device tree bindings for sm8150 to align with the >> latest convention. > Everything is an update. Please explain what you did and why. The "why" > part you tried to cover but I just don't understand what is "align with > the latest convention". What convention? As per the recent upstream discussions, it is recommended to use index-based lookup instead of using clock names. The current bindings is not aligned with this, hence updating. I'll add the details to commit text. >> Fixes: 35d26e9292e2 ("dt-bindings: clock: Add YAML schemas for the QCOM VIDEOCC clock bindings") > What is the bug being fixed here? There are 2 clocks required for this, AHB and XO. Only one clock is mentioned in the bindings for SM8150, this is one of the reasons to move to latest sm8450 bindings apart from clock names. Hence added a Fixes tag. >> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> >> --- >> Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml | 1 + >> Documentation/devicetree/bindings/clock/qcom,videocc.yaml | 3 --- >> 2 files changed, 1 insertion(+), 3 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml >> index bad8f019a8d3..e00fdc8ceaa4 100644 >> --- a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml >> +++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml >> @@ -20,6 +20,7 @@ properties: >> enum: >> - qcom,sm8450-videocc >> - qcom,sm8550-videocc >> + - qcom,sm8150-videocc > Wrong order. Look at the place from where you copied it. Sure, will correct it. > Best regards, > Krzysztof >
On 3/14/2024 12:50 AM, Dmitry Baryshkov wrote: > On Wed, 13 Mar 2024 at 13:11, Satya Priya Kakitapalli > <quic_skakitap@quicinc.com> wrote: >> Update the videocc device tree bindings for sm8150 to align with the >> latest convention. > But why? Bindings already exist. There is nothing wrong with them. And > sm8150 platform in general uses name-based lookup. With the new index based lookup introduced we cannot use this bindings, hence I moved to the sm8450-videocc bindings. >> Fixes: 35d26e9292e2 ("dt-bindings: clock: Add YAML schemas for the QCOM VIDEOCC clock bindings") > It is not a fix, there is no bug that this commit is fixing. The clocks list needs to be fixed to add both XO and AHB clocks, and we are adding required-opps property. >> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> >> --- >> Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml | 1 + >> Documentation/devicetree/bindings/clock/qcom,videocc.yaml | 3 --- >> 2 files changed, 1 insertion(+), 3 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml >> index bad8f019a8d3..e00fdc8ceaa4 100644 >> --- a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml >> +++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml >> @@ -20,6 +20,7 @@ properties: >> enum: >> - qcom,sm8450-videocc >> - qcom,sm8550-videocc >> + - qcom,sm8150-videocc >> >> reg: >> maxItems: 1 >> diff --git a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml >> index 6999e36ace1b..28d134ad9517 100644 >> --- a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml >> +++ b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml >> @@ -17,7 +17,6 @@ description: | >> include/dt-bindings/clock/qcom,videocc-sc7180.h >> include/dt-bindings/clock/qcom,videocc-sc7280.h >> include/dt-bindings/clock/qcom,videocc-sdm845.h >> - include/dt-bindings/clock/qcom,videocc-sm8150.h >> include/dt-bindings/clock/qcom,videocc-sm8250.h >> >> properties: >> @@ -26,7 +25,6 @@ properties: >> - qcom,sc7180-videocc >> - qcom,sc7280-videocc >> - qcom,sdm845-videocc >> - - qcom,sm8150-videocc >> - qcom,sm8250-videocc >> >> clocks: >> @@ -75,7 +73,6 @@ allOf: >> enum: >> - qcom,sc7180-videocc >> - qcom,sdm845-videocc >> - - qcom,sm8150-videocc >> then: >> properties: >> clocks: >> >> -- >> 2.25.1 >> >> >
On 14/03/2024 10:13, Satya Priya Kakitapalli (Temp) wrote: > > On 3/13/2024 10:21 PM, Krzysztof Kozlowski wrote: >> On 13/03/2024 12:08, Satya Priya Kakitapalli wrote: >>> Update the videocc device tree bindings for sm8150 to align with the >>> latest convention. >> Everything is an update. Please explain what you did and why. The "why" >> part you tried to cover but I just don't understand what is "align with >> the latest convention". What convention? > > > As per the recent upstream discussions, it is recommended to use > index-based lookup instead of using clock names. The current bindings is > not aligned with this, hence updating. I'll add the details to commit text. Yes, please. > > >>> Fixes: 35d26e9292e2 ("dt-bindings: clock: Add YAML schemas for the QCOM VIDEOCC clock bindings") >> What is the bug being fixed here? > > > There are 2 clocks required for this, AHB and XO. Only one clock is > mentioned in the bindings for SM8150, this is one of the reasons to move > to latest sm8450 bindings apart from clock names. Hence added a Fixes tag. This should be in the commit msg. Best regards, Krzysztof
On Thu, 14 Mar 2024 at 11:19, Satya Priya Kakitapalli (Temp) <quic_skakitap@quicinc.com> wrote: > > > On 3/14/2024 12:50 AM, Dmitry Baryshkov wrote: > > On Wed, 13 Mar 2024 at 13:11, Satya Priya Kakitapalli > > <quic_skakitap@quicinc.com> wrote: > >> Update the videocc device tree bindings for sm8150 to align with the > >> latest convention. > > But why? Bindings already exist. There is nothing wrong with them. And > > sm8150 platform in general uses name-based lookup. > > > With the new index based lookup introduced we cannot use this bindings, > hence I moved to the sm8450-videocc bindings. This is true for _new_ drivers. However you have a driver already. And the driver has bindings. If you check, existing drivers were updated from parent_names to fw_name / parent_hw lookups. However none of the drivers was _updated_ to use index-based lookups. > >> Fixes: 35d26e9292e2 ("dt-bindings: clock: Add YAML schemas for the QCOM VIDEOCC clock bindings") > > It is not a fix, there is no bug that this commit is fixing. > > > The clocks list needs to be fixed to add both XO and AHB clocks, and we > are adding required-opps property. Oh, so you have mixed two unrelated changes without telling anybody. Please don't do this. > > > >> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> > >> --- > >> Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml | 1 + > >> Documentation/devicetree/bindings/clock/qcom,videocc.yaml | 3 --- > >> 2 files changed, 1 insertion(+), 3 deletions(-) > >> > >> diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > >> index bad8f019a8d3..e00fdc8ceaa4 100644 > >> --- a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > >> +++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml > >> @@ -20,6 +20,7 @@ properties: > >> enum: > >> - qcom,sm8450-videocc > >> - qcom,sm8550-videocc > >> + - qcom,sm8150-videocc > >> > >> reg: > >> maxItems: 1 > >> diff --git a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml > >> index 6999e36ace1b..28d134ad9517 100644 > >> --- a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml > >> +++ b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml > >> @@ -17,7 +17,6 @@ description: | > >> include/dt-bindings/clock/qcom,videocc-sc7180.h > >> include/dt-bindings/clock/qcom,videocc-sc7280.h > >> include/dt-bindings/clock/qcom,videocc-sdm845.h > >> - include/dt-bindings/clock/qcom,videocc-sm8150.h > >> include/dt-bindings/clock/qcom,videocc-sm8250.h > >> > >> properties: > >> @@ -26,7 +25,6 @@ properties: > >> - qcom,sc7180-videocc > >> - qcom,sc7280-videocc > >> - qcom,sdm845-videocc > >> - - qcom,sm8150-videocc > >> - qcom,sm8250-videocc > >> > >> clocks: > >> @@ -75,7 +73,6 @@ allOf: > >> enum: > >> - qcom,sc7180-videocc > >> - qcom,sdm845-videocc > >> - - qcom,sm8150-videocc > >> then: > >> properties: > >> clocks: > >> > >> -- > >> 2.25.1 > >> > >> > >
diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml index bad8f019a8d3..e00fdc8ceaa4 100644 --- a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml @@ -20,6 +20,7 @@ properties: enum: - qcom,sm8450-videocc - qcom,sm8550-videocc + - qcom,sm8150-videocc reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml index 6999e36ace1b..28d134ad9517 100644 --- a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml @@ -17,7 +17,6 @@ description: | include/dt-bindings/clock/qcom,videocc-sc7180.h include/dt-bindings/clock/qcom,videocc-sc7280.h include/dt-bindings/clock/qcom,videocc-sdm845.h - include/dt-bindings/clock/qcom,videocc-sm8150.h include/dt-bindings/clock/qcom,videocc-sm8250.h properties: @@ -26,7 +25,6 @@ properties: - qcom,sc7180-videocc - qcom,sc7280-videocc - qcom,sdm845-videocc - - qcom,sm8150-videocc - qcom,sm8250-videocc clocks: @@ -75,7 +73,6 @@ allOf: enum: - qcom,sc7180-videocc - qcom,sdm845-videocc - - qcom,sm8150-videocc then: properties: clocks:
Update the videocc device tree bindings for sm8150 to align with the latest convention. Fixes: 35d26e9292e2 ("dt-bindings: clock: Add YAML schemas for the QCOM VIDEOCC clock bindings") Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> --- Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml | 1 + Documentation/devicetree/bindings/clock/qcom,videocc.yaml | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)