[PATCH v1 3/3] mtd: rawnand: meson: read/write access for boot ROM pages

2024-06-02 Thread Arseniy Krasnov
] ... [ pN ] ^ ^ ^ ^ pX is page number "X". "^" means "special" page used by boot ROM - e.g. every 2nd page in the range of [0, 7]. Step (2 here) and last page in range is read from the device tree. Signed-off-by: Arseniy Krasnov ---

[PATCH v1 1/3] mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag

2024-06-02 Thread Arseniy Krasnov
controller provided options. Signed-off-by: Arseniy Krasnov --- drivers/mtd/nand/raw/nand_base.c | 3 +++ include/linux/mtd/rawnand.h | 6 ++ 2 files changed, 9 insertions(+) diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index c40a0f23d7..ed605b4af5 100644 ---

[PATCH v1 0/3] Meson: R/W support for pages used by boot ROM

2024-06-02 Thread Arseniy Krasnov
in special mode ("short" ECC + scrambling). In practice this feature is > needed when we want to update first block of NAND - driver will enable > required mode by itself using value from device tree. The only difference is that patchset for Linux updates DT bindings, while this

[PATCH v1 2/3] mtd: rawnand: meson: refactor use of 'meson_nfc_cmd_access()'

2024-06-02 Thread Arseniy Krasnov
Move call 'meson_nfc_cmd_seed()' and check for 'NAND_NEED_SCRAMBLING' to 'meson_nfc_cmd_access()', thus removing code duplication. Signed-off-by: Arseniy Krasnov --- drivers/mtd/nand/raw/meson_nand.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff

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

2024-05-24 Thread Arseniy Krasnov
On 24.05.2024 16:31, Dario Binacchi wrote: > Hi Arseniy, > > On Fri, May 24, 2024 at 11:25 AM Arseniy Krasnov > wrote: >> >> Hi Dario! >> >> Sorry, is this patch ok? > > Sorry, I told you I was testing it but I forgot to tell you that > testin

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

2024-05-24 Thread Arseniy Krasnov
? >> >> Michael >> >> On Wed, Apr 17, 2024 at 8:44 PM Arseniy Krasnov >> wrote: >>> >>> Hello, >>> >>> Sorry, pls ping >>> >>> Thanks, Arseniy >>> >>> On 13.03.2024 09:46, Michael Nazzareno Trima

Re: [PATCH v1] arm: dts: meson-axg: add NAND controller node for AXG

2024-04-26 Thread Arseniy Krasnov
On 26.04.2024 11:55, neil.armstr...@linaro.org wrote: > On 26/04/2024 10:40, Arseniy Krasnov wrote: >> Hi, >> >> On 26.04.2024 11:21, Neil Armstrong wrote: >>> Hi, >>> >>> On 25/04/2024 19:50, Arseniy Krasnov wrote: >>>>

Re: [PATCH v1] arm: dts: meson-axg: add NAND controller node for AXG

2024-04-26 Thread Arseniy Krasnov
Hi, On 26.04.2024 11:21, Neil Armstrong wrote: > Hi, > > On 25/04/2024 19:50, Arseniy Krasnov wrote: >> nfc: Synced from Linux commit 7ca2ef33179f ("Linux 6.6-rc1") >> nand_all_pins: Synced from Linux commit be18d53c32b2 ("Linux 6.7-rc3") > &

[PATCH v1] arm: dts: meson-axg: add NAND controller node for AXG

2024-04-25 Thread Arseniy Krasnov
nfc: Synced from Linux commit 7ca2ef33179f ("Linux 6.6-rc1") nand_all_pins: Synced from Linux commit be18d53c32b2 ("Linux 6.7-rc3") Signed-off-by: Arseniy Krasnov --- arch/arm/dts/meson-axg.dtsi | 36 1 file changed, 36 insertions(+) d

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

2024-04-17 Thread Arseniy Krasnov
Hello, Sorry, pls ping Thanks, Arseniy On 13.03.2024 09:46, Michael Nazzareno Trimarchi wrote: > Hi Dario > > Can apply this series and put in CI? > > Michael > > On Wed, Mar 13, 2024 at 7:43 AM Arseniy Krasnov > wrote: >> >> Sorry, please ping >>

[PATCH v5] cmd: mtd: OTP access support

