Re: [U-Boot] Add support for imxrt

2019-11-11 Thread Fabio Estevam
Hi Giulio,

On Wed, Nov 6, 2019 at 7:50 PM Giulio Benetti
 wrote:

> With this you mean adding every single mux, divider, gate, fixed_factor
> and pfd(i.e. linux/drivers/clk/imx/clk-imxq6.c)?
>
> Or only a shrinked version of that?
> I mean, is it ok if I list everything during imxrt_clk_probe()?

I think a shrinked version would be fine.

Regards,

Fabio Estevam
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-11-06 Thread Giulio Benetti

Hi Fabio,

On 10/9/19 6:03 PM, Fabio Estevam wrote:

Hi Giulio,

On Wed, Oct 9, 2019 at 12:59 PM Giulio Benetti
 wrote:


Hi Fabio and Stefano,

On 9/29/19 9:40 PM, Fabio Estevam wrote:

We try to use DM in U-Boot proper as much as possible, but using DM in
SPL is currently not a requirement, especially due to internal RAM
size constraints.

IOMUXC and LPUART(using 24Mhz clock) work correctly using DM.

About clk drivers, I've seen all around that they are very shrinked
Linux's version drivers. Would it make sense to add complete clk driver
in u-boot starting from Linux one(i.e. vf610) or it would only grow
size? I mean, after adding initial support I would like to add Lcd
controller driver etc. etc. so a complete driver would be useful.
Instead what I see on IMX6 clk driver is only a subsection of all PLLs
and ref_sel to start Linux up.


Yes, since you are adding this from scratch, I would suggest adding a
complete clock driver, which is close to the Linux driver.


With this you mean adding every single mux, divider, gate, fixed_factor 
and pfd(i.e. linux/drivers/clk/imx/clk-imxq6.c)?


Or only a shrinked version of that?
I mean, is it ok if I list everything during imxrt_clk_probe()?

Thanks in advance
--
Giulio Benetti
Benetti Engineering sas
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt - Sdram

2019-10-10 Thread Giulio Benetti

On 10/10/19 8:29 PM, Fabio Estevam wrote:

Hi Giulio,

On Thu, Oct 10, 2019 at 2:30 PM Giulio Benetti
 wrote:


Hi Fabio and Stefano,

about imxrt porting, would it make sense to add an SDRAM driver to setup
ram or is it enough to provide .cfg file with DCD?


Having the DDR initialization running in C code from internal RAM is
more flexible as you can run SPL, for example.


Ok, so I go for SDRAM u-boot driver with DM support.

Thanks
--
Giulio Benetti
Benetti Engineering sas
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt - Sdram

2019-10-10 Thread Fabio Estevam
Hi Giulio,

On Thu, Oct 10, 2019 at 2:30 PM Giulio Benetti
 wrote:
>
> Hi Fabio and Stefano,
>
> about imxrt porting, would it make sense to add an SDRAM driver to setup
> ram or is it enough to provide .cfg file with DCD?

Having the DDR initialization running in C code from internal RAM is
more flexible as you can run SPL, for example.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-10-09 Thread Fabio Estevam
Hi Giulio,

On Wed, Oct 9, 2019 at 12:59 PM Giulio Benetti
 wrote:
>
> Hi Fabio and Stefano,
>
> On 9/29/19 9:40 PM, Fabio Estevam wrote:
> > We try to use DM in U-Boot proper as much as possible, but using DM in
> > SPL is currently not a requirement, especially due to internal RAM
> > size constraints.
> IOMUXC and LPUART(using 24Mhz clock) work correctly using DM.
>
> About clk drivers, I've seen all around that they are very shrinked
> Linux's version drivers. Would it make sense to add complete clk driver
> in u-boot starting from Linux one(i.e. vf610) or it would only grow
> size? I mean, after adding initial support I would like to add Lcd
> controller driver etc. etc. so a complete driver would be useful.
> Instead what I see on IMX6 clk driver is only a subsection of all PLLs
> and ref_sel to start Linux up.

Yes, since you are adding this from scratch, I would suggest adding a
complete clock driver, which is close to the Linux driver.

Regards,

Fabio Estevam
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-10-09 Thread Giulio Benetti

Hi Fabio and Stefano,

On 9/29/19 9:40 PM, Fabio Estevam wrote:

We try to use DM in U-Boot proper as much as possible, but using DM in
SPL is currently not a requirement, especially due to internal RAM
size constraints.

IOMUXC and LPUART(using 24Mhz clock) work correctly using DM.

About clk drivers, I've seen all around that they are very shrinked 
Linux's version drivers. Would it make sense to add complete clk driver 
in u-boot starting from Linux one(i.e. vf610) or it would only grow 
size? I mean, after adding initial support I would like to add Lcd 
controller driver etc. etc. so a complete driver would be useful.
Instead what I see on IMX6 clk driver is only a subsection of all PLLs 
and ref_sel to start Linux up.


I wait for your answer before proceeding with clk.

In the meanwhile I clean up and rebase then I begin adding sdram driver 
for semc.


If you want you can take a look here:
https://github.com/giuliobenetti/u-boot/commits/imxrt-dts

btw I need to clean up everything and rebase, so at the moment it's a mess.
It's based on U-boot 2019.10

Best regards
--
Giulio Benetti
Benetti Engineering sas
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-09-29 Thread Fabio Estevam
Hi Giulio,

On Fri, Sep 27, 2019 at 11:57 AM Giulio Benetti
 wrote:

> While porting IMXRT I'm realizing that things would fit better if adding
> to mach-imx folder. This is because IMXRT has a lot in common with imx
> on low level side, i.e. iomux, clock. So I would go for mach-imx instead
> of mach-imxrt, is it ok?

Yes, that is fine.

> But then I can't understand if going on trying to initialize everything
> through dts, even on SPL, or trying to imitate how other imx work, i.e.
> imx6 where they directly call low-level functions(iomuxc etc.) in board
> init.
> Which approach would be better for you all?

We try to use DM in U-Boot proper as much as possible, but using DM in
SPL is currently not a requirement, especially due to internal RAM
size constraints.

Regards,

Fabio Estevam
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-09-27 Thread Giulio Benetti

Hi Stefano and Fabio,

On 9/11/19 8:50 AM, Stefano Babic wrote:

Hi Giulio,

On 10/09/19 20:32, Giulio Benetti wrote:

Hello everybody,

I would like to port imxrt to u-boot and I would like to ask you:
- do you have the interest on upstreaming it?
if yes:
I've seen how they've dealt with 'stm32' and 'stm32mp' that is similar
to 'imxrt' and 'imx'. So should follow the same criterias for porting? I
mean adding the new folder 'mach-imxrt'?


Agree - we should follow the same schema.


While porting IMXRT I'm realizing that things would fit better if adding 
to mach-imx folder. This is because IMXRT has a lot in common with imx 
on low level side, i.e. iomux, clock. So I would go for mach-imx instead 
of mach-imxrt, is it ok?


But then I can't understand if going on trying to initialize everything 
through dts, even on SPL, or trying to imitate how other imx work, i.e. 
imx6 where they directly call low-level functions(iomuxc etc.) in board 
init.

Which approach would be better for you all?

I wait for your answer

Thanks in advance
Kind regards
--
Giulio Benetti
Benetti Engineering sas
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-09-11 Thread Giulio Benetti

Hi Stefano,

On 9/11/19 8:50 AM, Stefano Babic wrote:

Hi Giulio,

On 10/09/19 20:32, Giulio Benetti wrote:

Hello everybody,

I would like to port imxrt to u-boot and I would like to ask you:
- do you have the interest on upstreaming it?
if yes:
I've seen how they've dealt with 'stm32' and 'stm32mp' that is similar
to 'imxrt' and 'imx'. So should follow the same criterias for porting? I
mean adding the new folder 'mach-imxrt'?


Agree - we should follow the same schema.


Well, thanks for clarifying that to me.
Going to work on it soon.

Best regards
--
Giulio Benetti
Benetti Engineering sas
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-09-11 Thread Giulio Benetti

Hi Fabio,

On 9/11/19 12:23 AM, Fabio Estevam wrote:

Hi Giulio,

On Tue, Sep 10, 2019 at 3:32 PM Giulio Benetti
 wrote:


Hello everybody,

I would like to port imxrt to u-boot and I would like to ask you:
- do you have the interest on upstreaming it?
if yes:
I've seen how they've dealt with 'stm32' and 'stm32mp' that is similar
to 'imxrt' and 'imx'. So should follow the same criterias for porting? I
mean adding the new folder 'mach-imxrt'?


Yes, please submit the patches to the U-Boot list for review.


Ok, going to work on it then.

Best regards
--
Giulio Benetti
Benetti Engineering sas
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-09-10 Thread Stefano Babic
Hi Giulio,

On 10/09/19 20:32, Giulio Benetti wrote:
> Hello everybody,
> 
> I would like to port imxrt to u-boot and I would like to ask you:
> - do you have the interest on upstreaming it?
> if yes:
> I've seen how they've dealt with 'stm32' and 'stm32mp' that is similar
> to 'imxrt' and 'imx'. So should follow the same criterias for porting? I
> mean adding the new folder 'mach-imxrt'?

Agree - we should follow the same schema.

Regards,
Stefano

> 
> Also, do I find some of you in IRC sometimes?
> 
> Thanks in advance
> Best regards

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] Add support for imxrt

2019-09-10 Thread Fabio Estevam
Hi Giulio,

On Tue, Sep 10, 2019 at 3:32 PM Giulio Benetti
 wrote:
>
> Hello everybody,
>
> I would like to port imxrt to u-boot and I would like to ask you:
> - do you have the interest on upstreaming it?
> if yes:
> I've seen how they've dealt with 'stm32' and 'stm32mp' that is similar
> to 'imxrt' and 'imx'. So should follow the same criterias for porting? I
> mean adding the new folder 'mach-imxrt'?

Yes, please submit the patches to the U-Boot list for review.

Thanks
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot