[U-Boot] Add support for AT91 WDT

2009-06-13 Thread Giulio Benetti
-- Giulio Benetti RD Micronova srl diff -urpN u-boot-2009.03.orig/cpu/arm926ejs/at91/Makefile u-boot-2009.03/cpu/arm926ejs/at91/Makefile --- u-boot-2009.03.orig/cpu/arm926ejs/at91/Makefile 2009-03-21 22:04:41.0 +0100 +++ u-boot-2009.03/cpu/arm926ejs/at91/Makefile 2009-06-13 11:20

Re: [U-Boot] Add support for AT91 WDT

2009-06-13 Thread Giulio Benetti
Jean-Christophe PLAGNIOL-VILLARD wrote: already present please read doc/README.at91 Best Regards, J. That's right,sorry. -- Giulio Benetti RD Micronova srl Vigonza (PD) ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman

Re: [U-Boot] [PATCH 1/2] at91sam9: add watchdog support

2009-06-13 Thread Giulio Benetti
and read. What do you think? Kind regards -- Giulio Benetti RD Micronova srl ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support via at91sam9263ek_wdt_config

2009-06-13 Thread Giulio Benetti
we should put WATCHDOG_RESET() inside main_loop and nand write and read. What do you think? Kind regards -- Giulio Benetti RD Micronova srl ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support via at91sam9263ek_wdt_config

2009-06-15 Thread Giulio Benetti
Jean-Christophe PLAGNIOL-VILLARD wrote: On 12:52 Sat 13 Jun , Giulio Benetti wrote: In this way the linux driver won't work(the one by Renaud CERRATO). Because it expects MR register not to be set, or to be set enabled. it's work we have test it you need to enable it in the at91bootstrap

[U-Boot] Add WATCHDOG_REFRESH() inside nand write and read

2009-06-17 Thread Giulio Benetti
Add WATCHDOG_REFRESH() inside nand write and read -- Giulio Benetti RD Micronova srl diff -urpN u-boot-2009.03.orig/drivers/mtd/nand/nand_util.c u-boot-2009.03/drivers/mtd/nand/nand_util.c --- u-boot-2009.03.orig/drivers/mtd/nand/nand_util.c 2009-03-21 22:04:41.0 +0100 +++ u-boot

[U-Boot] PATCH add rgb555 for at91

2009-06-18 Thread Giulio Benetti
), + (blue 3) | ((green 0xf8) 2) | ((red 0xf8) 7)); #else lcdc_writel(panel_info.mmio, ATMEL_LCDC_LUT(regno), (blue 3) | ((green 0xfc) 3) | ((red 0xf8) 8)); -- Giulio Benetti RD Micronova srl ___ U-Boot mailing list U

Re: [U-Boot] PATCH add rgb555 for at91

2009-06-18 Thread Giulio Benetti
because at91sam9263ek was wired swapped between red and blue. It should be in that way but I'm not sure. Anyway I think the wiring should be done better before, instead of create a new standard. Fortunately with software you can change more than something, but not everything. -- Giulio Benetti RD

[U-Boot] [PATCH] add support for C5000 thermostimulator

