Re: [PATCH v3 08/10] spi: dw: Add mem_ops

2020-09-21 Thread Eugeniy Paltsev
> From: Sean Anderson > Sent: Monday, September 14, 2020 18:35 > To: u-boot@lists.denx.de; uboot-snps-...@synopsys.com > Cc: Marek Vasut; Horatiu Vultur; Eugeniy Paltsev; Jagan Teki; Heinrich > Schuchardt; Sean Anderson > Subject: [PATCH v3 08/10] spi: dw: Add mem_ops > >

Re: [PATCH v2 00/10] riscv: Add SPI support for Kendryte K210

2020-08-10 Thread Eugeniy Paltsev
FYI: I've tested on commit aa68b00a8259aa026591475f21a5c51311252ef2 (current branch head) and I don't see any build/runtime issues. Tested-by Eugeniy Paltsev --- Eugeniy Paltsev From: Sean Anderson Sent: Monday, August 10, 2020 14:13 T

Re: [PATCH v2 00/10] riscv: Add SPI support for Kendryte K210

2020-08-10 Thread Eugeniy Paltsev
Hi Sean, do you have any public git branch with this patch series? I want to test these changes on our board with DW SPI controller. Thanks. --- Eugeniy Paltsev From: Sean Anderson Sent: Friday, August 7, 2020 17:43 To: u-boot@lists.denx.de; uboot

[PATCH 7/8] CLK: ARC: HSDK: define clock map with DT binding constants

2020-05-08 Thread Eugeniy Paltsev
Define clock map with DT binding constants so clock map can be discontinuous. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 56 -- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk

[PATCH 8/8] CLK: ARC: HSDK: add separate clock map for HSDK-4xD

2020-05-08 Thread Eugeniy Paltsev
HSDK and HSDK-4xD clock trees are slightly different. commit 1dfb2ec0d7fb ("ARC: HSDK: CGU: add support for timer clock") introduce regression for HSDK board cause crash when setting tunnel clock. Fix that. Fixes: 1dfb2ec0d7fb ("ARC: HSDK: CGU: add support for timer clock") Si

[PATCH 3/8] CLK: ARC: HSDK: use appropriate config data types

2020-05-08 Thread Eugeniy Paltsev
* constify clocks config data where is possible * use more appropriate data types for clocks config Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 41 +++--- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/drivers/clk/clk-hsdk

[PATCH 5/8] CLK: ARC: HSDK: prepare for multiple clock maps support

2020-05-08 Thread Eugeniy Paltsev
The clock trees of HSDK and HSDK-4xD vary so we need to prepare CGU driver for multiple clock maps support. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/clk/clk-hsdk-cgu.c b

[PATCH 6/8] CLK: ARC: HSDK: make set_clock optional

2020-05-08 Thread Eugeniy Paltsev
We don't want to allow change some clocks, i.e. DDR clock. So allow to have set_clock to be unset in clock map. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk

[PATCH 1/8] CLK: ARC: HSDK: avoid code duplication

2020-05-08 Thread Eugeniy Paltsev
hsdk_axi_clk_cfg and hsdk_tun_clk_cfg clock divider structures and functions for their processing are almost the same so merge them to avoid code duplication. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 112 + 1 file changed, 40 insertions

[PATCH 0/8] CLK: ARC: HSDK: add separate clock map for HSDK-4xD

2020-05-08 Thread Eugeniy Paltsev
HSDK and HSDK-4xD clock trees are slightly different. commit 1dfb2ec0d7fb ("ARC: HSDK: CGU: add support for timer clock") introduce regression for HSDK board cause crash when setting tunnel clock. Fix that and do required code cleanup. Eugeniy Paltsev (8): CLK: ARC: HSDK:

[PATCH 4/8] CLK: ARC: HSDK: driver cleanup

2020-05-08 Thread Eugeniy Paltsev
Minor code cleanup to improve readability. No functional change intended. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 75 -- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk

[PATCH 2/8] CLK: ARC: HSDK: drop unused offset

2020-05-08 Thread Eugeniy Paltsev
Drop creg_div_oft offset as it doesn't vary (due to it is used for CPU PLL only). Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 57 +++--- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/drivers/clk/clk-hsdk-cgu.c b/driver

[PATCH] ARC: DTS: cleanup USB node names

2020-05-07 Thread Eugeniy Paltsev
Remove redundant '0x' from node names. Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/axs10x_mb.dtsi | 4 ++-- arch/arc/dts/hsdk-common.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arc/dts/axs10x_mb.dtsi b/arch/arc/dts/axs10x_mb.dtsi index 5

[PATCH] ARC: HSDK: add reset for EHCI

2020-05-07 Thread Eugeniy Paltsev
Add reset phandle to EHCI device tree node to make on-chip reset controller usable with EHCI. Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/hsdk-common.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arc/dts/hsdk-common.dtsi b/arch/arc/dts/hsdk-common.dtsi index

[PATCH] ARC: HSDK: anounce state of BIM switch

2020-04-29 Thread Eugeniy Paltsev
Anounce state of BIM switch which defines if U-boot is loaded and started by preloader or not. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/hsdk.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index a3e0563ff45

Re: [PATCH] CMD: random: fix return code

2020-04-24 Thread Eugeniy Paltsev
Hi Simon, Tom, I guess it's perfect time to apply this patch. Thanks! --- Eugeniy Paltsev From: Simon Glass Sent: Monday, March 23, 2020 18:37 To: Eugeniy Paltsev Cc: Tom Rini; U-Boot Mailing List; uboot-snps-...@synopsys.com; Alexey Brodkin;

[PATCH] BDINFO: ARC: print info about relocations

2020-04-24 Thread Eugeniy Paltsev
Print relocation information in bdinfo. NOTE: this patch changes only ARC part of bdinfo code. Signed-off-by: Eugeniy Paltsev --- cmd/bdinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index d6a7175b379..31ec4615641 100644 --- a/cmd/bdinfo.c +++ b/cmd

[PATCH 13/14] ARC: HSDK-4xD: use separate config file

2020-04-24 Thread Eugeniy Paltsev
HSDK-4xD has quite different environment so let's split HSDK and HSDK-4xD configs file. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/Kconfig | 3 +- board/synopsys/hsdk/MAINTAINERS | 2 + include/configs/hsdk-4xd.h | 120 3 files ch

[PATCH 11/14] ARC: HSDK-4xD: add CSM configuration support

2020-04-24 Thread Eugeniy Paltsev
Add support for CSM enable/disable and CSM relocation via hsdk_init command. We allow to relocate CSM to the beginning of any aperture even if HW support finer granularity. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/arcregs.h | 3 +++ board/synopsys/hsdk/hsdk.c | 27

[PATCH 14/14] ARC: HSDK-4xD: make init status resistant to U-boot reloading

2020-04-24 Thread Eugeniy Paltsev
ve after U-boot is reloaded via MDB. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/hsdk.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index 329427ed4ba..a3e0563ff45 100644 -

[PATCH 07/14] ARC: HSDK-4xD: print info about HDMI clocks

2020-04-24 Thread Eugeniy Paltsev
HSDK-4xD has HDMI working so let's print info about HDMI clocks. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/hsdk.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index 577893de2a1..45bc5e

[PATCH 04/14] ARC: HSDK: split HSDK and HSDK-4xD DTS

2020-04-24 Thread Eugeniy Paltsev
Split HSDK and HSDK-4xD device tree files so they can have different model names. Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/Makefile | 2 +- arch/arc/dts/hsdk-4xd.dts | 12 +++ arch/arc/dts/hsdk-common.dtsi | 150 ++ arch/arc/dts/hsdk.dts

[PATCH 10/14] ARC: HSDK-4xD: add support for SLC enable/disable

2020-04-24 Thread Eugeniy Paltsev
Add support for SLC enable/disable via hsdk_init command. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/hsdk.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index b8b995db47d..b25b1331874 100644 --- a

[PATCH 12/14] ARC: HSDK-4xD: tweak memory map

2020-04-24 Thread Eugeniy Paltsev
For HSDK-4xD we do additional AXI bridge tweaking while doing hsdk_init command: - we shrink IOC region. - we configure ARC HS CORE SLV1 aperture depending on haps_apb_location environment variable. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/hsdk.c | 58

[PATCH 08/14] ARC: HSDK-4xD: drop additional GPU clock info

2020-04-24 Thread Eugeniy Paltsev
HSDK-4xD has other GPU type so it consumes only GPU core clock. Even we have additional GPU clock dividers they are not routed to anything. So drop information about those additional clocks in hsdk_clock print_all command. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/hsdk.c | 6

[PATCH 06/14] ARC: HSDK-4xD: fix headerize script for HSDK-4xD compatibility

2020-04-24 Thread Eugeniy Paltsev
ARC HS CPU in HSDK-4xD has ARC ID = 0x54, so fix headerize script accordingly. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/config.mk | 12 ++-- board/synopsys/hsdk/headerize-hsdk.py | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/board

[PATCH 09/14] ARC: HSDK-4xD: print timer clock value

2020-04-24 Thread Eugeniy Paltsev
Print timer clock value in hsdk_clock print_all command. Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/hsdk-common.dtsi | 6 -- board/synopsys/hsdk/hsdk.c| 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arc/dts/hsdk-common.dtsi b/arch/arc/dts/hsdk

[PATCH 03/14] ARC: HSDK-4xD: add initial board support

2020-04-24 Thread Eugeniy Paltsev
: Eugeniy Paltsev --- arch/arc/Kconfig| 2 +- board/synopsys/hsdk/Kconfig | 17 board/synopsys/hsdk/MAINTAINERS | 3 +- board/synopsys/hsdk/config.mk | 8 board/synopsys/hsdk/hsdk.c | 71 - configs/hsdk_4xd_defconfig

[PATCH 05/14] ARC: HSDK-4xD: use active low polarity of cpu_start pulse

2020-04-24 Thread Eugeniy Paltsev
Add quirk for HSDK-4xD - due to HW issues HSDK can use any pulse polarity but HSDK-4xD require active low polarity of cpu_start pulse. So use low polarity of cpu_start pulse for both board. Signed-off-by: Eugeniy Paltsev --- board/synopsys/hsdk/hsdk.c | 26 +++--- 1 file

[PATCH 01/14] ARC: ARCv2: handle DSP presence in HW

2020-04-24 Thread Eugeniy Paltsev
regardless of DSP presence we need to set DSP_CTRL properly. NOTE: we do the same adjustments in Linux kernel, see in kernel tree: commit 4827d0cf744e ("ARC: handle DSP presence in HW") Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/arcregs.h | 1 + arch/arc/lib/start.S

[PATCH 02/14] ARC: HSDK: CGU: add support for timer clock

2020-04-24 Thread Eugeniy Paltsev
Add support for additional timer clock which belongs to tunnel domain. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c| 9 ++--- include/dt-bindings/clock/snps,hsdk-cgu.h | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk

[PATCH 00/14] ARC: add HSDK-4xD board support

2020-04-24 Thread Eugeniy Paltsev
Eugeniy Paltsev (14): ARC: ARCv2: handle DSP presence in HW ARC: HSDK: CGU: add support for timer clock ARC: HSDK-4xD: add initial board support ARC: HSDK: split HSDK and HSDK-4xD DTS ARC: HSDK-4xD: use active low polarity of cpu_start pulse ARC: HSDK-4xD: fix headerize script for HSDK

[PATCH] ARC: AXS10x: cleanup kconfig

2020-04-23 Thread Eugeniy Paltsev
As we've dropped NAND support for AXS101 and AXS103 see commit 4f5e552d95bb ("ARC: AXS10x: drop NAND support") we don't need bounce buffer anymore. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arc/Kconfig b/ar

[PATCH] ARC: HSDK: CGU: fix tunnel clock calculation

2020-04-16 Thread Eugeniy Paltsev
We set wrong tunnel PLL frequency when we request 125MHz tunnel clock. Fix that. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c index 4637b9fdf15

[PATCH v2 2/3] ARC: IO: add compiler barriers to IO accessors

2020-03-30 Thread Eugeniy Paltsev
We must use compiler barriers in C-version read/write IO accessors before and after operation (read or write) so it won't be reordered by compiler. Fixes commit 07906b3dad15 ("ARC: Switch to generic accessors") Signed-off-by: Eugeniy Paltsev --- arch/arc/includ

[PATCH v2 1/3] ARC: IO: add volatile to accessors

2020-03-30 Thread Eugeniy Paltsev
We must use 'volatile' in C-version read/write IO accessors implementation to avoid merging several reads (writes) into one read (write), or optimizing them out by compiler. Fixes commit 07906b3dad15 ("ARC: Switch to generic accessors") Signed-off-by: Eugeniy Paltsev ---

[PATCH v2 3/3] ARC: IO: add MB for __raw_* memory accessors

2020-03-30 Thread Eugeniy Paltsev
ot is not that performance oriented as real run-time software like OS or user bare-metal app so we may afford being not super fast as we only being executed once. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/io.h | 58 +++ 1 file changed, 35 inser

[PATCH v2 0/3] ARC: IO: rework IO accessors

2020-03-30 Thread Eugeniy Paltsev
Fixing of DW SPI which was broken by commit 07906b3dad15 ("ARC: Switch to generic accessors") lead me to several fixes in ARC IO accessors code. Eugeniy Paltsev (3): ARC: IO: add volatile to accessors ARC: IO: add compiler barriers to IO accessors ARC: IO: add MB for __ra

[PATCH] ARC: fix up memory accessors

2020-03-24 Thread Eugeniy Paltsev
user bare-metal app so we may afford being not super fast as we only being executed once. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/io.h | 49 ++- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/arch/arc/include/asm/io.h b/a

[PATCH] CMD: random: fix return code

2020-03-20 Thread Eugeniy Paltsev
As of today 'random' command return 1 (CMD_RET_FAILURE) in case of successful execution and 0 (CMD_RET_SUCCESS) in case of bad arguments. Fix that. NOTE: we remove printing usage information from command body so it won't print twice. Signed-off-by: Eugeniy Paltsev ---

Re: [PATCH v1 6/8] spi: dw: Add mem_ops

2020-03-12 Thread Eugeniy Paltsev
Hi Sean, even after fixing build errors with this patch I still have issues with communications to flash IC. Now it is detected correctly (JEDEC id is valid) but I have issues with read or write. I need to look to that more intently. --- Eugeniy Paltsev

[PATCH] ARC: HSDK: Enable on-chip reset controller

2020-03-11 Thread Eugeniy Paltsev
As the driver of on-chip reset controller became available we are ready to enable it. Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/hsdk.dts | 7 +++ configs/hsdk_defconfig | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/arc/dts/hsdk.dts b/arch/arc/dts/hsdk.dts index

[PATCH 1/2] ARC: CACHE: add support for SL$ disable

2020-03-11 Thread Eugeniy Paltsev
Since version 3.0 ARC HS supports SL$ (L2 system level cache) disable. So add support for SL$ disable/enable to code. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/cache.h | 7 +++ arch/arc/lib/cache.c | 114 --- 2 files changed, 114

[PATCH 0/2] ARC cache subsystem updates

2020-03-11 Thread Eugeniy Paltsev
Eugeniy Paltsev (2): ARC: CACHE: add support for SL$ disable ARC: CACHE: mark IOC helper functions as inlined_cachefunc arch/arc/include/asm/cache.h | 7 +++ arch/arc/lib/cache.c | 118 --- 2 files changed, 116 insertions(+), 9 deletions

[PATCH 2/2] ARC: CACHE: mark IOC helper functions as inlined_cachefunc

2020-03-11 Thread Eugeniy Paltsev
Force inlining of IOC related functions used in other cache functions. This is preventive change. Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/cache.c index c42723daeb2

Re: [PATCH v1 6/8] spi: dw: Add mem_ops

2020-03-06 Thread Eugeniy Paltsev
error -2) ->8-- Tested from maix_spi HEAD (e338571bf528f58b3ced7fbd0c1f5d923caa1cfd) --- Eugeniy Paltsev From: Sean Anderson Sent: Friday, March 6, 2020 03:48 To: Eugeniy Paltsev; u-boot@lists.denx.de Cc: Simon Glass;

Re: [PATCH v1 6/8] spi: dw: Add mem_ops

2020-03-05 Thread Eugeniy Paltsev
Hi Sean, do you have branch with this code (all dw spi changes) in some public repo? I would like to test it with our board (which have DW SPI). --- Eugeniy Paltsev From: Sean Anderson Sent: Thursday, March 5, 2020 22:19 To: u-boot@lists.denx.de Cc

[PATCH] ARC: rework setting of ARC CPU specific compiler options

2020-02-12 Thread Eugeniy Paltsev
uot; selection. Given for each and every platform we end-up adding quite a few more flags it's logical to move "-mcpu" selection to platform's definition as well which we exactly do here. Signed-off-by: Eugeniy Paltsev --- arch/arc/config.mk | 20 -

[PATCH 2/2] CLK: HSDK: fix HDMI clock calculation

2020-01-29 Thread Eugeniy Paltsev
HDMI PLL has its own xtal with 27 MHz output but we treat it the same way as other PLLs with 33.33 MHz input. Fix that. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/clk

[PATCH 1/2] CLK: HSDK: Check for PLL bypass firstly

2020-01-29 Thread Eugeniy Paltsev
Pll bypass has priority over enable/disable. Signed-off-by: Eugeniy Paltsev --- drivers/clk/clk-hsdk-cgu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c index 56ef08c032b..69e6b24b66c 100644 --- a/drivers/clk

Re: [PATCH] ARC: enable unit tests on development platforms

2019-12-04 Thread Eugeniy Paltsev
Hi Alexey, ping! --- Eugeniy Paltsev From: Eugeniy Paltsev Sent: Thursday, November 28, 2019 18:54 To: uboot-snps-...@synopsys.com; Alexey Brodkin Cc: u-boot@lists.denx.de; Eugeniy Paltsev Subject: Re: [PATCH] ARC: enable unit tests on development

Re: [U-Boot] [PATCH] ARC: enable unit tests on development platforms

2019-11-28 Thread Eugeniy Paltsev
Hi Alexey, ping! --- Eugeniy Paltsev From: Eugeniy Paltsev Sent: Friday, November 8, 2019 18:31 To: uboot-snps-...@synopsys.com; Alexey Brodkin Cc: u-boot@lists.denx.de; Eugeniy Paltsev Subject: [PATCH] ARC: enable unit tests on development platforms

[U-Boot] [PATCH] ARC: enable unit tests on development platforms

2019-11-08 Thread Eugeniy Paltsev
Enable unit tests on HSDK and AXS103 development platforms to run it in verification flow. Signed-off-by: Eugeniy Paltsev --- configs/axs103_defconfig | 2 ++ configs/hsdk_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/axs103_defconfig b/configs/axs103_defconfig

[U-Boot] [PATCH] ARC: [plat-axs101]: migrate to DM_MMC

2019-10-08 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- configs/axs101_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/axs101_defconfig b/configs/axs101_defconfig index 0bfb532fc74..38c8ae998fd 100644 --- a/configs/axs101_defconfig +++ b/configs/axs101_defconfig @@ -35,7 +35,9 @@ CONFIG_DM=y

[U-Boot] [PATCH 1/2] ARC: HSDK: introduce reset driver

2019-10-08 Thread Eugeniy Paltsev
Introduce reset driver for Synopsys ARC HSDK SoC Signed-off-by: Eugeniy Paltsev --- drivers/reset/Kconfig | 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-hsdk.c | 116 include/dt-bindings/reset/snps

[U-Boot] [PATCH 2/2] MAINTAINERS: add info about ARC HSDK reset driver

2019-10-08 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e752e4b3de0..4cecbb6d134 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -94,6 +94,13 @@ L: uboot-snps-...@synopsys.com F: doc/device-tree-bindings/gpio

[U-Boot] [PATCH] NET: DW: fix regression for ARC boards

2019-10-07 Thread Eugeniy Paltsev
that by adding "snps,arc-dwmac-3.70a" compatible string to "drivers/net/designware.c" and using it in ARC boards device tree. Signed-off-by: Eugeniy Paltsev --- Tom, could you please pick this patch to 2019.10? arch/arc/dts/axs10x_mb.dtsi | 2 +- arch/arc/dts/hsdk.dts

Re: [U-Boot] [PATCH RFT 0/3] spi-nor: spi-nor-ids: Fix 4 Byte addressing for n25q256 and n25q512*

2019-10-07 Thread Eugeniy Paltsev
[1B in] 81 [ret 0] SF: 16 bytes @ 0x18 Written: OK OK AXS# sf read 0x8100 0x18 0x10 && echo OK device 0 offset 0x18, size 0x10 0b 00 18 00 00 | [16B in] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ret 0] SF: 16 bytes @ 0x18 Read: OK OK ->8--

Re: [U-Boot] [PATCH RFT 0/3] spi-nor: spi-nor-ids: Fix 4 Byte addressing for n25q256 and n25q512*

2019-09-24 Thread Eugeniy Paltsev
t I need to check it. --- Eugeniy Paltsev From: Vignesh Raghavendra Sent: Tuesday, September 24, 2019 08:56 To: Jagan Teki; Eugeniy Paltsev; Ashish Kumar; Simon Goldschmidt Cc: Vignesh Raghavendra; u-boot@lists.denx.de; Tom Rini; Alexey Brodkin Subject: [PATCH RFT 0

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-24 Thread Eugeniy Paltsev
AXS# md.b 0x8100 0x10 8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 AXS# -->8---- All tests were performed on 4b95daf5dca with your commit (for disabling 4B opcodes) applied. --- Eugeniy Paltsev ___________

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-12 Thread Eugeniy Paltsev
Hi Vignesh, I doesn't have access to board with n25q512ax3 currently, however I can test this on Monday (16.09) --- Eugeniy Paltsev From: Vignesh Raghavendra Sent: Tuesday, September 10, 2019 15:27 To: Eugeniy Paltsev; Jagan Teki Cc: u

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-10 Thread Eugeniy Paltsev
Hi Vignesh, that patch helps - both erase and write works fine. For n25q512ax3: Tested-by: "Eugeniy Paltsev " --- Eugeniy Paltsev From: Vignesh Raghavendra Sent: Tuesday, September 10, 2019 08:07 To: Eugeniy Paltsev; Jagan Teki

[U-Boot] [PATCH v2 1/2] MTD: SPI: add missing SST26* flash IC protection ops

2019-09-09 Thread Eugeniy Paltsev
viously by Commit 3d4fed87a5fa (mtd: sf: Add support of sst26wf* flash ICs protection ops) Signed-off-by: Eugeniy Paltsev --- drivers/mtd/spi/sf_internal.h | 1 + drivers/mtd/spi/spi-nor-core.c | 181 + include/linux/mtd/spi-nor.h| 4 + 3 files changed, 186

[U-Boot] [PATCH v2 2/2] MTD: SPI: enable protection ops for SST26 flash series

2019-09-09 Thread Eugeniy Paltsev
enabled by Commit 3d4fed87a5fa (mtd: sf: Add support of sst26wf* flash ICs protection ops) Signed-off-by: Eugeniy Paltsev --- drivers/mtd/spi/spi-nor-ids.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index a

Re: [U-Boot] [PATCH 1/1] MTD: SPI: revert removing SST26* flash IC protection ops

2019-09-09 Thread Eugeniy Paltsev
>On Wed, Sep 4, 2019 at 11:37 PM Eugeniy Paltsev > wrote: >> >> Commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) >> performs switch from previous 'spi_flash' infrastructure without >> proper testing/investigations which results in regression

Re: [U-Boot] Regressions in MTD / SPI FLASH

2019-09-09 Thread Eugeniy Paltsev
Hi! Comments are inlined: >On 04/09/19 11:37 PM, Eugeniy Paltsev wrote: >> We faced with regressions caused by >> commit c4e8862308d4 (mtd: spi: Switch to new SPI NOR framework) >> This switch was performed by removing entire u-boot spi-flash >> core implementation

