public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop
@ 2023-10-18  8:44 Peng Fan (OSS)
  2023-10-18  8:44 ` [PATCH 2/2] arm64: dts: imx93: update anatop node Peng Fan (OSS)
  2023-10-18 13:55 ` [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop Conor Dooley
  0 siblings, 2 replies; 6+ messages in thread
From: Peng Fan (OSS) @ 2023-10-18  8:44 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer,
	sboyd, abelvesa
  Cc: kernel, estevam, linux-imx, devicetree, linux-arm-kernel,
	inux-clk, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Support i.MX93 Anatop which generates PLL and feeds into CCM.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 .../bindings/clock/fsl,imx93-anatop.yaml      | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml

diff --git a/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
new file mode 100644
index 000000000000..9585c9e4ee40
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/fsl,imx93-anatop.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP i.MX93 Anatop Module
+
+maintainers:
+  - Peng Fan <peng.fan@nxp.com>
+
+description: |
+  NXP i.MX93 anatop PLL module which generates PLL to CCM root.
+
+properties:
+  compatible:
+    items:
+      - const: fsl,imx93-anatop
+
+  reg:
+    maxItems: 1
+
+  '#clock-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    anatop: clock-controller@44480000 {
+        compatible = "fsl,imx93-anatop";
+        reg = <0x44480000 0x2000>;
+        #clock-cells = <1>;
+    };
+
+...
-- 
2.37.1


_______________________________________________
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] 6+ messages in thread

* [PATCH 2/2] arm64: dts: imx93: update anatop node
  2023-10-18  8:44 [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop Peng Fan (OSS)
@ 2023-10-18  8:44 ` Peng Fan (OSS)
  2023-10-18 13:55 ` [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop Conor Dooley
  1 sibling, 0 replies; 6+ messages in thread
From: Peng Fan (OSS) @ 2023-10-18  8:44 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer,
	sboyd, abelvesa
  Cc: kernel, estevam, linux-imx, devicetree, linux-arm-kernel,
	inux-clk, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

The anatop module actually generates PLL to CCM. Since the
binding doc has been updated to clock-controller for this module,
Let's also update the device tree node.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx93.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index ceccf4766440..4e7a51ae743d 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -422,9 +422,10 @@ mediamix: power-domain@44462400 {
 				};
 			};
 
