Re: [PATCH] ubi: Depend on MTD

2024-04-30 Thread Dario Binacchi
t; > > > Can you pick it up? Seems that you are delegate and was already reviewed by me Yes, I will apply the patch to nand-next branch and test it with the CI pipeline Thanks and regards, Dario > > Michael > > > -- > > Tom > > > > -- > Michael Nazzare

Re: [PATCH v1] mtd: rawnand: macronix: OTP access for MX30LFxG18AC

2024-04-18 Thread Dario Binacchi
ote: > > >>>> Sorry, pls ping > > >>>> > > >>>> Thanks, Arseniy > > > > > > > > > > > > > -- > Michael Nazzareno Trimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > mich...@

Re: [PATCH v2 0/6] mtd: nand: raw: Collected improvements

2024-04-15 Thread Dario Binacchi
Hello Alexander, On Mon, Apr 15, 2024 at 8:13 AM Alexander Dahl wrote: > > Hello Dario, > > Am Sun, Apr 14, 2024 at 03:41:38PM +0200 schrieb Dario Binacchi: > > Hi Alexander, > > > > On Wed, Mar 20, 2024 at 10:02 AM Alexander Dahl wrote: > > > > >

[PULL] Pull request for u-boot-nand-20240414

2024-04-14 Thread Dario Binacchi
/mtd/nand/raw/meson_nand.c create mode 100644 drivers/mtd/nand/spi/xtx.c -- Dario Binacchi Senior Embedded Linux Developer dario.binac...@amarulasolutions.com __ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i

Re: [PATCH V4] mtd: spinand: Add support for XTX SPINAND

2024-04-14 Thread Dario Binacchi
_cache_variants, > + _cache_variants), > +0, > +SPINAND_ECCINFO(_ooblayout, > + xt26xxxd_ecc_get_status)), > +}; > + > +s

Re: [PATCH v3] mtd: rawnand: Meson NAND controller support

2024-04-14 Thread Dario Binacchi
d->ecc.steps = mtd->writesize / nand->ecc.size; > > + meson_chip->bch_mode = meson_ecc[i].bch; > > + > > + meson_nfc_init_nand_oob(nand); > > + > > + return 0; > > + } &g

Re: [PATCH v5] cmd: mtd: OTP access support

2024-04-14 Thread Dario Binacchi
"With:\n" > "\t: NAND partition/chip name (or corresponding DM device name > or OF path)\n" > @@ -561,10 +785,20 @@ U_BOOT_LONGHELP(mtd, > "\t: length of the operation in bytes (default: the entire > device)\n" >

Re: [PATCH] cmd: sf: Fix sf probe crash

2024-04-14 Thread Dario Binacchi
t; + ret = spi_flash_probe_bus_cs(bus, cs, ); > > + if (!ret) > > + flash = dev_get_uclass_priv(new); > > } else { > > flash = spi_flash_probe(bus, cs, speed, mode); > > } > Applied to nand-next Thanks a

Re: [PATCH v2 0/6] mtd: nand: raw: Collected improvements

2024-04-14 Thread Dario Binacchi
b14f47c > -- > 2.39.2 > Applied to nand-next the first 4 patches. For the others, we will conduct further testing before applying them. Thanks and regards, Dario -- Dario Binacchi Senior Embedded Linux Developer dario.binac...@amarulasolutions.com __ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i...@amarulasolutions.com www.amarulasolutions.com

[PULL] Pull request for u-boot-nand-20240115

2024-01-15 Thread Dario Binacchi
Pull request for u-boot-nand-20240115 The first patch is by Heinrich Schuchardt and fixes an integer overflow The following two patches are by Dario Binacchi and add arguments check to the nand_mtd_to_devnum() and nand_register() functions. The remaining

Re: [PATCH v2 00/14] Support SPI NAND in fastboot protocol

2024-01-15 Thread Dario Binacchi
`nand_erase_opts' 96+/usr/bin/ld: test/dm/nand.c:84: undefined reference to `nand_read_skip_bad' 97+collect2: error: ld returned 1 exit status 98+make[1]: *** [Makefile:1766: u-boot] Error 1 99+make: *** [Makefile:177: sub-make] Error 2 100 0 0 1 /1 sandbox Please fix the errors. Thanks and regards, Dar

Re: [PATCH v2 0/2] mtd: nand: omap_gpmc: Fix NAND for AM335x

2024-01-15 Thread Dario Binacchi
>> > 3 files changed, 31 insertions(+), 74 deletions(-) >> > >> > >> > base-commit: 2f0282922b2c458eea7f85c500a948a587437b63 >> >> If no objections can this be Acked and picked up please? >> Wit

Re: [PATCH v2 0/4] mtd: omap_gpmc: Fix GPMC & NAND drivers

2024-01-15 Thread Dario Binacchi
equisite-patch-id: e0465f3e924302d1c4bd47f2129b4eb3bd9faead > -- > 2.34.1 > Applied to nand-next, Thanks and regards, Dario -- Dario Binacchi Senior Embedded Linux Developer dario.binac...@amarulasolutions.com __ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i...@amarulasolutions.com www.amarulasolutions.com

