[PATCH v1 05/11] mtd: rawnand: meson: move some defines to dedicated header

2025-04-05 Thread Arseniy Krasnov
We need these values and macro to correctly write "bootloader" partition in Optimus protocol, so let's export them to arch-meson header and also provide more detailed information about each macro. Signed-off-by: Arseniy Krasnov --- arch/arm/include/asm/arch-meson

[PATCH v1 03/11] usb: gadget: fastboot: make part of USB fastboot code shared

2025-04-05 Thread Arseniy Krasnov
mentations. Signed-off-by: Arseniy Krasnov --- drivers/usb/gadget/Makefile| 2 +- drivers/usb/gadget/f_fastboot.c| 295 +-- drivers/usb/gadget/f_fastboot_common.c | 320 + drivers/usb/gadget/f_fastboot_common.h | 71 ++ 4 files ch

Re: [PATCH RESEND] drivers: usb: gadget: composite: add checking for interface number

2025-04-05 Thread Arseniy Krasnov
Hi, sorry, pls ping On 12.03.2025 10:53, Arseniy Krasnov wrote: > Hi, sorry, pls ping > > On 03.02.2025 18:55, Vladimir Mitrofanov wrote: >> Some proprietary protocols uses "w_index" field not by the rules. >> When we set "intf = w_index & 0xFF" va

[PATCH v1 09/11] arm: meson: a1: ADNL protocol support

2025-04-04 Thread Arseniy Krasnov
During ADNL protocol operations, BootROM may request to enter ADNL mode after boot. So to support this, let's check for values in sticky registers after boot (such registers could be updated earlier by boot ROM, telling U-boot to enter ADNL mode. Signed-off-by: Arseniy Krasnov --- arc

[PATCH v1 06/11] arch: arm: meson: bootloader write support

2025-04-04 Thread Arseniy Krasnov
meson', because this code is also needed by 'fastboot' protocol which can also write "bootloader" partition. Signed-off-by: Arseniy Krasnov --- arch/arm/include/asm/arch-meson/nand.h| 34 +++ arch/arm/include/asm/arch-meson/spinand.h | 43 arch/arm/mach-meson/K

[PATCH v1 07/11] arm: meson: a1: add A1_SYSCTRL_SEC_STICKY_REG2

2025-04-04 Thread Arseniy Krasnov
This register is used by ADNL protocol, to check boot source of current U-boot instance. Signed-off-by: Arseniy Krasnov --- arch/arm/include/asm/arch-meson/a1.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-meson/a1.h b/arch/arm/include/asm/arch-meson/a1.h

[PATCH v1 10/11] usb: gadget: amlogic: implement Optimus protocol

2025-04-04 Thread Arseniy Krasnov
From: Vladimir Mitrofanov Add Amlogic's Optimus protocol support for USB transport. Signed-off-by: Vladimir Mitrofanov Signed-off-by: Arseniy Krasnov --- cmd/Kconfig | 7 + cmd/meson/Makefile| 1 + cmd/meson/opti

[PATCH v1 11/11] arch: arm: axg: Optimus protocol support

2025-03-28 Thread Arseniy Krasnov
d-off-by: Vladimir Mitrofanov Signed-off-by: Arseniy Krasnov --- arch/arm/include/asm/arch-meson/axg.h | 12 arch/arm/mach-meson/board-axg.c | 12 arch/arm/mach-meson/board-common.c| 15 +++ 3 files changed, 39 insertions(+) diff --git a/arch/arm/in

[PATCH v1 02/11] arch: arm: meson: use 'meson_sm_call()' in 'meson_sm_pwrdm_set()'

2025-03-26 Thread Arseniy Krasnov
Use more generic function in 'meson_sm_pwrdm_set()'. Signed-off-by: Arseniy Krasnov --- arch/arm/mach-meson/sm.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index 53b07e1dfe9..0a781e9c47b 100644 ---

[PATCH v1 08/11] usb: gadget: amlogic: implement ADNL protocol

2025-03-19 Thread Arseniy Krasnov
the device. Difference is that, it is specific for Amlogic SoCs, and for example it allows to upload and run image starting from ROM boot stage, it also uses SoC specific registers and SMC commands. Signed-off-by: Arseniy Krasnov --- cmd/Kconfig | 7 + cmd/meso

[PATCH v1 04/11] usb: gadget: amlogic: common code for Amlogic flashing commands

2025-03-19 Thread Arseniy Krasnov
Amlogic has Optimus and ADNL protocols to update firmware image. Both are operatable by special commands and such commands use same approaches, so let's implement such code before implementing both protocols. Signed-off-by: Arseniy Krasnov --- cmd/meson/gadget.c

[PATCH v1 01/11] arch: arm: meson: sm: add commands to reboot device in different modes

