diff mbox series

[v2,2/5] dt-bindings: clock: Add i.MX91 clock definition

Message ID 20240530022634.2062084-3-pengfei.li_1@nxp.com (mailing list archive)
State New, archived
Headers show
Series arm64: dts: freescale: Add i.MX91 11x11 EVK basic support | expand

Commit Message

Pengfei Li May 30, 2024, 2:26 a.m. UTC
i.MX91 is similar with i.MX93, only add few new clock compared to i.MX93.
Add i.MX91 related clock definition.

Signed-off-by: Pengfei Li <pengfei.li_1@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
---
 include/dt-bindings/clock/imx93-clock.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Rob Herring (Arm) June 4, 2024, 3:04 p.m. UTC | #1
On Wed, May 29, 2024 at 07:26:31PM -0700, Pengfei Li wrote:
> i.MX91 is similar with i.MX93, only add few new clock compared to i.MX93.
> Add i.MX91 related clock definition.
> 
> Signed-off-by: Pengfei Li <pengfei.li_1@nxp.com>
> Reviewed-by: Frank Li <Frank.Li@nxp.com>
> ---
>  include/dt-bindings/clock/imx93-clock.h | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h
> index 787c9e74dc96..ca0785f35a46 100644
> --- a/include/dt-bindings/clock/imx93-clock.h
> +++ b/include/dt-bindings/clock/imx93-clock.h
> @@ -204,6 +204,11 @@
>  #define IMX93_CLK_A55_SEL		199
>  #define IMX93_CLK_A55_CORE		200
>  #define IMX93_CLK_PDM_IPG		201
> -#define IMX93_CLK_END			202
> +#define IMX91_CLK_ENET1_QOS_TSN     202
> +#define IMX91_CLK_ENET_TIMER        203
> +#define IMX91_CLK_ENET2_REGULAR     204
> +#define IMX91_CLK_ENET2_REGULAR_GATE		205
> +#define IMX91_CLK_ENET1_QOS_TSN_GATE		206
> +#define IMX93_CLK_END			207

Drop the END define. If it can change, it's not part of the ABI.

Rob
Krzysztof Kozlowski June 5, 2024, 8:24 a.m. UTC | #2
On 06/06/2024 02:23, Pengfei Li wrote:
> On Tue, Jun 04, 2024 at 10:04:47AM -0500, Rob Herring wrote:
>> On Wed, May 29, 2024 at 07:26:31PM -0700, Pengfei Li wrote:
>>> i.MX91 is similar with i.MX93, only add few new clock compared to i.MX93.
>>> Add i.MX91 related clock definition.
>>>
>>> Signed-off-by: Pengfei Li <pengfei.li_1@nxp.com>
>>> Reviewed-by: Frank Li <Frank.Li@nxp.com>
>>> ---
>>>  include/dt-bindings/clock/imx93-clock.h | 7 ++++++-
>>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h
>>> index 787c9e74dc96..ca0785f35a46 100644
>>> --- a/include/dt-bindings/clock/imx93-clock.h
>>> +++ b/include/dt-bindings/clock/imx93-clock.h
>>> @@ -204,6 +204,11 @@
>>>  #define IMX93_CLK_A55_SEL		199
>>>  #define IMX93_CLK_A55_CORE		200
>>>  #define IMX93_CLK_PDM_IPG		201
>>> -#define IMX93_CLK_END			202
>>> +#define IMX91_CLK_ENET1_QOS_TSN     202
>>> +#define IMX91_CLK_ENET_TIMER        203
>>> +#define IMX91_CLK_ENET2_REGULAR     204
>>> +#define IMX91_CLK_ENET2_REGULAR_GATE		205
>>> +#define IMX91_CLK_ENET1_QOS_TSN_GATE		206
>>> +#define IMX93_CLK_END			207
>>
>> Drop the END define. If it can change, it's not part of the ABI.
>>
>> Rob
>>
> 
> Hi Rob Herring,
> 
> The 'IMX93_CLK_END' macro definition is indeed not a certain clock, but it is
> used in the imx93 ccm driver to indicate the number of clocks. And this macro
> already existed before this patch, so it may not be able to be deleted.

May be. Trust me. Fix your driver first.


Best regards,
Krzysztof
Pengfei Li June 6, 2024, 12:23 a.m. UTC | #3
On Tue, Jun 04, 2024 at 10:04:47AM -0500, Rob Herring wrote:
> On Wed, May 29, 2024 at 07:26:31PM -0700, Pengfei Li wrote:
> > i.MX91 is similar with i.MX93, only add few new clock compared to i.MX93.
> > Add i.MX91 related clock definition.
> > 
> > Signed-off-by: Pengfei Li <pengfei.li_1@nxp.com>
> > Reviewed-by: Frank Li <Frank.Li@nxp.com>
> > ---
> >  include/dt-bindings/clock/imx93-clock.h | 7 ++++++-
> >  1 file changed, 6 insertions(+), 1 deletion(-)
> > 
> > diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h
> > index 787c9e74dc96..ca0785f35a46 100644
> > --- a/include/dt-bindings/clock/imx93-clock.h
> > +++ b/include/dt-bindings/clock/imx93-clock.h
> > @@ -204,6 +204,11 @@
> >  #define IMX93_CLK_A55_SEL		199
> >  #define IMX93_CLK_A55_CORE		200
> >  #define IMX93_CLK_PDM_IPG		201
> > -#define IMX93_CLK_END			202
> > +#define IMX91_CLK_ENET1_QOS_TSN     202
> > +#define IMX91_CLK_ENET_TIMER        203
> > +#define IMX91_CLK_ENET2_REGULAR     204
> > +#define IMX91_CLK_ENET2_REGULAR_GATE		205
> > +#define IMX91_CLK_ENET1_QOS_TSN_GATE		206
> > +#define IMX93_CLK_END			207
> 
> Drop the END define. If it can change, it's not part of the ABI.
> 
> Rob
> 

Hi Rob Herring,

The 'IMX93_CLK_END' macro definition is indeed not a certain clock, but it is
used in the imx93 ccm driver to indicate the number of clocks. And this macro
already existed before this patch, so it may not be able to be deleted.

BR,
Pengfei Li
diff mbox series

Patch

diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h
index 787c9e74dc96..ca0785f35a46 100644
--- a/include/dt-bindings/clock/imx93-clock.h
+++ b/include/dt-bindings/clock/imx93-clock.h
@@ -204,6 +204,11 @@ 
 #define IMX93_CLK_A55_SEL		199
 #define IMX93_CLK_A55_CORE		200
 #define IMX93_CLK_PDM_IPG		201
-#define IMX93_CLK_END			202
+#define IMX91_CLK_ENET1_QOS_TSN     202
+#define IMX91_CLK_ENET_TIMER        203
+#define IMX91_CLK_ENET2_REGULAR     204
+#define IMX91_CLK_ENET2_REGULAR_GATE		205
+#define IMX91_CLK_ENET1_QOS_TSN_GATE		206
+#define IMX93_CLK_END			207
 
 #endif