Re: [PATCH v2 2/4] mtd: rawnand: omap_gpmc: Use DT provided IO address

2024-01-12 Thread Dario Binacchi
YS_NAND_MAX_CHIPS); > if (ret) > @@ -1270,7 +1279,7 @@ void board_nand_init(void) > > int board_nand_init(struct nand_chip *nand) > { > - return gpmc_nand_init(nand); > + return gpmc_nand_init(nand, (void __iomem *)CFG_SYS_NAND_BASE); > } Reviewed-by: Dario Binacchi

Re: [PATCH v2 1/4] memory: ti-gpmc: Fix build

2024-01-12 Thread Dario Binacchi
; #include > -#include > #include > #include > #include > @@ -17,6 +16,7 @@ > #include > #include > #include > +#include > #include "ti-gpmc.h" > Reviewed-by: Dario Binacchi Thanks and regards, Dario > enum gpmc_clk_domain

[PATCH v3 6/6] board: stm32f469-disco: add splash screen with stmicroelectronics logo

2023-12-11 Thread Dario Binacchi
Display the STMicroelectronics logo with features VIDEO_LOGO and SPLASH_SCREEN on stm32f469-disco board. Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- Changes in v3: - Add Patrice Chotard's Reviewed-by tag. - Remove RFC tag - Split "[4/5] ARM: dts: stm32: support di

[PATCH v3 5/6] board: stm32f469-disco: add support to display

2023-12-11 Thread Dario Binacchi
Add support to Orise Tech OTM8009A display on stm32f469-disco board. It was necessary to retrieve the framebuffer address from the device tree because the address returned by the video-uclass driver pointed to a memory area that was not usable. Signed-off-by: Dario Binacchi --- Changes in v3

[PATCH v3 4/6] ARM: dts: stm32: support MIPI DSI on stm32f469-disco board

2023-12-11 Thread Dario Binacchi
Unlike Linux, the DSI driver requires the LTDC clock to be properly probed. Hence, the changes made to the DSI node. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/dts/stm32f469-disco-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/stm32f469

[PATCH v3 3/6] ARM: dts: stm32: make the DSI clock usable by the clock driver

2023-12-11 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the DSI clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chota

[PATCH v3 2/6] ARM: dts: stm32: make the LTDC clock usable by the clock driver

2023-12-11 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the LTDC clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chota

[PATCH v3 1/6] ARM: dts: stm32f469-disco: sync with Linux 6.5

2023-12-11 Thread Dario Binacchi
Sync the devicetree with linux 6.5 for stm32f746-disco board. Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- (no changes since v2) Changes in v2: - Add Patrice Chotard's Reviewed-by tag. arch/arm/dts/stm32f469-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 0/6] Support display on stm32f469-disco board

2023-12-11 Thread Dario Binacchi
s Reviewed-by tag to patches 1, 2 and 3 of the series. - Fix frame buffer allocation for stm32f469 discovery board. Dario Binacchi (6): ARM: dts: stm32f469-disco: sync with Linux 6.5 ARM: dts: stm32: make the LTDC clock usable by the clock driver ARM: dts: stm32: make the DSI clock usable by

[RESEND RFC PATCH v2 5/5] board: stm32f469-disco: add splash screen with stmicroelectronics logo

2023-11-30 Thread Dario Binacchi
Display the STMicroelectronics logo with features VIDEO_LOGO and SPLASH_SCREEN on stm32f469-disco board. Signed-off-by: Dario Binacchi --- Changes in v2: - Add Patrice Chotard's Reviewed-by tag to patches 1, 2 and 3 of the series. - Fix frame buffer allocation for stm32f469 discovery board

[RESEND RFC PATCH v2 4/5] ARM: dts: stm32: support display on stm32f469-disco board

2023-11-30 Thread Dario Binacchi
the LTDC clock to be properly probed. Hence, the changes made to the DSI node in stm32f469-disco-u-boot.dtsi. Signed-off-by: Dario Binacchi --- Changes in v2: - Add DRAM_SIZE macro. - Fix frame buffer allocation function so that it is backward compatible with boards other than the one

[RESEND RFC PATCH v2 3/5] ARM: dts: stm32: make the DSI clock usable by the clock driver

2023-11-30 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the DSI clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard ---

[RESEND RFC PATCH v2 2/5] ARM: dts: stm32: make the LTDC clock usable by the clock driver

2023-11-30 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the LTDC clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard ---

[RESEND RFC PATCH v2 1/5] ARM: dts: stm32f469-disco: sync with Linux 6.5

2023-11-30 Thread Dario Binacchi
Sync the devicetree with linux 6.5 for stm32f746-disco board. Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- Changes in v2: - Add Patrice Chotard's Reviewed-by tag. arch/arm/dts/stm32f469-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch

[RESEND RFC PATCH v2 0/5] Support display on stm32f469-disco board

2023-11-30 Thread Dario Binacchi
of the series. - Fix frame buffer allocation for stm32f469 discovery board. Dario Binacchi (5): ARM: dts: stm32f469-disco: sync with Linux 6.5 ARM: dts: stm32: make the LTDC clock usable by the clock driver ARM: dts: stm32: make the DSI clock usable by the clock driver ARM: dts: stm32: support

[PATCH] binman: doc: fix typo

2023-11-23 Thread Dario Binacchi
s/use set/set/ Signed-off-by: Dario Binacchi --- tools/binman/binman.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 020988d955f0..230e055667f3 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst

[PATCH] binman: doc: fix typo

2023-11-23 Thread Dario Binacchi
s/use set/set/ Signed-off-by: Dario Binacchi --- tools/binman/binman.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 020988d955f0..230e055667f3 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst

[PATCH 2/2] clk: stm32f: fix setting of LCD clock

2023-11-11 Thread Dario Binacchi
clock") Signed-off-by: Dario Binacchi --- drivers/clk/stm32/clk-stm32f.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/clk/stm32/clk-stm32f.c b/drivers/clk/stm32/clk-stm32f.c index 4c1864193357..d68c75ed2013 100644 --- a/drivers/clk

[PATCH 1/2] clk: stm32f: fix setting of division factor for LCD_CLK

2023-11-11 Thread Dario Binacchi
The value to be written to the register must be appropriately shifted, as is correctly done in other parts of the code. Fixes: 5e993508cb25 ("clk: clk_stm32f: Add set_rate for LTDC clock") Signed-off-by: Dario Binacchi --- drivers/clk/stm32/clk-stm32f.c | 3 ++- 1 file changed, 2

[PATCH] ARM: dts: stm32f769-disco: rework ltdc node

2023-11-11 Thread Dario Binacchi
With commit f479f5dbb7ac ("ARM: dts: stm32: add ltdc support on stm32f746 MCU"), which adds the 'ltdc' node in stm32f746.dtsi, we can simplify stm32f769-disco-uboot.dtsi and align stm32f769-disco.dtsi with the kernel version. Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f7

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-09 Thread Dario Binacchi
Sean, All On Sat, Nov 4, 2023 at 8:46 PM Sean Anderson wrote: > > On 11/2/23 10:18, Dario Binacchi wrote: > > On Thu, Nov 2, 2023 at 3:13 PM Sean Anderson wrote: > >> > >> On 11/2/23 10:08, Dario Binacchi wrote: > >>> On Thu, Nov 2, 2023 at 3:06 PM Sean

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Dario Binacchi
On Thu, Nov 2, 2023 at 3:13 PM Sean Anderson wrote: > > On 11/2/23 10:08, Dario Binacchi wrote: > > On Thu, Nov 2, 2023 at 3:06 PM Sean Anderson wrote: > >> > >> On 11/2/23 10:01, Dario Binacchi wrote: > >>> Sean, All, > >>> >

Re: [PATCH 03/15] nand: Calculate SYS_NAND_PAGE_COUNT automatically

2023-11-02 Thread Dario Binacchi
Sean, All On Thu, Nov 2, 2023 at 3:17 PM Sean Anderson wrote: > > On 11/2/23 05:53, Dario Binacchi wrote: > > Sean, All > > > > On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: > >> > >> Contrary to what the help message says, this is the

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Dario Binacchi
On Thu, Nov 2, 2023 at 3:06 PM Sean Anderson wrote: > > On 11/2/23 10:01, Dario Binacchi wrote: > > Sean, All, > > > > On Sun, Oct 29, 2023 at 4:48 AM Sean Anderson wrote: > >> > >> This series tests raw nand flash in sandbox and fixes various bugs

Re: [PATCH 00/15] nand: Add sandbox tests

2023-11-02 Thread Dario Binacchi
test/image/Kconfig| 9 + > test/image/Makefile | 1 + > test/image/spl_load_nand.c| 54 ++ > 102 files changed, 1269 insertions(+), 153 deletions(-) > create mode 100644 drivers/mtd/nand/raw/sand_nan

[PATCH] mtd: nand: check nand_mtd_to_devnum() argument

2023-11-02 Thread Dario Binacchi
If the "mtd" parameter is NULL, the search will definitely yield a negative result. In that case, it's better to exit immediately. Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/nand.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/

[PATCH] mtd: nand: complete nand_register() arguments check

2023-11-02 Thread Dario Binacchi
The patch checks that the "mtd" parameter is accessible before proceeding. Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nand.c b/drivers/mtd/nand/raw/nand.c index ea

Re: [PATCH 14/15] nand: Add sandbox driver

