devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range min/maxItems
@ 2024-01-04 12:49 Fabio Estevam
  2024-01-09 21:29 ` Rob Herring
  2024-02-19 12:46 ` Daniel Lezcano
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2024-01-04 12:49 UTC (permalink / raw)
  To: daniel.lezcano
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-pm, devicetree,
	Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

The number of fsl,tmu-range entries vary among the several NXP SoCs.

- lx2160a has two fsl,tmu-range entries  (fsl,qoriq-tmu compatible)
- imx8mq has four fsl,tmu-range entries. (fsl,imx8mq-tmu compatible)
- imx93 has seven fsl,tmu-range entries. (fsl,qoriq-tmu compatible)

Change minItems and maxItems accordingly.

This fixes the following schema warning:

imx93-11x11-evk.dtb: tmu@44482000: fsl,tmu-range: 'oneOf' conditional failed, one must be fixed:
        [2147483866, 2147483881, 2147483906, 2147483946, 2147484006, 2147484071, 2147484086] is too long

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v3:
- Rebased against next-20240104.
- Do as suggested by Rob:
"So short term, I'd just leave things such that they don't warn or just
drop the conditional."

 Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml b/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml
index 145744027234..d155d6799da6 100644
--- a/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml
@@ -33,7 +33,8 @@ properties:
     description: |
       The values to be programmed into TTRnCR, as specified by the SoC
       reference manual. The first cell is TTR0CR, the second is TTR1CR, etc.
-    maxItems: 4
+    minItems: 2
+    maxItems: 7
 
   fsl,tmu-calibration:
     $ref: /schemas/types.yaml#/definitions/uint32-matrix
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range min/maxItems
  2024-01-04 12:49 [PATCH v4] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range min/maxItems Fabio Estevam
@ 2024-01-09 21:29 ` Rob Herring
  2024-02-19 11:46   ` Fabio Estevam
  2024-02-19 12:46 ` Daniel Lezcano
  1 sibling, 1 reply; 4+ messages in thread
From: Rob Herring @ 2024-01-09 21:29 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: robh+dt, linux-pm, devicetree, Fabio Estevam, daniel.lezcano,
	conor+dt, krzysztof.kozlowski+dt


On Thu, 04 Jan 2024 09:49:52 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> The number of fsl,tmu-range entries vary among the several NXP SoCs.
> 
> - lx2160a has two fsl,tmu-range entries  (fsl,qoriq-tmu compatible)
> - imx8mq has four fsl,tmu-range entries. (fsl,imx8mq-tmu compatible)
> - imx93 has seven fsl,tmu-range entries. (fsl,qoriq-tmu compatible)
> 
> Change minItems and maxItems accordingly.
> 
> This fixes the following schema warning:
> 
> imx93-11x11-evk.dtb: tmu@44482000: fsl,tmu-range: 'oneOf' conditional failed, one must be fixed:
>         [2147483866, 2147483881, 2147483906, 2147483946, 2147484006, 2147484071, 2147484086] is too long
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Changes since v3:
> - Rebased against next-20240104.
> - Do as suggested by Rob:
> "So short term, I'd just leave things such that they don't warn or just
> drop the conditional."
> 
>  Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range min/maxItems
  2024-01-09 21:29 ` Rob Herring
@ 2024-02-19 11:46   ` Fabio Estevam
  0 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2024-02-19 11:46 UTC (permalink / raw)
  To: Rob Herring, daniel.lezcano
  Cc: robh+dt, linux-pm, devicetree, Fabio Estevam, conor+dt,
	krzysztof.kozlowski+dt

Hi Daniel,

On Tue, Jan 9, 2024 at 6:29 PM Rob Herring <robh@kernel.org> wrote:
>
>
> On Thu, 04 Jan 2024 09:49:52 -0300, Fabio Estevam wrote:
> > From: Fabio Estevam <festevam@denx.de>
> >
> > The number of fsl,tmu-range entries vary among the several NXP SoCs.
> >
> > - lx2160a has two fsl,tmu-range entries  (fsl,qoriq-tmu compatible)
> > - imx8mq has four fsl,tmu-range entries. (fsl,imx8mq-tmu compatible)
> > - imx93 has seven fsl,tmu-range entries. (fsl,qoriq-tmu compatible)
> >
> > Change minItems and maxItems accordingly.
> >
> > This fixes the following schema warning:
> >
> > imx93-11x11-evk.dtb: tmu@44482000: fsl,tmu-range: 'oneOf' conditional failed, one must be fixed:
> >         [2147483866, 2147483881, 2147483906, 2147483946, 2147484006, 2147484071, 2147484086] is too long
> >
> > Signed-off-by: Fabio Estevam <festevam@denx.de>
> > ---
> > Changes since v3:
> > - Rebased against next-20240104.
> > - Do as suggested by Rob:
> > "So short term, I'd just leave things such that they don't warn or just
> > drop the conditional."
> >
> >  Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
>
> Reviewed-by: Rob Herring <robh@kernel.org>

Could you please apply this one?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v4] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range min/maxItems
  2024-01-04 12:49 [PATCH v4] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range min/maxItems Fabio Estevam
  2024-01-09 21:29 ` Rob Herring
@ 2024-02-19 12:46 ` Daniel Lezcano
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2024-02-19 12:46 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-pm, devicetree,
	Fabio Estevam

On 04/01/2024 13:49, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> The number of fsl,tmu-range entries vary among the several NXP SoCs.
> 
> - lx2160a has two fsl,tmu-range entries  (fsl,qoriq-tmu compatible)
> - imx8mq has four fsl,tmu-range entries. (fsl,imx8mq-tmu compatible)
> - imx93 has seven fsl,tmu-range entries. (fsl,qoriq-tmu compatible)
> 
> Change minItems and maxItems accordingly.
> 
> This fixes the following schema warning:
> 
> imx93-11x11-evk.dtb: tmu@44482000: fsl,tmu-range: 'oneOf' conditional failed, one must be fixed:
>          [2147483866, 2147483881, 2147483906, 2147483946, 2147484006, 2147484071, 2147484086] is too long
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---

Applied, thanks

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-19 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04 12:49 [PATCH v4] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range min/maxItems Fabio Estevam
2024-01-09 21:29 ` Rob Herring
2024-02-19 11:46   ` Fabio Estevam
2024-02-19 12:46 ` Daniel Lezcano

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).