2024-03-26 Thread Arseniy Krasnov
area of device 'nand0'. 'mtd otplock nand0 0 1024' - lock 1024 bytes of user area starting from offset 0 of device 'nand0'. 'mtd otpinfo nand0 f' - show info about factory area of device 'nand0'. Signed-off-by: Arseniy Krasnov --- Changelog: v1 -> v2: * Remove warning that OTP can't be era

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

2024-03-22 Thread Arseniy Krasnov
On 22.03.2024 11:17, Michael Nazzareno Trimarchi wrote: > Hi Arseniy > > On Fri, Mar 22, 2024 at 9:14 AM Arseniy Krasnov > wrote: >> >> Hi, >> >> On 22.03.2024 11:12, Michael Nazzareno Trimarchi wrote: >>> Hi Arseniy >>> >>

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

2024-03-22 Thread Arseniy Krasnov
Hi, On 22.03.2024 11:12, Michael Nazzareno Trimarchi wrote: > Hi Arseniy > > On Wed, Mar 20, 2024 at 8:14 PM Arseniy Krasnov > wrote: >> >> Add access to OTP region. It supports info, dump, write and lock >> operations. Usage example: >> >> 'mtd otpread

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

2024-03-20 Thread Arseniy Krasnov
Hello On 20.03.2024 21:01, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Mar 13, 2024 at 8:27 AM Arseniy Krasnov > wrote: >> >> Add access to OTP region. It supports info, dump, write and lock >> operations. Usage example: >> >> 'mtd otpread nand

[PATCH v4] cmd: mtd: OTP access support

2024-03-20 Thread Arseniy Krasnov
area of device 'nand0'. 'mtd otplock nand0 0 1024' - lock 1024 bytes of user area starting from offset 0 of device 'nand0'. 'mtd otpinfo nand0 f' - show info about factory area of device 'nand0'. Signed-off-by: Arseniy Krasnov Reviewed-by: Michael Trimarchi --- Changelog: v1 -> v2: * Rem

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

2024-03-13 Thread Arseniy Krasnov
On 13.03.2024 09:48, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Mar 13, 2024 at 7:43 AM Arseniy Krasnov > wrote: >> >> Sorry, please ping >> >> Thanks, Arseniy >> >> >> On 11.02.2024 02:16, Arseniy Krasnov wrote: >>> Sorr

[PATCH v3] cmd: mtd: OTP access support

2024-03-13 Thread Arseniy Krasnov
area of device 'nand0'. 'mtd otplock nand0 0 1024' - lock 1024 bytes of user area starting from offset 0 of device 'nand0'. 'mtd otpinfo nand0 f' - show info about factory area of device 'nand0'. Signed-off-by: Arseniy Krasnov Reviewed-by: Michael Trimarchi --- Changelog: v1 -> v2: * Rem

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

2024-03-13 Thread Arseniy Krasnov
Sorry, please ping Thanks, Arseniy On 11.02.2024 02:16, Arseniy Krasnov wrote: > Sorry, pls ping > > Thanks, Arseniy > > On 08.01.2024 21:33, Arseniy Krasnov wrote: >> Sorry, pls ping >> >> Thanks, Arseniy >> >> On 20.12.2023 22:36, Arseni

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

2024-03-13 Thread Arseniy Krasnov
Sorry, please ping Thanks, Arseniy On 11.02.2024 02:16, Arseniy Krasnov wrote: > Sorry, pls ping > > Thanks, Arseniy > > On 08.01.2024 21:33, Arseniy Krasnov wrote: >> Sorry, pls ping >> >> Thanks, Arseniy

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

2024-02-10 Thread Arseniy Krasnov
Sorry, pls ping Thanks, Arseniy On 08.01.2024 21:33, Arseniy Krasnov wrote: > Sorry, pls ping > > Thanks, Arseniy > > On 20.12.2023 22:36, Arseniy Krasnov wrote: >> Add access to OTP region. It supports info, dump, write and lock >> operations. >>

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

2024-02-10 Thread Arseniy Krasnov
Sorry, pls ping Thanks, Arseniy On 08.01.2024 21:33, Arseniy Krasnov wrote: > Sorry, pls ping > > Thanks, Arseniy

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

2024-02-10 Thread Arseniy Krasnov
Basic support for Amlogic Meson NAND controller on AXG. This version works at only first EDO mode. Based on Linux version 6.7.0-rc4. Signed-off-by: Arseniy Krasnov --- Changelog: v1 -> v2: * Update commit message with 'Based on Linux ...'. * Add Linux driver author to .c file hea

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

2024-02-04 Thread Arseniy Krasnov
On 05.02.2024 10:00, Michael Nazzareno Trimarchi wrote: > Hi > > Il lun 5 feb 2024, 07:43 Arseniy Krasnov ha > scritto: > >> Hi, sorry, but pls, ping :) >> >> On 15.01.2024 09:01, Arseniy Krasnov wrote: >>> Hi, thanks for review! Two questions bel

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

2024-02-04 Thread Arseniy Krasnov
Hi, sorry, but pls, ping :) On 15.01.2024 09:01, Arseniy Krasnov wrote: > Hi, thanks for review! Two questions below... > > On 09.01.2024 11:42, Michael Nazzareno Trimarchi wrote: >> Hi Arseniy >> >> >> On Fri, Dec 15, 2023 at 1:32 PM Arseniy Krasnov >> w

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

2024-01-14 Thread Arseniy Krasnov
Hi, thanks for review! Two questions below... On 09.01.2024 11:42, Michael Nazzareno Trimarchi wrote: > Hi Arseniy > > > On Fri, Dec 15, 2023 at 1:32 PM Arseniy Krasnov > wrote: >> >> Basic support for Amlogic Meson NAND controller on AXG. >> >> Based o

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

2024-01-08 Thread Arseniy Krasnov
On 08.01.2024 21:48, Michael Nazzareno Trimarchi wrote: > Hi > > On Mon, Jan 8, 2024 at 7:41 PM Arseniy Krasnov > wrote: >> >> Sorry, pls ping >> > > Sorry to be late, ;) I will give a review tomorrow Sure no problem! Thanks :) > > Michael >

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

2024-01-08 Thread Arseniy Krasnov
Sorry, pls ping Thanks, Arseniy On 20.12.2023 22:36, Arseniy Krasnov wrote: > Add access to OTP region. It supports info, dump, write and lock > operations. > > Signed-off-by: Arseniy Krasnov > --- > Changelog: > v1 -> v2: > * Remove warning that OTP can't be er

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

2024-01-08 Thread Arseniy Krasnov
Sorry, pls ping Thanks, Arseniy On 18.12.2023 14:54, Arseniy Krasnov wrote: > cc: Jaime Liao > > On 04.12.2023 22:23, Arseniy Krasnov wrote: >> cc: Miquel Raynal >> >> On 30.11.2023 14:24, Arseniy Krasnov wrote: >>> Support for OTP area access on MX30LFxG

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

2024-01-08 Thread Arseniy Krasnov
Sorry, pls ping Thanks, Arseniy On 15.12.2023 15:23, Arseniy Krasnov wrote: > Basic support for Amlogic Meson NAND controller on AXG. > > Based on Linux version 6.7.0-rc4. > > Signed-off-by: Arseniy Krasnov > --- > Changelog: > v1 -> v2: > * Update commi

[PATCH v2] cmd: mtd: OTP access support

2023-12-20 Thread Arseniy Krasnov
Add access to OTP region. It supports info, dump, write and lock operations. Signed-off-by: Arseniy Krasnov --- Changelog: v1 -> v2: * Remove warning that OTP can't be erased after write. cmd/Kconfig | 1 + cmd/mtd.c | 224 2 fi

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

2023-12-18 Thread Arseniy Krasnov
cc: Jaime Liao On 04.12.2023 22:23, Arseniy Krasnov wrote: > cc: Miquel Raynal > > On 30.11.2023 14:24, Arseniy Krasnov wrote: >> Support for OTP area access on MX30LFxG18AC chip series. >> >> Signed-off-by: Arseniy Krasnov >> --- >> dri

[PATCH v2] mtd: rawnand: Meson NAND controller support

2023-12-15 Thread Arseniy Krasnov
Basic support for Amlogic Meson NAND controller on AXG. Based on Linux version 6.7.0-rc4. Signed-off-by: Arseniy Krasnov --- Changelog: v1 -> v2: * Update commit message with 'Based on Linux ...'. * Add Linux driver author to .c file header. * Add comment for defi

Re: [PATCH v1] arm: dts: meson: add NAND controller node for AXG

2023-12-12 Thread Arseniy Krasnov
Hi, On 12.12.2023 17:03, Neil Armstrong wrote: > Hi, > > On 30/11/2023 13:27, Arseniy Krasnov wrote: > > Can you add a reference to the Linux patches that you submitted so > we know it will be safe to sync the DT from Linux when they are merged ? Sure: https://lore.kernel

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