[U-Boot] Regressions in MTD / SPI FLASH

2019-09-04 Thread Eugeniy Paltsev
ystem changes mustn't be done such harmful way. Eugeniy Paltsev (1): MTD: SPI: revert removing SST26* flash IC protection ops drivers/mtd/spi/sf_internal.h | 1 + drivers/mtd/spi/spi-nor-core.c | 181 + drivers/mtd/spi/spi-nor-ids.c | 8 +- include/lin

[U-Boot] [PATCH 1/1] MTD: SPI: revert removing SST26* flash IC protection ops

2019-09-04 Thread Eugeniy Paltsev
which were introduced previously by Commit 3d4fed87a5fa (mtd: sf: Add support of sst26wf* flash ICs protection ops) Signed-off-by: Eugeniy Paltsev --- Tom, could you please pick this patch to 2019.10? drivers/mtd/spi/sf_internal.h | 1 + drivers/mtd/spi/spi-nor-co

[U-Boot] [PATCH] ARC: AXS10x: drop NAND support

2019-03-27 Thread Eugeniy Paltsev
ssues. So instead of keeping support of yet another non-standard peripheral we're dropping its support for good. Signed-off-by: Eugeniy Paltsev --- board/synopsys/axs10x/Makefile | 1 - board/synopsys/axs10x/nand.c | 242 - configs/axs101_defconf

[U-Boot] [PATCH 3/3] ARC: [plat-axs10x]: migrate to DM_MMC

2019-02-25 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/axs10x_mb.dtsi| 28 board/synopsys/axs10x/axs10x.c | 29 - configs/axs103_defconfig | 2 ++ 3 files changed, 30 insertions(+), 29 deletions(-) diff --git a/arch/arc/dts

[U-Boot] [PATCH 2/3] ARC: [plat-hsdk]: migrate to DM_MMC

2019-02-25 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/hsdk.dts | 26 ++ board/synopsys/hsdk/hsdk.c | 41 ++--- configs/hsdk_defconfig | 2 ++ 3 files changed, 34 insertions(+), 35 deletions(-) diff --git a/arch/arc/dts/hsdk.dts b

[U-Boot] [PATCH 1/3] ARC: dwmmc: Adding DesignWare MMC driver support for ARC devboards

2019-02-25 Thread Eugeniy Paltsev
Add the DM_MMC-compatible DesignWare MMC driver support for Synopsys ARC devboards. It is created to switch ARC devboards to use DM_MMC. It required information such as clocks (Bus Interface Unit clock, Card Interface Unit clock) and SDIO bus width. Signed-off-by: Eugeniy Paltsev

[U-Boot] [PATCH 0/3] ARC: DM_MMC migration

2019-02-25 Thread Eugeniy Paltsev
Introduce DesignWare MMC driver extension and migrate several ARC devboard to DM_MMC Eugeniy Paltsev (3): ARC: dwmmc: Adding DesignWare MMC driver support for ARC devboards ARC: [plat-hsdk]: migrate to DM_MMC ARC: [plat-axs10x]: migrate to DM_MMC MAINTAINERS

Re: [U-Boot] [uboot-snps-arc] [PATCH v3 2/5] dts: switch spi-flash to jedec, spi-nor compatible

2019-01-17 Thread Eugeniy Paltsev
spi_flash@0 { > - compatible = "spi-flash"; > + compatible = "jedec,spi-nor"; > reg = <0>; > spi-max-frequency = <400>; > }; > -- Eugeniy Paltsev ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] ARC: HSDK: Fix timer frequency value

2018-09-05 Thread Eugeniy Paltsev
CPU (and hence cpu timers) on HSDK board runs at 500MHz after preloader so fix wrong CPU frequency value in hsdk.dts Signed-off-by: Eugeniy Paltsev --- arch/arc/dts/hsdk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/dts/hsdk.dts b/arch/arc/dts/hsdk.dts index

[U-Boot] [PATCH] ARC: AXS10x: add tool and make target to generate bsp

2018-06-27 Thread Eugeniy Paltsev
-off-by: Eugeniy Paltsev --- board/synopsys/axs10x/config.mk| 23 + board/synopsys/axs10x/headerize-axs.py | 176 + include/configs/axs10x.h | 7 ++ 3 files changed, 206 insertions(+) create mode 100644 board/synopsys/axs10x/config.mk

[U-Boot] [PATCH v2] AXS10x: add spi flash support

2018-06-08 Thread Eugeniy Paltsev
AXS10x boards have n25q512 spi flash IC, so add corresponding nodes to device tree and enaple corresponding options in defconfig. Signed-off-by: Eugeniy Paltsev --- NOTE: this patch has prerequisite: http://patchwork.ozlabs.org/patch/926871/ Changes v1->v2: * change SPI CS gpio compatible n

[U-Boot] [PATCH] AXS10x: add spi flash support

