[PATCH] arm: mx6: module_fuse: fix build failure due to wrong argument name

2023-04-06 Thread Giulio Benetti
nodeoff variable should be variable off returned by fdt_path_offset() so let's rename it to off. Signed-off-by: Giulio Benetti --- arch/arm/mach-imx/mx6/module_fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/module_fuse.c b/arch/arm/mach-im

Re: Support for NXP S32K3 Family

2023-04-20 Thread Giulio Benetti
Hi Ashok, On 20/04/23 11:19, Ashok Kumar wrote: Hey Simon, Thanks for the suggestions. Sure, I will try to get some more information to build u-boot for S32K family. I have ported i.MXRT10xx family to uboot while Jesse the i.MXRT11xx family and then we ported the initial support to Linux too

[PATCH 0/5] Fix i.MXRT1050 hang on lcdif init and improve DT for mxsfb

2021-04-12 Thread Giulio Benetti
l using DT instead because they don't specify any clock-names in their dts. Giulio Benetti (5): video: mxsfb: add enabling of "axi" clock other than "per" clock video: mxsfb: add enabling of "disp_axi" clock clk: imx: clk-imxrt1050: introduce LCDIF_PIX and re

[PATCH 1/5] video: mxsfb: add enabling of "axi" clock other than "per" clock

2021-04-12 Thread Giulio Benetti
or compatibility with already existing .dts lcdif nodes implementation. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index e1fd36a62d..147bd668fe 100644

[PATCH 2/5] video: mxsfb: add enabling of "disp_axi" clock

2021-04-12 Thread Giulio Benetti
Some SoC needs "disp_axi" clock to be enabled, so let's try to retrieve it and enabling. If it fails it gives only a debug(), but this clock as well as "axi" clock is not mandatory. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 11 +++ 1 file change

[PATCH 5/5] ARM: dts: imxrt1050: set lcdif clocks according to mxsfb driver

2021-04-12 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index eb5e09e971..ec1eb88e45 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi

[PATCH 3/5] clk: imx: clk-imxrt1050: introduce LCDIF_PIX and rename LCDIF to LCDIF_APB

2021-04-12 Thread Giulio Benetti
Lcd peripheral needs 2 different gates to be enable to work, so let's introduce the missing one(LCDIF_PIX) and rename the existing one (LCDIF_APB). Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-imxrt1050.c | 6 -- include/dt-bindings/clock/imxrt1050-clock.h | 5 +++

[PATCH 4/5] ARM: dts: imxrt1050: move lcdif assigned clock to dtsi

2021-04-12 Thread Giulio Benetti
Since we assume pll5 is the default lcdif clock source let's move assigned-clocks(-parents) properties to .dtsi file. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 3 --- arch/arm/dts/imxrt1050.dtsi| 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --

Re: [PATCH 0/5] Fix i.MXRT1050 hang on lcdif init and improve DT for mxsfb

2021-04-12 Thread Giulio Benetti
On 4/13/21 1:03 AM, Giulio Benetti wrote: This patchset fixes u-boot hang on i.MXRT1050 while setting lcdif in mxsfb driver. There are 2 gates to be enabled to initialize mxsfb so let's introduce the missing gate as a clock and rename "per" clock to "pix" clock sinc

[PATCH v2 00/16] Fix i.MXRT1020/50

2021-05-01 Thread Giulio Benetti
other minor fixed and improvements. --- V1->V2: * fixed 32 to 64 bit conversion on timer as suggested by Sean Anderson --- Giulio Benetti (16): arm: imxrt: soc: make mpu regions generic timer: imx-gpt: Add timer support for i.MX SoCs family ARM: dts: imxrt1020: add alias to osc ARM:

[PATCH v2 03/16] ARM: dts: imxrt1020: add alias to osc

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi index 97f3cec9f3..0a3a3b451a 100644 --- a/arch/arm/dts/imxrt1020.dtsi +++ b/arch/arm/dts/imxrt1020.dtsi

