* [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number
@ 2024-10-25 0:41 Fabio Estevam
2024-10-25 0:41 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators Fabio Estevam
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Fabio Estevam @ 2024-10-25 0:41 UTC (permalink / raw)
To: shawnguo
Cc: robh, krzk+dt, conor+dt, devicetree, linux-arm-kernel, imx,
Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
Unlike the other i.MX devices, i.MX7 has only two anatop interrupts.
Add logic that contemplates such case to fix the following
dt-schema warning:
anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
.../bindings/soc/imx/fsl,imx-anatop.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
index c4ae4f28422b..ae708a658d52 100644
--- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
+++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
@@ -36,6 +36,7 @@ properties:
- description: Temperature sensor event
- description: Brown-out event on either of the support regulators
- description: Brown-out event on either the core, gpu or soc regulators
+ minItems: 2
tempmon:
type: object
@@ -52,6 +53,23 @@ required:
- compatible
- reg
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - fsl,imx7d-anatop
+ then:
+ properties:
+ interrupts:
+ maxItems: 2
+ else:
+ properties:
+ interrupts:
+ minItems: 3
+ maxItems: 3
+
additionalProperties: false
examples:
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators
2024-10-25 0:41 [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number Fabio Estevam
@ 2024-10-25 0:41 ` Fabio Estevam
2024-10-25 10:14 ` [PATCH 2/2] dt-bindings: soc: imx: fsl, imx-anatop: " Alexander Stein
2024-10-27 21:45 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: " Rob Herring
2024-10-25 10:19 ` [PATCH 1/2] dt-bindings: soc: imx: fsl, imx-anatop: Fix the i.MX7 irq number Alexander Stein
` (2 subsequent siblings)
3 siblings, 2 replies; 7+ messages in thread
From: Fabio Estevam @ 2024-10-25 0:41 UTC (permalink / raw)
To: shawnguo
Cc: robh, krzk+dt, conor+dt, devicetree, linux-arm-kernel, imx,
Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
i.MX7 has the following anatop regulators: vdd1p0d and vdd1p2.
i.MX6SX has the following anatop regulators: vddpcie.
Add them to the allowed patternProperties.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
index ae708a658d52..f40c157908aa 100644
--- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
+++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
@@ -44,7 +44,7 @@ properties:
$ref: /schemas/thermal/imx-thermal.yaml
patternProperties:
- "regulator-((1p1)|(2p5)|(3p0)|(vddcore)|(vddpu)|(vddsoc))$":
+ "regulator-((1p1)|(2p5)|(3p0)|(vdd1p0d)|(vdd1p2)|(vddcore)|(vddpcie)|(vddpu)|(vddsoc))$":
type: object
unevaluatedProperties: false
$ref: /schemas/regulator/anatop-regulator.yaml
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: soc: imx: fsl, imx-anatop: Add additional regulators
2024-10-25 0:41 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators Fabio Estevam
@ 2024-10-25 10:14 ` Alexander Stein
2024-10-27 21:45 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: " Rob Herring
1 sibling, 0 replies; 7+ messages in thread
From: Alexander Stein @ 2024-10-25 10:14 UTC (permalink / raw)
To: shawnguo, linux-arm-kernel
Cc: robh, krzk+dt, conor+dt, devicetree, linux-arm-kernel, imx,
Fabio Estevam, Fabio Estevam
Hi Fabio,
thanks for the patch.
Am Freitag, 25. Oktober 2024, 02:41:59 CEST schrieb Fabio Estevam:
> From: Fabio Estevam <festevam@denx.de>
>
> i.MX7 has the following anatop regulators: vdd1p0d and vdd1p2.
>
> i.MX6SX has the following anatop regulators: vddpcie.
>
> Add them to the allowed patternProperties.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> index ae708a658d52..f40c157908aa 100644
> --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> @@ -44,7 +44,7 @@ properties:
> $ref: /schemas/thermal/imx-thermal.yaml
>
> patternProperties:
> - "regulator-((1p1)|(2p5)|(3p0)|(vddcore)|(vddpu)|(vddsoc))$":
> + "regulator-((1p1)|(2p5)|(3p0)|(vdd1p0d)|(vdd1p2)|(vddcore)|(vddpcie)|(vddpu)|(vddsoc))$":
> type: object
> unevaluatedProperties: false
> $ref: /schemas/regulator/anatop-regulator.yaml
>
--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: soc: imx: fsl, imx-anatop: Fix the i.MX7 irq number
2024-10-25 0:41 [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number Fabio Estevam
2024-10-25 0:41 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators Fabio Estevam
@ 2024-10-25 10:19 ` Alexander Stein
2024-10-27 21:43 ` [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: " Rob Herring (Arm)
2024-11-02 3:21 ` Shawn Guo
3 siblings, 0 replies; 7+ messages in thread
From: Alexander Stein @ 2024-10-25 10:19 UTC (permalink / raw)
To: shawnguo, linux-arm-kernel
Cc: robh, krzk+dt, conor+dt, devicetree, linux-arm-kernel, imx,
Fabio Estevam, Fabio Estevam
Hi Fabio,
thanks for the patch.
Am Freitag, 25. Oktober 2024, 02:41:58 CEST schrieb Fabio Estevam:
> From: Fabio Estevam <festevam@denx.de>
>
> Unlike the other i.MX devices, i.MX7 has only two anatop interrupts.
>
> Add logic that contemplates such case to fix the following
> dt-schema warning:
>
> anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> .../bindings/soc/imx/fsl,imx-anatop.yaml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> index c4ae4f28422b..ae708a658d52 100644
> --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> @@ -36,6 +36,7 @@ properties:
> - description: Temperature sensor event
> - description: Brown-out event on either of the support regulators
> - description: Brown-out event on either the core, gpu or soc regulators
> + minItems: 2
>
> tempmon:
> type: object
> @@ -52,6 +53,23 @@ required:
> - compatible
> - reg
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - fsl,imx7d-anatop
> + then:
> + properties:
> + interrupts:
> + maxItems: 2
> + else:
> + properties:
> + interrupts:
> + minItems: 3
> + maxItems: 3
> +
> additionalProperties: false
>
> examples:
>
--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number
2024-10-25 0:41 [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number Fabio Estevam
2024-10-25 0:41 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators Fabio Estevam
2024-10-25 10:19 ` [PATCH 1/2] dt-bindings: soc: imx: fsl, imx-anatop: Fix the i.MX7 irq number Alexander Stein
@ 2024-10-27 21:43 ` Rob Herring (Arm)
2024-11-02 3:21 ` Shawn Guo
3 siblings, 0 replies; 7+ messages in thread
From: Rob Herring (Arm) @ 2024-10-27 21:43 UTC (permalink / raw)
To: Fabio Estevam
Cc: krzk+dt, devicetree, Fabio Estevam, shawnguo, linux-arm-kernel,
imx, conor+dt
On Thu, 24 Oct 2024 21:41:58 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Unlike the other i.MX devices, i.MX7 has only two anatop interrupts.
>
> Add logic that contemplates such case to fix the following
> dt-schema warning:
>
> anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> .../bindings/soc/imx/fsl,imx-anatop.yaml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators
2024-10-25 0:41 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators Fabio Estevam
2024-10-25 10:14 ` [PATCH 2/2] dt-bindings: soc: imx: fsl, imx-anatop: " Alexander Stein
@ 2024-10-27 21:45 ` Rob Herring
1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2024-10-27 21:45 UTC (permalink / raw)
To: Fabio Estevam
Cc: shawnguo, krzk+dt, conor+dt, devicetree, linux-arm-kernel, imx,
Fabio Estevam
On Thu, Oct 24, 2024 at 09:41:59PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> i.MX7 has the following anatop regulators: vdd1p0d and vdd1p2.
>
> i.MX6SX has the following anatop regulators: vddpcie.
>
> Add them to the allowed patternProperties.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> index ae708a658d52..f40c157908aa 100644
> --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
> @@ -44,7 +44,7 @@ properties:
> $ref: /schemas/thermal/imx-thermal.yaml
>
> patternProperties:
> - "regulator-((1p1)|(2p5)|(3p0)|(vddcore)|(vddpu)|(vddsoc))$":
> + "regulator-((1p1)|(2p5)|(3p0)|(vdd1p0d)|(vdd1p2)|(vddcore)|(vddpcie)|(vddpu)|(vddsoc))$":
Perhaps to shorten a bit: (vdd(1p0d|1p2|core|pcie|pu|soc))
Either way,
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number
2024-10-25 0:41 [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number Fabio Estevam
` (2 preceding siblings ...)
2024-10-27 21:43 ` [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: " Rob Herring (Arm)
@ 2024-11-02 3:21 ` Shawn Guo
3 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2024-11-02 3:21 UTC (permalink / raw)
To: Fabio Estevam
Cc: shawnguo, robh, krzk+dt, conor+dt, devicetree, linux-arm-kernel,
imx, Fabio Estevam
On Thu, Oct 24, 2024 at 09:41:58PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Unlike the other i.MX devices, i.MX7 has only two anatop interrupts.
>
> Add logic that contemplates such case to fix the following
> dt-schema warning:
>
> anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied both, thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-11-02 3:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25 0:41 [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number Fabio Estevam
2024-10-25 0:41 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators Fabio Estevam
2024-10-25 10:14 ` [PATCH 2/2] dt-bindings: soc: imx: fsl, imx-anatop: " Alexander Stein
2024-10-27 21:45 ` [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: " Rob Herring
2024-10-25 10:19 ` [PATCH 1/2] dt-bindings: soc: imx: fsl, imx-anatop: Fix the i.MX7 irq number Alexander Stein
2024-10-27 21:43 ` [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: " Rob Herring (Arm)
2024-11-02 3:21 ` 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).