2023-11-02 Thread Dario Binacchi
.remove = sand_nand_remove, > + .priv_auto = sizeof(struct sand_nand_priv), > +}; > + > +void board_nand_init(void) > +{ > + struct udevice *dev; > + int err; > + > + err = uclass_get_device_by_driver(UCLASS_MTD, > DM_DRI

Re: [PATCH 12/15] nand: Allow reinitialization

2023-11-02 Thread Dario Binacchi
assert(!nand_info[i]); > + > + initialized = 0; > + nand_init(); > +} > + > unsigned int nand_page_size(void) > { > struct mtd_info *mtd = get_nand_dev_by_index(nand_curr_device); > diff --git a/include/nand.h b/include/nand.h > index

Re: [PATCH 11/15] nand: Add function to unregister NAND devices

2023-11-02 Thread Dario Binacchi
gt; --- a/include/nand.h > +++ b/include/nand.h > @@ -22,6 +22,7 @@ int nand_mtd_to_devnum(struct mtd_info *mtd); > #if CONFIG_IS_ENABLED(SYS_NAND_SELF_INIT) > void board_nand_init(void); > int nand_register(int devnum, struct mtd_info *mtd); > +void nand_unregister(struct mtd_info

Re: [PATCH 10/15] mtd: Add some fallbacks for add/del_mtd_device

2023-11-02 Thread Dario Binacchi
ct mtd_info *mtd); > +#else > +static inline int add_mtd_device(struct mtd_info *mtd) > +{ > + return -ENOSYS; > +} > + > +static inline int del_mtd_device(struct mtd_info *mtd) > +{ > + return -ENOSYS; > +} > +#endif > > #ifd

Re: [PATCH 03/15] nand: Calculate SYS_NAND_PAGE_COUNT automatically

2023-11-02 Thread Dario Binacchi
ss > the > diff --git a/drivers/mtd/nand/raw/nand_spl_simple.c > b/drivers/mtd/nand/raw/nand_spl_simple.c > index 2f3af9edd4c..2ebcac56900 100644 > --- a/drivers/mtd/nand/raw/nand_spl_simple.c > +++ b/drivers/mtd/nand/raw/nand_spl_simple.c > @@ -6,6 +6,7 @@ > > #include > #include

Re: [PATCH v3 2/2] dfu: mtd: mark bad the MTD block on erase error

2023-10-13 Thread Dario Binacchi
Hello Patrick, On Mon, Jun 05, 2023 at 09:52:08AM +0200, Patrick Delaunay wrote: > In the MTD DFU backend, it is needed to mark the NAND block bad when the > erase failed with the -EIO error, as it is done in UBI and JFFS2 code. > > This operation is not done in the MTD framework, but the bad

Re: [PATCH v3 1/2] dfu: mtd: fix the trace when limit is reached

2023-10-13 Thread Dario Binacchi
Hello Patrick, On Mon, Jun 05, 2023 at 09:52:07AM +0200, Patrick Delaunay wrote: > The offset variable = 'off' used in the error trace when limit is reach > on erase operation is incorect as 'erase_op.addr' is used in the loop. > This patch corrects the copy paste issue between the erase loop and

Pull request for u-boot-nand-20230417

2023-10-13 Thread Dario Binacchi
/paragon.c -- Dario Binacchi Senior Embedded Linux Developer dario.binac...@amarulasolutions.com __ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i...@amarulasolutions.com www.amarulasolutions.com

[RFC PATCH v2 5/5] board: stm32f469-disco: add splash screen with stmicroelectronics logo

2023-10-08 Thread Dario Binacchi
Display the STMicroelectronics logo with features VIDEO_LOGO and SPLASH_SCREEN on stm32f469-disco board. Signed-off-by: Dario Binacchi --- Changes in v2: - Add Patrice Chotard's Reviewed-by tag to patches 1, 2 and 3 of the series. - Fix frame buffer allocation for stm32f469 discovery board

[RFC PATCH v2 4/5] ARM: dts: stm32: support display on stm32f469-disco board

2023-10-08 Thread Dario Binacchi
the LTDC clock to be properly probed. Hence, the changes made to the DSI node in stm32f469-disco-u-boot.dtsi. Signed-off-by: Dario Binacchi --- Changes in v2: - Add DRAM_SIZE macro. - Fix frame buffer allocation function so that it is backward compatible with boards other than the one

[RFC PATCH v2 2/5] ARM: dts: stm32: make the LTDC clock usable by the clock driver

2023-10-08 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the LTDC clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard ---

[RFC PATCH v2 3/5] ARM: dts: stm32: make the DSI clock usable by the clock driver

2023-10-08 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the DSI clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard ---

[RFC PATCH v2 1/5] ARM: dts: stm32f469-disco: sync with Linux 6.5

2023-10-08 Thread Dario Binacchi
Sync the devicetree with linux 6.5 for stm32f746-disco board. Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- Changes in v2: - Add Patrice Chotard's Reviewed-by tag. arch/arm/dts/stm32f469-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch

[RFC PATCH v2 0/5] Support display on stm32f469-disco board

2023-10-08 Thread Dario Binacchi
of the series. - Fix frame buffer allocation for stm32f469 discovery board. Dario Binacchi (5): ARM: dts: stm32f469-disco: sync with Linux 6.5 ARM: dts: stm32: make the LTDC clock usable by the clock driver ARM: dts: stm32: make the DSI clock usable by the clock driver ARM: dts: stm32: support

Re: [RFC PATCH 4/5] ARM: dts: stm32: support display on stm32f469-disco board

2023-10-08 Thread Dario Binacchi
Hello Patrice, On Wed, Sep 27, 2023 at 8:19 AM Patrice CHOTARD wrote: > > > > On 9/3/23 22:57, Dario Binacchi wrote: > > Add support to Orise Tech OTM8009A display on stm32f469-disco board. > > > > It was necessary to retrieve the framebuffer address from the devic

[RFC PATCH 5/5] board: stm32f469-disco: add splash screen with stmicroelectronics logo

2023-09-03 Thread Dario Binacchi
Display the STMicroelectronics logo with features VIDEO_LOGO and SPLASH_SCREEN on stm32f469-disco board. Signed-off-by: Dario Binacchi --- configs/stm32f469-discovery_defconfig | 3 +++ include/configs/stm32f469-discovery.h | 2 ++ tools/logos/stm32f469-discovery.bmp | Bin 0 -> 18

[RFC PATCH 4/5] ARM: dts: stm32: support display on stm32f469-disco board

2023-09-03 Thread Dario Binacchi
the LTDC clock to be properly probed. Hence, the changes made to the DSI node in stm32f469-disco-u-boot.dtsi. Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f469-disco-u-boot.dtsi | 4 +++ configs/stm32f469-discovery_defconfig| 13 + drivers/video/stm32/stm32_ltdc.c

[RFC PATCH 3/5] ARM: dts: stm32: make the DSI clock usable by the clock driver

2023-09-03 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the DSI clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f469-disco

[RFC PATCH 2/5] ARM: dts: stm32: make the LTDC clock usable by the clock driver

2023-09-03 Thread Dario Binacchi
e to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the LTDC clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f469-disc

[RFC PATCH 1/5] ARM: dts: stm32f469-disco: sync with Linux 6.5

2023-09-03 Thread Dario Binacchi
Sync the devicetree with linux 6.5 for stm32f746-disco board. Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f469-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/stm32f469-disco.dts b/arch/arm/dts/stm32f469-disco.dts index 6e0ffc1903be

[RFC PATCH 0/5] Support display on stm32f469-disco board

2023-09-03 Thread Dario Binacchi
altering the Linux device tree. It is therefore desirable, as soon as possible, to add these drivers the functionalities so that they do not require device tree properties that deviate from those present in the Linux version. Dario Binacchi (5): ARM: dts: stm32f469-disco: sync with Linux 6.5 ARM: dts

[PATCH 10/10] ARM: dts: stm32: support display on stm32f746-disco board

2023-09-03 Thread Dario Binacchi
The patch applies the changes from Linux commit 10a970bc3ebfa ("ARM: dts: stm32: support display on stm32f746-disco board") and removes the same settings from stm32f746-disco-u-boot.dtsi. Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f746-disco-u-boot

[PATCH 05/10] ARM: dts: stm32: add pin map for i2c3 controller on stm32f7

2023-09-03 Thread Dario Binacchi
commit 0637e66f8250c61f75042131fcb7f88ead2ad436 Linux upstream. Add pin configurations for using i2c3 controller on stm32f7. Signed-off-by: Dario Binacchi Signed-off-by: Alexandre Torgue --- arch/arm/dts/stm32f7-pinctrl.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 09/10] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f746-disco