2018-06-08 Thread Eugeniy Paltsev
AXS10x boards have n25q512 spi flash IC, so add corresponding nodes to device tree and enaple corresponding options in defconfig. Signed-off-by: Eugeniy Paltsev --- NOTE: this patch has prerequisite: http://patchwork.ozlabs.org/patch/926871/ arch/arc/dts/axs10x_mb.dtsi | 34

[U-Boot] [PATCH 2/2] CREG GPIO: add device tree bindings

2018-06-08 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- MAINTAINERS | 1 + doc/device-tree-bindings/gpio/snps,creg-gpio.txt | 43 2 files changed, 44 insertions(+) create mode 100644 doc/device-tree-bindings/gpio/snps,creg-gpio.txt diff --git a

[U-Boot] [PATCH 0/2] GPIO: CREG: improve flexibility of hsdk-creg-gpio driver

2018-06-08 Thread Eugeniy Paltsev
pio line, activate / deactivatei and shift values. Fix that by read them from device tree to be able to use this driver for other boards. Eugeniy Paltsev (2): GPIO: CREG: improve flexibility of hsdk-creg-gpio driver CREG GPIO: add device tree bindings MAINTAINERS

[U-Boot] [PATCH 1/2] GPIO: CREG: improve flexibility of hsdk-creg-gpio driver

2018-06-08 Thread Eugeniy Paltsev
pio line, activate / deactivatei and shift values. Fix that by read them from device tree to be able to use this driver for other boards. Remove "hsdk" prefix from compatible string as this driver can be used with different boards like HSDK, AXS101, AXS103, etc. Signed-off-by: E

[U-Boot] [PATCH v2] ARC: HSDK: add tool and make target to generate bsp

2018-06-04 Thread Eugeniy Paltsev
-by: Eugeniy Paltsev --- Changes v1->v2: * Comments change board/synopsys/hsdk/config.mk | 11 +++ board/synopsys/hsdk/headerize-hsdk.py | 149 ++ include/configs/hsdk.h| 6 ++ 3 files changed, 166 insertions(+) create mode 100644 bo

[U-Boot] [PATCH] ARC: HSDK: add tool and make target to generate bsp

2018-06-04 Thread Eugeniy Paltsev
-by: Eugeniy Paltsev --- board/synopsys/hsdk/config.mk | 11 +++ board/synopsys/hsdk/headerize-hsdk.py | 147 ++ include/configs/hsdk.h| 6 ++ 3 files changed, 164 insertions(+) create mode 100644 board/synopsys/hsdk/config.mk create mode

[U-Boot] [PATCH 2/2] ARC: enable debug uart for HSDK and AXS10x boards

2018-05-03 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- configs/axs101_defconfig | 5 + configs/axs103_defconfig | 5 + configs/hsdk_defconfig | 5 + 3 files changed, 15 insertions(+) diff --git a/configs/axs101_defconfig b/configs/axs101_defconfig index 25b10888ced..559ed4734c1 100644 --- a/configs

[U-Boot] [PATCH 0/2] ARC: enable debug uart for HSDK and AXS10x boards

2018-05-03 Thread Eugeniy Paltsev
Eugeniy Paltsev (2): ARC: init debug uart in early common arc code ARC: enable debug uart for HSDK and AXS10x boards arch/arc/lib/start.S | 5 + configs/axs101_defconfig | 5 + configs/axs103_defconfig | 5 + configs/hsdk_defconfig | 5 + 4 files changed, 20 insertions

[U-Boot] [PATCH 1/2] ARC: init debug uart in early common arc code

2018-05-03 Thread Eugeniy Paltsev
The debug UART is intended for use very early in U-Boot to debug problems before serial drivers are up. Call debug_uart_init right before board_init_f. Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/start.S | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arc/lib/start.S b/arch

[U-Boot] [PATCH] DW SPI: invert wait condition in dw_spi_xfer

2018-04-19 Thread Eugeniy Paltsev
FIFO flush") Signed-off-by: Eugeniy Paltsev --- drivers/spi/designware_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 0e93b62eee..5e2d290ddc 100644 --- a/drivers/spi/designware_spi.c +++ b/d

[U-Boot] [PATCH] ARC: remove unused DECLARE_GLOBAL_DATA_PTR from init_helpers.c

2018-04-17 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/init_helpers.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arc/lib/init_helpers.c b/arch/arc/lib/init_helpers.c index 435fe96ef4..822318ff43 100644 --- a/arch/arc/lib/init_helpers.c +++ b/arch/arc/lib/init_helpers.c @@ -7,8 +7,6

[U-Boot] [PATCH] ARC: update ARC architecture maintainers

2018-04-17 Thread Eugeniy Paltsev
Update ARC architecture maintainers and add uboot-snps-...@synopsys.com mailing list. Signed-off-by: Eugeniy Paltsev --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 44eeefa635..9f653a0137 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -55,7

[U-Boot] [PATCH] ARC: AXS10x: enable hush shell

