linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] dt-bindings: timer: fsl, imxgpt: add optional osc_per clock
@ 2021-08-03  7:29 Oleksij Rempel
  2021-08-11 18:04 ` [PATCH v1] dt-bindings: timer: fsl,imxgpt: " Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Oleksij Rempel @ 2021-08-03  7:29 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, Rob Herring
  Cc: Oleksij Rempel, kernel, linux-kernel, linux-arm-kernel,
	devicetree, Fabio Estevam, NXP Linux Team, Daniel Lezcano,
	Thomas Gleixner

Add optional osc_per and fix dts validation warnings on imx6 SoCs.

Fixes: df8cad689eae ("dt-bindings: timer: Convert i.MX GPT to json-schema")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 .../devicetree/bindings/timer/fsl,imxgpt.yaml   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
index a4f51f46b7a1..e496dd9f4988 100644
--- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
+++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
@@ -43,11 +43,15 @@ properties:
     items:
       - description: SoC GPT ipg clock
       - description: SoC GPT per clock
+      - description: optional SoC GPT oscillator
+    minItems: 2
 
   clock-names:
     items:
       - const: ipg
       - const: per
+      - const: osc_per
+    minItems: 2
 
 required:
   - compatible
@@ -70,3 +74,16 @@ examples:
                  <&clks IMX27_CLK_PER1_GATE>;
         clock-names = "ipg", "per";
     };
+
+  - |
+    #include <dt-bindings/clock/imx6qdl-clock.h>
+
+    timer@2098000 {
+        compatible = "fsl,imx6q-gpt", "fsl,imx31-gpt";
+        reg = <0x02098000 0x4000>;
+        interrupts = <26>;
+        clocks = <&clks IMX6QDL_CLK_GPT_IPG>,
+                 <&clks IMX6QDL_CLK_GPT_IPG_PER>,
+                 <&clks IMX6QDL_CLK_GPT_3M>;
+        clock-names = "ipg", "per", "osc_per";
+    };
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v1] dt-bindings: timer: fsl,imxgpt: add optional osc_per clock
  2021-08-03  7:29 [PATCH v1] dt-bindings: timer: fsl, imxgpt: add optional osc_per clock Oleksij Rempel
@ 2021-08-11 18:04 ` Rob Herring
  2021-08-12  5:18   ` Oleksij Rempel
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2021-08-11 18:04 UTC (permalink / raw)
  To: Oleksij Rempel
  Cc: Shawn Guo, Sascha Hauer, kernel, linux-kernel, linux-arm-kernel,
	devicetree, Fabio Estevam, NXP Linux Team, Daniel Lezcano,
	Thomas Gleixner

On Tue, Aug 03, 2021 at 09:29:58AM +0200, Oleksij Rempel wrote:
> Add optional osc_per and fix dts validation warnings on imx6 SoCs.
> 
> Fixes: df8cad689eae ("dt-bindings: timer: Convert i.MX GPT to json-schema")

I don't think you can say the above commit was broken.

> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  .../devicetree/bindings/timer/fsl,imxgpt.yaml   | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
> index a4f51f46b7a1..e496dd9f4988 100644
> --- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
> +++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
> @@ -43,11 +43,15 @@ properties:
>      items:
>        - description: SoC GPT ipg clock
>        - description: SoC GPT per clock
> +      - description: optional SoC GPT oscillator
> +    minItems: 2

The 3rd clock is valid on every version of the h/w?

>  
>    clock-names:
>      items:
>        - const: ipg
>        - const: per
> +      - const: osc_per
> +    minItems: 2
>  
>  required:
>    - compatible
> @@ -70,3 +74,16 @@ examples:
>                   <&clks IMX27_CLK_PER1_GATE>;
>          clock-names = "ipg", "per";
>      };
> +
> +  - |
> +    #include <dt-bindings/clock/imx6qdl-clock.h>
> +
> +    timer@2098000 {
> +        compatible = "fsl,imx6q-gpt", "fsl,imx31-gpt";
> +        reg = <0x02098000 0x4000>;
> +        interrupts = <26>;
> +        clocks = <&clks IMX6QDL_CLK_GPT_IPG>,
> +                 <&clks IMX6QDL_CLK_GPT_IPG_PER>,
> +                 <&clks IMX6QDL_CLK_GPT_3M>;
> +        clock-names = "ipg", "per", "osc_per";
> +    };
> -- 
> 2.30.2
> 
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v1] dt-bindings: timer: fsl,imxgpt: add optional osc_per clock
  2021-08-11 18:04 ` [PATCH v1] dt-bindings: timer: fsl,imxgpt: " Rob Herring
@ 2021-08-12  5:18   ` Oleksij Rempel
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksij Rempel @ 2021-08-12  5:18 UTC (permalink / raw)
  To: Rob Herring
  Cc: Shawn Guo, Sascha Hauer, kernel, linux-kernel, linux-arm-kernel,
	devicetree, Fabio Estevam, NXP Linux Team, Daniel Lezcano,
	Thomas Gleixner

On Wed, Aug 11, 2021 at 12:04:38PM -0600, Rob Herring wrote:
> On Tue, Aug 03, 2021 at 09:29:58AM +0200, Oleksij Rempel wrote:
> > Add optional osc_per and fix dts validation warnings on imx6 SoCs.
> > 
> > Fixes: df8cad689eae ("dt-bindings: timer: Convert i.MX GPT to json-schema")
> 
> I don't think you can say the above commit was broken.
>
> > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> > ---
> >  .../devicetree/bindings/timer/fsl,imxgpt.yaml   | 17 +++++++++++++++++
> >  1 file changed, 17 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
> > index a4f51f46b7a1..e496dd9f4988 100644
> > --- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
> > +++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
> > @@ -43,11 +43,15 @@ properties:
> >      items:
> >        - description: SoC GPT ipg clock
> >        - description: SoC GPT per clock
> > +      - description: optional SoC GPT oscillator
> > +    minItems: 2
> 
> The 3rd clock is valid on every version of the h/w?

No.

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-08-12  5:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03  7:29 [PATCH v1] dt-bindings: timer: fsl, imxgpt: add optional osc_per clock Oleksij Rempel
2021-08-11 18:04 ` [PATCH v1] dt-bindings: timer: fsl,imxgpt: " Rob Herring
2021-08-12  5:18   ` Oleksij Rempel

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