[RFC PATCH 0/2] video: ti: am335x: drop pre-driver-model code

2022-11-07 Thread Dario Binacchi
The commit [1] also removed the code with driver model support, I preferred to start from a revert and apply the necessary changes in a second commit, rather than restore the removed modules. [1] 82f7b869f5d7a ("video: Drop CONFIG_AM335X_LCD") Dario Binacchi (2): Revert &q

[PATCH v4] cmd: mtd: check if a block has to be skipped or erased

2022-10-30 Thread Dario Binacchi
iy Signed-off-by: Dario Binacchi --- Changes in v4: - Use the first version of the patch and fix the check of value returned by the mtd_erase(). - Change the commit author. Changes in v3: - Simplify the code. mtd_erase() can't return a bad block error. Print the messaged where the bad

Re: [PATCH v2] cmd: mtd: check if a block has to be skipped or erased

2022-10-30 Thread Dario Binacchi
Hi Simon, On Wed, Oct 26, 2022 at 1:35 AM Simon Glass wrote: > > Hi, > > On Mon, 24 Oct 2022 at 03:35, Dario Binacchi > wrote: > > > > From: Mikhail Kshevetskiy > > > > As reported by patch [1], the `mtd erase' command should not erase bad > >

Re: [PATCH v3] cmd: mtd: check if a block has to be skipped or erased

2022-10-30 Thread Dario Binacchi
Hi Mikhail, On Wed, Oct 26, 2022 at 2:56 PM Mikhail Kshevetskiy wrote: > > On 26.10.2022 09:29, Dario Binacchi wrote: > > > [External email] > > > > > > > > > > > > Hi Mikhail, > > > > On Mon, Oct 24, 2022 at 1:24 PM Mikhail Ksheve

Re: [PATCH v3] cmd: mtd: check if a block has to be skipped or erased

2022-10-25 Thread Dario Binacchi
Hi Mikhail, On Mon, Oct 24, 2022 at 1:24 PM Mikhail Kshevetskiy wrote: > > > On 24.10.2022 12:44, Dario Binacchi wrote: > > [External email] > > > > > > > > > > > > From: Mikhail Kshevetskiy > > > > As reported by patch [1], the `m

[PATCH v3] cmd: mtd: check if a block has to be skipped or erased

2022-10-24 Thread Dario Binacchi
er to make further upgrades easier. [1] https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevets...@iopsys.eu/ Suggested-by: Michael Trimarchi Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Co-developed-by: Dario Binacchi Signed-off-by: Dario Binacchi Tested-b

[PATCH v2] cmd: mtd: check if a block has to be skipped or erased

2022-10-24 Thread Dario Binacchi
er to make further upgrades easier. [1] https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevets...@iopsys.eu/ Suggested-by: Michael Trimarchi Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Co-developed-by: Dario Binacchi Signed-off-by: Dario Binacchi Tested-b

Re: [PATCH v2] cmd: mtd: try to erase bad blocks only if scrub flag is provided

2022-10-24 Thread Dario Binacchi
hecks to do_mtd_erase() function in > the case > > >> srub flag is not provided. We can't simplify code by eliminating -EIO > result > > >> check of mtd_erase() as it will terminate erasing with > CMD_RET_SUCCESS. > > >> > > >> Thanks to Dario Bin

[PATCH] cmd: mtd: check if a block has to be skipped or erased

2022-10-21 Thread Dario Binacchi
asier. [1] https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevets...@iopsys.eu/ Signed-off-by: Dario Binacchi Suggested-by: Michael Trimarchi Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Cc: Mikhail Kshevetskiy --- cmd/mtd.c | 28 -

Pull request for u-boot-nand-20221009

2022-10-09 Thread Dario Binacchi
sing stub when CONFIG_CLK is deactivated ---- 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: get the clock with the right name Fabio Est

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

2022-10-09 Thread Dario Binacchi
Hi Michael, On Wed, Sep 28, 2022 at 10:45 AM Dario Binacchi < dario.binac...@amarulasolutions.com> wrote: > From: Michael Trimarchi > > Add support for imx8mn architecture in order to run the NAND > in fast edo mode. > > Signed-off-by: Michael Trimarchi > Si