2023-09-03 Thread Dario Binacchi
nodes in the device tree without creating misunderstandings. This patch is preparatory for future developments. Signed-off-by: Dario Binacchi Signed-off-by: Alexandre Torgue --- arch/arm/dts/stm32f746-disco.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm

[PATCH 08/10] ARM: dts: stm32: add pin map for LTDC on stm32f7

2023-09-03 Thread Dario Binacchi
commit ba287d1a0137702a224b1f48673d529257b3c4bf Linux upstream. Add pin configurations for using LTDC (LCD-tft Display Controller) on stm32f746-disco board. Signed-off-by: Dario Binacchi Reviewed-by: Raphaël Gallais-Pou Signed-off-by: Alexandre Torgue --- arch/arm/dts/stm32f7-pinctrl.dtsi

[PATCH 07/10] ARM: dts: stm32: add ltdc support on stm32f746 MCU

2023-09-03 Thread Dario Binacchi
The patch applies the changes from Linux commit 008ef8b3a1a00 ("Add LTDC (Lcd-tft Display Controller) support") and removes the same settings from stm32f746-disco-u-boot.dtsi. Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f746-disco-u-boot.dtsi | 18 ++ ar

[PATCH 04/10] ARM: dts: stm32: use RCC macro for CRC node on stm32f746