2023-12-10 Thread Arseniy Krasnov
On 08.12.2023 11:35, Arseniy Krasnov wrote: > > > On 08.12.2023 11:09, Michael Nazzareno Trimarchi wrote: >> Hi >> >> On Thu, Nov 30, 2023 at 12:29 PM Arseniy Krasnov >> wrote: >>> >>> Basic support for Amlogic Meson NAND contro

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

2023-12-08 Thread Arseniy Krasnov
On 08.12.2023 11:09, Michael Nazzareno Trimarchi wrote: > Hi > > On Thu, Nov 30, 2023 at 12:29 PM Arseniy Krasnov > wrote: >> >> Basic support for Amlogic Meson NAND controller on AXG. >> >> Signed-off-by: Arseniy Krasnov >> --- >> drivers/mt

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

2023-12-04 Thread Arseniy Krasnov
On 04.12.2023 22:53, Michael Nazzareno Trimarchi wrote: > Hi Arseniy > > Il lun 4 dic 2023, 20:31 Arseniy Krasnov ha > scritto: > >> cc: Miquel Raynal >> >> On 30.11.2023 14:21, Arseniy Krasnov wrote: >>> Basic support for Amlogic Meson NAND control

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

2023-12-04 Thread Arseniy Krasnov
cc: Miquel Raynal On 30.11.2023 14:24, Arseniy Krasnov wrote: > Support for OTP area access on MX30LFxG18AC chip series. > > Signed-off-by: Arseniy Krasnov > --- > drivers/mtd/nand/raw/nand_macronix.c | 170 +++ > 1 file changed, 170 insertions(

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

2023-12-04 Thread Arseniy Krasnov
cc: Miquel Raynal On 30.11.2023 14:21, Arseniy Krasnov wrote: > Basic support for Amlogic Meson NAND controller on AXG. > > Signed-off-by: Arseniy Krasnov > --- > drivers/mtd/nand/raw/Kconfig |9 + > drivers/mtd/nand/raw/Makefile |1 + > drivers/mtd/

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

2023-12-01 Thread Arseniy Krasnov
On 01.12.2023 11:28, Michael Walle wrote: > Hi, > +static int do_mtd_otp_write(struct cmd_tbl *cmdtp, int flag, int argc, +    char *const argv[]) +{ >>> .. >>> +    printf("Caution! OTP data bits can't be erased! Continue (y/n)?\n"); >>> >>> Please note, that

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

2023-11-30 Thread Arseniy Krasnov
On 30.11.2023 16:35, Michael Walle wrote: >> +static int do_mtd_otp_write(struct cmd_tbl *cmdtp, int flag, int argc, >> +    char *const argv[]) >> +{ > .. > >> +    printf("Caution! OTP data bits can't be erased! Continue (y/n)?\n"); > > Please note, that with current SPI-NOR

[PATCH v1] arm: dts: meson: add NAND controller node for AXG

2023-11-30 Thread Arseniy Krasnov
Signed-off-by: Arseniy Krasnov --- arch/arm/dts/meson-axg.dtsi | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/dts/meson-axg.dtsi b/arch/arm/dts/meson-axg.dtsi index 3f5254eeb4..c01ace3ff1 100644 --- a/arch/arm/dts/meson-axg.dtsi +++ b/arch/arm

[PATCH v1] cmd: mtd: OTP access support

2023-11-30 Thread Arseniy Krasnov
Add access to OTP region. It supports info, dump, write and lock operations. Signed-off-by: Arseniy Krasnov --- cmd/Kconfig | 1 + cmd/mtd.c | 224 2 files changed, 225 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index

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

2023-11-30 Thread Arseniy Krasnov
Support for OTP area access on MX30LFxG18AC chip series. Signed-off-by: Arseniy Krasnov --- drivers/mtd/nand/raw/nand_macronix.c | 170 +++ 1 file changed, 170 insertions(+) diff --git a/drivers/mtd/nand/raw/nand_macronix.c b/drivers/mtd/nand/raw/nand_macronix.c index

[PATCH v1] mtd: rawnand: Meson NAND controller support

2023-11-30 Thread Arseniy Krasnov
Basic support for Amlogic Meson NAND controller on AXG. Signed-off-by: Arseniy Krasnov --- drivers/mtd/nand/raw/Kconfig |9 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/meson_nand.c | 1231 + 3 files changed, 1241 insertions(+) create