2009-06-18 Thread Giulio Benetti
:00:00.0 +0100 +++ a/board/micronova/c5000/c5000.c 2009-06-18 12:57:52.0 +0200 @@ -0,0 +1,194 @@ +/* + * (C) Copyright 2007-2008 + * Stelian Pop stelian@leadtechdesign.com + * Lead Tech Design www.leadtechdesign.com + * + * Giulio Benetti giulio.bene...@micronovasrl.com

[U-Boot] [PATCH] add WATCHDOG_RESET() on nand write and read

2009-06-18 Thread Giulio Benetti
); size_t read_length; + WATCHDOG_RESET (); + if (nand_block_isbad (nand, offset ~(nand-erasesize - 1))) { printf (Skipping bad block 0x%08zx\n, offset ~(nand-erasesize - 1)); -- Giulio

Re: [U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support via at91sam9263ek_wdt_config

2009-06-18 Thread Giulio Benetti
)); -} -- Giulio Benetti RD Micronova srl ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] PATCH add rgb555 for at91

2009-06-19 Thread Giulio Benetti
Hi Detlev, RGB555 is a wiring with blue and red swapped, nothing more. Maybe I've made too much confusion before. And in the at91 eks there's nothing to change, because they're wired as BGR555. Best regards -- Giulio Benetti RD Micronova srl ___ U

Re: [U-Boot] PATCH macb fix phy address

2008-11-12 Thread Giulio Benetti
Il Wednesday 12 November 2008 15:42:34 Jean-Christophe PLAGNIOL-VILLARD ha scritto: On 13:01 Wed 12 Nov , Giulio Benetti wrote: - Fixed finding phyter address - Added searching for other addresses if not found diff -urpN -X macb-exclude u-boot.orig/drivers/net/macb.c u-boot/drivers

Re: [U-Boot] PATCH macb fix phy address

2008-11-12 Thread Giulio Benetti
Il Wednesday 12 November 2008 16:43:46 Jean-Christophe PLAGNIOL-VILLARD ha scritto: On 16:32 Wed 12 Nov , michael wrote: Hi, Jean-Christophe PLAGNIOL-VILLARD wrote: Signed-off-by: Giulio Benetti [EMAIL PROTECTED] please move to the comment Best Regards, J

[U-Boot] PATCH macb fix phy address

2008-11-12 Thread Giulio Benetti
:16.0 +0100 @@ -1,5 +1,7 @@ /* * Copyright (C) 2005-2006 Atmel Corporation + * Giulio Benetti [EMAIL PROTECTED] + * Micronova srl [EMAIL PROTECTED] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published

[U-Boot] [PATCH] sunxi: Fix display timing flags

2018-01-16 Thread Giulio Benetti
flags member of struct timing was not initialized, this took to unpredictable behaviour of display flags, such DISPLAY_FLAGS_HSYNC_HIGH instead of _LOW etc. Init timing->flags = 0 Signed-off-by: Giulio Benetti <giulio.bene...@micronovasrl.com> --- drivers/video/sunxi/sunxi_display.c

[U-Boot] [PATCH] sunxi: video: lcdc: fix HSYNC and VSYNC polarity

2018-02-15 Thread Giulio Benetti
Differently from other Lcd signals, HSYNC and VSYNC signals result inverted if their bits are cleared to 0. Invert their settings of IO_POL register. Signed-off-by: Giulio Benetti <giulio.bene...@micronovasrl.com> --- drivers/video/sunxi/lcdc.c | 4 ++-- 1 file changed, 2 insertions

Re: [U-Boot] [PATCH] sunxi: Add support for LiNova1 CTP 7" HMI

2018-03-22 Thread Giulio Benetti
Hi, please drop this patch, I've made confusion on sending. Sorry -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale € 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285

[U-Boot] [PATCH] sunxi: Add support for LiNova1 CTP 7" HMI

2018-03-22 Thread Giulio Benetti
sed jtag pins HMI is supplied from +12Vdc. It comes in different flavours for connector types and can be found with umounted features as requested by customers. Signed-off-by: Giulio Benetti <giulio.bene...@micronovasrl.com> --- arch/arm/dts/sun7i-a20-linova1-ct

Re: [U-Boot] [PATCH] sunxi: video: lcdc: fix HSYNC and VSYNC polarity

2018-02-26 Thread Giulio Benetti
Hi all, Il 26/02/2018 13:31, Anatolij Gustschin ha scritto: Hi all, On Fri, 16 Feb 2018 14:10:25 +0100 Maxime Ripard maxime.rip...@bootlin.com wrote: Hi, On Thu, Feb 15, 2018 at 06:40:53PM +0100, Giulio Benetti wrote: Differently from other Lcd signals, HSYNC and VSYNC signals result

Re: [U-Boot] sunxi: add custom board

2018-10-26 Thread Giulio Benetti
Il 26/10/2018 13:06, Maxime Ripard ha scritto: On Thu, Oct 25, 2018 at 12:57:54PM +0200, Giulio Benetti wrote: Hello Maxime, Il 24/10/2018 19:59, Maxime Ripard ha scritto: On Wed, Oct 24, 2018 at 03:59:56PM +0200, Giulio Benetti wrote: Hello Jagan and Maxime, I've looked around a lot, but I

Re: [U-Boot] sunxi: add custom board

2018-10-25 Thread Giulio Benetti
Hello Maxime, Il 24/10/2018 19:59, Maxime Ripard ha scritto: On Wed, Oct 24, 2018 at 03:59:56PM +0200, Giulio Benetti wrote: Hello Jagan and Maxime, I've looked around a lot, but I can't find a way to use the board/sunxi: http://git.denx.de/?p=u-boot.git;a=tree;f=board/sunxi;h

[U-Boot] sunxi: add custom board

2018-10-25 Thread Giulio Benetti
to be used to extend an existing board? Because I understand that probably you wouldn't add this code I'm talking about inside board/sunxi. This request is done with idea to upstream patch for this board. Can you help me? Thanks in advance Best regards -- Giulio Benetti CTO MICRONOVA SRL Sede: Via

[U-Boot] Add support for imxrt

2019-09-11 Thread Giulio Benetti
the new folder 'mach-imxrt'? Also, do I find some of you in IRC sometimes? Thanks in advance 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 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

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

[U-Boot] [PATCH] libfdt: fix typo on comment

2019-09-18 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- scripts/dtc/libfdt/libfdt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dtc/libfdt/libfdt.h b/scripts/dtc/libfdt/libfdt.h index cf86ddba88..53d577d2a8 100644 --- a/scripts/dtc/libfdt/libfdt.h +++ b/scripts/dtc/libfdt/libfdt.h

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

Re: [U-Boot] [RFC PATCH 0/5] WIP Add support for i.MXRT family

2019-11-04 Thread Giulio Benetti
Hi Fabio, On 11/1/19 1:41 PM, Fabio Estevam wrote: Hi Giulio, On Wed, Oct 30, 2019 at 6:09 PM Giulio Benetti wrote: This patchset is a WIP for adding i.MXRT family. It provides: - soc family entry - pinctrl driver - serial driver tweaking - partial sdram controller driver - imxrt1050-evk

Re: [U-Boot] [RFC PATCH 5/5] Add support for the NXP IMXRT1050-EVK board

2019-11-04 Thread Giulio Benetti
Hi Fabio, On 11/1/19 1:40 PM, Fabio Estevam wrote: Hi Giulio, On Wed, Oct 30, 2019 at 6:09 PM Giulio Benetti wrote: Please add a commit log that briefly describes the board. Yes. Signed-off-by: Giulio Benetti --- arch/arm/dts/Makefile | 2 + arch/arm/dts

Re: [U-Boot] [RFC PATCH 4/5] ram: add SDRAM driver for i.MXRT SoCs

2019-11-04 Thread Giulio Benetti
On 11/4/19 5:33 PM, Fabio Estevam wrote: Hi Giulio, On Thu, Oct 31, 2019 at 9:11 AM Giulio Benetti wrote: ...in this register and the next one there are parameters like CKEOFF and ACT2PRE impossible to lead to classic tXXX sdram timing parameters. I've done this way inspired by stm32-sdram

[U-Boot] [RFC PATCH 1/5] Add support for the NXP IMXRT10xx SoC family

2019-10-30 Thread Giulio Benetti
TODO... Signed-off-by: Giulio Benetti --- arch/arm/Kconfig | 10 arch/arm/Makefile | 4 +-- arch/arm/include/asm/arch-imxrt/clock.h| 10 arch/arm/include/asm/arch-imxrt/gpio.h | 10 arch/arm/include/asm/arch

[U-Boot] [RFC PATCH 0/5] WIP Add support for i.MXRT family

2019-10-30 Thread Giulio Benetti
to be finished and clock driver to be done. I would like to receive some comment from you all since this is my first big contribution(at least for me it is). Giulio Benetti (5): Add support for the NXP IMXRT10xx SoC family pinctrl: add i.MXRT driver serial_lpuart: add support for i.MXRT ram: add SDRAM

[U-Boot] [RFC PATCH 4/5] ram: add SDRAM driver for i.MXRT SoCs

2019-10-30 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- drivers/ram/Kconfig | 8 + drivers/ram/Makefile | 2 + drivers/ram/imxrt_sdram.c| 406 +++ include/dt-bindings/memory/imxrt-sdram.h | 168 ++ 4 files changed, 584 insertions

[U-Boot] [RFC PATCH 2/5] pinctrl: add i.MXRT driver

2019-10-30 Thread Giulio Benetti
Add i.MXRT pinctrl driver. Signed-off-by: Giulio Benetti --- drivers/pinctrl/nxp/Kconfig | 14 + drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imxrt.c | 40 + include/dt-bindings/pinctrl/pins-imxrt1050.h | 993

[U-Boot] [RFC PATCH 3/5] serial_lpuart: add support for i.MXRT

2019-10-30 Thread Giulio Benetti
baudrate the same way as i.MX8 does. Signed-off-by: Giulio Benetti --- drivers/serial/serial_lpuart.c | 15 +++ include/fsl_lpuart.h | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index

[U-Boot] [RFC PATCH 5/5] Add support for the NXP IMXRT1050-EVK board

2019-10-30 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imxrt1050-evk.dts| 124 arch/arm/dts/imxrt1050.dtsi | 73 + arch/arm/mach-imx/imxrt/Kconfig | 11 + board/freescale/imxrt1050-evk

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

[PATCH 03/20] clk: imx: pllv3: register PLLV3 GENERIC and USB as 2 different clocks

2019-12-04 Thread Giulio Benetti
Better to register the 2 clock as 2 different drivers because they work slightly differently depending on power_bit and powerup_set bits coming on next patches. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions

[PATCH 15/20] serial_lpuart: add support for i.MXRT

2019-12-04 Thread Giulio Benetti
baudrate the same way as i.MX8 does. Signed-off-by: Giulio Benetti --- drivers/serial/serial_lpuart.c | 15 +++ include/fsl_lpuart.h | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index

[PATCH 08/20] clk: imx: pllv3: add PLLV3_SYS support

2019-12-04 Thread Giulio Benetti
Add PLLV3_SYS support by adding set/get_rate() for PLLV3_SYS but keeping generic enable()/disable(). Add a different driver because ops are different respect to GENERIC/USB. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 53 + 1 file changed

[PATCH 10/20] clk: imx: pfd: add set_rate()

2019-12-04 Thread Giulio Benetti
Implement set_rate() for pfd. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pfd.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c index 188b2b3b90..4ae55f5a07 100644 --- a/drivers/clk/imx/clk-pfd.c +++ b

[PATCH 00/20] Add i.MXRT family support

2019-12-04 Thread Giulio Benetti
and it loads correctly a basic Linux zImage. Giulio Benetti (20): armv7m: cache: add mmu_set_region_dcache_behaviour() stub for compatibility spl: fix entry_point equal to load_addr clk: imx: pllv3: register PLLV3 GENERIC and USB as 2 different clocks clk: imx: pllv3: set div_mask

[PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-04 Thread Giulio Benetti
Add i.MXRT1050 clk driver support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile| 2 + drivers/clk/imx/clk-imxrt1050.c | 292 include/dt-bindings/clock/imxrt1050-clock.h

[PATCH 07/20] clk: imx: pllv3: add set_rate() support

2019-12-04 Thread Giulio Benetti
Add generic set_rate() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index 9b37cd9cd9..a721dbee94 100644 --- a/drivers/clk/imx/clk

[PATCH 06/20] clk: imx: pllv3: add disable() support

2019-12-04 Thread Giulio Benetti
Add disable() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d8cbe3dd4e..9b37cd9cd9 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b

[PATCH 09/20] clk: imx: pllv3: add support for PLLV3_AV type

2019-12-04 Thread Giulio Benetti
Add support for PLLV3 AV type. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d5087a104e..fc16416d5f 100644 --- a/drivers/clk

[PATCH 05/20] clk: imx: pllv3: add enable() support

2019-12-04 Thread Giulio Benetti
Before set_rate() pllv3 needs enable() to power the pll up. Add enable() taking into account different power_bit and different powerup_set, because some pll needs its power_bit to be set or reset to be powered on. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 24

[PATCH 13/20] ARM: dts: imxrt1050: add dtsi file

2019-12-04 Thread Giulio Benetti
Add dtsi file for i.MXRT1050. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 146 +++ include/dt-bindings/pinctrl/pins-imxrt1050.h | 993 +++ 2 files changed, 1139 insertions(+) create mode 100644 arch/arm/dts/imxrt1050.dtsi create mode 100644

[PATCH 01/20] armv7m: cache: add mmu_set_region_dcache_behaviour() stub for compatibility

2019-12-04 Thread Giulio Benetti
Since some driver requires this function add it as an empty stub when DCACHE is OFF. Signed-off-by: Giulio Benetti --- arch/arm/cpu/armv7m/cache.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c index f4ba3ad50e..7353698557

[PATCH 02/20] spl: fix entry_point equal to load_addr

2019-12-04 Thread Giulio Benetti
ddr is not an entry point. So use image_get_ep() for entry_point assignment and image_get_load() for load_addr assignment. Signed-off-by: Giulio Benetti --- common/spl/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index

[PATCH 04/20] clk: imx: pllv3: set div_mask differently if PLLV3 is GENERIC or USB

2019-12-04 Thread Giulio Benetti
div_mask is different for GENERIC and USB pll, so set it according. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d1e4c3fe30..02c75c37ea 100644 --- a/drivers/clk

[PATCH 14/20] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-12-04 Thread Giulio Benetti
This driver assumes that lpuart clock is already enabled before probing but using DM only lpuart won't be automatically enabled so add clk_enable() when probing if CONFIG_CLK is defined. Signed-off-by: Giulio Benetti --- drivers/serial/serial_lpuart.c | 13 + 1 file changed, 13

[PATCH 16/20] ram: add SDRAM driver for i.MXRT SoCs

2019-12-04 Thread Giulio Benetti
Add SDRAM driver for i.MXRT SoCs. Signed-off-by: Giulio Benetti --- drivers/ram/Kconfig | 8 + drivers/ram/Makefile | 2 + drivers/ram/imxrt_sdram.c| 439 +++ include/dt-bindings/memory/imxrt-sdram.h | 100

[PATCH 20/20] imx: imxrt1050-evk: Add support for the NXP i.MXRT1050-EVK

2019-12-04 Thread Giulio Benetti
-evaluation-kit:MIMXRT1050-EVK The initial supported/tested devices include: - Debug serial - SD Signed-off-by: Giulio Benetti --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imxrt1050-evk.dts| 209 ++ board/freescale/imxrt1050-evk/Kconfig

[PATCH 12/20] pinctrl: add i.MXRT driver

2019-12-04 Thread Giulio Benetti
Add i.MXRT pinctrl driver. Signed-off-by: Giulio Benetti --- drivers/pinctrl/nxp/Kconfig | 14 ++ drivers/pinctrl/nxp/Makefile| 1 + drivers/pinctrl/nxp/pinctrl-imxrt.c | 40 + 3 files changed, 55 insertions(+) create mode 100644 drivers

[PATCH 19/20] imx: Add basic support for the NXP IMXRT10xx SoC family

2019-12-04 Thread Giulio Benetti
Add i.IMXRT family basic support. Signed-off-by: Giulio Benetti --- arch/arm/Kconfig| 10 ++ arch/arm/Makefile | 4 +-- arch/arm/include/asm/arch-imxrt/clock.h | 10 ++ arch/arm/include/asm/arch-imxrt/gpio.h | 19

[PATCH 17/20] mmc: fsl_esdhc: make if(CONFIG_IS_ENABLED(CLK)) an #if statement

2019-12-04 Thread Giulio Benetti
Not all architectures(i.e. i.MXRT) support mxc_get_clock() and use DM_CLK instead. So building could result in failure due to missing mxc_get_clock(). Make if(CONFIG_IS_ENABLED(CLK)) an #if statement. Signed-off-by: Giulio Benetti --- drivers/mmc/fsl_esdhc_imx.c | 38

[PATCH 18/20] mmc: fsl_esdhc: add compatible for fsl, imxrt-usdhc

2019-12-04 Thread Giulio Benetti
Add compatible "fsl,imxrt-usdhc" to make mmc working on i.MXRT platforms with CONFIG_DM_MMC=y. Signed-off-by: Giulio Benetti --- drivers/mmc/Kconfig | 2 +- drivers/mmc/fsl_esdhc_imx.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/Kconfig

Re: [PATCH 13/20] ARM: dts: imxrt1050: add dtsi file

2019-12-04 Thread Giulio Benetti
Hello all, On 12/4/19 6:44 PM, Giulio Benetti wrote: Add dtsi file for i.MXRT1050. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 146 +++ include/dt-bindings/pinctrl/pins-imxrt1050.h | 993 +++ 2 files changed, 1139 insertions(+) create

Re: [PATCH 13/20] ARM: dts: imxrt1050: add dtsi file

2019-12-09 Thread Giulio Benetti
Hi Lukasz, On 12/8/19 3:46 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:32 +0100 Giulio Benetti wrote: Add dtsi file for i.MXRT1050. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 146 +++ include/dt-bindings/pinctrl/pins-imxrt1050.h | 993

Re: [PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-09 Thread Giulio Benetti
Hi Lukasz, On 12/8/19 3:40 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:30 +0100 Giulio Benetti wrote: Add i.MXRT1050 clk driver support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile| 2

Re: [PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-09 Thread Giulio Benetti
Forgotten to ask you... On 12/9/19 11:49 AM, Giulio Benetti wrote: Hi Lukasz, On 12/8/19 3:40 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:30 +0100 Giulio Benetti wrote: Add i.MXRT1050 clk driver support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/Kconfig

Re: [PATCH 02/20] spl: fix entry_point equal to load_addr

2019-12-09 Thread Giulio Benetti
Hi Lukasz, First of all thank you for reviewing my patches and... On 12/8/19 3:37 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:21 +0100 Giulio Benetti wrote: At the moment entry_point is set to image_get_load(header) that sets it to "load address" instead of "entry p

Re: [PATCH 15/20] serial_lpuart: add support for i.MXRT

2019-12-09 Thread Giulio Benetti
Hi Lukasz, On 12/8/19 3:58 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:34 +0100 Giulio Benetti wrote: Add i.MXRT compatible string and cpu type support to lpuart driver, to use little endian 32 bits configurations. Also according to RM, the Receive RX FIFO Enable (RXFE) field

Re: [PATCH 12/20] pinctrl: add i.MXRT driver

2019-12-09 Thread Giulio Benetti
Hi Lukasz, Stefano, Fabio, all, On 12/8/19 3:45 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:31 +0100 Giulio Benetti wrote: Add i.MXRT pinctrl driver. Signed-off-by: Giulio Benetti --- drivers/pinctrl/nxp/Kconfig | 14 ++ drivers/pinctrl/nxp/Makefile| 1

Re: [PATCH 14/20] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-12-09 Thread Giulio Benetti
Hi Lukasz, On 12/8/19 3:52 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:33 +0100 Giulio Benetti wrote: This driver assumes that lpuart clock is already enabled before probing but using DM only lpuart won't be automatically enabled so add clk_enable() when probing if CONFIG_CLK

Re: [PATCH 09/20] clk: imx: pllv3: add support for PLLV3_AV type

2019-12-09 Thread Giulio Benetti
Hi Lukasz, On 12/8/19 4:05 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:28 +0100 Giulio Benetti wrote: Add support for PLLV3 AV type. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 76 + 1 file changed, 76 insertions(+) diff

Re: [PATCH] clk: uclass: clk_get_by_name() must not be available if CONFIG_OF_PLATDATA is enabled

2019-12-13 Thread Giulio Benetti
On 12/13/19 11:09 AM, Lukasz Majewski wrote: On Fri, 13 Dec 2019 00:02:25 +0100 Giulio Benetti wrote: Hi Lukasz, On 12/12/19 11:53 PM, Giulio Benetti wrote: clk_get_by_name() requires clk_get_by_id() that is not available if CONFIG_OF_PLATDATA is defined, so move clk_get_by_name

Re: [PATCH] clk: uclass: clk_get_by_name() must not be available if CONFIG_OF_PLATDATA is enabled

2019-12-12 Thread Giulio Benetti
Hi Lukasz, On 12/12/19 11:53 PM, Giulio Benetti wrote: clk_get_by_name() requires clk_get_by_id() that is not available if CONFIG_OF_PLATDATA is defined, so move clk_get_by_name() into #else condition of #if CONFIG_IS_ENABLED(OF_PLATDATA). Signed-off-by: Giulio Benetti I've already

Re: [PATCH] clk: uclass: clk_get_by_name() must not be available if CONFIG_OF_PLATDATA is enabled

2019-12-15 Thread Giulio Benetti
Hi Lukasz, On 12/15/19 2:50 PM, Lukasz Majewski wrote: Hi Giulio, On 12/13/19 11:09 AM, Lukasz Majewski wrote: On Fri, 13 Dec 2019 00:02:25 +0100 Giulio Benetti wrote: Hi Lukasz, On 12/12/19 11:53 PM, Giulio Benetti wrote: clk_get_by_name() requires clk_get_by_id

Re: [PATCH 14/20] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-12-17 Thread Giulio Benetti
Hi Lukasz and all, On 12/10/19 12:48 AM, Lukasz Majewski wrote: On Mon, 9 Dec 2019 16:20:10 +0100 Giulio Benetti wrote: Hi Lukasz, On 12/8/19 3:52 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:33 +0100 Giulio Benetti wrote: This driver assumes that lpuart clock is already

Re: [PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-11 Thread Giulio Benetti
Hi Lukasz, On 12/10/19 12:36 AM, Lukasz Majewski wrote: On Mon, 9 Dec 2019 11:53:05 +0100 Giulio Benetti wrote: Forgotten to ask you... On 12/9/19 11:49 AM, Giulio Benetti wrote: Hi Lukasz, On 12/8/19 3:40 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:30 +0100 Giulio Benetti

Re: [PATCH 12/20] pinctrl: add i.MXRT driver

2019-12-11 Thread Giulio Benetti
Hi Lukasz, On 12/10/19 12:46 AM, Lukasz Majewski wrote: On Mon, 9 Dec 2019 12:54:33 +0100 Giulio Benetti wrote: Hi Lukasz, Stefano, Fabio, all, On 12/8/19 3:45 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:31 +0100 Giulio Benetti wrote: Add i.MXRT pinctrl driver. Signed-off

Re: [PATCH 09/20] clk: imx: pllv3: add support for PLLV3_AV type

2019-12-11 Thread Giulio Benetti
On 12/10/19 1:07 AM, Lukasz Majewski wrote: On Mon, 9 Dec 2019 18:13:04 +0100 Giulio Benetti wrote: Hi Lukasz, On 12/8/19 4:05 PM, Lukasz Majewski wrote: On Wed, 4 Dec 2019 18:44:28 +0100 Giulio Benetti wrote: Add support for PLLV3 AV type. Signed-off-by: Giulio Benetti

[PATCH] clk: uclass: clk_get_by_name() must not be available if CONFIG_OF_PLATDATA is enabled

2019-12-12 Thread Giulio Benetti
clk_get_by_name() requires clk_get_by_id() that is not available if CONFIG_OF_PLATDATA is defined, so move clk_get_by_name() into #else condition of #if CONFIG_IS_ENABLED(OF_PLATDATA). Signed-off-by: Giulio Benetti --- drivers/clk/clk-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [U-Boot] [PATCH] spl: fix entry_point equal to load_addr

2019-12-06 Thread Giulio Benetti
# ifndef CONFIG_SYS_UBOOT_START CONFIG_SYS_UBOOT_START := 0 endif ` So probably broken boards try to jump to absolute 0. A solving patch would be: ifndef CONFIG_SYS_UBOOT_START CONFIG_SYS_UBOOT_START := CONFIG_SYS_TEXT_BASE endif What do you think? Sorry for this mess! Best regards -- Giulio Benetti Benetti Engineering sas

Re: [U-Boot] [PATCH] spl: fix entry_point equal to load_addr

2019-12-06 Thread Giulio Benetti
proposal [1], but i need some Yes, I've missed it for few minutes. Thanks for solving this. Best regards -- Giulio Benetti Benetti Engineering sas feedback from some boards maintainers. [1] https://patchwork.ozlabs.org/project/uboot/list/?series=146876 Thanks Patrice Sorry for this mess

[U-Boot] [RFC PATCH v2 03/18] clk: imx: pllv3: set div_mask differently if PLLV3 is GENERIC or USB

2019-11-20 Thread Giulio Benetti
div_mask is different for GENERIC and USB pll, so set it according. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index 01ff5ffe6f..eb3ac9e556 100644 --- a/drivers/clk

[U-Boot] [RFC PATCH v2 06/18] clk: imx: pllv3: add set_rate() support

2019-11-20 Thread Giulio Benetti
Add generic set_rate() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index cb461cd5be..ea23be9b55 100644 --- a/drivers/clk/imx/clk

[U-Boot] [RFC PATCH v2 13/18] mmc: fsl_esdhc: make if(CONFIG_IS_ENABLED(CLK)) an #if statement

2019-11-20 Thread Giulio Benetti
Not all architectures(i.e. i.MXRT) support mxc_get_clock() and use DM_CLK instead. So building could result in failure due to missing mxc_get_clock(). Make if(CONFIG_IS_ENABLED(CLK)) an #if statement. Signed-off-by: Giulio Benetti --- drivers/mmc/fsl_esdhc_imx.c | 38

[U-Boot] [RFC PATCH v2 00/18] WIP Add support for i.MXRT family

2019-11-20 Thread Giulio Benetti
. Thanks in advance for eventually reviewing these patches. Best regards Giulio Benetti (18): imx: Add basic support for the NXP IMXRT10xx SoC family clk: imx: pllv3: register PLLV3 GENERIC and USB as 2 different clocks clk: imx: pllv3: set div_mask differently if PLLV3 is GENERIC or USB

[U-Boot] [RFC PATCH v2 18/18] imx: imxrt1050-evk: Add support for the NXP i.MXRT1050-EVK

2019-11-20 Thread Giulio Benetti
-evaluation-kit:MIMXRT1050-EVK The initial supported/tested devices include: - Debug serial - SD Signed-off-by: Giulio Benetti --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imxrt1050-evk.dts| 228 ++ arch/arm/mach-imx/imxrt/Kconfig

[U-Boot] [RFC PATCH v2 16/18] video: mxsfb: add support for DM CLK

2019-11-20 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index d73a8bac99..51c3a219c5 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c

[U-Boot] [RFC PATCH v2 17/18] video: mxsfb: add support for i.MXRT WIP

2019-11-20 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/include/asm/mach-imx/regs-lcdif.h | 6 +++--- drivers/video/mxsfb.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/mach-imx/regs-lcdif.h b/arch/arm/include/asm/mach-imx/regs-lcdif.h index

[U-Boot] [RFC PATCH v2 01/18] imx: Add basic support for the NXP IMXRT10xx SoC family

2019-11-20 Thread Giulio Benetti
Add i.IMXRT family basic support. Signed-off-by: Giulio Benetti --- arch/arm/Kconfig| 10 ++ arch/arm/Makefile | 4 +- arch/arm/dts/imxrt1050.dtsi | 167 arch/arm/include/asm/arch-imxrt/clock.h

[U-Boot] [RFC PATCH v2 02/18] clk: imx: pllv3: register PLLV3 GENERIC and USB as 2 different clocks

2019-11-20 Thread Giulio Benetti
Better to register the 2 clock as different because they work slightly differently depending on power_bit and powerup_set bits coming on next patches. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[U-Boot] [RFC PATCH v2 05/18] clk: imx: pllv3: add disable() support

2019-11-20 Thread Giulio Benetti
Add disable() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index 84283ab6a9..cb461cd5be 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b

[U-Boot] [RFC PATCH v2 04/18] clk: imx: pllv3: add enable() support

2019-11-20 Thread Giulio Benetti
Before set_rate() pllv3 needs enable() to power the pll up. Add enable() taking into account different power_bit and different powerup_set, because some pll needs its power_bit to be set or reset to be powered on. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 24

[U-Boot] [RFC PATCH v2 11/18] serial_lpuart: add support for i.MXRT

2019-11-20 Thread Giulio Benetti
baudrate the same way as i.MX8 does. Signed-off-by: Giulio Benetti --- drivers/serial/serial_lpuart.c | 15 +++ include/fsl_lpuart.h | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index

[U-Boot] [RFC PATCH v2 07/18] clk: imx: pllv3: add PLLV3_SYS support

2019-11-20 Thread Giulio Benetti
Add PLLV3_SYS support by adding set/get_rate() for PLLV3_SYS but keeping generic enable()/disable(). Add a different driver because ops are different respect to GENERIC/USB. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 53 + 1 file changed

[U-Boot] [RFC PATCH v2 09/18] pinctrl: add i.MXRT driver

2019-11-20 Thread Giulio Benetti
Add i.MXRT pinctrl driver. Signed-off-by: Giulio Benetti --- drivers/pinctrl/nxp/Kconfig | 14 + drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imxrt.c | 40 + include/dt-bindings/pinctrl/pins-imxrt1050.h | 993

[U-Boot] [RFC PATCH v2 15/18] armv7m: cache: add mmu_set_region_dcache_behaviour() stub for compatibility

2019-11-20 Thread Giulio Benetti
Since some driver requires this function add it as an empty stub when DCACHE is OFF. Signed-off-by: Giulio Benetti --- arch/arm/cpu/armv7m/cache.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c index 1106bead41..0ccd7519a1

[U-Boot] [RFC PATCH v2 12/18] ram: add SDRAM driver for i.MXRT SoCs

2019-11-20 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- drivers/ram/Kconfig | 8 + drivers/ram/Makefile | 2 + drivers/ram/imxrt_sdram.c| 439 +++ include/dt-bindings/clock/imxrt-clock.h | 2 +- include/dt-bindings/memory/imxrt

[U-Boot] [RFC PATCH v2 14/18] mmc: fsl_esdhc: add compatible for fsl, imxrt-usdhc WIP

2019-11-20 Thread Giulio Benetti
Add compatible "fsl,imxrt-usdhc" to make mmc working on i.MXRT platforms with CONFIG_DM_MMC=y Signed-off-by: Giulio Benetti --- drivers/mmc/Kconfig | 2 +- drivers/mmc/fsl_esdhc_imx.c | 15 ++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/d

[U-Boot] [RFC PATCH v2 10/18] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-11-20 Thread Giulio Benetti
This driver assumes that lpuart clock is already enabled before probing but using DM only lpuart won't be automatically enabled so add clk_enable() when probing if CONFIG_CLK is defined. Signed-off-by: Giulio Benetti --- drivers/serial/serial_lpuart.c | 13 + 1 file changed, 13

[U-Boot] [RFC PATCH v2 08/18] clk: imx: add i.IMXRT clk driver

2019-11-20 Thread Giulio Benetti
Add i.MXRT clk driver support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile| 2 + drivers/clk/imx/clk-imxrt.c | 254 include/dt-bindings/clock/imxrt-clock.h | 65 ++ 4

[U-Boot] [PATCH v2] armv7m: cache: add invalidate_icache_all() stub

2019-11-26 Thread Giulio Benetti
This commit: https://gitlab.denx.de/u-boot/u-boot/commit/d409c962169bd293e39386d0ddfa64d5222a3be4 causes build failure with ICACHE enabled. This is due to missing invalidate_icache_all() stub. Let's add empty invalidate_icache_all() in the case where ICACHE is not enabled. Signed-off-by: Giulio

Re: [U-Boot] [PATCH] armv7m: cache: add invalidate_icache_all() stub

2019-11-26 Thread Giulio Benetti
Hello, On 11/21/19 12:00 AM, Giulio Benetti wrote: This commit: https://gitlab.denx.de/u-boot/u-boot/commit/d409c962169bd293e39386d0ddfa64d5222a3be4 causes build failure with ICACHE enabled. This is due to missing invalidate_icache_all() stub. Let's add empty invalidate_icache_all() in the case

[U-Boot] [PATCH] spl: fix entry_point equal to load_addr

2019-11-25 Thread Giulio Benetti
ddr is not an entry point. So use image_get_ep() for entry_point assignment and image_get_load() for load_addr assignment. Signed-off-by: Giulio Benetti --- common/spl/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index

  1   2   3   4   5   >