2023-09-03 Thread Dario Binacchi
commit 7a5f349e592c254f3c1ac34665b6c3905576efc2 Linux upstream. The patch replaces the number 12 with the appropriate numerical constant already defined in the file stm32f7-rcc.h. Signed-off-by: Dario Binacchi Signed-off-by: Alexandre Torgue --- arch/arm/dts/stm32f746.dtsi | 2 +- 1 file

[PATCH 06/10] ARM: dts: stm32: add touchscreen on stm32f746-disco board

2023-09-03 Thread Dario Binacchi
commit f0215440069c4fb12958d2d321e05faa2708a11d Linux upstream. The patch adds support for touchscreen on the stm32f746-disco board. Signed-off-by: Dario Binacchi Signed-off-by: Alexandre Torgue --- arch/arm/dts/stm32f746-disco.dts | 19 ++- 1 file changed, 18 insertions

[PATCH 03/10] ARM: dts: stm32: add CAN support on stm32f746

2023-09-03 Thread Dario Binacchi
filters | - Signed-off-by: Dario Binacchi Link: https://lore.kernel.org/all/20230427204540.3126234-6-dario.binac...@amarulasolutions.com Signed-off-by: Marc Kleine-Budde --- arch/arm/dts/stm32f746.d

[PATCH 02/10] ARM: dts: stm32: add pin map for CAN controller on stm32f7

2023-09-03 Thread Dario Binacchi
commit 011644249686f2675e142519cd59e81e04cfc231 Linux upstream. Add pin configurations for using CAN controller on stm32f7. Signed-off-by: Dario Binacchi Link: https://lore.kernel.org/all/20230427204540.3126234-4-dario.binac...@amarulasolutions.com Signed-off-by: Marc Kleine-Budde --- arch

[PATCH 01/10] dt-bindings: mfd: stm32f7: Add binding definition for CAN3

2023-09-03 Thread Dario Binacchi
commit 8f3ef556f8e1a670895f59ef3f01e4e26edd63e3 Linux upstream. Add binding definition for CAN3 peripheral. Signed-off-by: Dario Binacchi Link: https://lore.kernel.org/r/20230423172528.1398158-2-dario.binac...@amarulasolutions.com Signed-off-by: Lee Jones --- include/dt-bindings/mfd/stm32f7

[PATCH 00/10] ARM: dts: stm32f746 sync with Linux kernel 6.5

2023-09-03 Thread Dario Binacchi
been less readable. Dario Binacchi (10): dt-bindings: mfd: stm32f7: Add binding definition for CAN3 ARM: dts: stm32: add pin map for CAN controller on stm32f7 ARM: dts: stm32: add CAN support on stm32f746 ARM: dts: stm32: use RCC macro for CRC node on stm32f746 ARM: dts: stm32: add pin

[PATCH 2/3] ARM: dts: stm32: add pin map for CAN controller on stm32f4

2023-09-03 Thread Dario Binacchi
commit 559a6e75b4bcf0fc9e41d34865e72cf742f67d8e Linux upstream. Add pin configurations for using CAN controller on stm32f469-disco board. They are located on the Arduino compatible connector CN5 (CAN1) and on the extension connector CN12 (CAN2). Signed-off-by: Dario Binacchi Link: https

[PATCH 3/3] ARM: dts: stm32f429: put can2 in secondary mode

2023-09-03 Thread Dario Binacchi
commit 6b443faa313c519db755ff90be32758fd9c66453 Linux upstream. This is a preparation patch for the upcoming support to manage CAN peripherals in single configuration. The addition ensures backwards compatibility. Signed-off-by: Dario Binacchi Link: https://lore.kernel.org/all

[PATCH 1/3] ARM: dts: stm32: add CAN support on stm32f429

2023-09-03 Thread Dario Binacchi
that the secondary CAN can't be used without the primary CAN. Signed-off-by: Dario Binacchi Link: https://lore.kernel.org/all/20230328073328.3949796-4-dario.binac...@amarulasolutions.com Signed-off-by: Marc Kleine-Budde --- arch/arm/dts/stm32f429.dtsi | 29 + 1 file changed, 29

[PATCH 0/3] ARM: dts: stm32f429 sync with Linux kernel 6.5

2023-09-03 Thread Dario Binacchi
This series contains my patches on the device tree for stm32f429 platform that have already been merged into the mainline of Linux. Since they applied perfectly, I preferred not to merge them into a single patch, which would have been less readable. Dario Binacchi (3): ARM: dts: stm32: add CAN

[PATCH 2/3] board: stm32f746-disco: refactor the display of the ST logo

2023-08-20 Thread Dario Binacchi
us version didn't properly center the logo, hiding its upper part. Signed-off-by: Dario Binacchi --- board/st/stm32f746-disco/stm32f746-disco.c | 6 -- configs/stm32f746-disco_defconfig | 2 +- configs/stm32f746-disco_spl_defconfig | 2 +- include/configs/stm32f7

[PATCH 1/3] configs: stm32f746-disco: limit resolution to 480x272

