dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/2 dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number
From: Fabio Estevam <[email protected]>
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
--- .../bindings/soc/imx/fsl,imx-anatop.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +18 -0
@@ -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:
Signature · 1 line
2.34.1
Fabio Estevam
reviewerPATCH 2/2 dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators
From: Fabio Estevam <[email protected]>
i.MX7 has the following anatop regulators: vdd1p0d and vdd1p2.
i.MX6SX has the following anatop regulators: vddpcie.
Add them to the allowed patternProperties.
--- Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +1 -1
@@ -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
Signature · 1 line
2.34.1
Re: [PATCH 2/2] dt-bindings: soc: imx: fsl, imx-anatop: Add additional regulators
Hi Fabio,
thanks for the patch.
Am Freitag, 25. Oktober 2024, 02:41:59 CEST schrieb Fabio Estevam:
Quoted 9 lines
From: Fabio Estevam <[email protected]>
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 <[email protected]>
Quoted 18 lines
--- Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +1
-1@@ -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
Signature · 4 lines
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/
Re: [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators
In reply to Fabio EstevamQuoted 18 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
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 <[email protected]>--- Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +0
-0
Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml properties: · line 47
Quoted 5 lines
Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +1
-1@@ -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,
Re: [PATCH 1/2] dt-bindings: soc: imx: fsl, imx-anatop: Fix the i.MX7 irq number
In reply to Fabio EstevamHi Fabio,
thanks for the patch.
Am Freitag, 25. Oktober 2024, 02:41:58 CEST schrieb Fabio Estevam:
Quoted 10 lines
From: Fabio Estevam <[email protected]>
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 <[email protected]>
Quoted 41 lines
--- .../bindings/soc/imx/fsl,imx-anatop.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +18
-0@@ -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:
Signature · 4 lines
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/
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
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:
Quoted 7 lines
anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short
Signed-off-by Fabio Estevam <[email protected]>--- .../bindings/soc/imx/fsl,imx-anatop.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Shawn Guo
AppliedQuoted 10 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
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 <[email protected]>
Applied both, thanks!