[PATCH v2 02/16] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-05-01 Thread Giulio Benetti
This timer driver uses GPT Timer (General Purpose Timer) available on a lot of i.MX SoCs family. This driver deals with both 24Mhz oscillator as well as peripheral clock. Signed-off-by: Giulio Benetti [Giulio: added the driver's stub and handled peripheral clock prescaler setting] Signed-o

[PATCH v2 01/16] arm: imxrt: soc: make mpu regions generic

2021-05-01 Thread Giulio Benetti
This mpu handling works for every i.MXRT SoC that we have, so let's generalize imxrt1050_region_config to imxrt_region_config. Signed-off-by: Giulio Benetti --- arch/arm/mach-imx/imxrt/soc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/imxrt/

[PATCH v2 04/16] ARM: dts: imxrt1020: add gpt1 node

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi index 0a3a3b451a..cab608c644 100644 --- a/arch/arm/dts/imxrt1020.dtsi +++ b/arch/arm/dts/imxrt1020.dtsi @@ -129,5

[PATCH v2 05/16] ARM: dts: imxrt1020-evk: enable gpt1 timer

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt1020-evk.dts index ece13601bd..a471ff3838 100644 --- a/arch/arm/dts/imxrt1020-evk.dts +++ b/arch/arm/dts/imxrt1020-evk.dts

[PATCH v2 06/16] ARM: dts: imxrt1020-evk: set gpt1 as tick-timer for u-boot

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt1020-evk.dts index a471ff3838..b527206fcf 100644 --- a/arch/arm/dts/imxrt1020-evk.dts +++ b/arch/arm/dts/imxrt1020-evk.dts

[PATCH v2 07/16] ARM: dts: imxrt1020-evk-u-boot: make gpt1 present for SPL

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1020-evk-u-boot.dtsi b/arch/arm/dts/imxrt1020-evk-u-boot.dtsi index d32c98de9c..34d19e06c5 100644 --- a/arch/arm/dts/imxrt1020-evk-u-boot.dtsi +++ b

[PATCH v2 08/16] ARM: dts: imxrt1020-evk: add device_type = "memory" to memory node

2021-05-01 Thread Giulio Benetti
Now device_type = "memory" is mandatory to allow u-boot to read memory node, so let's add it to memory node. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt102

[PATCH v2 09/16] configs: imxrt1020-evk: enable imx gpt timer as tick-timer

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- configs/imxrt1020-evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imxrt1020-evk_defconfig b/configs/imxrt1020-evk_defconfig index 9bddb69cd4..51ff702bc6 100644 --- a/configs/imxrt1020-evk_defconfig +++ b/configs/imxrt1020-evk_defconfig

[PATCH v2 10/16] ARM: dts: imxrt1050: add alias to osc

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index a9281001e5..b7cc3fbc2a 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi

[PATCH v2 11/16] ARM: dts: imxrt1050: add gpt1 node

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index b7cc3fbc2a..6f9da3fe8a 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi @@ -154,5

[PATCH v2 12/16] ARM: dts: imxrt1050-evk: enable gpt1 timer

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index b5e781275e..e592330332 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts

[PATCH v2 13/16] ARM: dts: imxrt1050-evk: set gpt1 as tick-timer for u-boot

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index e592330332..6d21f2b738 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts

[PATCH v2 14/16] ARM: dts: imxrt1050-evk-u-boot: make gpt1 present for SPL

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk-u-boot.dtsi b/arch/arm/dts/imxrt1050-evk-u-boot.dtsi index fb4f7f6f9d..a4b50f0bb2 100644 --- a/arch/arm/dts/imxrt1050-evk-u-boot.dtsi +++ b

[PATCH v2 15/16] ARM: dts: imxrt1050-evk: add device_type = "memory" to memory node

2021-05-01 Thread Giulio Benetti
Now device_type = "memory" is mandatory to allow u-boot to read memory node, so let's add it to memory node. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt105

[PATCH v2 16/16] configs: imxrt1050-evk: enable imx gpt timer as tick-timer

2021-05-01 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- configs/imxrt1050-evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imxrt1050-evk_defconfig b/configs/imxrt1050-evk_defconfig index f639ea7623..e74473511d 100644 --- a/configs/imxrt1050-evk_defconfig +++ b/configs/imxrt1050-evk_defconfig

Re: [PATCH 0/5] Fix i.MXRT1050 hang on lcdif init and improve DT for mxsfb

2021-05-01 Thread Giulio Benetti
On 4/13/21 1:05 AM, Giulio Benetti wrote: On 4/13/21 1:03 AM, Giulio Benetti wrote: This patchset fixes u-boot hang on i.MXRT1050 while setting lcdif in mxsfb driver. There are 2 gates to be enabled to initialize mxsfb so let's introduce the missing gate as a clock and rename "per

Re: [PATCH 03/16] ARM: dts: imxrt1020: add alias to osc

2021-05-03 Thread Giulio Benetti
Hi Gabio, > Il giorno 3 mag 2021, alle ore 16:01, Fabio Estevam ha > scritto: > > Hi Giulio, > >> On Wed, Apr 7, 2021 at 4:03 PM Giulio Benetti >> wrote: >> >> Signed-off-by: Giulio Benetti >> --- >> arch/arm/dts/imxrt1020.dtsi |

Re: [PATCH 03/16] ARM: dts: imxrt1020: add alias to osc

2021-05-03 Thread Giulio Benetti
> Il giorno 3 mag 2021, alle ore 20:21, Fabio Estevam ha > scritto: > > On Mon, May 3, 2021 at 2:52 PM Giulio Benetti > wrote: > >> Ok, is it ok if it even repeats the first line? Because I don’t know what >> write more than that. > > Yes, that woul

[PATCH] net: phy: broadcom: add BCM5221 phy support

2023-08-11 Thread Giulio Benetti
Add BCM5221 phy support. Sponsored by: Tekvox Inc. Cc: Jim Reinhart Cc: James Autry Cc: Matthew Maron Signed-off-by: Giulio Benetti --- drivers/net/phy/broadcom.c | 99 ++ 1 file changed, 99 insertions(+) diff --git a/drivers/net/phy/broadcom.c b/drivers

Re: [PATCH] net: phy: broadcom: add BCM5221 phy support

2023-08-12 Thread Giulio Benetti
Hello Marek, thanks for reviewing, On 12/08/23 08:19, Marek Vasut wrote: On 8/11/23 23:42, Giulio Benetti wrote: Add BCM5221 phy support. Why not port Linux drivers/net/sungem_phy.c instead ? That already supports the PHY . That was my idea too in the beginning, but sungem_phy.c is a

Re: [PATCH v1 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2024-01-29 Thread Giulio Benetti
freescale/imxrt1050-evk/imximage-nor.cfg new file mode 100644 index 00..fb7b6489a3 --- /dev/null +++ b/board/freescale/imxrt1050-evk/imximage-nor.cfg @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2019 + * Author(s): Giulio Benetti thanks for giving me credits

Re: [PATCH v1 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2024-01-31 Thread Giulio Benetti
isabled. So we can keep it as is or implement armv7m complete mmu_set_region_dcache_behaviour() Best regards -- Giulio Benetti CEO&CTO@Benetti Engineering sas

Re: [PATCH v1] doc: imx: imxrt1170: Document imxrt1170-evk board

2024-02-01 Thread Giulio Benetti
Hi Jesse, On 01/02/24 16:00, Jesse Taube wrote: Add documentation for imxrt1170-evk. Signed-off-by: Jesse Taube looks good to me Reviewed-by: Giulio Benetti Best regards -- Giulio Benetti CEO&CTO@Benetti Engineering sas --- doc/board/nxp/imxrt1170-evk.rst

[RFC] VIDEO_MXS in Kconfig and SUNXI video DM

2020-12-30 Thread Giulio Benetti
d having many uboot binaries as many lcds my board supports. What about that? Best regards -- Giulio Benetti Benetti Engineering sas

[PATCH] sunxi: display: introduce "sunxi-video" environment variable

2021-01-11 Thread Giulio Benetti
From: Giulio Benetti At the moment you can specify lcd_mode only through hardcoded CONFIG_VIDEO_LCD_MODE but this way, if you have a board with multiple lcds compatible, you have to rebuild u-boot for every single lcd, so let's add sunxi-video environment variable to give the possibili

Re: [PATCH] sunxi: display: introduce "sunxi-video" environment variable

2021-01-11 Thread Giulio Benetti
On 1/11/21 10:48 AM, Maxime Ripard wrote: Hi, On Mon, Jan 11, 2021 at 10:13:32AM +0100, Giulio Benetti wrote: From: Giulio Benetti At the moment you can specify lcd_mode only through hardcoded CONFIG_VIDEO_LCD_MODE but this way, if you have a board with multiple lcds compatible, you have to

Re: imxrt1020 EVK u-boot doesn't run.

2021-04-04 Thread Giulio Benetti
some OS after uboot? Linux is still there waiting for someone interested on it, as well as uboot support for other peripherals. PS: sorry for too posting but I’m on mobile. Best regards Giulio Benetti —- Benetti Engineering s.a.s. > Il giorno 4 apr 2021, alle ore 15:36, Fabio Estevam

Re: imxrt1020 EVK u-boot doesn't run.

2021-04-04 Thread Giulio Benetti
t1020/50-evk. I really appreciate your help, sorry to bother you, but I'm breaking my mind thinking why this doesn't run on my EVK. Many thanks. Best regards and happy easter! :-) -- Giulio Benetti Benetti Engineering sas

[PATCH 1/3] board: freescale: imxrt1020-evk: fix console is not enabled while init dram

2021-04-04 Thread Giulio Benetti
s setup console before calling spl_dram_init() by moving it after spl_dram_init(). Signed-off-by: Giulio Benetti --- board/freescale/imxrt1020-evk/imxrt1020-evk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/imxrt1020-evk/imxrt1020-evk.c b/board/freescal

[PATCH 2/3] board: freescale: imxrt1050-evk: fix console is not enabled while init dram

2021-04-04 Thread Giulio Benetti
s setup console before calling spl_dram_init() by moving it after spl_dram_init(). Signed-off-by: Giulio Benetti --- board/freescale/imxrt1050-evk/imxrt1050-evk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/imxrt1050-evk/imxrt1050-evk.c b/board/freescal

[PATCH 3/3] board: st: stm32f746-disco: fix console is not enabled while init dram

2021-04-04 Thread Giulio Benetti
s setup console before calling spl_dram_init() by moving it after spl_dram_init(). Signed-off-by: Giulio Benetti --- board/st/stm32f746-disco/stm32f746-disco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-

Re: imxrt1020 EVK u-boot doesn't run.

2021-04-04 Thread Giulio Benetti
Hi Nicolas, On 4/4/21 7:56 PM, Giulio Benetti wrote: Would you have any idea what is going on? I've just entered debugging and two things came out: 1) in board/freescale/imxrt-1020-evk/imxrt1020-evk.c when calling spl_dram_init() there is some printf() inside that gets called, but

Re: [PATCH v2] clk: fix clk_get_rate() documentation

2021-04-04 Thread Giulio Benetti
Hi Lukasz, kindly ping Best regards -- Giulio Benetti Benetti Engineering sas On 2/23/21 1:25 AM, Giulio Benetti wrote: On 2/22/21 8:13 PM, Heinrich Schuchardt wrote: On 2/14/21 4:49 AM, Jesse T wrote: Awesome, thanks! I must have forgotten how twos complement works for a sec... On Sat

Re: imxrt1020 EVK u-boot doesn't run.

2021-04-05 Thread Giulio Benetti
Best regards Giulio > >> El dom, 4 abr 2021 a las 15:51, Giulio Benetti >> () escribió: >> Hi Nicolas, >> >> On 4/4/21 7:56 PM, Giulio Benetti wrote: >> >>> Would you have any idea what is going on? >> > >> > I've

[PATCH 00/16] Fix i.MXRT1020/50

2021-04-07 Thread Giulio Benetti
other minor fixed and improvements. Giulio Benetti (16): arm: imxrt: soc: make mpu regions generic timer: imx-gpt: Add timer support for i.MX SoCs family ARM: dts: imxrt1020: add alias to osc ARM: dts: imxrt1020: add gpt1 node ARM: dts: imxrt1020-evk: enable gpt1 timer ARM: dts: imxrt1020

[PATCH 02/16] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-04-07 Thread Giulio Benetti
This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Since this driver is only meant to provide u-boot's timer and counter, and most of the i.MX* SoCs use a 24Mhz crystal, let's only deal with that specific source. Signed-off-by: Giul

[PATCH 03/16] ARM: dts: imxrt1020: add alias to osc

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi index 97f3cec9f3..0a3a3b451a 100644 --- a/arch/arm/dts/imxrt1020.dtsi +++ b/arch/arm/dts/imxrt1020.dtsi

[PATCH 04/16] ARM: dts: imxrt1020: add gpt1 node

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi index 0a3a3b451a..cab608c644 100644 --- a/arch/arm/dts/imxrt1020.dtsi +++ b/arch/arm/dts/imxrt1020.dtsi @@ -129,5

[PATCH 08/16] ARM: dts: imxrt1020-evk: add device_type = "memory" to memory node

2021-04-07 Thread Giulio Benetti
Now device_type = "memory" is mandatory to allow u-boot to read memory node, so let's add it to memory node. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt102

[PATCH 06/16] ARM: dts: imxrt1020-evk: set gpt1 as tick-timer for u-boot

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt1020-evk.dts index a471ff3838..b527206fcf 100644 --- a/arch/arm/dts/imxrt1020-evk.dts +++ b/arch/arm/dts/imxrt1020-evk.dts

[PATCH 07/16] ARM: dts: imxrt1020-evk-u-boot: make gpt1 present for SPL

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1020-evk-u-boot.dtsi b/arch/arm/dts/imxrt1020-evk-u-boot.dtsi index d32c98de9c..34d19e06c5 100644 --- a/arch/arm/dts/imxrt1020-evk-u-boot.dtsi +++ b

[PATCH 11/16] ARM: dts: imxrt1050: add gpt1 node

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index b7cc3fbc2a..6f9da3fe8a 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi @@ -154,5

[PATCH 10/16] ARM: dts: imxrt1050: add alias to osc

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index a9281001e5..b7cc3fbc2a 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi

[PATCH 14/16] ARM: dts: imxrt1050-evk-u-boot: make gpt1 present for SPL

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk-u-boot.dtsi b/arch/arm/dts/imxrt1050-evk-u-boot.dtsi index fb4f7f6f9d..a4b50f0bb2 100644 --- a/arch/arm/dts/imxrt1050-evk-u-boot.dtsi +++ b

[PATCH 01/16] arm: imxrt: soc: make mpu regions generic

2021-04-07 Thread Giulio Benetti
This mpu handling works for every i.MXRT SoC that we have, so let's generalize imxrt1050_region_config to imxrt_region_config. Signed-off-by: Giulio Benetti --- arch/arm/mach-imx/imxrt/soc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/imxrt/

[PATCH 16/16] configs: imxrt1050-evk: enable imx gpt timer as tick-timer

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- configs/imxrt1050-evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imxrt1050-evk_defconfig b/configs/imxrt1050-evk_defconfig index f639ea7623..e74473511d 100644 --- a/configs/imxrt1050-evk_defconfig +++ b/configs/imxrt1050-evk_defconfig

[PATCH 12/16] ARM: dts: imxrt1050-evk: enable gpt1 timer

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index b5e781275e..e592330332 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts

[PATCH 09/16] configs: imxrt1020-evk: enable imx gpt timer as tick-timer

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- configs/imxrt1020-evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imxrt1020-evk_defconfig b/configs/imxrt1020-evk_defconfig index 9bddb69cd4..51ff702bc6 100644 --- a/configs/imxrt1020-evk_defconfig +++ b/configs/imxrt1020-evk_defconfig

[PATCH 13/16] ARM: dts: imxrt1050-evk: set gpt1 as tick-timer for u-boot

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index e592330332..6d21f2b738 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts

[PATCH 15/16] ARM: dts: imxrt1050-evk: add device_type = "memory" to memory node

2021-04-07 Thread Giulio Benetti
Now device_type = "memory" is mandatory to allow u-boot to read memory node, so let's add it to memory node. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt105

[PATCH 05/16] ARM: dts: imxrt1020-evk: enable gpt1 timer

2021-04-07 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt1020-evk.dts index ece13601bd..a471ff3838 100644 --- a/arch/arm/dts/imxrt1020-evk.dts +++ b/arch/arm/dts/imxrt1020-evk.dts

Re: imxrt1020 EVK u-boot doesn't run.

2021-04-07 Thread Giulio Benetti
Hi Nicolas, This patchset includes the fix for i.MXRT1020: https://patchwork.ozlabs.org/project/uboot/list/?series=237909 Best regards -- Giulio Benetti Benetti Engineering sas On 4/5/21 5:07 PM, Giulio Benetti wrote: Hi Nicolas, Il giorno 5 apr 2021, alle ore 16:34, Nicolás Muratore ha

Re: [PATCH 02/16] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-04-07 Thread Giulio Benetti
On 4/7/21 9:02 PM, Giulio Benetti wrote: This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Since this driver is only meant to provide u-boot's timer and counter, and most of the i.MX* SoCs use a 24Mhz crystal, let's only deal

Re: [PATCH 02/16] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-04-07 Thread Giulio Benetti
o this stuff and thanks for every one for walking me through this. You're welcome :-) and thank you for helping me with this driver and reviewing! Reviewing is a very important part of the process of upstreaming patches. Kind regards -- Giulio Benetti Benetti Engineering sas On Wed

[PATCH] ARM: dts: imxrt1050: indent lcdif node correctly

2020-04-28 Thread Giulio Benetti
Accidentally submitted a patch with indentation not correct, let's fix it by indenting wrong lines. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxr

Re: [PATCH v8 06/21] sifive: fu540: add ddr driver

2020-05-09 Thread Giulio Benetti
struct ddr_info *priv = dev_get_priv(dev); + + *info = priv->info; + + return 0; +} + +static struct ram_ops fu540_ddr_ops = { + .get_info = fu540_ddr_get_info, +}; + +static const struct udevice_id fu540_ddr_ids[] = { + { .compatible = "sifive,fu540-c000-ddr" }, + { } +}; + +U_BOOT_DRIVER(fu540_ddr) = { + .name = "fu540_ddr", + .id = UCLASS_RAM, + .of_match = fu540_ddr_ids, + .ops = &fu540_ddr_ops, + .probe = fu540_ddr_probe, + .priv_auto_alloc_size = sizeof(struct ddr_info), +#if defined(CONFIG_TPL_BUILD) || \ + (!defined(CONFIG_TPL) && defined(CONFIG_SPL_BUILD)) + .platdata_auto_alloc_size = sizeof(struct sifive_dmc_plat), +#endif +}; Best regards -- Giulio Benetti Benetti Engineering sas

Re: [PATCH 03/18] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-03-22 Thread Giulio Benetti
Hi Lukasz, Fabio, On 3/9/20 10:11 AM, Lukasz Majewski wrote: On Sun, 8 Mar 2020 22:05:42 +0100 Giulio Benetti wrote: Hi Lukasz, On 3/8/20 9:27 PM, Lukasz Majewski wrote: On Wed, 26 Feb 2020 18:15:46 +0100 Giulio Benetti wrote: mxsfb needs PLL5 as source, so let's setup it and s

Re: [PATCH 00/18] i.MXRT1050 add LCDIF support

2020-03-22 Thread Giulio Benetti
Hi All, On 2/26/20 6:15 PM, Giulio Benetti wrote: This patchset add support for LCDIF on i.MXRT1050 evk. This requires PLL5 to be setup, mxsfb needs to use display_timing to retrieve if Lcd has inverted PIXCLOCK from dts. With this patchset applied we temporary loose DCache support until it

[PATCH v2 00/19] i.MXRT1050 add LCDIF support

2020-03-22 Thread Giulio Benetti
s: V1->V2: * moved hard-coded LCDIF's parent clock from clk-imxrt1050.c to imxrt1050-evk.dts * reworded some commit log Giulio Benetti (19): clk: imx: pllv3: add enable_bit clk: imx: clk-imxrt1050: fix typo in clock name "video:" clk: imx: clk-imxrt1050: setup PLL5 for vide

[PATCH v2 03/19] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-03-22 Thread Giulio Benetti
mxsfb needs PLL5 as source, so let's setup it at its default frequency specified in RM(650Mhz). Signed-off-by: Giulio Benetti Reviewed-by: Lukasz Majewski --- V1->V2: * removed LCDIF set_parent() since it's setup in dts file(suggested by Fabio) --- drivers/clk/imx/clk-im

[PATCH v2 04/19] clk: imx: clk-imxrt1050: add set_parent() callback

2020-03-22 Thread Giulio Benetti
Need to add set_parent() callback to allow dts assigned-clock-parents to work so let's add it accordingly. Signed-off-by: Giulio Benetti --- V1->V2: * introduce patch to allow clock's parent setting in dts to work --- drivers/clk/imx/clk-imxrt1050.c | 19 +++ 1 fil

[PATCH v2 02/19] clk: imx: clk-imxrt1050: fix typo in clock name "video:"

2020-03-22 Thread Giulio Benetti
"video:" must be "video", ":" is a typo. Signed-off-by: Giulio Benetti Reviewed-by: Lukasz Majewski --- drivers/clk/imx/clk-imxrt1050.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/cl

[PATCH v2 01/19] clk: imx: pllv3: add enable_bit

2020-03-22 Thread Giulio Benetti
pllv3 PLLs have powerdown/up bits but enable bits too. Specifically "enable bit" enable the pll output, so when dis/enabling pll by setting/clearing power_bit we must also set/clear enable_bit. Signed-off-by: Giulio Benetti Reviewed-by: Lukasz Majewski --- drivers/clk/imx/clk-p

[PATCH v2 06/19] sunxi: display: use common video_ctfb_mode_to_display_timing()

2020-03-22 Thread Giulio Benetti
Since video_ctfb_mode_to_display_timing() has been implemented by moving sunxi_ctfb_mode_to_display_timing() to video_modes.c and it's meant to be used by other video subsystem, let's use it instead of local sunxi_ctfb_mode_to_display_timing(). Signed-off-by: Giulio Benetti --- dri

[PATCH v2 11/19] video: mxsfb: enable setting VSYNC negative polarity

2020-03-22 Thread Giulio Benetti
VSYNC signal can now be flipped by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 9912cf3d82..4d33e24e1a 100644 --- a/drivers/video/mxsfb.c

[PATCH v2 05/19] videomodes: add helper function to convert from ctfb to display_timing

2020-03-22 Thread Giulio Benetti
This function converts from "struct ctf_res_modes" to "struct display_timing". Signed-off-by: Giulio Benetti --- drivers/video/videomodes.c | 29 + drivers/video/videomodes.h | 3 +++ 2 files changed, 32 insertions(+) diff --git a/drivers/

[PATCH v2 08/19] video: mxsfb: add support for i.MXRT

2020-03-22 Thread Giulio Benetti
Add support for i.MXRT by adding CONFIG_IMXRT in register structure and adding .compatible = "fsl,imxrt-lcdif". Signed-off-by: Giulio Benetti --- arch/arm/include/asm/arch-imxrt/imx-regs.h | 6 ++ arch/arm/include/asm/mach-imx/regs-lcdif.h | 6 +++--- drivers/vid

[PATCH v2 10/19] video: mxsfb: enable setting HSYNC negative polarity

2020-03-22 Thread Giulio Benetti
HSYNC signal can now be flipped according to display_flags bitmaks by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video

[PATCH v2 12/19] video: mxsfb: enable setting PIXDATA on negative edge

2020-03-22 Thread Giulio Benetti
DOTCLK signal can now be flipped by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 4d33e24e1a..648e1c22fe 100644 --- a/drivers/video

[PATCH v2 09/19] video: mxsfb: refactor for using display_timings

2020-03-22 Thread Giulio Benetti
ned-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 54 ++- 1 file changed, 23 insertions(+), 31 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 6826ba3d1b..cdd6dfaced 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/vid

[PATCH v2 07/19] video: mxsfb: add support for DM CLK

2020-03-22 Thread Giulio Benetti
Allow using DM CLK instead of mxs_set_lcdclk() so we can avoid to implement a special function to set lcd clock on i.MXRT. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/video

[PATCH v2 14/19] imxrt1050_evk: add 16bpp video support if video layer enabled

2020-03-22 Thread Giulio Benetti
i.MXRT1050 provides mxsfb compatible lcd controller, so let's enable video mxsfb driver with 16bpp depth if CONFIG_DM_VIDEO is selected since board has 16bpp only connection. Signed-off-by: Giulio Benetti --- include/configs/imxrt1050-evk.h | 15 +++ 1 file changed, 15 inser

[PATCH v2 17/19] arch: arm: dts: imxrt1050-evk: add lcdif node

2020-03-22 Thread Giulio Benetti
Add lcdif node and its pinctrl. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 60 ++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index 56b75986e2..b5e781275e 100644 --- a/arch

[PATCH v2 15/19] ARM: dts: i.mxrt1050: add lcdif node

2020-03-22 Thread Giulio Benetti
Add lcdif node to SoC. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index b1d98e6feb..0123f4788c 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts

[PATCH v2 16/19] ARM: dts: imxrt1050: allow this dtsi file to be compiled in Linux

2020-03-22 Thread Giulio Benetti
Linux doesn't provide skeleton.dtsi file so let's remove its include and provide #address-cells/size-cells = <1> that were defined in skeleton.dtsi before. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) d

[PATCH v2 13/19] video: mxsfb: enable setting ENABLE negative polarity

2020-03-22 Thread Giulio Benetti
ENABLE signal can now be flipped by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 648e1c22fe..8a5a61c9fb 100644 --- a/drivers/video

[PATCH v2 15/19] ARM: dts: i.mxrt1050: add lcdif node

2020-03-22 Thread Giulio Benetti
Add lcdif node to SoC. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index b1d98e6feb..0123f4788c 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts

[PATCH v2 19/19] configs: imxrt1050-evk: temporary disable DCACHE

2020-03-22 Thread Giulio Benetti
mxsfb needs a dcache function not implemented in cortex-M7, so for the moment let's keep dcache not enabled. Signed-off-by: Giulio Benetti --- configs/imxrt1050-evk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imxrt1050-evk_defconfig b/configs/imxrt1050-evk_defc

[PATCH v2 18/19] configs: imxrt1050-evk: enable video support/console

2020-03-22 Thread Giulio Benetti
Enable DM_VIDEO subsystem and its BACKLIGHT_GPIO. Then enable SYS_WHITE_ON_BLACK to have classic black background on display. Need also to enable CONFIG_SYS_CONSOLE_ENV_OVERWRITE to retrieve stdin/stdout/stderr from CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Giulio Benetti --- configs/imxrt1050

Re: [PATCH v2 00/19] i.MXRT1050 add LCDIF support

2020-03-22 Thread Giulio Benetti
-dir=../BUILD/ Best regards -- Giulio Benetti Benetti Engineering sas On 3/22/20 11:44 PM, Giulio Benetti wrote: This patchset add support for LCDIF on i.MXRT1050 evk. This requires PLL5 to be setup, mxsfb needs to use display_timing to retrieve if Lcd has inverted PIXCLOCK from dts. With

Re: [PATCH v2 15/19] ARM: dts: i.mxrt1050: add lcdif node

2020-03-22 Thread Giulio Benetti
Sorry I've sent this patch twice. -- Giulio Benetti Benetti Engineering sas On 3/22/20 11:44 PM, Giulio Benetti wrote: Add lcdif node to SoC. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/ar

Re: [PATCH v2 05/19] videomodes: add helper function to convert from ctfb to display_timing

2020-03-23 Thread Giulio Benetti
On 3/23/20 4:36 PM, Simon Glass wrote: Hi Giulio, On Sun, 22 Mar 2020 at 16:44, Giulio Benetti wrote: This function converts from "struct ctf_res_modes" to "struct display_timing". Signed-off-by: Giulio Benetti --- drivers/video/videomodes.c | 29 +++

Re: [PATCH v2 05/19] videomodes: add helper function to convert from ctfb to display_timing

2020-03-23 Thread Giulio Benetti
On 3/23/20 7:42 PM, Simon Glass wrote: Hi Giulio, On Mon, 23 Mar 2020 at 10:00, Giulio Benetti wrote: On 3/23/20 4:36 PM, Simon Glass wrote: Hi Giulio, On Sun, 22 Mar 2020 at 16:44, Giulio Benetti wrote: This function converts from "struct ctf_res_modes" to "struct

[PATCH v3 05/19] videomodes: add helper function to convert from ctfb to display_timing

2020-04-08 Thread Giulio Benetti
This function converts from "struct ctf_res_modes" to "struct display_timing". Signed-off-by: Giulio Benetti --- V2->V3: * comment function prototype and make it clear what ctfb is --- drivers/video/videomodes.c | 29 + drivers/video/videomode

[PATCH v3 01/19] clk: imx: pllv3: add enable_bit

2020-04-08 Thread Giulio Benetti
pllv3 PLLs have powerdown/up bits but enable bits too. Specifically "enable bit" enable the pll output, so when dis/enabling pll by setting/clearing power_bit we must also set/clear enable_bit. Signed-off-by: Giulio Benetti Reviewed-by: Lukasz Majewski --- drivers/clk/imx/clk-p

[PATCH v3 03/19] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-04-08 Thread Giulio Benetti
mxsfb needs PLL5 as source, so let's setup it at its default frequency specified in RM(650Mhz). Signed-off-by: Giulio Benetti Reviewed-by: Lukasz Majewski --- V1->V2: * removed LCDIF set_parent() since it's setup in dts file(suggested by Fabio) --- drivers/clk/imx/clk-im

[PATCH v3 00/19] i.MXRT1050 add LCDIF support

2020-04-08 Thread Giulio Benetti
s: V1->V2: * moved hard-coded LCDIF's parent clock from clk-imxrt1050.c to imxrt1050-evk.dts * reworded some commit log V2->V3: * added comment to describe what is a ctfb in videomodes Giulio Benetti (19): clk: imx: pllv3: add enable_bit clk: imx: clk-imxrt1050: fix typo in clock nam

[PATCH v3 02/19] clk: imx: clk-imxrt1050: fix typo in clock name "video:"

2020-04-08 Thread Giulio Benetti
"video:" must be "video", ":" is a typo. Signed-off-by: Giulio Benetti Reviewed-by: Lukasz Majewski --- drivers/clk/imx/clk-imxrt1050.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/cl

[PATCH v3 06/19] sunxi: display: use common video_ctfb_mode_to_display_timing()

2020-04-08 Thread Giulio Benetti
Since video_ctfb_mode_to_display_timing() has been implemented by moving sunxi_ctfb_mode_to_display_timing() to video_modes.c and it's meant to be used by other video subsystem, let's use it instead of local sunxi_ctfb_mode_to_display_timing(). Signed-off-by: Giulio Benetti --- dri

  1   2   3   4   5   >