Re: [u-boot][PATCH] mtd: nand: Fix SPL build after migration of CONFIG_SYS_NAND_SELF_INIT to Kconfig

2022-10-09 Thread Dario Binacchi
> +#if !CONFIG_IS_ENABLED(SYS_NAND_SELF_INIT) > static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; > static ulong base_address[CONFIG_SYS_MAX_NAND_DEVICE] = > CONFIG_SYS_NAND_BASE_LIST; > #endif > -- > 2.17.1 > > Applied to nand-next, thanks! Dario -- *Da

[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

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

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"

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 v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

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

[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

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

[PATCH v4 12/14] mtd: nand: Move Macronix specific initialization in nand_macronix.c

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 3b5206f4be9b65. 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 Signed-off-by: Dario Binacchi --- (no cha

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

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 229204da53b31d. 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 Signed-off-by: Dario Binacchi

[PATCH v4 10/14] mtd: nand: Move Micron specific init logic in nand_micron.c

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 10d4e75c36f6c1. 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 Signed-off-by: Dario Binacchi --- (no change

[PATCH v4 09/14] mtd: nand: Move Toshiba specific init/detection logic in nand_toshiba.c

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 9b2d61f80b060c. 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 Signed-off-by: Dario Binacchi

[PATCH v4 14/14] mtd: decommission the NAND museum

2022-07-22 Thread Dario Binacchi
chael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Use commit sha1 with 13 digits. - Wrap commit description to a maximum of 75 chars. Changes in v2: - Use short-commit form. - Remove linux info. Uboot seems that backport without add this extra inform

[PATCH v4 13/14] mtd: nand: toshiba: Retrieve ECC requirements from extended ID

2022-07-22 Thread Dario Binacchi
: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Use commit sha1 with 13 digits. Changes in v2: - Use short-commit form - Remove linux info. Uboot seems that backport without add this extra information. drivers/mtd/nand/raw/nand_toshiba.c | 26

[PATCH v4 08/14] mtd: nand: Move Hynix specific init/detection logic in nand_hynix.c

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 01389b6bd2f4f7. 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 Signed-off-by: Dario Binacchi

[PATCH v4 07/14] mtd: nand: Move Samsung specific init/detection logic in nand_samsung.c

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit c51d0ac59f2420. 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 Signed-off-by: Dario Binacchi

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

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 7f501f0a72036d. Store the NAND ID in struct nand_chip to avoid passing id_data and id_len as function parameters. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Use commit sha1 with 13

[PATCH v4 06/14] mtd: nand: Export symbol nand_decode_ext_id

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/mtd/nand/raw/nand_base.c | 3 ++- include/linux/mtd/rawnand.h | 3 +++ 2 files changed, 5

[PATCH v4 05/14] mtd: nand: Fix MediaTek MT7621 SoC build

2022-07-22 Thread Dario Binacchi
t argument is of type 'struct nand_chip *' + 33 |int *maf_id, int *dev_id, Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v4: - Add the patch to the series. drivers/mtd/nand/raw/mt7621_nand.c | 2 +- 1 file

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

2022-07-22 Thread Dario Binacchi
From: Michael Trimarchi chip points to mtd. Passing chip is enough to have a reference to mtd when is necessary Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Fix code style warnings raised by patman. drivers/mtd/nand/raw

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

2022-07-22 Thread Dario Binacchi
step will 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: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Use commit sha1 with 13

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

2022-07-22 Thread Dario Binacchi
let detection code directly set the NAND_BUSWIDTH_16 flag in chip->options if needed. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Use commit sha1 with 13 digits. Changes in v2: - Use short-commit form. - Remove linux info. Uboot

[PATCH v4 00/14] Port manufacturer specific initialization

2022-07-22 Thread Dario Binacchi
In preparation of re-sync of mtd stack, we opt to move the current stack slowly in order to have a more easy sync and test. We would like to prepare uboot to support no-jedec and no-onfi compliant nand so we need to clean up a bit the code we have now and upstream some of the support. In this serie

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

2022-07-20 Thread Dario Binacchi
chael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. - Wrap commit description to a maximum of 75 chars. Changes in v2: - Use short-commit form. - Remove linux info. Uboot seems that backport without add this extra information. drivers/mtd/nan

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

2022-07-20 Thread Dario Binacchi
: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. Changes in v2: - Use short-commit form - Remove linux info. Uboot seems that backport without add this extra information. drivers/mtd/nand/raw/nand_toshiba.c | 26 ++ 1

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 3b5206f4be9b65. 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 Signed-off-by: Dario Binacchi --- Cha

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 229204da53b31d. 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 Signed-off-by: Dario Binacchi --

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 10d4e75c36f6c1. 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 Signed-off-by: Dario Binacchi --- Changes in

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 9b2d61f80b060c. 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 Signed-off-by: Dari

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit c51d0ac59f2420. 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 Signed-off-by: Dari

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 01389b6bd2f4f7. 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 Signed-off-by: Dario Binacchi --

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/mtd/nand/raw/nand_base.c | 3 ++- include/linux/mtd/rawnand.h | 3 +++ 2 files changed, 5

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi chip points to mtd. Passing chip is enough to have a reference to mtd when is necessary Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Fix code style warnings raised by patman. drivers/mtd/nand/raw/nand_base.c | 25

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

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 7f501f0a72036d. Store the NAND ID in struct nand_chip to avoid passing id_data and id_len as function parameters. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. - Fix code

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

2022-07-20 Thread Dario Binacchi
step will 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: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. - Fix code style

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

2022-07-20 Thread Dario Binacchi
let detection code directly set the NAND_BUSWIDTH_16 flag in chip->options if needed. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. Changes in v2: - Use short-commit form. - Remove linux info. Uboot seems that backport witho

[PATCH v3 00/13] Port manufacturer specific initialization

2022-07-20 Thread Dario Binacchi
In preparation of re-sync of mtd stack, we opt to move the current stack slowly in order to have a more easy sync and test. We would like to prepare uboot to support no-jedec and no-onfi compliant nand so we need to clean up a bit the code we have now and upstream some of the support. In this serie

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

2022-07-20 Thread Dario Binacchi
let detection code directly set the NAND_BUSWIDTH_16 flag in chip->options if needed. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. Changes in v2: - Use short-commit form. - Remove linux info. Uboot seems that backport witho

[RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs

2022-06-26 Thread Dario Binacchi
Passing the mtdparts environment variable to the Linux kernel is required to properly mount the UBI rootfs. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 1 + 1 file changed, 1 insertion(+) diff

[RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs

2022-06-26 Thread Dario Binacchi
The Linux kernel device tree already specifies the device to be used for boot console output with a stdout-path property under /chosen. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 2 +- 1 file

[RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands

2022-06-26 Thread Dario Binacchi
imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash it. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver

2022-06-26 Thread Dario Binacchi
It allows to boot from NAND. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs

[RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting

2022-06-26 Thread Dario Binacchi
The series contains all the patches required by the BSH smm s2 board for booting from NAND and properly mounting the UBI rootfs. Dario Binacchi (4): configs: imx8mn_bsh_smm_s2: add NAND driver configs: imx8mn_bsh_smm_s2: add UBI commands configs: imx8mn_bsh_smm_s2: remove console from

[PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs

2022-06-08 Thread Dario Binacchi
Passing the mtdparts environment variable to the Linux kernel is required to properly mount the UBI rootfs. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver

2022-06-08 Thread Dario Binacchi
It allows to boot from NAND. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs

[PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs

2022-06-08 Thread Dario Binacchi
The Linux kernel device tree already specifies the device to be used for boot console output with a stdout-path property under /chosen. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 2 +- 1 file

[PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands

2022-06-08 Thread Dario Binacchi
imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash it. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting

2022-06-08 Thread Dario Binacchi
The series contains all the patches required by the BSH smm s2 board for booting from NAND and properly mounting the UBI rootfs. Dario Binacchi (4): configs: imx8mn_bsh_smm_s2: add NAND driver configs: imx8mn_bsh_smm_s2: add UBI commands configs: imx8mn_bsh_smm_s2: remove console from

Re: The contradictory nature of spl_nand_fit_read

2022-04-03 Thread Dario Binacchi
Hi Sean, > Il 01/04/2022 23:43 Michael Nazzareno Trimarchi > ha scritto: > > > Hi Sean > > On Fri, Apr 1, 2022 at 8:53 PM Sean Anderson wrote: > > > > > > > > On 4/1/22 2:46 PM, Sean Anderson wrote: > > > Hi all, > > > > > > I don't understand how spl_nand_fit_read is supposed to work. This

Re: [EXT] Re: [PATCH] imx: Revert "imx: mx6ull: fix REFTOP_VBGADJ setting" and fix comments

2022-03-11 Thread Dario Binacchi
_VBGADJ setting") patch caused a 7/8 degree variation in the temperature provided by the TEMPMON module on devices in the field. The patch you are reverting tried to make backward compatible the update of REFTOP_VBGADJ from fuse. Your patch, re-introduces non-backward compatibility. Thanks and reg

[RESEND PATCH 2/2] mx6: crm_regs: drop BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ

2022-01-31 Thread Dario Binacchi
Commit 97c16dc8bf098 ("imx: mx6ull: update the REFTOP_VBGADJ setting") made this macro unused. Then remove it. Signed-off-by: Dario Binacchi --- arch/arm/include/asm/arch-mx6/crm_regs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h

[RESEND PATCH 1/2] imx: mx6ull: fix REFTOP_VBGADJ setting

2022-01-31 Thread Dario Binacchi
) Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/mx6/soc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index aacfc854a2f8..099cb5b12d77 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/s

[PATCH 2/2] mx6: crm_regs: drop BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ

2022-01-13 Thread Dario Binacchi
Commit 97c16dc8bf098 ("imx: mx6ull: update the REFTOP_VBGADJ setting") made this macro unused. Then remove it. Signed-off-by: Dario Binacchi --- arch/arm/include/asm/arch-mx6/crm_regs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h

[PATCH 1/2] imx: mx6ull: fix REFTOP_VBGADJ setting

2022-01-13 Thread Dario Binacchi
) Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/mx6/soc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index aacfc854a2f8..099cb5b12d77 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/s

Re: Re : Re: Commit 76c2ff3e broke backlight on Chromebook snow

2021-10-23 Thread Dario Binacchi
Hi Guillaume, > Il 22/10/2021 14:34 Guillaume GARDET ha scritto: > > > Hi Dario, > > ----- Dario Binacchi a écrit : > > Hi Guillaume, > > > > > Il 21/10/2021 16:47 Guillaume GARDET ha > > > scritto: > > > > > > > &

Re: Commit 76c2ff3e broke backlight on Chromebook snow

2021-10-22 Thread Dario Binacchi
Hi Guillaume, > Il 21/10/2021 16:47 Guillaume GARDET ha scritto: > > > Hi, > > Commit 76c2ff3e [0] broke backlight on Chromebook snow. > A revert on top of 2021.10 restores the backlight. > Not sure why it breaks on Chromebook snow yet. Dario, any idea how to fix > this? Is it possible that

[PATCH 3/3] clk: ti: add am33xx/am43xx spread spectrum clock support

2021-09-26 Thread Dario Binacchi
SSC. Link: https://lore.kernel.org/r/20210606202253.31649-6-dario...@libero.it Signed-off-by: Dario Binacchi --- arch/arm/include/asm/arch-am33xx/clock.h | 12 +++ drivers/clk/ti/clk-am3-dpll.c| 131 ++- 2 files changed, 140 insertions(+), 3 deletions(-) diff --git

[PATCH 2/3] ARM: dts: am43xx-clocks: add spread spectrum support

2021-09-26 Thread Dario Binacchi
PRCM_CM_CLKMODE_DPLL_XXX registers are mapped for all PLLs (CORE, MPU, DDR, PER, DISP, EXTDEV). Link: https://lore.kernel.org/r/20210606202253.31649-5-dario...@libero.it Signed-off-by: Dario Binacchi --- arch/arm/dts/am43xx-clocks.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a

[PATCH 1/3] ARM: dts: am33xx-clocks: add spread spectrum support

2021-09-26 Thread Dario Binacchi
are mapped for all PLLs (CORE, MPU, DDR, PER, DISP). Link: https://lore.kernel.org/r/20210606202253.31649-4-dario...@libero.it Signed-off-by: Dario Binacchi --- arch/arm/dts/am33xx-clocks.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/am33xx

[PATCH 0/3] Add am33xx/am43xx spread spectrum clock support

2021-09-26 Thread Dario Binacchi
d spread spectrum support") Dario Binacchi (3): ARM: dts: am33xx-clocks: add spread spectrum support ARM: dts: am43xx-clocks: add spread spectrum support clk: ti: add am33xx/am43xx spread spectrum clock support arch/arm/dts/am33xx-clocks.dtsi | 10 +- arch/arm/dts/am4

[PATCH v2 7/8] rtc: davinci: add driver model support

2021-06-02 Thread Dario Binacchi
index 82e5eb3b43..21e5234477 100644 --- a/drivers/rtc/davinci.c +++ b/drivers/rtc/davinci.c @@ -2,127 +2,433 @@ /* * (C) Copyright 2011 DENX Software Engineering GmbH * Heiko Schocher + * Copyright (C) 2021 Dario Binacchi */ #include #include +#include +#include #include #in

[PATCH v2 8/8] rtc: davinci: fix date loaded on reset

2021-06-02 Thread Dario Binacchi
On reset, the RTC loads the 2000-01-01 date with a wrong day of the week (Sunday instead of Saturday). Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/rtc/davinci.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c

[PATCH v2 4/8] rtc: davinci: check BUSY bit before set TC registers

2021-06-02 Thread Dario Binacchi
To write correct data to the TC registers, the STATUS register must be read until the BUSY bit is equal to zero. Once the BUSY flag is zero, there is a 15 μs access period in which the TC registers can be programmed. The rtc_wait_not_busy() has been inspired by the Kernel. Signed-off-by: Dario

[PATCH v2 5/8] rtc: davinci: use unlock/lock mechanism

2021-06-02 Thread Dario Binacchi
The RTC module contains a kicker mechanism to prevent any spurious writes from changing the register values. To set the time, you must first unlock the TC registers, update them and then lock. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/rtc/davinci.c | 14 ++ 1

[PATCH v2 3/8] rtc: davinci: replace 32bit access with 8bit access

2021-06-02 Thread Dario Binacchi
Use 32-bit access only where it is needed. Most of the RTC registers contain useful information in the 8 least significant bits, the others are reserved. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/rtc/davinci.c | 32 1 file changed, 16

[PATCH v2 6/8] arm: dts: sync rtc node of am335x boards with Linux 5.9-rc7

2021-06-02 Thread Dario Binacchi
There have been some changes to the am335x- DTs related to the rtc node, so let's re-syncs them with Linux. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/dts/am335x-bone-common.dtsi| 5 + arch/arm/dts/am335x-evm.dts | 5 + arch/arm/dts/a

[PATCH v2 0/8] rtc: davinci: add driver model support

2021-06-02 Thread Dario Binacchi
The series adds driver model support for omap RTC plus some fixes. Changes in v2: - Separated from Kconfig patch - Use consistent naming (omap_rtc_. - Remove non-DM support. It's no more used. Dario Binacchi (8): rtc: davinci: enable compilation for omap architectures rtc: davinci

[PATCH v2 1/8] rtc: davinci: enable compilation for omap architectures

2021-06-02 Thread Dario Binacchi
The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and DRA7XX SOCs. So, let's enable compilation for these architectures too. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/rtc/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/d

[PATCH v2 2/8] rtc: davinci: fix compiler errors

2021-06-02 Thread Dario Binacchi
Fix errors raised by module compilation. Signed-off-by: Dario Binacchi --- Changes in v2: - Separated from Kconfig patch drivers/rtc/davinci.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c index c446e7a735

Re: [PATCH 1/7] rtc: davinci: enable compilation for omap architectures

2021-05-28 Thread Dario Binacchi
Hi Lokesh, > Il 27/05/2021 11:59 Lokesh Vutla ha scritto: > > > On 07/05/21 9:45 am, Dario Binacchi wrote: > > The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and > > DRA7XX SOCs. So, let's enable compilation for these architectures

Re: [PATCH] pinctrl: single: Fix probe failure getting register area size

2021-05-18 Thread Dario Binacchi
Hi, > Il 17/05/2021 22:15 Tom Rini ha scritto: > > > On Fri, May 07, 2021 at 02:40:34PM +0530, Vignesh Raghavendra wrote: > > > If reg property of pinctrl-single node requires address translation then > > probe fails with following message: > > > > single-pinctrl pinctrl@4301c000: failed to

Re: [PATCH 1/7] rtc: davinci: enable compilation for omap architectures

2021-05-08 Thread Dario Binacchi
Hi Pali, > Il 07/05/2021 09:56 Pali Rohár ha scritto: > > > On Friday 07 May 2021 06:15:02 Dario Binacchi wrote: > > The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and > > DRA7XX SOCs. So, let's enable compilation for these archi

[PATCH 6/7] rtc: davinci: add driver model support

2021-05-06 Thread Dario Binacchi
Update the driver to support the device tree and the driver model. The read / write helpers in rtc_ops allow access to scratch registers only. The offset parameter is added to the address of the scratch0 register. Signed-off-by: Dario Binacchi --- drivers/rtc/davinci.c | 373

[PATCH 5/7] arm: dts: sync rtc node of am335x boards with Linux 5.9-rc7

2021-05-06 Thread Dario Binacchi
There have been some changes to the am335x- DTs related to the rtc node, so let's re-syncs them with Linux. Signed-off-by: Dario Binacchi --- arch/arm/dts/am335x-bone-common.dtsi| 5 + arch/arm/dts/am335x-evm.dts | 5 + arch/arm/dts/am335x-evmsk.dts

[PATCH 7/7] rtc: davinci: fix date loaded on reset

2021-05-06 Thread Dario Binacchi
On reset, the RTC loads the 2000-01-01 date with a wrong day of the week (Sunday instead of Saturday). Signed-off-by: Dario Binacchi --- drivers/rtc/davinci.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c index b0a077cba7

[PATCH 4/7] rtc: davinci: use unlock/lock mechanism

2021-05-06 Thread Dario Binacchi
The RTC module contains a kicker mechanism to prevent any spurious writes from changing the register values. To set the time, you must first unlock the TC registers, update them and then lock. Signed-off-by: Dario Binacchi --- drivers/rtc/davinci.c | 14 ++ 1 file changed, 14

[PATCH 3/7] rtc: davinci: check BUSY bit before set TC registers

2021-05-06 Thread Dario Binacchi
To write correct data to the TC registers, the STATUS register must be read until the BUSY bit is equal to zero. Once the BUSY flag is zero, there is a 15 μs access period in which the TC registers can be programmed. The rtc_wait_not_busy() has been inspired by the Kernel. Signed-off-by: Dario

[PATCH 2/7] rtc: davinci: replace 32bit access with 8bit access

2021-05-06 Thread Dario Binacchi
Use 32-bit access only where it is needed. Most of the RTC registers contain useful information in the 8 least significant bits, the others are reserved. Signed-off-by: Dario Binacchi --- drivers/rtc/davinci.c | 32 1 file changed, 16 insertions(+), 16

[PATCH 1/7] rtc: davinci: enable compilation for omap architectures

2021-05-06 Thread Dario Binacchi
The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and DRA7XX SOCs. So, let's enable compilation for these architectures too. Signed-off-by: Dario Binacchi --- drivers/rtc/Kconfig | 7 +++ drivers/rtc/davinci.c | 11 --- 2 files changed, 15 insert

[PATCH 0/7] rtc: davinci: add driver model support

2021-05-06 Thread Dario Binacchi
The series adds driver model support for omap RTC plus some fixes. Dario Binacchi (7): rtc: davinci: enable compilation for omap architectures rtc: davinci: replace 32bit access with 8bit access rtc: davinci: check BUSY bit before set TC registers rtc: davinci: use unlock/lock

Re: Weirdness of ofnode_get_addr_size()

2021-05-04 Thread Dario Binacchi
cells is derived from the physical > > address width of that platform. > > > > So, what is that functions actually supposed to do? > > +Dario Binacchi +Mario Six > > I suspect the code has got ahead of the docs. > > d64b9cdcd47 fdt: translate address if #size-c

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

2021-05-01 Thread Dario Binacchi
Hi Jan, > Il 01/05/2021 14:29 Jan Kiszka ha scritto: > > > On 11.04.21 09:39, Dario Binacchi wrote: > > Use dev_read_addr_size to get size of the controller's register area. > > > > Signed-off-by: Dario Binacchi > > Reviewed-by: Pratyush Yadav

<    1   2   3   4   5   6   7   8   >