[PATCH 1/2] configs/imx6ulz_smm_m2b_defconfig: Enable clock framework

2025-07-08 Thread Michael Trimarchi
Enable the clock framework on the m2b platform as was done in m2 variant. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2b_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx6ulz_smm_m2b_defconfig b

[PATCH 2/2] configs: imx6ulz_smm_m2b: Add board watchdog reset configuration

2025-07-08 Thread Michael Trimarchi
Add the configuration that allow to reset the board from reset cmd Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2b_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2b_defconfig b/configs/imx6ulz_smm_m2b_defconfig index 3d7530431fd..36f5922ea10

[PATCH v3] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-31 Thread Michael Trimarchi
s for selective inclusion of the desired memory components. Signed-off-by: Michael Trimarchi --- Changes in v3: - Fix typo in MAINTAINERS - Pipeline https://dev.azure.com/u-boot/u-boot/_build/results?buildId=11274&view=results Changes in v2: - Ajust commit message and kconfig - Add MAINTAINERS e

[PATCH v4 1/4] clk: imx: add i.MX6UL clk driver

2025-05-30 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Reviewed-by: Peng Fan Reviewed-by: Christoph Niedermaier Tested-by: Christoph Niedermaier Signed-off-by: Michael Trimarchi --- Changes in v4: - Fix Kconfig typo - Fix IPG clock duplication - Add space for consistency in block - and