2025-03-19 Thread Arseniy Krasnov
-based SoC families: axg, g12a, g12b, sm1, etc. Signed-off-by: Arseniy Krasnov Signed-off-by: Vladimir Mitrofanov Signed-off-by: Evgeny Bachinin --- arch/arm/include/asm/arch-meson/sm.h | 98 +++- arch/arm/mach-meson/sm.c | 39 +++ drivers/sm/

[PATCH v1 00/11] Amlogic: ADNL and Optimus protocols support

2025-03-19 Thread Arseniy Krasnov
ADNL - drivers/usb/gadget/amlogic/adnl/f_adnl.c Optimus - drivers/usb/gadget/amlogic/optimus/f_optimus.c. Arseniy Krasnov (8): arch: arm: meson: use 'meson_sm_call()' in 'meson_sm_pwrdm_set()' usb: gadget: fastboot: make part of USB fastboot code shared usb: gadget: amlogic: co

Re: [PATCH v1] mtd: rawnand: meson: always use OOB bytes during write

2025-03-17 Thread Arseniy Krasnov
Hi, thanks! On 17.03.2025 09:09, Michael Nazzareno Trimarchi wrote: > Hi Arseniy > > On Sun, Dec 22, 2024 at 10:23 PM Arseniy Krasnov < > avkras...@salutedevices.com> wrote: > >> If 'oob_required' is not set by the caller (for example 'oobbuf' is N

Re: [PATCH RESEND] drivers: usb: gadget: composite: add checking for interface number

2025-03-12 Thread Arseniy Krasnov
Hi, sorry, pls ping On 03.02.2025 18:55, Vladimir Mitrofanov wrote: > Some proprietary protocols uses "w_index" field not by the rules. > When we set "intf = w_index & 0xFF" variable without check it may > exceed maximum number of interfaces. Not all code cases below check > the range of this vari

Re: [PATCH v1] mtd: rawnand: meson: always use OOB bytes during write

2025-02-12 Thread Arseniy Krasnov
Hi, sorry, but i don't see it merged. Is it ok? Thanks On 24.12.2024 16:56, Michael Nazzareno Trimarchi wrote: > Hi > > Yes > > Michael > > On Tue, Dec 24, 2024 at 8:55 AM Arseniy Krasnov > wrote: >> >> >> >> On 23.12.2024 15:57, Michael N

Re: [PATCH v1] mtd: rawnand: meson: always use OOB bytes during write

2024-12-23 Thread Arseniy Krasnov
On 23.12.2024 15:57, Michael Nazzareno Trimarchi wrote: > On Sun, Dec 22, 2024 at 10:23 PM Arseniy Krasnov > wrote: >> >> If 'oob_required' is not set by the caller (for example 'oobbuf' is NULL), >> then driver doesn't copy OOB data from

[PATCH v1] mtd: rawnand: meson: always use OOB bytes during write

2024-12-22 Thread Arseniy Krasnov
e. Fixes: c2e8c4d09a7a ("mtd: rawnand: Meson NAND controller support") Signed-off-by: Arseniy Krasnov --- drivers/mtd/nand/raw/meson_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c index 8

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

2024-08-26 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 Reviewed-by: Mich

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

2024-08-26 Thread Arseniy Krasnov
controller provided options. Signed-off-by: Arseniy Krasnov Reviewed-by: Michael Trimarchi --- Changelog: v1 -> v2: * Place 'NAND_IS_BOOT_MEDIUM' according its num

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

2024-08-26 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 Reviewed-by: Michael Trimarchi --- Changelog:

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

2024-08-26 Thread Arseniy Krasnov
ile this adds NAND_IS_BOOT_MEDIUM flag support. Changelog: v1 -> v2: * Pls see per-patch changelog. v2 -> v3: * Pls see per-patch changelog. Arseniy Krasnov (3): mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag mtd: rawnand: meson: refactor use of 'meson_n

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

2024-08-26 Thread Arseniy Krasnov
On 26.08.2024 13:42, Michael Nazzareno Trimarchi wrote: > Hi > > On Mon, Aug 26, 2024 at 11:00 AM Arseniy Krasnov > wrote: >> >> >> >> On 26.08.2024 10:16, Michael Nazzareno Trimarchi wrote: >>> Hi >>> >>> On Mon, Aug 26, 2024 at

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

2024-08-26 Thread Arseniy Krasnov
On 26.08.2024 10:16, Michael Nazzareno Trimarchi wrote: > Hi > > On Mon, Aug 26, 2024 at 8:17 AM Arseniy Krasnov > wrote: >> >> Boot ROM on Meson needs some pages to be read/written in a special mode: >> 384 byte ECC mode (so called "short" by Amlog

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

2024-08-25 Thread Arseniy Krasnov
On 26.08.2024 09:15, Michael Nazzareno Trimarchi wrote: > Hi Aresenly > > On Fri, Aug 23, 2024 at 10:53 AM Neil Armstrong > wrote: >> >> On 23/08/2024 10:29, Arseniy Krasnov wrote: >>> Hi! Got it, thanks! >>> >>> On 23.08.2024 11:10,

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

2024-08-25 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 v2 2/3] mtd: rawnand: meson: refactor use of 'meson_nfc_cmd_access()'

2024-08-25 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 insert

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

2024-08-25 Thread Arseniy Krasnov
ile this adds NAND_IS_BOOT_MEDIUM flag support. Changelog: v1 -> v2: * Pls see per-patch changelog. Arseniy Krasnov (3): mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag mtd: rawnand: meson: refactor use of 'meson_nfc_cmd_access()' mtd: rawnand: meson: read

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

2024-08-25 Thread Arseniy Krasnov
controller provided options. Signed-off-by: Arseniy Krasnov --- Changelog: v1 -> v2: * Place 'NAND_IS_BOOT_MEDIUM' according its numerical value. drivers/mtd/n

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

2024-08-23 Thread Arseniy Krasnov
Hi! Got it, thanks! On 23.08.2024 11:10, Michael Nazzareno Trimarchi wrote: > Hi Arseniy > > On Thu, Aug 22, 2024 at 9:04 AM Arseniy Krasnov > wrote: >> >> Hi, thanks! >> >> Thanks, Arseniy >> >> On 22.08.2024 00:17, Michael Nazzareno Trimarchi

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

2024-08-22 Thread Arseniy Krasnov
Hi, thanks! Thanks, Arseniy On 22.08.2024 00:17, Michael Nazzareno Trimarchi wrote: > Hi > > I will read them tomorrow ;) > > Thank you for understanding > > Michael > > Il mer 21 ago 2024, 22:25 Arseniy Krasnov ha > scritto: > >> Hi, sorry, pls ping

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