-			anatop: anatop@44480000 {
-				compatible = "fsl,imx93-anatop", "syscon";
+			anatop: clock-controller@44480000 {
+				compatible = "fsl,imx93-anatop";
 				reg = <0x44480000 0x2000>;
+				#clock-cells = <1>;
 			};
 
 			tmu: tmu@44482000 {
-- 
2.37.1


_______________________________________________
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] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop
  2023-10-18  8:44 [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop Peng Fan (OSS)
  2023-10-18  8:44 ` [PATCH 2/2] arm64: dts: imx93: update anatop node Peng Fan (OSS)
@ 2023-10-18 13:55 ` Conor Dooley
  2023-10-19 10:05   ` Peng Fan
  1 sibling, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2023-10-18 13:55 UTC (permalink / raw)
  To: Peng Fan (OSS)
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, shawnguo, s.hauer,
	sboyd, abelvesa, kernel, estevam, linux-imx, devicetree,
	linux-arm-kernel, inux-clk, linux-kernel, Peng Fan


[-- Attachment #1.1: Type: text/plain, Size: 1951 bytes --]

On Wed, Oct 18, 2023 at 04:44:13PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Support i.MX93 Anatop which generates PLL and feeds into CCM.

What is "CCM". How do you "generate" a PLL?

> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  .../bindings/clock/fsl,imx93-anatop.yaml      | 41 +++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> 
> diff --git a/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> new file mode 100644
> index 000000000000..9585c9e4ee40
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> @@ -0,0 +1,41 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/fsl,imx93-anatop.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP i.MX93 Anatop Module

I see there are also "anatop regulators" on some imx SoCs, just calling
this "anatop module" does not seem sufficiently descriptive.

> +
> +maintainers:
> +  - Peng Fan <peng.fan@nxp.com>
> +
> +description: |

Drop the |, you don't need it.

> +  NXP i.MX93 anatop PLL module which generates PLL to CCM root.
> +
> +properties:
> +  compatible:
> +    items:
> +      - const: fsl,imx93-anatop
> +
> +  reg:
> +    maxItems: 1
> +
> +  '#clock-cells':
> +    const: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - '#clock-cells'
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    anatop: clock-controller@44480000 {

and the label is is not used, so should be dropped.

Thanks,
Conor.

> +        compatible = "fsl,imx93-anatop";
> +        reg = <0x44480000 0x2000>;
> +        #clock-cells = <1>;
> +    };
> +
> +...
> -- 
> 2.37.1
> 

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
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] 6+ messages in thread

* RE: [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop
  2023-10-18 13:55 ` [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop Conor Dooley
@ 2023-10-19 10:05   ` Peng Fan
  2023-10-19 13:32     ` Conor Dooley
  0 siblings, 1 reply; 6+ messages in thread
From: Peng Fan @ 2023-10-19 10:05 UTC (permalink / raw)
  To: Conor Dooley, Peng Fan (OSS)
  Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de,
	sboyd@kernel.org, abelvesa@kernel.org, kernel@pengutronix.de,
	estevam@gmail.com, dl-linux-imx, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, inux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org

> Subject: Re: [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop
> 
> On Wed, Oct 18, 2023 at 04:44:13PM +0800, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > Support i.MX93 Anatop which generates PLL and feeds into CCM.
> 
> What is "CCM". How do you "generate" a PLL?

 
CCM: Clock Controller Module.

I may use produces PLL

> 
> > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > ---
> >  .../bindings/clock/fsl,imx93-anatop.yaml      | 41 +++++++++++++++++++
> >  1 file changed, 41 insertions(+)
> >  create mode 100644
> > Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> >
> > diff --git
> > a/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> > b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> > new file mode 100644
> > index 000000000000..9585c9e4ee40
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> > @@ -0,0 +1,41 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/clock/fsl,imx93-anatop.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: NXP i.MX93 Anatop Module
> 
> I see there are also "anatop regulators" on some imx SoCs, just calling this
> "anatop module" does not seem sufficiently descriptive.

Analog Module? How do you think?
 
> 
> > +
> > +maintainers:
> > +  - Peng Fan <peng.fan@nxp.com>
> > +
> > +description: |
> 
> Drop the |, you don't need it.

Ok.

> 
> > +  NXP i.MX93 anatop PLL module which generates PLL to CCM root.
> > +
> > +properties:
> > +  compatible:
> > +    items:
> > +      - const: fsl,imx93-anatop
> > +
> > +  reg:
> > +    maxItems: 1
> > +
> > +  '#clock-cells':
> > +    const: 1
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - '#clock-cells'
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    anatop: clock-controller@44480000 {
> 
> and the label is is not used, so should be dropped.

Ok.

Thanks,
Peng.

> 
> Thanks,
> Conor.
> 
> > +        compatible = "fsl,imx93-anatop";
> > +        reg = <0x44480000 0x2000>;
> > +        #clock-cells = <1>;
> > +    };
> > +
> > +...
> > --
> > 2.37.1
> >

_______________________________________________
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] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop
  2023-10-19 10:05   ` Peng Fan
@ 2023-10-19 13:32     ` Conor Dooley
       [not found]       ` <CALCWtBeJSFCUiYP47sb=XZObY_bQ=9jhh4i-5PNN4o1YbaQPqw@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2023-10-19 13:32 UTC (permalink / raw)
  To: Peng Fan
  Cc: Peng Fan (OSS), robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	shawnguo@kernel.org, s.hauer@pengutronix.de, sboyd@kernel.org,
	abelvesa@kernel.org, kernel@pengutronix.de, estevam@gmail.com,
	dl-linux-imx, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, inux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org


[-- Attachment #1.1: Type: text/plain, Size: 2826 bytes --]

On Thu, Oct 19, 2023 at 10:05:54AM +0000, Peng Fan wrote:
> > Subject: Re: [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop
> > 
> > On Wed, Oct 18, 2023 at 04:44:13PM +0800, Peng Fan (OSS) wrote:
> > > From: Peng Fan <peng.fan@nxp.com>
> > >
> > > Support i.MX93 Anatop which generates PLL and feeds into CCM.
> > 
> > What is "CCM". How do you "generate" a PLL?
> 
>  
> CCM: Clock Controller Module.

> I may use produces PLL

No, almost certainly it _is_ a PLL and produces a clock.

> > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > ---
> > >  .../bindings/clock/fsl,imx93-anatop.yaml      | 41 +++++++++++++++++++
> > >  1 file changed, 41 insertions(+)
> > >  create mode 100644
> > > Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> > >
> > > diff --git
> > > a/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> > > b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> > > new file mode 100644
> > > index 000000000000..9585c9e4ee40
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/clock/fsl,imx93-anatop.yaml
> > > @@ -0,0 +1,41 @@
> > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/clock/fsl,imx93-anatop.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: NXP i.MX93 Anatop Module
> > 
> > I see there are also "anatop regulators" on some imx SoCs, just calling this
> > "anatop module" does not seem sufficiently descriptive.
> 
> Analog Module? How do you think?

It'd probably more be descriptive, but really putting the PLL bit in the
title would be helpful.

I assume "anatop" is what this thing is called in the RTL for the
device.

Cheers,
Conor.

>  
> > 
> > > +
> > > +maintainers:
> > > +  - Peng Fan <peng.fan@nxp.com>
> > > +
> > > +description: |
> > 
> > Drop the |, you don't need it.
> 
> Ok.
> 
> > 
> > > +  NXP i.MX93 anatop PLL module which generates PLL to CCM root.
> > > +
> > > +properties:
> > > +  compatible:
> > > +    items:
> > > +      - const: fsl,imx93-anatop
> > > +
> > > +  reg:
> > > +    maxItems: 1
> > > +
> > > +  '#clock-cells':
> > > +    const: 1
> > > +
> > > +required:
> > > +  - compatible
> > > +  - reg
> > > +  - '#clock-cells'
> > > +
> > > +additionalProperties: false
> > > +
> > > +examples:
> > > +  - |
> > > +    anatop: clock-controller@44480000 {
> > 
> > and the label is is not used, so should be dropped.
> 
> Ok.
> 
> Thanks,
> Peng.
> 
> > 
> > Thanks,
> > Conor.
> > 
> > > +        compatible = "fsl,imx93-anatop";
> > > +        reg = <0x44480000 0x2000>;
> > > +        #clock-cells = <1>;
> > > +    };
> > > +
> > > +...
> > > --
> > > 2.37.1
> > >

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
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] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop
       [not found]       ` <CALCWtBeJSFCUiYP47sb=XZObY_bQ=9jhh4i-5PNN4o1YbaQPqw@mail.gmail.com>
@ 2023-10-19 14:39         ` Conor Dooley
  0 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2023-10-19 14:39 UTC (permalink / raw)
  To: Estevam Moreira
  Cc: Peng Fan, Peng Fan (OSS), robh+dt, krzysztof.kozlowski+dt,
	conor+dt, shawnguo, s.hauer, sboyd, abelvesa, kernel,
	dl-linux-imx, devicetree, linux-arm-kernel, inux-clk,
	linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 272 bytes --]

On Thu, Oct 19, 2023 at 11:28:43AM -0300, Estevam Moreira wrote:
> Remove me.
> I don't know what It is.

It is a typo! Someone meant to CC "festevam@gmail.com" and omitted the
f.
Peng Fan, please be more careful - your anatop series also CCed
"inux-clk@vger.kernel.org".

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2023-10-19 14:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-18  8:44 [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop Peng Fan (OSS)
2023-10-18  8:44 ` [PATCH 2/2] arm64: dts: imx93: update anatop node Peng Fan (OSS)
2023-10-18 13:55 ` [PATCH 1/2] dt-bindings: clock: support i.MX93 Anatop Conor Dooley
2023-10-19 10:05   ` Peng Fan
2023-10-19 13:32     ` Conor Dooley
     [not found]       ` <CALCWtBeJSFCUiYP47sb=XZObY_bQ=9jhh4i-5PNN4o1YbaQPqw@mail.gmail.com>
2023-10-19 14:39         ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox