* [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt
@ 2023-09-10 12:57 Fabio Estevam
2023-09-10 12:57 ` [PATCH v2 2/2] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range maxItems Fabio Estevam
2023-09-25 2:06 ` [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt Shawn Guo
0 siblings, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2023-09-10 12:57 UTC (permalink / raw)
To: shawnguo
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
linux-arm-kernel, rafael, daniel.lezcano, amitk, linux-pm,
linux-imx, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
The Thermal Monitoring Unit (TMU) interrupt is number 83.
Describe it in the devicetree to fix the following schema warning:
imx93-11x11-evk.dtb: tmu@44482000: 'oneOf' conditional failed, one must be fixed:
'interrupts' is a required property
'interrupts-extended' is a required property
from schema $id: http://devicetree.org/schemas/thermal/qoriq-thermal.yaml#
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v1:
- None
arch/arm64/boot/dts/freescale/imx93.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 6f85a05ee7e1..5d36b7a5bbd5 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -385,6 +385,7 @@ anatop: anatop@44480000 {
tmu: tmu@44482000 {
compatible = "fsl,qoriq-tmu";
reg = <0x44482000 0x1000>;
+ interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX93_CLK_TMC_GATE>;
little-endian;
fsl,tmu-range = <0x800000da 0x800000e9
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range maxItems
2023-09-10 12:57 [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt Fabio Estevam
@ 2023-09-10 12:57 ` Fabio Estevam
2023-09-11 6:14 ` Krzysztof Kozlowski
2023-09-25 2:06 ` [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt Shawn Guo
1 sibling, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2023-09-10 12:57 UTC (permalink / raw)
To: shawnguo
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
linux-arm-kernel, rafael, daniel.lezcano, amitk, linux-pm,
linux-imx, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
imx93 has a maximum of seven entries for fsl,tmu-range.
Change it 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 v1:
- Reduce the context of the schema warning in the commit log.
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..d3734fc66f78 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: 4
+ maxItems: 7
fsl,tmu-calibration:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range maxItems
2023-09-10 12:57 ` [PATCH v2 2/2] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range maxItems Fabio Estevam
@ 2023-09-11 6:14 ` Krzysztof Kozlowski
2023-09-11 21:03 ` Fabio Estevam
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-11 6:14 UTC (permalink / raw)
To: Fabio Estevam, shawnguo
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
linux-arm-kernel, rafael, daniel.lezcano, amitk, linux-pm,
linux-imx, Fabio Estevam
On 10/09/2023 14:57, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> imx93 has a maximum of seven entries for fsl,tmu-range.
>
Then qoriq should have it constrained to 4 entries.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range maxItems
2023-09-11 6:14 ` Krzysztof Kozlowski
@ 2023-09-11 21:03 ` Fabio Estevam
0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2023-09-11 21:03 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: shawnguo, robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
linux-arm-kernel, rafael, daniel.lezcano, amitk, linux-pm,
linux-imx, Fabio Estevam
Hi Krzysztof,
On Mon, Sep 11, 2023 at 3:14 AM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 10/09/2023 14:57, Fabio Estevam wrote:
> > From: Fabio Estevam <festevam@denx.de>
> >
> > imx93 has a maximum of seven entries for fsl,tmu-range.
> >
>
> Then qoriq should have it constrained to 4 entries.
I just noticed that fsl-lx2160a.dtsi is also has a tmu compatible with
two entries.
Would it be OK to represent it like this?
--- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt
2023-09-10 12:57 [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt Fabio Estevam
2023-09-10 12:57 ` [PATCH v2 2/2] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range maxItems Fabio Estevam
@ 2023-09-25 2:06 ` Shawn Guo
1 sibling, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2023-09-25 2:06 UTC (permalink / raw)
To: Fabio Estevam
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
linux-arm-kernel, rafael, daniel.lezcano, amitk, linux-pm,
linux-imx, Fabio Estevam
On Sun, Sep 10, 2023 at 09:57:25AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> The Thermal Monitoring Unit (TMU) interrupt is number 83.
>
> Describe it in the devicetree to fix the following schema warning:
>
> imx93-11x11-evk.dtb: tmu@44482000: 'oneOf' conditional failed, one must be fixed:
> 'interrupts' is a required property
> 'interrupts-extended' is a required property
> from schema $id: http://devicetree.org/schemas/thermal/qoriq-thermal.yaml#
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied, thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-09-25 2:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-10 12:57 [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt Fabio Estevam
2023-09-10 12:57 ` [PATCH v2 2/2] dt-bindings: thermal: qoriq-thermal: Adjust fsl,tmu-range maxItems Fabio Estevam
2023-09-11 6:14 ` Krzysztof Kozlowski
2023-09-11 21:03 ` Fabio Estevam
2023-09-25 2:06 ` [PATCH v2 1/2] arm64: dts: imx93: Add the TMU interrupt Shawn Guo
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).