* [PATCH] dt-bindings: thermal: k3-j72xx: Update bindings for J721S2 SoCs
@ 2023-12-28 6:39 Manorit Chawdhry
2024-01-04 9:33 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Manorit Chawdhry @ 2023-12-28 6:39 UTC (permalink / raw)
To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, J Keerthy
Cc: linux-pm, devicetree, linux-kernel, Udit Kumar, Nishanth Menon,
Vignesh Raghavendra, Manorit Chawdhry
The clock and processor ID for J721S2 differs from the existing
compatibles, add a new compatible to represent this change for adding
support for Adaptive voltage scaling.
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
---
.../devicetree/bindings/thermal/ti,j72xx-thermal.yaml | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
index 171b3622ed84..5792ccc058aa 100644
--- a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
@@ -24,9 +24,13 @@ description: |
properties:
compatible:
- enum:
- - ti,j721e-vtm
- - ti,j7200-vtm
+ anyOf:
+ - items:
+ - enum:
+ - ti,j721e-vtm
+ - ti,j7200-vtm
+ - ti,j721s2-vtm
+ - maxItems: 2
reg:
items:
@@ -72,7 +76,7 @@ examples:
- |
#include <dt-bindings/soc/ti,sci_pm_domain.h>
wkup_vtm0: thermal-sensor@42040000 {
- compatible = "ti,j721e-vtm";
+ compatible = "ti,j721e-vtm", "ti,j7200-vtm";
reg = <0x42040000 0x350>,
<0x42050000 0x350>,
<0x43000300 0x10>;
---
base-commit: 39676dfe52331dba909c617f213fdb21015c8d10
change-id: 20231228-b4-upstream-j721s2-vtm-dt-binding-95e61c942c34
Best regards,
--
Manorit Chawdhry <m-chawdhry@ti.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: thermal: k3-j72xx: Update bindings for J721S2 SoCs
2023-12-28 6:39 [PATCH] dt-bindings: thermal: k3-j72xx: Update bindings for J721S2 SoCs Manorit Chawdhry
@ 2024-01-04 9:33 ` Krzysztof Kozlowski
2024-01-04 15:20 ` Nishanth Menon
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-04 9:33 UTC (permalink / raw)
To: Manorit Chawdhry, Rafael J. Wysocki, Daniel Lezcano, Zhang Rui,
Lukasz Luba, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
J Keerthy
Cc: linux-pm, devicetree, linux-kernel, Udit Kumar, Nishanth Menon,
Vignesh Raghavendra
On 28/12/2023 07:39, Manorit Chawdhry wrote:
> The clock and processor ID for J721S2 differs from the existing
> compatibles, add a new compatible to represent this change for adding
> support for Adaptive voltage scaling.
Subject: everything is "update". Write proper subjects.
A nit, subject: drop second/last, redundant "bindings for". The
"dt-bindings" prefix is already stating that these are bindings.
>
> Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
> ---
> .../devicetree/bindings/thermal/ti,j72xx-thermal.yaml | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
> index 171b3622ed84..5792ccc058aa 100644
> --- a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
> +++ b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
> @@ -24,9 +24,13 @@ description: |
>
> properties:
> compatible:
> - enum:
> - - ti,j721e-vtm
> - - ti,j7200-vtm
> + anyOf:
? Eh, what?
> + - items:
> + - enum:
> + - ti,j721e-vtm
> + - ti,j7200-vtm
> + - ti,j721s2-vtm
> + - maxItems: 2
What? I really do not understand what are you doing here.
>
> reg:
> items:
> @@ -72,7 +76,7 @@ examples:
> - |
> #include <dt-bindings/soc/ti,sci_pm_domain.h>
> wkup_vtm0: thermal-sensor@42040000 {
> - compatible = "ti,j721e-vtm";
> + compatible = "ti,j721e-vtm", "ti,j7200-vtm";
It's an enum, not a list.
NAK, please read example-schema and other bindings. Then get review from
TI folks before posting new versions.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: thermal: k3-j72xx: Update bindings for J721S2 SoCs
2024-01-04 9:33 ` Krzysztof Kozlowski
@ 2024-01-04 15:20 ` Nishanth Menon
0 siblings, 0 replies; 3+ messages in thread
From: Nishanth Menon @ 2024-01-04 15:20 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Manorit Chawdhry, Rafael J. Wysocki, Daniel Lezcano, Zhang Rui,
Lukasz Luba, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
J Keerthy, linux-pm, devicetree, linux-kernel, Udit Kumar,
Vignesh Raghavendra
On 10:33-20240104, Krzysztof Kozlowski wrote:
> On 28/12/2023 07:39, Manorit Chawdhry wrote:
> > The clock and processor ID for J721S2 differs from the existing
> > compatibles, add a new compatible to represent this change for adding
> > support for Adaptive voltage scaling.
This makes no sense to begin with. You do not need a new compatible just
for clock ID change (processor ID has nothing to do with vtm node).
This approach is just plain wrong. AVS support has been done in the past
(class 3,2,1.5 and 0) and bindings have been mature for more that a
decade for the same.
So NAK for this patch
>
> Subject: everything is "update". Write proper subjects.
>
> A nit, subject: drop second/last, redundant "bindings for". The
> "dt-bindings" prefix is already stating that these are bindings.
>
>
>
> >
> > Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
> > ---
> > .../devicetree/bindings/thermal/ti,j72xx-thermal.yaml | 12 ++++++++----
> > 1 file changed, 8 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
> > index 171b3622ed84..5792ccc058aa 100644
> > --- a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
> > +++ b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
> > @@ -24,9 +24,13 @@ description: |
> >
> > properties:
> > compatible:
> > - enum:
> > - - ti,j721e-vtm
> > - - ti,j7200-vtm
> > + anyOf:
>
> ? Eh, what?
>
> > + - items:
> > + - enum:
> > + - ti,j721e-vtm
> > + - ti,j7200-vtm
> > + - ti,j721s2-vtm
> > + - maxItems: 2
>
> What? I really do not understand what are you doing here.
>
>
> >
> > reg:
> > items:
> > @@ -72,7 +76,7 @@ examples:
> > - |
> > #include <dt-bindings/soc/ti,sci_pm_domain.h>
> > wkup_vtm0: thermal-sensor@42040000 {
> > - compatible = "ti,j721e-vtm";
> > + compatible = "ti,j721e-vtm", "ti,j7200-vtm";
>
> It's an enum, not a list.
>
> NAK, please read example-schema and other bindings. Then get review from
> TI folks before posting new versions.
>
> Best regards,
> Krzysztof
>
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-04 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-28 6:39 [PATCH] dt-bindings: thermal: k3-j72xx: Update bindings for J721S2 SoCs Manorit Chawdhry
2024-01-04 9:33 ` Krzysztof Kozlowski
2024-01-04 15:20 ` Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).