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

2023-02-25 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 1/3] imx6: clock: improve calculations to get the PLL video rate

2023-02-25 Thread Dario Binacchi
: Dario Binacchi --- 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/arch/arm/mach-imx/mx6/clock.c

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

2023-02-25 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

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

2023-02-25 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

Re: [PATCH 3/4] arm64: dts: zynqmp: Fix nand dt node

2023-02-27 Thread Dario Binacchi
}; > + partition@1 { /* for testing purpose */ > + label = "nand1-linux"; > + reg = <0x0 0x40 0x140>; > + }; > + partition@2 { /* for testing purpose */ &

[PATCH] mtd: nand: Show reserved block in chip.erase

2023-02-27 Thread Dario Binacchi
mmand. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/nand_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nand_util.c b/drivers/mtd/nand/raw/nand_util.c index b2345dca7f71..72cc24f40376 100644 --- a/drivers/

Re: [RFC PATCH v1 3/4] drivers: use devfdt_get_addr_size_index_ptr when cast to pointer

2023-02-27 Thread Dario Binacchi
nt' makes pointer from integer without a cast [-Werror=int-conversion] Thanks and regards, Dario > plat->is_decoded_cs = dev_read_bool(bus, "cdns,is-decoded-cs"); > plat->fifo_depth = dev_read_u32_default(bus, "cdns,fifo-depth", 128);

Re: [PATCH 1/2] MAINTAINERS: Add entry for SPI NAND framework and drivers

2023-02-27 Thread Dario Binacchi
ners and myself as reviewer. > > [1] https://lists.denx.de/pipermail/u-boot/2023-February/508571.html > > Signed-off-by: Frieder Schrempf > Cc: Jagan Teki > Cc: Dario Binacchi > Cc: Michael Nazzareno Trimarchi > Cc: Tom Rini > --- > MAINTAINERS | 8 >

Re: [PATCH v2] mtd: nand: Mark reserved blocks

2023-02-27 Thread Dario Binacchi
0 > > >0x116c0 > > >0x1ff00 (bbt reserved) > > >0x1ff40 (bbt reserved) > > >0x1ff80 (bbt reserved) > > >0x1ffc0 (bbt reserved) > > > > > > Sign

Pull request for u-boot-nand-20230227

2023-02-27 Thread Dario Binacchi
nd.c | 353 ++-- drivers/mtd/nand/raw/nand_bbt.c | 3 +- drivers/mtd/nand/raw/nand_util.c | 3 +- drivers/mtd/nand/spi/core.c | 5 ++- 5 files changed, 281 insertions(+), 92 deletions(-) -- Dario Binacchi Senior Embedded Linux Developer dario.binac...@amarulasol

Re: [PATCH 00/14] Backport BRCMNAND changes from Linux

2023-02-27 Thread Dario Binacchi
fix CS0 layout > >>mtd: rawnand: brcmnand: rename page sizes > >>mtd: rawnand: brcmnand: support v2.1-v2.2 controllers > >>mtd: rawnand: brcmnand: fix OOB R/W with Hamming ECC > >> > >> drivers/mtd/nand/raw/brcmnand/brcmnand.c | 615

Re: [PATCH] mtd: nand: Show reserved block in chip.erase

2023-02-27 Thread Dario Binacchi
Hi Michael, On Mon, Feb 27, 2023 at 4:01 PM Dario Binacchi wrote: > > From: Michael Trimarchi > > The "nand chip.erase" command always printed as bad blocks even in the > case of reserved blocks. Reserved blocks are used for storing bad block > tables. The patch

[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

[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

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 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 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

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

2023-07-10 Thread Dario Binacchi
;rsk_9t7??V6eO+@<=s89b;q`SVNYu(wmJWr > zweUu1#GaGa-Y&-b%CsRf{HJkU>>TY}2hKX0{Ee?VY_EwV%fPUfewT~zJ1bM08 > zz3&-Tq9<}C^ghQ@itC8?!IT_x7LuD6BUb}rqiE~Je64Z&aY&}YwC{o=abNHTx2Z#$ > z24-VI{Ow?1aL5!4#Kb`bd z@vx?DwLNw)uBB+?*&-R{X9!w4lmVmjrD`?r@~YKk*YE>E$0zMPOU-&>?t-I6ZoQcz > zC3O?Ek>+3<^0`ffDLw28bgR0v@6Qp*PMCG}T6|N28BJm4O3bA-)%|OHZU(LJS2Q5~ > z+xaUR2}t%rfI)g#?i|#bdjka~YuiLASBC)CQeXG|=sj`vhNE^q%CA;pCI#bHfYFg{ > z@T8(oUkr*j9cSDtV1IP}d_-e#8T{dUG)H2&phomWzPpVyvXdN#f!Jlr`Ok|Gjb6cq > zqVLf{60gqJTgB1^rDw;6=2T!Fh;Z1CxxKgFb6`vHWphPkn>s0X9A7kS&4uUEKt!Lx > z;=;Ra(5XxH&)t>G-Ffihh|kLr9oY?>cDF%a>P=+QZEG>;VCe~A1u9s9JDfb5gDLg6 > z*G-WY+4Y8%EY zti^myE> zUG?RmSeO+g(Q{@9cKE?GX}$7iJm(FYOtE%h$mZ$RFfFNZhB*t&++scF95WQ0*}%Zi > zhlQK)9>_h=hj=|EF7|9w6lWTg+%AgKXqp)!MK-+_hvjX zB_GD=)K8R5XzYFRlN@tN+YzUHe|Q*Qc_EzgT(Nk4x?GRNB>4ovkWEo(SPQkA`~{=r > zb!^za9gzj zApcYG)#>f%dlGt)_r9k^wMsaQ@rd$$_%A^#f;L`wUZ*3!iLv8qGqCP6=U8mvQM@5! > zFAfI`?r3Ii>M&qR$gf{@%ojbol+}F#&u76gTp^V-+Ly0yqA3A}b^ > zQdV6rS0aYV+irriz>2%|8;qeDVub6m+wEfviTW$I+TlGg{n*|3C(mO}&c@m>o8W9k > zJ3T{ML-`f7F0Mh3Rls2;`o+dR0 z!W8Vc7V)*j<>5a7v-wlIlSSy#ma^cLqvF58R|g7U*xj~g7^&E(-U5Ra{MY~Rz94R& > zGbA) z>HwdKBUF+-SUXtqJ(a-yCJ?Gqq)L{TDK7*8->m>OE`g`H?gDOyc$$Y8Ms07V!JCw$ > z7{e~7ijWicd@2h8N>U@U%a+tXXjh3)8BYt#u2LeEP;v?@t1%Wd!rv z;Q8d7eO8}I{1%J7X+3}*a#u#GwuRY2R$v*`;t?8=6DhXoxgoX;;)r(a#hc4FvP?!S > zwxO~*eTN9F=6!A6ccka+=3Oh0sS>bXu?2IjP62l-iG4LxecaQJ0`QY)Yhc$KAhoT} > zjz?J)s86g)a%$=vVCMo8u%IXYttN;p`}xhA8!%&x8;ehj zzu*ke=k_5!w*_@t(+`G6OlgX unf42SnZIyjBI!qMXR1@uOP?ZdS?+VNPX;C_`E4ob`@jF+g#Se=K>a_RI-jlp > > literal 0 > HcmV?d1 > > -- > 2.25.1 > I downloaded the patch from Patchwork, but when I apply it (git am board-stm32mp1-add-splash-screen-with-stmicroelectronics-logo.patch), the file tools/logos/st.bmp is empty, and the compilation fails. I'm sorry for the stupid question, but what am I doing wrong? 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 request for u-boot-nand-20230417

2023-10-13 Thread Dario Binacchi
d/nand/spi/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

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

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 blo

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

2023-11-02 Thread Dario Binacchi
address > 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 > #incl

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

2023-11-02 Thread Dario Binacchi
del_mtd_device(struct 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 > >

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 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 14/15] nand: Add sandbox driver

2023-11-02 Thread Dario Binacchi
}; > + > +void board_nand_init(void) > +{ > + struct udevice *dev; > + int err; > + > + err = uclass_get_device_by_driver(UCLASS_MTD, > DM_DRIVER_REF(sand_nand), > + &dev); > + if (err && err != -ENOD

[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

[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/

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

2023-11-02 Thread Dario Binacchi
6 +++ > 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/ra

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 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 nu

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, > >>> >

[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

[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/st

[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 1/3] ARM: dts: stm32: add CAN support on stm32f429

2023-09-03 Thread Dario Binacchi
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 change

[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 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 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 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 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 03/10] ARM: dts: stm32: add CAN support on stm32f746

2023-09-03 Thread Dario Binacchi
| 14 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/stm32f

[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 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 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 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 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 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 a

[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

[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

[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 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 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 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 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

[PATCH] ARM: dts: at91: sam9x60ek: fix indentation for pinctrl sub-nodes

2022-09-20 Thread Dario Binacchi
The indentation went far on the right due to an extra tab for each pinctrl sub-nodes. Signed-off-by: Dario Binacchi --- arch/arm/dts/sam9x60ek.dts | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/arch/arm/dts/sam9x60ek.dts b/arch/arm

Re: [PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-09-20 Thread Dario Binacchi
at91bootstrap@0 { > >>>> + label = "at91bootstrap"; > >>>> + reg = <0x0 0x4>; > >>>> + }; > >>>> + > >>>> + u

Re: [PATCH] mtd: nand: pxa3xx: simplify ECC hardware parameters

2022-09-20 Thread Dario Binacchi
ize == 512 && page_size == 4096) > { > - info->ecc_bch = 1; > - info->nfullchunks = 4; > - info->ntotalchunks = 5; > - info->chunk_size = 1024; > - info->spare_size = 0; > - info->last_

Re: [PATCH] cmd: nand: Extend nand info to print ecc information

2022-09-22 Thread Dario Binacchi
printf(" ecc strength %8d bits\n", mtd->ecc_strength); > + printf(" ecc step size %8d b\n", mtd->ecc_step_size); > + printf(" subpagesize %8d b\n", chip->subpagesize); > + printf(" options 0x%08x\n"

[PATCH 0/7] Support NAND ONFI EDO mode for imx8mn architecture

2022-09-28 Thread Dario Binacchi
Debugging and testing the series made it necessary to add some patches to fix correct clock access and compilation issues raised by buildman. Dario Binacchi (3): dm: clk: add missing stub when CONFIG_CLK is deactivated mtd: mxs_nand: don't get the gpmi_apbh_dma clock mtd: mxs_nand

[PATCH 1/7] dm: clk: add missing stub when CONFIG_CLK is deactivated

2022-09-28 Thread Dario Binacchi
Add missing stub for functions [devm_]clk_...() when CONFIG_CLK is deactivated. Signed-off-by: Dario Binacchi --- include/clk.h | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/include/clk.h b/include/clk.h index 76bb64bb5ee0..407513e0fa29

[PATCH 3/7] clk: imx: clk-imx8mn add gpmi nand clocks

2022-09-28 Thread Dario Binacchi
From: Michael Trimarchi Add gpmi nand clock. Those clock can be used in mxs nand driver to run nand to EDO mode 5, 4, ... Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-imx8mn.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a

[PATCH 2/7] clk: imx: gate2 support shared counter and relative clock functions

2022-09-28 Thread Dario Binacchi
From: Michael Trimarchi Add shared counter in order to avoid to swich off clock that are already used. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-gate2.c | 15 ++- drivers/clk/imx/clk.h | 27 +++ 2 files

[PATCH 4/7] imx: gpmi: Add register needed to control nand bus timing

2022-09-28 Thread Dario Binacchi
From: Michael Trimarchi It is used as delay for gpmi write strobe. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- arch/arm/include/asm/mach-imx/regs-gpmi.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/mach-imx/regs-gpmi.h b/arch/arm

[PATCH 5/7] mtd: mxs_nand: don't get the gpmi_apbh_dma clock

2022-09-28 Thread Dario Binacchi
This clock name is not present in any U-boot and Linux kernel device tree. Fixes: commit a59691280daca ("MXS_NAND: Add clock support for iMX8") Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/mxs_nand_dt.c | 13 - 1 file changed, 13 deletions(-) diff --git a/d

[PATCH 6/7] mtd: mxs_nand: get the clock with the right name

2022-09-28 Thread Dario Binacchi
Rename the gpmi_apb_bch clock name to gpmi_bch_apb, as you can find in the device tree. Fixes: commit a59691280daca ("MXS_NAND: Add clock support for iMX8") Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/mxs_nand_dt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

[PATCH 7/7] mtd: mxs_nand: Support EDO mode for imx8mn architecture

2022-09-28 Thread Dario Binacchi
From: Michael Trimarchi Add support for imx8mn architecture in order to run the NAND in fast edo mode. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/mtd/nand/raw/mxs_nand.c| 200 + drivers/mtd/nand/raw/mxs_nand_dt.c | 66

Re: [PATCH] mtd: rawnand: fsl_elbc: Fix reading address pointer from DT

2022-08-22 Thread Dario Binacchi
return fsl_elbc_chip_init(0, dev_read_addr_ptr(dev), dev); > } > > static const struct udevice_id fsl_elbc_nand_dt_ids[] = { > -- > 2.20.1 > Reviewed-by: Dario Binacchi Thanks and regards, Dario -- Dario Binacchi Embedded Linux Developer dario.binac...@amarulasolutions.com

[RFC PATCH] Rename disto_[pxe_]getfile to distro_[pxe_]getfile

2022-08-26 Thread Dario Binacchi
Replace 'disto' with 'distro' since they are all functions about distro booting. Signed-off-by: Dario Binacchi --- boot/bootmeth_distro.c | 6 +++--- boot/bootmeth_pxe.c | 6 +++--- doc/develop/bootstd.rst | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-

Re: [PATCH 1/2] MAINTAINERS: Add entry for SPI NAND framework and drivers

2023-03-28 Thread Dario Binacchi
Hi Frieder, On Tue, Mar 28, 2023 at 10:00 AM Frieder Schrempf wrote: > > On 28.02.23 15:48, Tom Rini wrote: > > On Tue, Feb 28, 2023 at 09:52:45AM +0100, Frieder Schrempf wrote: > >> On 27.02.23 16:24, Dario Binacchi wrote: > >>> Hi Frieder, > >>> &

Re: [PATCH 1/2] MAINTAINERS: Add entry for SPI NAND framework and drivers

2023-04-17 Thread Dario Binacchi
Hi Frieder, On Tue, Mar 28, 2023 at 10:04 AM Dario Binacchi wrote: > > Hi Frieder, > > On Tue, Mar 28, 2023 at 10:00 AM Frieder Schrempf > wrote: > > > > On 28.02.23 15:48, Tom Rini wrote: > > > On Tue, Feb 28, 2023 at 09:52:45AM +0100, Frieder Schrempf wr

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

2023-04-17 Thread Dario Binacchi
Hi Linus, On Sat, Mar 11, 2023 at 2:03 AM William Zhang wrote: > > > > On 03/08/2023 01:42 PM, Linus Walleij wrote: > > Add support for the iproc Broadcom NAND controller, > > used in Northstar SoCs for example. Based on the Linux > > driver. > > > > C

Re: [PATCH] nand: raw: octeontx: Make list static

2023-04-17 Thread Dario Binacchi
MODE 5 > > -- > > Acked-by: Michael Trimarchi > > Michael > > > 2.34.1 > > > > > -- > Michael Nazzareno Trimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > mich...@amarulasolutions.com > ___

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

2023-04-17 Thread Dario Binacchi
gt; - ",${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

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

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

2023-04-17 Thread Dario Binacchi
ations 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

Pull request for u-boot-nand-20230417

2023-04-17 Thread Dario Binacchi
/raw/octeontx_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 S

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

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: [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 v2 0/5] Support display on stm32f469-disco board

2023-10-08 Thread Dario Binacchi
3 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: su

[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

[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 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 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 it was

[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

[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

[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

[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

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

2023-04-22 Thread Dario Binacchi
: 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 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 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

Pull request for u-boot-nand-20230422

2023-04-22 Thread Dario Binacchi
y Tom Rini. -------- 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 ch

Re: [PATCH v3 00/12] Add support for pinmux status command on beaglebone

2021-04-11 Thread Dario Binacchi
Hi Lokesh, > Il 09/04/2021 09:21 Lokesh Vutla ha scritto: > > > Hi Dario, > > On 28/02/21 7:42 pm, Dario Binacchi wrote: > > > > The series was born from the need to check the pinmux setting of a > > peripheral on a beaglebone board. I then ran the &

[PATCH v4 00/12] Add support for pinmux status command on beaglebone

2021-04-11 Thread Dario Binacchi
ge. - Remove pointer to access functions. - Added Simon Glass review tag. - Added Simon Glass review tag. - Added Simon Glass review tag. - Added error checking when the 'width' property is missing. - Fix coding style. Dario Binacchi (12): pinctrl: single: fix format of structure doc

[PATCH v4 01/12] pinctrl: single: fix format of structure documentation

2021-04-11 Thread Dario Binacchi
U-Boot adopted the kernel-doc annotation style. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Added Simon Glass review tag. drivers/pinctrl/pinctrl-single.c | 45 +--- 1 file changed, 36 insertions(+), 9

[PATCH v4 02/12] pinctrl: single: fix the loop counter variable type

2021-04-11 Thread Dario Binacchi
The 'n' variable is used as a loop counter, not as a physical address, and is used in a comparison with an int. So it makes sense to change its type from phys_addr_t to int. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass Reviewed-by: Pratyush Yadav --- (no changes since v2

[PATCH v4 05/12] pinctrl: single: get register area size by device API

2021-04-11 Thread Dario Binacchi
Use dev_read_addr_size to get size of the controller's register area. Signed-off-by: Dario Binacchi Reviewed-by: Pratyush Yadav --- (no changes since v3) Changes in v3: - Added Pratyush Yadav review tag. Changes in v2: - Check dev_read_addr_size return value. drivers/pinctrl/pi

[PATCH v4 03/12] pinctrl: single: fix offset management

2021-04-11 Thread Dario Binacchi
option than a physical address. Signed-off-by: Dario Binacchi Reviewed-by: Pratyush Yadav --- (no changes since v3) Changes in v3: - Added Pratyush Yadav review tag. drivers/pinctrl/pinctrl-single.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a

[PATCH v4 04/12] pinctrl: single: fix debug messages formatting

2021-04-11 Thread Dario Binacchi
The dev_dbg(dev, " reg/val 0x%pa/0x%08x\n", ®, val); prints the 'reg' address preceded by the prefix 0x0x instead of 0x. This because the printf '%pa' format specifier already prepends the prefix '0x' to the address displayed. Signed-off-by: Dario Binacchi

  1   2   3   4   5   6   7   8   >