Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-06-04 Thread Clément Péron
Hi Vladimir,

On Thu, 31 May 2018 at 10:54, Vladimir Zapolskiy
 wrote:
>
> Hi Clément,
>
> On 05/31/2018 11:41 AM, Clément Péron wrote:
> > Hi Vladimir,
> >
> > On Thu, 31 May 2018 at 10:33, Vladimir Zapolskiy
> >  wrote:
> >>
> >> On 05/30/2018 03:03 PM, Clément Péron wrote:
> >>> From: Colin Didier 
> >>>
> >>> Add missing compatible and clock properties for EPIT node.
> >>>
> >>> Signed-off-by: Colin Didier 
> >>> Signed-off-by: Clément Peron 
> >>> Reviewed-by: Fabio Estevam 
> >>> ---
> >>>  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
> >>>  1 file changed, 10 insertions(+)
> >>>
> >>> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi 
> >>> b/arch/arm/boot/dts/imx6qdl.dtsi
> >>> index c003e62bf290..0feec516847a 100644
> >>> --- a/arch/arm/boot/dts/imx6qdl.dtsi
> >>> +++ b/arch/arm/boot/dts/imx6qdl.dtsi
> >>> @@ -844,13 +844,23 @@
> >>>   };
> >>>
> >>>   epit1: epit@20d { /* EPIT1 */
> >>
> >> epit1: timer@20d { ...
> >>
> >> And /* EPIT1 */ comment can be removed, it is quite clear from the same
> >> line context.
> >>
> >> Formally it is a subject to another patch, but I think this can be
> >> accepted as a part of this one.
> >
> > Should I also update other boards ?
> > I only did it for imx6qdl.dtsi, but the EPIT is present in other boards
> > but i can't test it myself.
> >
>
> Sure, please do it, why not, it is quite a safe modification.
>
> One change per one dtsi file will suffice, and I see that imx25.dtsi
> already contains the requested change, however probably you may
> want to update its compatible = "fsl,imx25-epit" line.
>
> Regarding compatibles for other imx6* SoCs, I think all of them should
> be documented in fsl,imxepit.txt and then added to the correspondent
> dtsi files one per SoC.

Nvidia UART doc did this :
- For other Tegra, must contain '"nvidia,-uart",
  "nvidia,tegra20-uart"' where  is tegra30, tegra114, tegra124,

I will follow this.

>
> And I forgot the outcome of one former discussion with Uwe Kleine-König,
> but if my bad memory serves me, we agreed that i.MX25 was released later
> than i.MX31, so the most generic (the last value in the list) compatible
> should be a compatible with i.MX31 like in
>
> imx25.dtsi:367: compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
>
> --
> With best wishes,
> Vladimir

Regards,
Clement


Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-06-04 Thread Clément Péron
Hi Vladimir,

On Thu, 31 May 2018 at 10:54, Vladimir Zapolskiy
 wrote:
>
> Hi Clément,
>
> On 05/31/2018 11:41 AM, Clément Péron wrote:
> > Hi Vladimir,
> >
> > On Thu, 31 May 2018 at 10:33, Vladimir Zapolskiy
> >  wrote:
> >>
> >> On 05/30/2018 03:03 PM, Clément Péron wrote:
> >>> From: Colin Didier 
> >>>
> >>> Add missing compatible and clock properties for EPIT node.
> >>>
> >>> Signed-off-by: Colin Didier 
> >>> Signed-off-by: Clément Peron 
> >>> Reviewed-by: Fabio Estevam 
> >>> ---
> >>>  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
> >>>  1 file changed, 10 insertions(+)
> >>>
> >>> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi 
> >>> b/arch/arm/boot/dts/imx6qdl.dtsi
> >>> index c003e62bf290..0feec516847a 100644
> >>> --- a/arch/arm/boot/dts/imx6qdl.dtsi
> >>> +++ b/arch/arm/boot/dts/imx6qdl.dtsi
> >>> @@ -844,13 +844,23 @@
> >>>   };
> >>>
> >>>   epit1: epit@20d { /* EPIT1 */
> >>
> >> epit1: timer@20d { ...
> >>
> >> And /* EPIT1 */ comment can be removed, it is quite clear from the same
> >> line context.
> >>
> >> Formally it is a subject to another patch, but I think this can be
> >> accepted as a part of this one.
> >
> > Should I also update other boards ?
> > I only did it for imx6qdl.dtsi, but the EPIT is present in other boards
> > but i can't test it myself.
> >
>
> Sure, please do it, why not, it is quite a safe modification.
>
> One change per one dtsi file will suffice, and I see that imx25.dtsi
> already contains the requested change, however probably you may
> want to update its compatible = "fsl,imx25-epit" line.
>
> Regarding compatibles for other imx6* SoCs, I think all of them should
> be documented in fsl,imxepit.txt and then added to the correspondent
> dtsi files one per SoC.

Nvidia UART doc did this :
- For other Tegra, must contain '"nvidia,-uart",
  "nvidia,tegra20-uart"' where  is tegra30, tegra114, tegra124,

I will follow this.

>
> And I forgot the outcome of one former discussion with Uwe Kleine-König,
> but if my bad memory serves me, we agreed that i.MX25 was released later
> than i.MX31, so the most generic (the last value in the list) compatible
> should be a compatible with i.MX31 like in
>
> imx25.dtsi:367: compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
>
> --
> With best wishes,
> Vladimir

Regards,
Clement


Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-05-31 Thread Vladimir Zapolskiy
Hi Clément,

On 05/31/2018 11:41 AM, Clément Péron wrote:
> Hi Vladimir,
> 
> On Thu, 31 May 2018 at 10:33, Vladimir Zapolskiy
>  wrote:
>>
>> On 05/30/2018 03:03 PM, Clément Péron wrote:
>>> From: Colin Didier 
>>>
>>> Add missing compatible and clock properties for EPIT node.
>>>
>>> Signed-off-by: Colin Didier 
>>> Signed-off-by: Clément Peron 
>>> Reviewed-by: Fabio Estevam 
>>> ---
>>>  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
>>>  1 file changed, 10 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
>>> index c003e62bf290..0feec516847a 100644
>>> --- a/arch/arm/boot/dts/imx6qdl.dtsi
>>> +++ b/arch/arm/boot/dts/imx6qdl.dtsi
>>> @@ -844,13 +844,23 @@
>>>   };
>>>
>>>   epit1: epit@20d { /* EPIT1 */
>>
>> epit1: timer@20d { ...
>>
>> And /* EPIT1 */ comment can be removed, it is quite clear from the same
>> line context.
>>
>> Formally it is a subject to another patch, but I think this can be
>> accepted as a part of this one.
> 
> Should I also update other boards ?
> I only did it for imx6qdl.dtsi, but the EPIT is present in other boards
> but i can't test it myself.
> 

Sure, please do it, why not, it is quite a safe modification.

One change per one dtsi file will suffice, and I see that imx25.dtsi
already contains the requested change, however probably you may
want to update its compatible = "fsl,imx25-epit" line.

Regarding compatibles for other imx6* SoCs, I think all of them should
be documented in fsl,imxepit.txt and then added to the correspondent
dtsi files one per SoC.

And I forgot the outcome of one former discussion with Uwe Kleine-König,
but if my bad memory serves me, we agreed that i.MX25 was released later
than i.MX31, so the most generic (the last value in the list) compatible
should be a compatible with i.MX31 like in

imx25.dtsi:367: compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";

--
With best wishes,
Vladimir


Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-05-31 Thread Vladimir Zapolskiy
Hi Clément,

On 05/31/2018 11:41 AM, Clément Péron wrote:
> Hi Vladimir,
> 
> On Thu, 31 May 2018 at 10:33, Vladimir Zapolskiy
>  wrote:
>>
>> On 05/30/2018 03:03 PM, Clément Péron wrote:
>>> From: Colin Didier 
>>>
>>> Add missing compatible and clock properties for EPIT node.
>>>
>>> Signed-off-by: Colin Didier 
>>> Signed-off-by: Clément Peron 
>>> Reviewed-by: Fabio Estevam 
>>> ---
>>>  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
>>>  1 file changed, 10 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
>>> index c003e62bf290..0feec516847a 100644
>>> --- a/arch/arm/boot/dts/imx6qdl.dtsi
>>> +++ b/arch/arm/boot/dts/imx6qdl.dtsi
>>> @@ -844,13 +844,23 @@
>>>   };
>>>
>>>   epit1: epit@20d { /* EPIT1 */
>>
>> epit1: timer@20d { ...
>>
>> And /* EPIT1 */ comment can be removed, it is quite clear from the same
>> line context.
>>
>> Formally it is a subject to another patch, but I think this can be
>> accepted as a part of this one.
> 
> Should I also update other boards ?
> I only did it for imx6qdl.dtsi, but the EPIT is present in other boards
> but i can't test it myself.
> 

Sure, please do it, why not, it is quite a safe modification.

One change per one dtsi file will suffice, and I see that imx25.dtsi
already contains the requested change, however probably you may
want to update its compatible = "fsl,imx25-epit" line.

Regarding compatibles for other imx6* SoCs, I think all of them should
be documented in fsl,imxepit.txt and then added to the correspondent
dtsi files one per SoC.

And I forgot the outcome of one former discussion with Uwe Kleine-König,
but if my bad memory serves me, we agreed that i.MX25 was released later
than i.MX31, so the most generic (the last value in the list) compatible
should be a compatible with i.MX31 like in

imx25.dtsi:367: compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";

--
With best wishes,
Vladimir


Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-05-31 Thread Clément Péron
Hi Vladimir,

On Thu, 31 May 2018 at 10:33, Vladimir Zapolskiy
 wrote:
>
> On 05/30/2018 03:03 PM, Clément Péron wrote:
> > From: Colin Didier 
> >
> > Add missing compatible and clock properties for EPIT node.
> >
> > Signed-off-by: Colin Didier 
> > Signed-off-by: Clément Peron 
> > Reviewed-by: Fabio Estevam 
> > ---
> >  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
> >  1 file changed, 10 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
> > index c003e62bf290..0feec516847a 100644
> > --- a/arch/arm/boot/dts/imx6qdl.dtsi
> > +++ b/arch/arm/boot/dts/imx6qdl.dtsi
> > @@ -844,13 +844,23 @@
> >   };
> >
> >   epit1: epit@20d { /* EPIT1 */
>
> epit1: timer@20d { ...
>
> And /* EPIT1 */ comment can be removed, it is quite clear from the same
> line context.
>
> Formally it is a subject to another patch, but I think this can be
> accepted as a part of this one.

Should I also update other boards ?
I only did it for imx6qdl.dtsi, but the EPIT is present in other boards
but i can't test it myself.

>
> > + compatible = "fsl,imx6q-epit", 
> > "fsl,imx31-epit";
> >   reg = <0x020d 0x4000>;
> >   interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = < IMX6QDL_CLK_IPG_PER>,
> > +  < IMX6QDL_CLK_EPIT1>;
> > + clock-names = "ipg", "per";
> > + status = "disabled";
> >   };
> >
> >   epit2: epit@20d4000 { /* EPIT2 */
>
> Same as above.
>
> > + compatible = "fsl,imx6q-epit", 
> > "fsl,imx31-epit";
> >   reg = <0x020d4000 0x4000>;
> >   interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = < IMX6QDL_CLK_IPG_PER>,
> > +  < IMX6QDL_CLK_EPIT2>;
> > + clock-names = "ipg", "per";
> > + status = "disabled";
> >   };
> >
> >   src: src@20d8000 {
> >
>
> --
> With best wishes,
> Vladimir


Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-05-31 Thread Clément Péron
Hi Vladimir,

On Thu, 31 May 2018 at 10:33, Vladimir Zapolskiy
 wrote:
>
> On 05/30/2018 03:03 PM, Clément Péron wrote:
> > From: Colin Didier 
> >
> > Add missing compatible and clock properties for EPIT node.
> >
> > Signed-off-by: Colin Didier 
> > Signed-off-by: Clément Peron 
> > Reviewed-by: Fabio Estevam 
> > ---
> >  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
> >  1 file changed, 10 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
> > index c003e62bf290..0feec516847a 100644
> > --- a/arch/arm/boot/dts/imx6qdl.dtsi
> > +++ b/arch/arm/boot/dts/imx6qdl.dtsi
> > @@ -844,13 +844,23 @@
> >   };
> >
> >   epit1: epit@20d { /* EPIT1 */
>
> epit1: timer@20d { ...
>
> And /* EPIT1 */ comment can be removed, it is quite clear from the same
> line context.
>
> Formally it is a subject to another patch, but I think this can be
> accepted as a part of this one.

Should I also update other boards ?
I only did it for imx6qdl.dtsi, but the EPIT is present in other boards
but i can't test it myself.

>
> > + compatible = "fsl,imx6q-epit", 
> > "fsl,imx31-epit";
> >   reg = <0x020d 0x4000>;
> >   interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = < IMX6QDL_CLK_IPG_PER>,
> > +  < IMX6QDL_CLK_EPIT1>;
> > + clock-names = "ipg", "per";
> > + status = "disabled";
> >   };
> >
> >   epit2: epit@20d4000 { /* EPIT2 */
>
> Same as above.
>
> > + compatible = "fsl,imx6q-epit", 
> > "fsl,imx31-epit";
> >   reg = <0x020d4000 0x4000>;
> >   interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = < IMX6QDL_CLK_IPG_PER>,
> > +  < IMX6QDL_CLK_EPIT2>;
> > + clock-names = "ipg", "per";
> > + status = "disabled";
> >   };
> >
> >   src: src@20d8000 {
> >
>
> --
> With best wishes,
> Vladimir


Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-05-31 Thread Vladimir Zapolskiy
On 05/30/2018 03:03 PM, Clément Péron wrote:
> From: Colin Didier 
> 
> Add missing compatible and clock properties for EPIT node.
> 
> Signed-off-by: Colin Didier 
> Signed-off-by: Clément Peron 
> Reviewed-by: Fabio Estevam 
> ---
>  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
> index c003e62bf290..0feec516847a 100644
> --- a/arch/arm/boot/dts/imx6qdl.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl.dtsi
> @@ -844,13 +844,23 @@
>   };
>  
>   epit1: epit@20d { /* EPIT1 */

epit1: timer@20d { ...

And /* EPIT1 */ comment can be removed, it is quite clear from the same
line context.

Formally it is a subject to another patch, but I think this can be
accepted as a part of this one.

> + compatible = "fsl,imx6q-epit", "fsl,imx31-epit";
>   reg = <0x020d 0x4000>;
>   interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = < IMX6QDL_CLK_IPG_PER>,
> +  < IMX6QDL_CLK_EPIT1>;
> + clock-names = "ipg", "per";
> + status = "disabled";
>   };
>  
>   epit2: epit@20d4000 { /* EPIT2 */

Same as above.

> + compatible = "fsl,imx6q-epit", "fsl,imx31-epit";
>   reg = <0x020d4000 0x4000>;
>   interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = < IMX6QDL_CLK_IPG_PER>,
> +  < IMX6QDL_CLK_EPIT2>;
> + clock-names = "ipg", "per";
> + status = "disabled";
>   };
>  
>   src: src@20d8000 {
> 

--
With best wishes,
Vladimir


Re: [PATCH v4 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-05-31 Thread Vladimir Zapolskiy
On 05/30/2018 03:03 PM, Clément Péron wrote:
> From: Colin Didier 
> 
> Add missing compatible and clock properties for EPIT node.
> 
> Signed-off-by: Colin Didier 
> Signed-off-by: Clément Peron 
> Reviewed-by: Fabio Estevam 
> ---
>  arch/arm/boot/dts/imx6qdl.dtsi | 10 ++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
> index c003e62bf290..0feec516847a 100644
> --- a/arch/arm/boot/dts/imx6qdl.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl.dtsi
> @@ -844,13 +844,23 @@
>   };
>  
>   epit1: epit@20d { /* EPIT1 */

epit1: timer@20d { ...

And /* EPIT1 */ comment can be removed, it is quite clear from the same
line context.

Formally it is a subject to another patch, but I think this can be
accepted as a part of this one.

> + compatible = "fsl,imx6q-epit", "fsl,imx31-epit";
>   reg = <0x020d 0x4000>;
>   interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = < IMX6QDL_CLK_IPG_PER>,
> +  < IMX6QDL_CLK_EPIT1>;
> + clock-names = "ipg", "per";
> + status = "disabled";
>   };
>  
>   epit2: epit@20d4000 { /* EPIT2 */

Same as above.

> + compatible = "fsl,imx6q-epit", "fsl,imx31-epit";
>   reg = <0x020d4000 0x4000>;
>   interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = < IMX6QDL_CLK_IPG_PER>,
> +  < IMX6QDL_CLK_EPIT2>;
> + clock-names = "ipg", "per";
> + status = "disabled";
>   };
>  
>   src: src@20d8000 {
> 

--
With best wishes,
Vladimir