2023-08-20 Thread Dario Binacchi
The patch fixes the y-resolution, which was causing the creation of a framebuffer larger than actually needed, resulting in memory waste. Fixes: cc1b0e7b8e55b ("board: Add display to STM32F746 SoC discovery board") Signed-off-by: Dario Binacchi --- configs/stm32f746-disco_defconf

Re: [PATCH] board: stm32mp1: add splash screen with stmicroelectronics logo

2023-08-14 Thread Dario Binacchi
Patrice, All On Mon, Aug 7, 2023 at 9:41 AM Patrice CHOTARD wrote: > > > > On 7/10/23 21:02, Dario Binacchi wrote: > > Hi Patrick, > > > > On Mon, Jul 10, 2023 at 1:31 PM Patrick Delaunay > > wrote: > >> > >> Display the STMicroelectronic

Re: [PATCH] board: stm32mp1: add splash screen with stmicroelectronics logo

2023-07-10 Thread Dario Binacchi
Hi Patrick, On Mon, Jul 10, 2023 at 1:31 PM Patrick Delaunay wrote: > > Display the STMicroelectronics logo with features VIDEO_LOGO and > SPLASH_SCREEN on STMicroelectronics boards. > > With CONFIG_SYS_VENDOR = "st", the logo st.bmp is selected, loaded at the > address indicated by splashimage

Re: [PATCH v2] board: stm32mp1: add splash screen on dk2

2023-07-08 Thread Dario Binacchi
Hi Patrick, On Wed, Jul 5, 2023 at 2:09 PM Patrick DELAUNAY wrote: > > Hi Dario, > > On 7/4/23 19:31, Dario Binacchi wrote: > > Display the STMicroelectronics logo. > > > > Signed-off-by: Dario Binacchi > > > > > > --- > > > > Chang

[PATCH v2] board: stm32mp1: add splash screen on dk2

2023-07-04 Thread Dario Binacchi
Display the STMicroelectronics logo. Signed-off-by: Dario Binacchi --- Changes in v2: - move "splash.h" and "st_logo_data.h" headers before "syscon.h" in order to keep includes sorted alphabetically. - remove "logo" variable and pass "

Re: [PATCH] board: stm32mp1: add splash screen on dk2

2023-07-04 Thread Dario Binacchi
Hi all, On Tue, Jul 4, 2023 at 10:11 AM Grzegorz Szymaszek wrote: > > Hi, > > On Mon, Jul 03, 2023 at 06:27:54PM +0200, Dario Binacchi wrote: > > diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c > > -%<- > > #include > >

[PATCH] board: stm32mp1: add splash screen on dk2

2023-07-03 Thread Dario Binacchi
Display the STMicroelectronics logo. Signed-off-by: Dario Binacchi --- board/st/stm32mp1/stm32mp1.c | 12 1 file changed, 12 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 1a1b1844c8c0..c8c2a83b2acf 100644 --- a/board/st/stm32mp1

[RESEND PATCH] ARM: dts: stm32: fix display pinmux for stm32f746-disco

2023-07-03 Thread Dario Binacchi
As reported by the datasheet (DocID027590 Rev 4) for PG12: - AF9 -> LCD_B4 - AF14 -> LCD_B1 So replace AF14 with AF9 for PG12 in the dts. Fixes: fe63d3cfb77ef ("ARM: dts: stm32: Sync DT with v4.20 kernel for stm32f7") Signed-off-by: Dario Binacchi --- arch/arm/dts/s

Re: [PATCH] ARM: dts: stm32: fix display pinmux for stm32f746-disco

2023-06-02 Thread Dario Binacchi
On Thu, Jun 1, 2023 at 7:11 PM Tom Rini wrote: > > On Thu, Jun 01, 2023 at 07:06:02PM +0200, Dario Binacchi wrote: > > As reported by the datasheet (DocID027590 Rev 4) for PG12: > > - AF9 -> LCD_B4 > > - AF14 -> LCD_B1 > > > > So replace AF14 w

[PATCH] ARM: dts: stm32: fix display pinmux for stm32f746-disco

2023-06-01 Thread Dario Binacchi
As reported by the datasheet (DocID027590 Rev 4) for PG12: - AF9 -> LCD_B4 - AF14 -> LCD_B1 So replace AF14 with AF9 for PG12 in the dts. Fixes: fe63d3cfb77ef ("ARM: dts: stm32: Sync DT with v4.20 kernel for stm32f7") Signed-off-by: Dario Binacchi --- arch/arm/dts/s

Re: [PATCH 1/5] mtd/spinand: rework detect procedure for different READ_ID operation

2023-05-31 Thread Dario Binacchi
of them have > >> been around > >> > >>>>> for some months (before I resent them). > >> > >>>>> > >> > >>>>> There is no maintainer for drivers/mtd/spinand/ and no > >> maintainer for >

Pull request for u-boot-nand-20230422

