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
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
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
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
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
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
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 +++
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 --
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
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:
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
> 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
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
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
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
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
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
d having many uboot binaries as
many lcds my board supports.
What about that?
Best regards
--
Giulio Benetti
Benetti Engineering sas
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
"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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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 +++
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
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
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
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
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
"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
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 - 100 of 455 matches
Mail list logo