2024-08-21 Thread Arseniy Krasnov
Hi, sorry, pls ping 😄 Thanks On 08.07.2024 10:13, Arseniy Krasnov wrote: > Patchset is based on patchset for Linux (today merged to nand-next): > https://lore.kernel.org/linux-mtd/20240507230903.3399594-1-avkras...@salutedevices.com/ > > Here is description from it: > >

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

2024-07-24 Thread Arseniy Krasnov
Hi, sorry, pls ping, 2 weeks :) Thanks On 08.07.2024 10:13, Arseniy Krasnov wrote: > Patchset is based on patchset for Linux (today merged to nand-next): > https://lore.kernel.org/linux-mtd/20240507230903.3399594-1-avkras...@salutedevices.com/ > > Here is description from it: >

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

2024-07-08 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 v2 2/3] mtd: rawnand: meson: refactor use of 'meson_nfc_cmd_access()'

2024-07-08 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 insert

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

2024-07-08 Thread Arseniy Krasnov
controller provided options. Signed-off-by: Arseniy Krasnov --- Changelog: v1 -> v2: * Place 'NAND_IS_BOOT_MEDIUM' according its numerical value. drivers/mtd/n

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

2024-07-08 Thread Arseniy Krasnov
ile this adds NAND_IS_BOOT_MEDIUM flag support. Changelog: v1 -> v2: * Pls see per-patch changelog. Arseniy Krasnov (3): mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag mtd: rawnand: meson: refactor use of 'meson_nfc_cmd_access()' mtd: rawnand: meson: read

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

2024-06-25 Thread Arseniy Krasnov
On 24.06.2024 12:14, Alexander Dahl wrote: > Hello Arseniy, > > Am Sun, Jun 02, 2024 at 11:08:34PM +0300 schrieb Arseniy Krasnov: >> Based on Linux kernel: >> commit f922bd798bb9 ("mtd: rawnand: add an option to specify NAND chip as a >> boot device") &

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

2024-06-24 Thread Arseniy Krasnov
ther patches series? I would like to merge > at all but we were having some build breakage > > Michael > > On Mon, Jun 24, 2024 at 7:16 AM Arseniy Krasnov > wrote: >> >> Hi, sorry, pls ping :) >> >> Thanks >> >> On 02.06.2024 23:08, Arseniy Krasn

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

2024-06-23 Thread Arseniy Krasnov
Hi, sorry, pls ping :) Thanks On 02.06.2024 23:08, Arseniy Krasnov wrote: > Based on Linux kernel: > commit f922bd798bb9 ("mtd: rawnand: add an option to specify NAND chip as a > boot device") > > Allow to define a NAND chip as a boot device. This can be helpful >

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

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

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
33, 0x44 to offset 10 to user 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

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 ot

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

[PATCH v4] cmd: mtd: OTP access support

2024-03-20 Thread Arseniy Krasnov
33, 0x44 to offset 10 to user 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: Arseni

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
33, 0x44 to offset 10 to user 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: Arseni

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

2024-03-12 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, Arseniy Kr

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

2024-03-12 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 .

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

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 MX30LFxG18A

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

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 commen

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 wi

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 flas

[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