2018-04-17 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- configs/axs101_defconfig | 1 + configs/axs103_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/axs101_defconfig b/configs/axs101_defconfig index 174b80aeed..25b10888ce 100644 --- a/configs/axs101_defconfig +++ b/configs/axs101_defconfig

[U-Boot] [PATCH] ARC: HSDK: fix cpu frequency value

2018-04-17 Thread Eugeniy Paltsev
CPU on HSDK board runs at 500MHz after preloader so fix wrong cpu orequency value in hsdk_defconfig in hsdk. Signed-off-by: Eugeniy Paltsev --- configs/hsdk_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/hsdk_defconfig b/configs/hsdk_defconfig index

Re: [U-Boot] [PATCH v5 1/2] SPI Flash: add support of sst26wf* flash ICs protection ops

2018-04-16 Thread Eugeniy Paltsev
Hi Jagan! Any comments? On Tue, 2018-04-10 at 14:40 +0300, Eugeniy Paltsev wrote: > sst26wf flash series block protection implementation differs > from other SST series, so add specific implementation > flash_lock/flash_unlock/flash_is_locked functions for sst26wf > flash ICs. >

Re: [U-Boot] [PATCH v5 1/2] SPI Flash: add support of sst26wf* flash ICs protection ops

2018-04-12 Thread Eugeniy Paltsev
Hi Jagan, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Tue, 2018-04-10 at 14:40 +0300, Eugeniy Paltsev wrote: > sst26wf flash series block protection implementation differs > from other SST series, so add specific imp

[U-Boot] [PATCH v5 2/2] SF: add support for sst26wf016, sst26wf032, sst26wf064

2018-04-10 Thread Eugeniy Paltsev
This commit adds support for the SST sst26wf016, sst26wf032 and sst26wf064 flash IC. Signed-off-by: Eugeniy Paltsev --- Changes v4->v5: * None. Changes v3->v4: * None. Changes v2->v3: * None. Changes v1->v2: * None. drivers/mtd/spi/spi_flash_ids.c | 3 +++ 1 file changed,

[U-Boot] [PATCH v5 1/2] SPI Flash: add support of sst26wf* flash ICs protection ops

2018-04-10 Thread Eugeniy Paltsev
sst26wf flash series block protection implementation differs from other SST series, so add specific implementation flash_lock/flash_unlock/flash_is_locked functions for sst26wf flash ICs. Signed-off-by: Eugeniy Paltsev --- Changes v4->v5: * Return EACCES when flash is locked instead of cus

[U-Boot] [PATCH v5 0/2] SF: add support for sst26wf016, sst26wf032, sst26wf064

2018-04-10 Thread Eugeniy Paltsev
Use generic defines from linux/sizes.h instead of custom ones. Eugeniy Paltsev (2): SPI Flash: add support of sst26wf* flash ICs protection ops SF: add support for sst26wf016, sst26wf032, sst26wf064 drivers/mtd/spi/sf_internal.h | 18 + drivers/mtd/spi/spi_flash

Re: [U-Boot] [PATCH v4 1/2] SPI Flash: add support of sst26wf* flash ICs protection ops

2018-04-09 Thread Eugeniy Paltsev
Hi Jagan, On Mon, 2018-04-09 at 16:52 +0530, Jagan Teki wrote: > On Mon, Apr 9, 2018 at 4:27 PM, Eugeniy Paltsev > wrote: > > sst26wf flash series block protection implementation differs > > from other SST series, so add specific implementation > > flash_lock/flas

[U-Boot] [PATCH v4 1/2] SPI Flash: add support of sst26wf* flash ICs protection ops

2018-04-09 Thread Eugeniy Paltsev
sst26wf flash series block protection implementation differs from other SST series, so add specific implementation flash_lock/flash_unlock/flash_is_locked functions for sst26wf flash ICs. Signed-off-by: Eugeniy Paltsev --- Changes v3->v4: * Make sst26_process_bpr() and sst26_lock_

[U-Boot] [PATCH v4 2/2] SF: add support for sst26wf016, sst26wf032, sst26wf064

2018-04-09 Thread Eugeniy Paltsev
This commit adds support for the SST sst26wf016, sst26wf032 and sst26wf064 flash IC. Signed-off-by: Eugeniy Paltsev --- Changes v3->v4: * None. Changes v2->v3: * None. Changes v1->v2: * None. drivers/mtd/spi/spi_flash_ids.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH v4 0/2] SF: add support for sst26wf016, sst26wf032, sst26wf064

2018-04-09 Thread Eugeniy Paltsev
LOCKED/SF_LOCKED instead of magic numbers in sst26_lock_ctl() Changes v1->v2: * Use generic defines from linux/sizes.h instead of custom ones. Eugeniy Paltsev (2): SPI Flash: add support of sst26wf* flash ICs protection ops SF: add support for sst26wf016, sst26wf032, sst26wf064 driver

  1   2   3   >