2023-04-22 Thread Dario Binacchi
. Dario Binacchi (1): Revert "mtd: rawnand: nand_base: Handle algorithm selection" Linus Walleij (1): mtd: rawnand: nand_base: Handle algorithm selection drivers/mtd/nand/raw/nand_base.c | 29 ++--- 1 file changed, 22

[RESEND PATCH 3/3] imx6: clock: print real pixel clock rate

2023-04-22 Thread Dario Binacchi
Add debug messages to print the real pixel clock rate, which may not be the requested one. Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/mx6/clock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index 267d86ab4194

[RESEND PATCH 2/3] imx6: clock: add support to get LCD pixel clock rate

2023-04-22 Thread Dario Binacchi
Add the get_lcd_clk() function to get the LCD pixel clock rate. The patch has been tested on imx6ul platform. Signed-off-by: Dario Binacchi --- arch/arm/include/asm/arch-mx6/clock.h | 2 + arch/arm/mach-imx/mx6/clock.c | 58 +++ 2 files changed, 60 insertions

[RESEND PATCH 1/3] imx6: clock: improve calculations to get the PLL video rate

2023-04-22 Thread Dario Binacchi
-by: Dario Binacchi Reviewed-by: Michael Trimarchi --- arch/arm/mach-imx/mx6/clock.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index cb9d629be408..17d8dcd5c841 100644 --- a/arch/arm/mach-imx/mx6/clock.c +++ b

[RESEND PATCH 0/3] imx6: clock: add support to get LCD pixel clock rate

2023-04-22 Thread Dario Binacchi
The series adds a function to get the LCD pixel clock rate. Also improves video PLLL rate calculation. Dario Binacchi (3): imx6: clock: improve calculations to get the PLL video rate imx6: clock: add support to get LCD pixel clock rate imx6: clock: print real pixel clock rate arch/arm

[PATCH] ARM: dts: stm32f769-disco: remove the dsi_host node

2023-04-22 Thread Dario Binacchi
The node has become useless, as described in the commit 754815b854258 ("video: stm32: remove the compatible "synopsys, dw-mipi-dsi" support") Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f769-disco-u-boot.dtsi | 5 - 1 file changed, 5 deletions(-) diff

[PATCH] configs: stm32f746-disco: remove a useless comment

2023-04-22 Thread Dario Binacchi
Commit 8fc78fc73b7f9d ("configs: migrate CONFIG_BMP_16/24/32BPP to defconfigs") made the comment useless. Signed-off-by: Dario Binacchi --- include/configs/stm32f746-disco.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/stm32f746-disco.h b/include/configs

Re: [PATCH v2] nand: brcmnand: add iproc support

2023-04-19 Thread Dario Binacchi
Hi Linus, On Wed, Apr 19, 2023 at 4:00 PM Linus Walleij wrote: > > On Wed, Apr 19, 2023 at 3:19 PM Dario Binacchi > wrote: > > On Wed, Apr 19, 2023 at 3:04 PM Linus Walleij > > wrote: > > > > > > On Mon, Apr 17, 2023 at 10:37 AM Dario Binacchi > >

Re: [PATCH v2] nand: brcmnand: add iproc support

2023-04-19 Thread Dario Binacchi
Hi Linus, On Wed, Apr 19, 2023 at 3:04 PM Linus Walleij wrote: > > On Mon, Apr 17, 2023 at 10:37 AM Dario Binacchi > wrote: > > > Applied to nand-next ( as well as the patch "mtd: rawnand: nand_base: > > Handle algorithm selection"). > > 1) Sweet! Thanks

Pull request for u-boot-nand-20230417

2023-04-17 Thread Dario Binacchi
ntx_nand.c| 2 +- include/configs/colibri-imx6ull.h | 2 +- include/configs/colibri_imx7.h | 2 +- 13 files changed, 184 insertions(+), 37 deletions(-) create mode 100644 drivers/mtd/nand/raw/brcmnand/iproc_nand.c -- Dario Binacchi Senior Embe

Re: [PATCH] mtd: nand: Allow full NAND framework in SPL

2023-04-17 Thread Dario Binacchi
ementations like this in u-boot for different platforms. The idea is to remove this code and implement a more generic management so as not to replicate code. Could you please change your implementation to a more generic version? Thanks and regards, Dario -- Dario

Re: [PATCH v2 3/3] colibri-imx6ull: specify MTD partitions on command line

2023-04-17 Thread Dario Binacchi
dr}\0" \ > "setup=setenv setupargs " \ > "console=tty1 console=${console}" \ > - ",${baudrate}n8 ${memargs} consoleblank=0\0" \ > + ",${baudrate}n8 ${memargs} ${mtdparts} consoleblank=0\0" \ > "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \ > "setusbupdate=usb start && setenv interface usb && " \ > "fatload ${interface} 0:1 ${loadaddr} " \ > -- > 2.25.1 Applied to nand-next, thanks and regards, Dario Binacchi

  1   2   3   4   5   6   7   >