[PATCH v4 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-30 Thread Michael Trimarchi
The clock driver allows to boost the NAND performance controller. Make changes to let it use the new clock driver => time nand read ${loadaddr} kernel NAND read: device 0 offset 0x50, size 0x80 8388608 bytes read: OK time: 0.488 seconds Signed-off-by: Michael Trimarchi --- Chan

[PATCH v4 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-30 Thread Michael Trimarchi
Enable the clock framework on the m2 platform. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- Changes in v4: - None Changes in v3: - None Changes in v2: - Ajust commit message - drop CONFIG_DM_MTD selected already by MXS_NAND_DT configs

[PATCH v4 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-30 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- Changes in v4: - None Changes in v3: - None Changes in v2: - no changes drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file

[PATCH v3 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-29 Thread Michael Trimarchi
The clock driver allows to boost the NAND performance controller. Make changes to let it use the new clock driver => time nand read ${loadaddr} kernel NAND read: device 0 offset 0x50, size 0x80 8388608 bytes read: OK time: 0.488 seconds Signed-off-by: Michael Trimarchi --- Chan

[PATCH v3 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-28 Thread Michael Trimarchi
Enable the clock framework on the m2 platform. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- Changes in v3: - None Changes in v2: - Ajust commit message - drop CONFIG_DM_MTD selected already by MXS_NAND_DT configs/imx6ulz_smm_m2_defconfig | 2

[PATCH v3 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-28 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- Changes in v3: - None Changes in v2: - no changes drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file changed, 5 insertions(+), 43

[PATCH v3 1/4] clk: imx: add i.MX6UL clk driver

2025-05-28 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Reviewed-by: Peng Fan Signed-off-by: Michael Trimarchi --- Changes in v3: - Add all uarts definition - Move OSC on top suggested - Drop an invalid clock definition - Move some pll before they are referenced Changes in v2: - None

[PATCH v2] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-27 Thread Michael Trimarchi
s for selective inclusion of the desired memory components. Signed-off-by: Michael Trimarchi --- Changes in v2: - Ajust commit message and kconfig - Add MAINTAINERS entry just for configuration file board/bsh/imx6ulz_smm_m2/Kconfig | 21 +++ board/bsh/imx6ulz_smm_m2/MAINTAINERS

[PATCH] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-26 Thread Michael Trimarchi
s for selective inclusion of the desired memory components Signed-off-by: Michael Trimarchi --- board/bsh/imx6ulz_smm_m2/Kconfig | 21 +++ board/bsh/imx6ulz_smm_m2/Makefile | 4 +- board/bsh/imx6ulz_smm_m2/ddr3l_timing_128m.c | 1 + .../imx6ulz_smm_m2/ddr3l_timing_128m_

[PATCH v2 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-26 Thread Michael Trimarchi
Enable the clock framework on the m2 platform. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- Changes in v2: - Ajust commit message - drop CONFIG_DM_MTD selected already by MXS_NAND_DT configs/imx6ulz_smm_m2_defconfig | 2 ++ 1 file changed, 2

[PATCH v2 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-26 Thread Michael Trimarchi
The clock driver allows to boost the NAND performance controller. Make changes to let it use the new clock driver => time nand read ${loadaddr} kernel NAND read: device 0 offset 0x50, size 0x80 8388608 bytes read: OK time: 0.488 seconds Signed-off-by: Michael Trimarchi --- Chan

[PATCH v2 1/4] clk: imx: add i.MX6UL clk driver

2025-05-26 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Reviewed-by: Peng Fan Signed-off-by: Michael Trimarchi --- Changes in v2: - Add review tag drivers/clk/imx/Kconfig | 8 ++ drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx6ul.c | 270

[PATCH v2 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-26 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- Changes in v2: - no changes drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file changed, 5 insertions(+), 43 deletions(-) diff

[PATCH 1/4] clk: imx: add i.MX6UL clk driver

2025-05-25 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Signed-off-by: Michael Trimarchi --- drivers/clk/imx/Kconfig | 8 ++ drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx6ul.c | 270 +++ 3 files changed, 279 insertions(+) create mode

[PATCH 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-25 Thread Michael Trimarchi
Allow to use clock framework for the m2 platform. This allow to have better performance to nand controller Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2_defconfig b/configs

[PATCH 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-25 Thread Michael Trimarchi
The clock driver allow to burst the performance of the nand controller. Make changes to let it use the new clock driver Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand.c| 12 drivers/mtd/nand/raw/mxs_nand_dt.c | 2 +- 2 files changed, 13 insertions(+), 1

[PATCH 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-25 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/drivers/mtd/nand/raw

[PATCH 3/3] arm: dts: imx6ulz-bsh-smm-m2: Fix reset using wdt-reboot driver

2025-05-16 Thread Michael Trimarchi
default reset_cpu()") Signed-off-by: Michael Trimarchi --- arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi b/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi index c67622821e7..faf596255f1 100644

[PATCH 2/3] configs: imx6ulz_smm_m2: Add board watchdog reset configuration

2025-05-16 Thread Michael Trimarchi
Add the configuration that allow to reset the board from reset cmd Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2_defconfig b/configs/imx6ulz_smm_m2_defconfig index 15a3ec5c627..436bfb78cc2

[PATCH 1/3] arm: dts: imx6ulz-bsh-smm-m2-u-boot: Drop soc node

2025-05-16 Thread Michael Trimarchi
The node is specified on the parent architecture u-boot.dtsi file Signed-off-by: Michael Trimarchi --- arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi b/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi

[PATCH V2] ubifs: Call ubifs_iput when ubifs_iget is used

2024-08-10 Thread Michael Trimarchi
Schocher Signed-off-by: Michael Trimarchi --- V1->V2: - fix compilation problem on super.c RFC->V1: - Heiko gives more points to address on the patch and review it - Alexander Dahl test on top of his own series reported in the commit message - add l

[PATCH] ubifs: Call ubifs_iput when ubifs_iget is used

2024-08-07 Thread Michael Trimarchi
Schocher Signed-off-by: Michael Trimarchi --- RFC=>V1: - Heiko gives more points to address on the patch and review it - Alexander Dahl test on top of his own series reported in the commit message - add leak on super.c file too from Heiko --- fs/ubifs/super.c

[RFC PATCH] ubifs: Call ubifs_iput when ubifs_iget is used

2024-08-05 Thread Michael Trimarchi
The inode should be freed after a reference is get to avoid memory leak Signed-off-by: Michael Trimarchi --- fs/ubifs/ubifs.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index 048730db7f..6acd6c3776 100644 --- a/fs/ubifs

[PATCH] clk: clk-uclass: Print clk name in clk_enable/clk_disable

2024-07-08 Thread Michael Trimarchi
Print clk name in clk_enable and clk_disable. Make sense to know what clock get disabled/enabled before a system crash or system hang. Signed-off-by: Michael Trimarchi --- drivers/clk/clk-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-uclass.c b

[PATCH 4/4] clk: imx8mp: Make parent names arrays const pointers

2024-07-07 Thread Michael Trimarchi
The arrays containing the mux selectors need to be of const pointer to const char. Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-imx8mp.c | 242 +-- 1 file changed, 121 insertions(+), 121 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b

[PATCH 3/4] clk: imx8mm: Make parent names arrays const pointers

2024-07-07 Thread Michael Trimarchi
The arrays containing the mux selectors need to be of const pointer to const char. Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-imx8mm.c | 157 +-- 1 file changed, 93 insertions(+), 64 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers

[PATCH 2/4] clk: imx8mn: Make parent names arrays const pointers

2024-07-07 Thread Michael Trimarchi
The arrays containing the mux selectors need to be of const pointer to const char. Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-imx8mn.c | 142 --- 1 file changed, 81 insertions(+), 61 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers

[PATCH 1/4] clk: imx: clk-imx8mn Fix nand and spi clock parent

2024-07-07 Thread Michael Trimarchi
: clk-imx8mn add gpmi nand clocks") Fixes: 85b1c11989c ("clk: imx: Add ECSPI to iMX8MN") Cc: Marek Vasut Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-imx8mn.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn

[PATCH 0/4] IMX8 series small clock update

2024-07-07 Thread Michael Trimarchi
This series is cover other part of my internal review work, that will allow us to support the video subsystem of imx8mn. During this work I found some small issues that fix several small problems but it will help as preparation for the video one Michael Trimarchi (4): clk: imx: clk-imx8mn Fix

[PATCH V2] clk: imx: add mux ops for i.MX8M composite clk

2024-07-05 Thread Michael Trimarchi
. Signed-off-by: Peng Fan Reviewed-by: Dong Aisheng Signed-off-by: Shawn Guo Signed-off-by: Michael Trimarchi --- V1->V2: add original submitter in linux kernel, suggested by Fabio Estevam --- drivers/clk/imx/clk-composite-8m.c | 37 +- 1 file chan

[PATCH V2 1/2] clk: clk-mux: Make public the clk_fetch_parent_index

2024-07-05 Thread Michael Trimarchi
Make public the clk_fetch_parent_index and rename it. This allow us to be reused in driver specialization Signed-off-by: Michael Trimarchi --- V1->V2: Nothing changed --- drivers/clk/clk-mux.c| 5 ++--- include/linux/clk-provider.h | 1 + 2 files changed, 3 insertions(+)

[PATCH V2 0/2] Support imx8m composite mux

2024-07-05 Thread Michael Trimarchi
The mux ops for i.MX8M composite clk needs to be specialized. In order to reduce the code duplication we need to make public some interface and write a specific function in the mux ops. Those patches implement the behavior. Addressed comment in V1 Michael Trimarchi (2): clk: clk-mux: Make

[PATCH V2] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present for gate and mux

2024-07-05 Thread Michael Trimarchi
: Sam Protsenko Signed-off-by: Michael Trimarchi --- drivers/clk/clk-gate.c | 1 + drivers/clk/clk-mux.c| 2 +- drivers/clk/clk-uclass.c | 20 drivers/clk/clk.c| 9 + include/clk.h| 9 + include/linux/clk-provider.h

[PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present for gate and mux

2024-07-04 Thread Michael Trimarchi
: Sam Protsenko Signed-off-by: Michael Trimarchi --- drivers/clk/clk-gate.c | 1 + drivers/clk/clk-mux.c| 2 +- drivers/clk/clk-uclass.c | 20 drivers/clk/clk.c| 9 + 4 files changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-gate.c b/dr

[PATCH 2/2] clk: imx: add mux ops for i.MX8M composite clk

2024-07-03 Thread Michael Trimarchi
A and configure SEL_A to clk2, however the current SEL_A input clk0 is off, the system hang. The solution to fix the issue is in step 1, write twice to target interface MUX, it will make SEL_A/SEL_B both sources from clk1, then no need to care about the state of clk0. And finally system per

[PATCH 1/2] clk: clk-mux: Make public the clk_fetch_parent_index

2024-07-03 Thread Michael Trimarchi
Make public the clk_fetch_parent_index and rename it. This allow us to be reused in driver specialization Signed-off-by: Michael Trimarchi --- drivers/clk/clk-mux.c| 5 ++--- include/linux/clk-provider.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk

[PATCH 0/2] Support imx8m composite mux

2024-07-03 Thread Michael Trimarchi
The mux ops for i.MX8M composite clk needs to be specialized. In order to reduce the code duplication we need to make public some interface and write a specific function in the mux ops. Those patches implement the behavior Michael Trimarchi (2): clk: clk-mux: Make public the

[PATCH 2/2] clk: imx: Fix wrong flags assignment clk-composite-93

2024-07-02 Thread Michael Trimarchi
The mux flags (u8), div flags (u8), and gate flags (u8) are not the clk flags (unsigned long). They have different meanings Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-composite-93.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-composite-93.c b/drivers

[PATCH 1/2] clk: imx: Fix wrong flags assignment clk-composite-8m

2024-07-02 Thread Michael Trimarchi
The mux flags (u8), div flags (u8), and gate flags (u8) are not the clk flags (unsigned long). They have different meanings Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-composite-8m.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk

[PATCH] board: imx8mn_s2: Update timing with production one

2024-06-09 Thread Michael Trimarchi
The timing upstream was wrong corresponding to the production. This come evident after commit b614ddb5d33 (ddr: imx: Save the FW loading if it hasn't changed). This change fix booting from usb Signed-off-by: Michael Trimarchi --- board/bsh/imx8mn_smm_s2/ddr3l_timing_256m.c

[PATCH] clk: imx8mn: add video clocks support

2024-04-21 Thread Michael Trimarchi
Add clocks support for the video subsystem. Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-imx8mn.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 457acb8a40..baac79dd29 100644 --- a

[PATCH V2] arm: dts: k3-binman: Make optee optional as requirement

2024-02-25 Thread Michael Trimarchi
{ default = "conf-0"; conf-0 { description = "k3-am62_ccm_m3"; firmware = "atf"; loadables = "dm", "spl"; fdt = "fdt-0"; }; }; Signed-off-by: Michael Tr

[PATCH] arm: dts: k3-binman: Make optee optional as requirement

2024-02-25 Thread Michael Trimarchi
;k3-am62_ccm_m3"; firmware = "atf"; loadables = "dm", "spl"; fdt = "fdt-0"; }; }; Signed-off-by: Michael Trimarchi --- arch/arm/dts/k3-binman.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git

[RFC PATCH V2] net: wget: Take in account tcp sequence number wrap around

2024-01-07 Thread Michael Trimarchi
Coming from some discussion on mailing about wget unconsistent. It's just and idea to play around Signed-off-by: Michael Trimarchi --- RFC V1 -> RFC V2: - drop random train change in unsigned difference --- include/net/tcp.h | 10 ++ net/wget.c| 2 +- 2 files

[RFC PATCH] net: wget: Take in account tcp sequence number wrap around

2024-01-07 Thread Michael Trimarchi
Coming from some discussion on mailing about wget unconsistent. It's just and idea to play around Signed-off-by: Michael Trimarchi --- I'm on a train ;). No board to test --- include/net/tcp.h | 10 ++ net/wget.c| 8 2 files changed, 14 insertions(+), 4

[PATCH] arm: mach-k3: am625: Relax emmc boot condition

2023-12-07 Thread Michael Trimarchi
emmc and not only boot partition Signed-off-by: Michael Trimarchi --- arch/arm/mach-k3/am625_init.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-k3/am625_init.c b/arch/arm/mach-k3/am625_init.c index 8fa36f7b91..cb4c3a05b5 100644 --- a/arch/arm/mach-k3

[PATCH] pxe_utils: Increase feedback to user when fdt file is not found

2023-12-07 Thread Michael Trimarchi
tfstype=ext4 rootwait earlycon=ns16550a,mmio32,0x0280 Retrieving file: /boot/k3-am623_ccm_m3.dtb Skipping fdtdir /boot/ for failure retrieving dts Signed-off-by: Michael Trimarchi --- boot/pxe_utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index

[PATCH] mtd: nand: make Samsung SLC NAND usable again

2022-10-20 Thread Michael Trimarchi
correct results. Reported-by: Marcin Gołaś Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_base.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 215b9ba84f..bc61ad03eb 100644

[PATCH] configs: rockchip: Drop TPL_MAX_SIZE definition

2022-09-24 Thread Michael Trimarchi
The max size is defined at architectural level. On the same commit I have checked mostly all the other architecture and look like they are Fixes: commit ca8a329a1b7f ("Convert CONFIG_SPL_PAD_TO et al to Kconfig") Signed-off-by: Michael Trimarchi --- configs/evb-px30

[PATCH] configs: evb-px30_defconfig: Drop TPL_MAX_SIZE definition

2022-09-23 Thread Michael Trimarchi
The max size is defined at architectural level Signed-off-by: Michael Trimarchi --- configs/evb-px30_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/evb-px30_defconfig b/configs/evb-px30_defconfig index 240a044b2a..4f88879e18 100644 --- a/configs/evb-px30_defconfig +++ b

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

2022-09-22 Thread Michael Trimarchi
Extract the information about ecc strength and ecc step size from mtd controller. This information is usefull to check if what we think as ecc is what we really configured. Signed-off-by: Michael Trimarchi --- cmd/nand.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff

[PATCH V5] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-09-18 Thread Michael Trimarchi
Introduce BSH SystemMaster (SMM) M2 board family, which consists of: imx6ulz SMM M2 and imx6ulz SMM M2 PRO boards. Add support for imx6ulz BSH SMM M2 board: - 128 MiB DDR3 RAM - 256MiB Nand - USBOTG1 peripheral - fastboot. Signed-off-by: Michael Trimarchi --- Changes V4->V5: -

[PATCH] board: bsh: Update imx8mn ddr3l timing according to BSH hw team

2022-08-22 Thread Michael Trimarchi
Signed-off-by: Michael Trimarchi --- board/bsh/imx8mn_smm_s2/ddr3l_timing_256m.c | 23 - board/bsh/imx8mn_smm_s2/ddr3l_timing_512m.c | 23 - 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/board/bsh/imx8mn_smm_s2/ddr3l_timing_256m.c b

[PATCH 5/5] configs: imx8mn_bsh_smm_s2: Use nand_base ident for nand identification

2022-07-28 Thread Michael Trimarchi
The board can mount different nand brand type. Try to use the full scan detection and not the onfi one Signed-off-by: Michael Trimarchi --- configs/imx8mn_bsh_smm_s2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs

[PATCH 4/5] mtd: nand: samsung: Retrieve ECC requirements from extended

2022-07-28 Thread Michael Trimarchi
, K9GAG08U0F, K9GAG08X0D, K9GBG08U0A, K9GBG08U0B. These all use these bits in the exact same way. Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_samsung.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/raw/nand_samsung.c b/drivers/mtd/nand

[PATCH 3/5] mtd: nand: Rename nand_get_flash_type() into nand_detect()

2022-07-28 Thread Michael Trimarchi
Upstream linux commit 7bb427990ee364. Rename the function to match this new behavior. NOTE: fix nand_detect/nand_get_flash_type parameters in mxs_nand_spl. This code seems never executed by any board as alternative for nand detect Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw

[PATCH 2/5] mtd: nand: change return type of nand_get_flash_type() to int

2022-07-28 Thread Michael Trimarchi
Upstream linux commit 4722c0e958e636. The returned "type" is never used in nand_scan_ident() and spl code Make nand_get_flash_type() simply return an integer value in order to avoid unnecessary ERR_PTR/PTR_ERR dance. Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mt7

[PATCH 1/5] mtd: nand: Rename the nand_manufacturers struct

2022-07-28 Thread Michael Trimarchi
Upstream linux commit 8cfb9ab68f9070. Drop the 's' at the end of nand_manufacturers since the struct is actually describing a single manufacturer, not a manufacturer table. Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_base.c | 4 ++-- drivers/mtd/nand/raw/nand_

[PATCH 0/5] Another smaller update to the nand stack

2022-07-28 Thread Michael Trimarchi
KiB, page size: 2048, OOB size: 64 Michael Trimarchi (5): mtd: nand: Rename the nand_manufacturers struct mtd: nand: change return type of nand_get_flash_type() to int mtd: nand: Rename nand_get_flash_type() into nand_detect() mtd: nand: samsung: Retrieve ECC requirements from extended

[PATCH V4] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-07-28 Thread Michael Trimarchi
Introduce BSH SystemMaster (SMM) M2 board family, which consists of: imx6ulz SMM M2 and imx6ulz SMM M2 PRO boards. Add support for imx6ulz BSH SMM M2 board: - 128 MiB DDR3 RAM - 256MiB Nand - USBOTG1 peripheral - fastboot. Signed-off-by: Michael Trimarchi --- Changes V3->V4: - rea

[PATCH V3] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-07-27 Thread Michael Trimarchi
Introduce BSH SystemMaster (SMM) M2 board family, which consists of: imx6ulz SMM M2 and imx6ulz SMM M2 PRO boards. Add support for imx6ulz BSH SMM M2 board: - 128 MiB DDR3 RAM - 256MiB Nand - USBOTG1 peripheral - fastboot. Signed-off-by: Michael Trimarchi --- Changes V2->V3: - rem

Pull request for nand-next

2022-07-23 Thread Michael Trimarchi
+0200) Michael Trimarchi (14): mtd: nand: Get rid of busw parameter mtd: nand: Store nand ID in struct nand_chip mtd: nand: Add manufacturer specific initialization/detection steps mtd: nand: Get rid of mtd

[PATCH V2 13/13] mtd: decommission the NAND museum

2022-07-19 Thread Michael Trimarchi
museum REMARK Don't apply this part from upstream: Some of the iron age ones are transferred to the regular NAND depot. Namely, only those which have unique device IDs are transferred, and the ones which have conflicting device IDs are removed. Signed-off-by: Michael Trimarchi --- V

[PATCH V2 12/13] mtd: nand: toshiba: Retrieve ECC requirements from extended ID

2022-07-19 Thread Michael Trimarchi
Upstream linux commit fb3bff5b40 This patch enables support to read the ECC strength and size from the NAND flash using Toshiba Memory SLC NAND extended-ID. This patch is based on the information of the 6th ID byte of the Toshiba Memory SLC NAND. Signed-off-by: Michael Trimarchi --- V1->

[PATCH V2 11/13] mtd: nand: Move Macronix specific initialization in nand_macronix.c

2022-07-19 Thread Michael Trimarchi
Upstream linux commit 3b5206f4be Move Macronix specific initialization logic into nand_macronix.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remove linux info

[PATCH V2 10/13] mtd: nand: Move AMD/Spansion specific init/detection logic in nand_amd.c

2022-07-19 Thread Michael Trimarchi
Upstream linux commit 229204da53 Move AMD/Spansion specific initialization/detection logic into nand_amd.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remo

[PATCH V2 09/13] mtd: nand: Move Micron specific init logic in nand_micron.c

2022-07-19 Thread Michael Trimarchi
Upstream linux commit 10d4e75c36 Move Micron specific initialization logic into nand_micron.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remove linux info

[PATCH V2 08/13] mtd: nand: Move Toshiba specific init/detection logic in nand_toshiba.c

2022-07-19 Thread Michael Trimarchi
Upstream linux commit 9b2d61f80b Move Toshiba specific initialization and detection logic into nand_toshiba.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remo

[PATCH V2 07/13] mtd: nand: Move Hynix specific init/detection logic in nand_hynix.c

2022-07-19 Thread Michael Trimarchi
Upstream linux commit 01389b6bd2 Move Hynix specific initialization and detection logic into nand_hynix.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remo

[PATCH V2 06/13] mtd: nand: Move Samsung specific init/detection logic in nand_samsung.c

2022-07-19 Thread Michael Trimarchi
Upstream linux commit c51d0ac59f Move Samsung specific initialization and detection logic into nand_samsung.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remo

[PATCH V2 05/13] mtd: nand: Export symbol nand_decode_ext_id

2022-07-19 Thread Michael Trimarchi
In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi --- V1->V2: - no changes --- drivers/mtd/nand/raw/nand_base.c | 3 ++- include/linux/mtd/rawnand.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --gi

[PATCH V2 04/13] mtd: nand: Get rid of mtd variable in function calls

2022-07-19 Thread Michael Trimarchi
chip points to mtd. Passing chip is enough to have a reference to mtd when is necessary Signed-off-by: Michael Trimarchi --- V1->V2: - no changes --- drivers/mtd/nand/raw/nand_base.c | 20 +++- include/linux/mtd/rawnand.h | 3 +-- 2 files changed, 12 inserti

[PATCH V2 03/13] mtd: nand: Add manufacturer specific initialization/detection steps

2022-07-19 Thread Michael Trimarchi
full-id entries in the nand_ids table or all the vendor specific cases added over the time in the generic NAND ID decoding logic. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remove linux info. Uboot seems that backport without add this ex

[PATCH V2 02/13] mtd: nand: Store nand ID in struct nand_chip

2022-07-19 Thread Michael Trimarchi
Upstream linux commit 7f501f0a72 Store the NAND ID in struct nand_chip to avoid passing id_data and id_len as function parameters. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remove linux info. Uboot seems that backport without add this ex

[PATCH V2 01/13] mtd: nand: Get rid of busw parameter

2022-07-19 Thread Michael Trimarchi
the NAND_BUSWIDTH_16 flag in chip->options if needed. Signed-off-by: Michael Trimarchi --- V1->V2: - use short-commit form - remove linux info. Uboot seems that backport without add this extra information --- drivers/mtd/nand/raw/nand_ba

[PATCH V2 00/13] Port manufacturer specific initialization

2022-07-19 Thread Michael Trimarchi
series we expect no functional change Tested on: - imx6ull Micron MT29F2G08ABAGAH4 Michael Trimarchi (13): mtd: nand: Get rid of busw parameter mtd: nand: Store nand ID in struct nand_chip mtd: nand: Add manufacturer specific initialization/detection steps mtd: nand: Get rid of mtd

[RFC PATCH] mtd: Fix building when CONFIG_DM is not enabled

2022-07-19 Thread Michael Trimarchi
fnode'; did you mean 'mtd_set_of_node'? [-Werror=implicit-function-declaration] + 426 | mtd_set_ofnode(nand->mtd, node); + | ^~ + | mtd_set_of_node +cc1: all warnings being treated as errors Cc: Simon Glass Signed-off-by: Michael Trima

[PATCH] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-07-17 Thread Michael Trimarchi
Introduce BSH SystemMaster (SMM) M2 board family, which consists of: imx6ulz SMM M2 and imx6ulz SMM M2 PRO boards. Add support for imx6ulz BSH SMM M2 board: - 128 MiB DDR3 RAM - 256MiB Nand - USBOTG1 peripheral - fastboot. Signed-off-by: Michael Trimarchi --- Changes V1->V2: - Adj

[PATCH] mtd: decommission the NAND museum

2022-07-14 Thread Michael Trimarchi
-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_ids.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c index 7602dd30f1..4dece1b206 100644 --- a/drivers/mtd/nand/raw/nand_ids.c +++ b/drivers/mtd/nand/raw

[PATCH 00/11] Port manufacturer specific initialization

2022-07-14 Thread Michael Trimarchi
we expect no functional change Tested on: - imx6ull Micron MT29F2G08ABAGAH4 Michael Trimarchi (11): mtd: nand: Get rid of busw parameter mtd: nand: Store nand ID in struct nand_chip mtd: nand: Add manufacturer specific initialization/detection steps mtd: nand: Get rid of mtd

[PATCH 11/11] mtd: nand: Move Macronix specific initialization in nand_macronix.c

2022-07-14 Thread Michael Trimarchi
Upstream commit 3b5206f4be9b65d2f0f85b3239cf117a1d0de7ce Move Macronix specific initialization logic into nand_macronix.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Boris Brezillon Signed-off-by: Michael Trimarchi --- drivers/mt

[PATCH 10/11] mtd: nand: Move AMD/Spansion specific init/detection logic in nand_amd.c

2022-07-14 Thread Michael Trimarchi
Upstream commit 229204da53b31d576fcc1c93a33626943ea8202c Move AMD/Spansion specific initialization/detection logic into nand_amd.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Boris Brezillon Acked-by: Richard Weinberger Signed-off-b

[PATCH 08/11] mtd: nand: Move Toshiba specific init/detection logic in nand_toshiba.c

2022-07-14 Thread Michael Trimarchi
ned-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/Makefile | 3 +- drivers/mtd/nand/raw/nand_base.c| 21 ++-- drivers/mtd/nand/raw/nand_ids.c | 2 +- drivers/mtd/nand/raw/nand_toshiba.c | 53 + include/linux/mtd/rawnand.h | 1 + 5 files c

[PATCH 09/11] mtd: nand: Move Micron specific init logic in nand_micron.c

2022-07-14 Thread Michael Trimarchi
Upstream commit 10d4e75c36f6c16311dde1461f318210da357219 Move Micron specific initialization logic into nand_micron.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Boris Brezillon Acked-by: Richard Weinberger Signed-off-by: Michael

[PATCH 07/11] mtd: nand: Move Hynix specific init/detection logic in nand_hynix.c

2022-07-14 Thread Michael Trimarchi
Upstream commit 01389b6bd2f4f7649cdbb4a99a15d9e0c05d6f8c Move Hynix specific initialization and detection logic into nand_hynix.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Boris Brezillon Acked-by: Richard Weinberger Signed-off-b

[PATCH 06/11] mtd: nand: Move Samsung specific init/detection logic in nand_samsung.c

2022-07-14 Thread Michael Trimarchi
ned-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/Makefile | 3 +- drivers/mtd/nand/raw/nand_base.c| 50 +--- drivers/mtd/nand/raw/nand_ids.c | 4 +- drivers/mtd/nand/raw/nand_samsung.c | 90 + include/linux/mtd/rawnand.h | 2 + 5 fil

[PATCH 05/11] mtd: nand: Export symbol nand_decode_ext_id

2022-07-14 Thread Michael Trimarchi
In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_base.c | 3 ++- include/linux/mtd/rawnand.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nand_base.c b

[PATCH 02/11] mtd: nand: Store nand ID in struct nand_chip

2022-07-14 Thread Michael Trimarchi
Upstream commit 7f501f0a72036dc29ad9a53811474c393634b401 Store the NAND ID in struct nand_chip to avoid passing id_data and id_len as function parameters. Signed-off-by: Boris Brezillon Acked-by: Richard Weinberger Reviewed-by: Marek Vasut Signed-off-by: Michael Trimarchi --- drivers/mtd

[PATCH 04/11] mtd: nand: Get rid of mtd variable in function calls

2022-07-14 Thread Michael Trimarchi
chip points to mtd. Passing chip is enough to have a reference to mtd when is necessary Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_base.c | 20 +++- include/linux/mtd/rawnand.h | 3 +-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a

[PATCH 03/11] mtd: nand: Add manufacturer specific initialization/detection steps

2022-07-14 Thread Michael Trimarchi
allow us to get rid of full-id entries in the nand_ids table or all the vendor specific cases added over the time in the generic NAND ID decoding logic. Signed-off-by: Boris Brezillon Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_base.c | 90

[PATCH 01/11] mtd: nand: Get rid of busw parameter

2022-07-14 Thread Michael Trimarchi
ion code directly set the NAND_BUSWIDTH_16 flag in chip->options if needed. Signed-off-by: Boris Brezillon Acked-by: Richard Weinberger Reviewed-by: Marek Vasut Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/nand_base.c | 59 +--- 1 file chang

[PATCH 2/2] mtd: nand: mxs_nand_spl Fix loop exit condition

2022-07-08 Thread Michael Trimarchi
When size is 0 we need to stop the inner loop or we just waste time to load all the block of the eraseblock Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand_spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers

[PATCH 1/2] mtd: nand: Fix ecc in mxs_nand_spl onfi mode

2022-07-08 Thread Michael Trimarchi
legacy_calc_ecc_layout(geo, mtd); if (!err) return 0; } Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand_spl.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index 3daacb

[PATCH] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2 boards

2022-07-08 Thread Michael Trimarchi
Introduce BSH SystemMaster (SMM) M2 board family, which consists of: imx6ulz SMM M2 and imx6ulz SMM M2 PRO boards. Add support for imx6ulz BSH SMM M2 board: - 128 MiB DDR3 RAM - 256MiB Nand - USBOTG1 peripheral - fastboot. Signed-off-by: Michael Trimarchi --- arch/arm/dts/Makefile

[PATCH] MAINTAINERS: Add Dario and Michael as nand maintainers

2022-06-29 Thread Michael Trimarchi
-off-by: Michael Trimarchi --- MAINTAINERS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a15ba7abdc..7f27ff4c20 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1064,8 +1064,9 @@ T:git https://source.denx.de/u-boot/custodians/u-boot

[PATCH] mtd: mxs_nand_spl: fix nand_command protocol violation

2022-06-21 Thread Michael Trimarchi
ested on an iMX6SX device with: * Winbond W29N04GVSIAA * Spansion S34ML04G100TF100 * Samsung K9F4G08U00 Tested on imx8mn device with: * Windbond W29N04GV Signed-off-by: Andrea Scian CC: Stefano Babic Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand_spl.c | 14

  1   2   3   4   5   >